Import generic_subq.t from 318e3d94c5332d5af335706b26fc5b6f6fc5c703
start of limit dialect map
I think this time I have the weird AS-defaulting "logic" correctly ported
allow gensym use for column that never escapes the query scope