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:
CREATE INDEX table1_idx_type_location_name ON table1 (type,location,name);
SELECT
table1.type,
table1.location
FROM
table1
WHERE
table1.type = 'stores'
AND table1.location = 'NJ'
AND table1.name = 'XYZ'
UNION
SELECT
table1.type,
table1.location
FROM
table1
WHERE
table1.type = 'restaurants'
AND table1.location = 'NY'
UNION
SELECT
table1.type,
table1.location
FROM
table1
WHERE
table1.type = 'hotels'
AND table1.location = 'US'