Query with smaller input and output bounding box