init two queries