query-7f864666ec6859badc5776fa9c019184

rq turtle/ttl

أطول نهر في كل قارة Longest river of each continent Longest river of each continent Nejdelší řeka každého kontinentu Longest river of each continent Längste Flüsse jedes Kontinents Longest river of each continent Longest river of each continent Plej longa rivero de ĉiu kontinento Longest river of each continent Longest river of each continent Le plus long fleuve de chaque continent הנהר הארוך ביותר בכל יבשת Longest river of each continent Longest river of each continent Il fiume più lungo di ogni continente 大陸別の最長河川 각 대륙에서 가장 긴 강 Longest river of each continent Longest river of each continent Longest river of each continent Langste rivier per continent Najdłuższa rzeka każdego kontynentu Longest river of each continent Longest river of each continent Самая длинная река каждого континента Longest river of each continent Längsta floderna i varje kontinent Longest river of each continent Kıtaya göre en uzun nehir Найдовша річка кожного континенту Longest river of each continent 各大洲最长的河流

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 ?continent ?river ?continentLabel ?riverLabel ?maxlength
WHERE
{
  {
    SELECT ?continent (MAX(?length) AS ?maxlength)
    WHERE
    {
      ?river wdt:P31/wdt:P279* wd:Q355304;
             wdt:P2043 ?length;
             wdt:P30 ?continent.
    }
    GROUP BY ?continent
  }
  ?river wdt:P31/wdt:P279* wd:Q355304;
         wdt:P2043 ?maxlength;
         wdt:P30 ?continent.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY ?continentLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?continent"):::projected v1("?continentLabel"):::projected v3("?length") v5("?maxlength"):::projected v2("?river"):::projected a1((" ")) a2((" ")) c3(["wd:Q355304"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P2043"--> v3 v2 --"wdt:P30"--> v4 bind1[/"max(?length)"/] v3 --o bind1 bind1 --as--o v5 v2 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c3 v2 --"wdt:P2043"--> v5 v2 --"wdt:P30"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end