Validate UNION

In a SELECT statement, a UNION query must have the same number of columns. It is possible to check it with this function…