add union all for different schemas