partial query working