Split the queries