Implementing more query operations