Pegasystems interview question

How would you analyze a slow running SQL statement?