query-3710510e99251ec95e66f96d7a70b82f

rq turtle/ttl

Evolución comparada de la esperanza de vida en España, EE.UU., Japón y Nigeria

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:LineChart
SELECT ?pais ?fecha (AVG(?ev) AS ?esperanza_vida) ?paisLabel WHERE {
   VALUES ?pais {wd:Q29 wd:Q30 wd:Q17 wd:Q1033}
   ?pais p:P2250 ?ev_statement.
   ?ev_statement ps:P2250 ?ev;
                 pq:P585 ?fecha.
   SERVICE wikibase:label { bd:serviceParam wikibase:language ",es".}
} GROUP BY ?pais ?fecha ?paisLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?esperanza_vida") v3("?ev"):::projected v2("?ev_statement") v4("?fecha"):::projected v1("?pais"):::projected c5(["bd:serviceParam"]):::iri c7([",es"]):::literal bind0[/VALUES ?pais/] bind0-->v1 bind00(["wd:Q29"]) bind00 --> bind0 bind01(["wd:Q30"]) bind01 --> bind0 bind02(["wd:Q17"]) bind02 --> bind0 bind03(["wd:Q1033"]) bind03 --> bind0 v1 --"p:P2250"--> v2 v2 --"p:statement/P2250"--> v3 v2 --"p:qualifier/P585"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind2[/"average(?ev)"/] v3 --o bind2 bind2 --as--o v5