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 `state` ADD INDEX `state_idx_country_id` (`country_id`);
SELECT
c.country_id,
c.country_name,
s.state_name
FROM
country c
LEFT JOIN
state s
ON s.country_id = c.country_id