spill query tree implemented