In a QUERY statement whose QUERY expression contains at least a UNION, INTERSECT or EXCEPT specification, the ORDER clause must not contain any column specifications.
Replace the column specifications by the corresponding numbers of the output columns.