I wish this was more programmatic and less stringy. Intermediate layer of string queries feels redundant. But I understand it makes clear separation of layers and concerns
Producing SQL serialized as strings? You can go around that and use RQ representation - but not db supports it yet.