query-023a1a6a407ec973949143adb6a959ac

rq turtle/ttl

Neurological diseases ordered by prevalence

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 ?disease ?diseaseLabel (AVG(?prev) AS ?prevalence) WHERE {
  ?disease wdt:P1995 wd:Q83042;
    wdt:P1193 ?prev.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?disease ?diseaseLabel
ORDER BY DESC (?prevalence)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?disease"):::projected v3("?prev"):::projected v4("?prevalence") c2(["wd:Q83042"]):::iri c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;"]):::literal v2 --"wdt:P1995"--> c2 v2 --"wdt:P1193"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"average(?prev)"/] v3 --o bind1 bind1 --as--o v4