query manager interface