Is there a good JavaScript library that dynamically generates SQL SELECT statements?
Squiggle-Sql does this in Java.