Hello I am trying to generate the following query:
SELECT COUNT(*) FROM (SELECT FROM UNION ALL SELECT FROM