minor: move query for ranges section into query page