Having written some of this code myself, I have to disagree; transforming SQL fragments is legitimately frustratingly challenging. I have to admit I don&#x27;t know how to show a small example that captures the problem, though, because this is one of those cases where the small examples always look easy. It isn&#x27;t until you&#x27;re trying to support all of them at once that it is a problem. Combining two fragments that each specify tables, joins, where clause filters, and potentially subqueries with each of those recursively is nontrivial when you get down to it.<p>It also <i>really</i> doesn&#x27;t help that &quot;SQL is declarative&quot; is basically a lie, and it very frequently <i>totally matters</i> which &quot;synonymous&quot; query you actually throw at the database, thus eliminating a lot of the obvious clean answers in any practically-useful library.