partial query handling