query-3fba96ac7e42d3d6abeffbcb9425c8ff

rq turtle/ttl

Epìdosis

Use at

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/>
SELECT ?item ?rank
WHERE
{
  {
    ?reference1 pr:P248 wd:Q19938912.
    ?reference2 pr:P248 wd:Q15222191.
    ?statement prov:wasDerivedFrom ?reference1.
    ?statement prov:wasDerivedFrom ?reference2.
  }


  ?item p:P569 ?statement.
  VALUES ?rank { wikibase:NormalRank wikibase:PreferredRank } # Wanted ranks
  ?statement wikibase:rank ?rank.  
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?item"):::projected v5("?rank"):::projected v1("?reference1") v2("?reference2") v3("?statement") c2(["wd:Q19938912"]):::iri c3(["wd:Q15222191"]):::iri v1 --"p:reference/P248"--> c2 v2 --"p:reference/P248"--> c3 v3 --"prov:wasDerivedFrom"--> v1 v3 --"prov:wasDerivedFrom"--> v2 v4 --"p:P569"--> v3 bind0[/VALUES ?rank/] bind0-->v5 bind00(["wikibase:NormalRank"]) bind00 --> bind0 bind01(["wikibase:PreferredRank"]) bind01 --> bind0 v3 --"wikibase:rank"--> v5