Add support for query latency for SQL command