query: SELECT DISTINCT ?item WHERE {
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    ?item wdt:P31/wdt:P279* wd:Q820655.
    {?item wdt:P17 wd:Q155.}
    UNION
    {?item wdt:P1001 wd:Q155.}
    UNION
    {?item wdt:P9119 [].}
    
    ?item wdt:P31 ?instance.
    FILTER(?instance not in (wd:Q820655, wd:Q6453643))
  }