Query Run
SELECT CONCAT('SELECT * FROM ', schema_name, '.\'revision\' WHERE... 6 years ago