Implemented Selection and Projection queries.