[#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

* Added integration test for query manipulation