Figured it would be best to ask here instead of in the comment thread I was discussing it in here: https://e621.net/comment/show/3666571
Basically I'm looking for a way to blacklist all male/male, intersex/male, intersex/intersex and male solo content UNLESS there's female/female, female/male, female/intersex or female solo in the same image. So far I've been using "female" in all my searches, but then you get images like the one I commented above on where the female is in the background and not involved in the sex. I also don't want to simply blacklist male/male because then that blacklists images like lichfang's orgies, where you've got a ton of female/female, male/female and intersex/female with just one or two male/male or intersex/male.
I'm looking to do the following, but there doesn't seem to be a syntax to do it, such as the parenthesis I've put below:
male/male -male/female -female/female -intersex/female -(female solo) male/intersex -male/female -female/female -intersex/female -(female solo) (male solo) -male/female -female/female -intersex/female -(female solo) -rating:safe
Updated by Furrin Gok