Will this work if query is like this
`
select * from (cube select c1 from cube1 union all cube select c2 from cube2) union all select c1 from cube1
`