breaking up query