Implemented IQueryable and IQueryProvider support.
Implemented support for scalar queries.