Pegasystems Interview Question

How would you analyze a slow running SQL statement?