Add support for query latency for SQL command
Disable the subqueries early clean up because it can be called a couple of times for join
Merge branch 'ENG-6570-clean-temptable' into big-data-query