query from tanel to check exec plan for offloading