Adding a query view