Helper iterator and generator for one-to-many joins