support top for queries