queries involved