Add multiple target contacts in advanced search
I'm assuming your using Adcanced search to build this

You could try adding your targets
' Group 1, Group 8, Group 12 etc'

Into just a standard static group.

Then Advanced search
group="new group"

Display results as- switch to related contacts "relationship type=member of"

Does that get you closer?