Extend SQL DSL to functions