merged query2