accounting for the union only queries