queries with boundaries