prototype implementation of post query transformations