query-629f30cca8fdf48461a0343e61c32040

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?river ?riverLabel ?count WHERE
{
   {
  SELECT ?river (count(distinct ?item) as ?count) WHERE {
     {
  SELECT ?river WHERE {
   ?river wdt:P131/wdt:P131 wd:Q22 . 
    } }    ?river wdt:P31/wdt:P279* wd:Q55659167. 
    ?item ?predicate ?river .
    ?property wikibase:directClaim ?predicate . 
    } group by ?river }  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
} ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count"):::projected v3("?item") v4("?predicate") v5("?property") v2("?river"):::projected a1((" ")) a2((" ")) c5(["wd:Q55659167"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q22"]):::iri v2 --"wdt:P131"--> a1 a1 --"wdt:P131"--> c2 v2 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c5 v3 -->v4--> v2 v5 --"wikibase:directClaim"--> v4 bind1[/"count(?item)"/] v3 --o bind1 bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end