Implement select in backend.

Implement the select function in the backend and update the
documentation and spec.