Two things come to mind: 1) this DSL could fit in with the parser/printer framework to also consume SQL; and 2) I am reminded of Wisnesky/Spivak on work on schemas, specifically this slide. Are you thinking about more general LINQ like or other DSL interpretations?