query-672f794637bda8089090254f3ed2ff56

rq turtle/ttl

Propertiesmaintained by WikiProject (P6104)main subject (P921)author (P50)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
DISTINCT
  (REPLACE(STR(?author), ".*Q", "Q") AS ?qid) 
  ("P6104" AS ?property)
  ("Q56241615" AS ?ReplaceWithYourTargetID)

WHERE {
   {
  SELECT (count(DISTINCT ?work) as ?count) ?author 
  WHERE {
    ?work wdt:P6104 wd:Q56241615 .
    ?work wdt:P921 ?topic . 
    ?work wdt:P50 ?author .
    MINUS { ?author wdt:P6104 wd:Q56241615 }
  }
  GROUP BY ?author
  HAVING(?count > 9)
  LIMIT 200
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTOLANG],en" . } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?ReplaceWithYourTargetID") v4("?author"):::projected v5("?count") v6("?property") v5("?qid") v3("?topic") v2("?work") c9(["#91;AUTOLANG#93;,en"]):::literal c7(["bd:serviceParam"]):::iri c3(["wd:Q56241615"]):::iri f0[["?count > '9^^xsd:integer'"]] f0 --> v5 v2 --"wdt:P6104"--> c3 v2 --"wdt:P921"--> v3 v2 --"wdt:P50"--> v4 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v4 --"wdt:P6104"--> c3 end bind3[/"count(?work)"/] v2 --o bind3 bind3 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind4[/"replace(str(?author),'.*Q','Q')"/] v4 --o bind4 bind4 --as--o v5 bind5[/"'P6104'"/] bind5 --as--o v6 bind6[/"'Q56241615'"/] bind6 --as--o v7