In a QUERY statement in whose outermost QUERY expression there is at least one UNION, INTERSECT or EXCEPT, the ORDER clause must not contain column specifications.
Replace the column specifications with the corresponding numbers of the output columns or with the result column name (result_column_name) used in the first QUERY specification of the outermost QUERY expression.