No where.
osTicket uses an ORM which generates the queries needed to get the information on the fly. That exact query does not exist anywhere in the core files.
The string ServiceTime exists in include/class.report.php though.
My guess is that this query is being generated by the Dashboard.