Support marginalizing embedded mh-queries.