The query
SELECT DISTINCT city
FROM crime_scene_report
WHERE LOWER(city) = 'sql city';
has a WHERE condition that may perform poorly generally speaking. If there was an index on crime_scene_report.city it might not be utilized due to LOWER(city), leading to bad performance due to a full table scan.