Added rectangle query