Added query documentation