query-8f7a2c4387e2a4d52a4709b4230bd748
TODO
Use at
- https://query.wikidata.org/sparql
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/>
select ?item ?refnode ?a ?refnode1 ?b where
{
values ?item { wd:Q16217499 } .
?item p:P1532 ?P1532statement.
?P1532statement prov:wasDerivedFrom ?refnode.
?P1532statement prov:wasDerivedFrom ?refnode1.
?refnode pr:P143 ?a . # query for this on its own & it is found, but ...
?refnode1 pr:P248 ?b . # query for both, and no results. Query for this one on its own & it is found.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?P1532statement")
v5("?a"):::projected
v6("?b"):::projected
v1("?item"):::projected
v3("?refnode"):::projected
v4("?refnode1"):::projected
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q16217499"])
bind00 --> bind0
v1 --"p:P1532"--> v2
v2 --"prov:wasDerivedFrom"--> v3
v2 --"prov:wasDerivedFrom"--> v4
v3 --"p:reference/P143"--> v5
v4 --"p:reference/P248"--> v6