title: How can i use the new UDF functionality to create "Dynamic SQL statement"?
body: <p>How can i use the new UDF functionality to create "Dynamic SQL statement"?
  Is there a way to use UDF in order to construct SQL statement based on template and input variables, and later run this query?</p>