miner query functionality