The automatic indentation of SQL class queries with UNION statements is a little funky:
Query Test() As %SQLQuery [ SqlProc ]
{
select 1
union
select 2
union
select 3
}
After compilation, turns into:
Query Test() As %SQLQuery [ SqlProc ]
{
select 1
union
select 2
union
select 3
}