query-6db18e291bd394d3565f4aa4041533ac

rq turtle/ttl

Capitales de todos los paĆ­ses de la UE

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 ?country ?countryLabel ?capitalLabel ?population 
WHERE 
{
  ?country wdt:P463 wd:Q458.
  ?country wdt:P36 ?capital.
  ?capital wdt:P1082 ?population.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "   [AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?capital") v1("?country"):::projected v3("?population"):::projected c6(["bd:serviceParam"]):::iri c2(["wd:Q458"]):::iri c8([" #91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P463"--> c2 v1 --"wdt:P36"--> v2 v2 --"wdt:P1082"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end