Makes queries in parts