Adding a query with limits