handle union query on realtime node