query: SELECT DISTINCT ?item 
  WHERE
  {
    {?item wdt:P31/wdt:P279* wd:Q7075 .} UNION {?item wdt:P31/wdt:P279* wd:Q1664720 .} UNION {?item wdt:P31/wdt:P279* wd:Q856584 .}
    MINUS{ ?item wdt:P31/wdt:P279* wd:Q31855 } 
    {?item wdt:P131 ?x  . } UNION {?item wdt:P159 ?x . }
    ?x wdt:P131* wd:Q39121 .
      }