Optimizing dataflow execution – the SQL transform