qnd: better pattern matching to find all batch children.