Implement the query by using limits