query-c9c4a126749618a24f6dfac3aee2dbf3

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (count(?item2) as ?count) WHERE
{
   {
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  {
    SELECT DISTINCT ?item WHERE {
      ?item p:P31 ?statement0.
      ?item wikibase:propertyType wikibase:Url.
      ?statement0 (ps:P31/(wdt:P279*)) wd:Q84764641.
      MINUS {
        ?item p:P31 ?statement1.
        ?statement1 (ps:P31/(wdt:P279*)) wd:Q19847637.
      }
    }
  }
  MINUS { ?item wdt:P8966 [] } .
} }  ?item2 ?predicate []. 
  ?item wikibase:claim ?predicate.
} group by ?item ?itemLabel order by desc(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?count") v2("?item"):::projected v5("?item2"):::projected v6("?predicate") v3("?statement0") v4("?statement1") a3((" ")) a4((" ")) a1((" ")) a2((" ")) c10(["wd:Q84764641"]):::iri c7(["wikibase:Url"]):::iri c11(["wd:Q19847637"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"p:P31"--> v3 v2 --"wikibase:propertyType"--> c7 v3 --"p:statement/P31"--> a1 a1 --"p:direct/P279"--> c10 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"p:P31"--> v4 v4 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c11 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P8966"--> a3 end v5 -->v6--> a4 v2 --"wikibase:claim"--> v6 bind3[/"count(?item2)"/] v5 --o bind3 bind3 --as--o v7