query-6be90c6f94cd8b863a245b816e5c8d78
Positions held by Winston Churchill SELECT DISTINCT ?countryLabel ?populationStatement ?population
WHERE { VALUES ?country {wd:Q8016}
?country p:P39 ?populationStatement . # the statement "node", which all other data is connected to ?populationStatement ps:P39 ?population . # the actual value of population statement
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } ORDER BY ?countryLabel
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Positions held by Winston Churchill
SELECT DISTINCT ?countryLabel ?populationStatement ?population
WHERE {
VALUES ?country {wd:Q8016}
?country p:P39 ?populationStatement . # the statement "node", which all other data is connected to
?populationStatement ps:P39 ?population . # the actual value of population statement
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?countryLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?country")
v1("?countryLabel"):::projected
v4("?population"):::projected
v3("?populationStatement"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
bind0[/VALUES ?country/]
bind0-->v2
bind00(["wd:Q8016"])
bind00 --> bind0
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end