all fields/tables/values are converted to variables
functions sql rewritten