UKG Interview Question

How do you debug a slow SQL query?