BEGIN
SELECT SensID, `SQL`, `QueryType`,`Name` FROM SensorChecks WHERE `QueryType` IN (4, 20, 21) ORDER BY `QueryType`;
END