Making TransferQuery work!

* It still doesn't work for the case of having Query of virtualized types. We have to see how to solve it.