The inspection works in MySQL versions that are earlier than 8.0.
Example (MySQL):
SELECT * FROM (SELECT 1 UNION (SELECT 1 UNION SELECT 2)) a;