support for multiple union queries