In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `TT` ADD INDEX `tt_idx_person_id_id_yr_id_qtr` (`person_id`,`id_yr`,`id_qtr`);
SELECT
TT.col_123
FROM
TT
WHERE
TT.person_id = T2.person_id_t2
AND TT.id_yr = T2.id_yr_t2
AND TT.id_qtr = T2.id_qtr_t2