query-039f6c317c1a38a4aadcef7a38a7b02a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?populationBlock ?ref ?refLabel
WHERE
{
VALUES ?item {wd:Q145}
?item p:P1082 ?populationBlock.
?populationBlock prov:wasDerivedFrom ?referenceStatement.
?referenceStatement pr:P248 ?ref.
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;
v1("?item"):::projected
v2("?populationBlock"):::projected
v4("?ref"):::projected
v3("?referenceStatement")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q145"])
bind00 --> bind0
v1 --"p:P1082"--> v2
v2 --"prov:wasDerivedFrom"--> v3
v3 --"p:reference/P248"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end