Added file that performs query conversion.

Adding query converter that is still being worked on to support all foreseeable RGM queries.