query pub