query-de836dcf37fdda84b81858cd7587a9ef

rq turtle/ttl

Refnode woe I get nil results. What stupidity am I perpetrating? ?refnode pr:P248 ?b . AND ?refnode pr:P143 ?a . on its own, I get the expected value. If I query for both of ?refnode pr:P248 ?b . OR ?refnode pr:P143 ?a . I see there are pr:P143 and pr:P248 values. If I query for either of ?refnode ?a ?b .From Steak's question, above, what's going on with this query? If I query only for

Use at

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 ?b where 
{
  values ?item { wd:Q16217499 } .
  ?item p:P1532 ?P1532statement. 
  ?P1532statement prov:wasDerivedFrom ?refnode.
  ?refnode ?a ?b .       # this shows ?refnode has pr:P143 and ps:P248 values
#  ?refnode pr:P143 ?a . # query for this on its own & it is found, but ...
#  ?refnode 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") v4("?a"):::projected v5("?b"):::projected v1("?item"):::projected v3("?refnode"):::projected bind0[/VALUES ?item/] bind0-->v1 bind00(["wd:Q16217499"]) bind00 --> bind0 v1 --"p:P1532"--> v2 v2 --"prov:wasDerivedFrom"--> v3 v3 -->v4--> v5