An alternative query language for PostgreSQL would be a wonderful thing! But it isn’t clear that’s what this is.
One could imagine representing queries as compound terms, like: q(user(id=Id, name=like("Bob%"), email=Email))
which would query, from user table and bind Id and Email for all matches. I plan to experiment with something like that.