query-8c336ef4b5f152fb968c571260e3cd11

rq turtle/ttl

Locate all statements, items and retrieval dates for a property given reference type SELECT DISTINCT ?date ?statement ?item

WHERE {?reference pr:P248 wd:Q180686; pr:P813 ?date. ?statement prov:wasDerivedFrom ?reference. ?statement ps:P921 wd:Q8084905. ?item p:P921 ?statement}

ORDER BY ASC(?date)

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/>
#Locate all statements, items and retrieval dates for a property given reference type
SELECT DISTINCT ?date ?statement ?item 

WHERE {?reference pr:P248 wd:Q180686;
                    pr:P813 ?date.
         ?statement prov:wasDerivedFrom ?reference.
         ?statement ps:P921 wd:Q8084905.
         ?item p:P921 ?statement}

ORDER BY ASC(?date)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v4("?item"):::projected v2("?reference") v3("?statement"):::projected c6(["wd:Q8084905"]):::iri c2(["wd:Q180686"]):::iri v2 --"p:reference/P248"--> c2 v2 --"p:reference/P813"--> v1 v3 --"prov:wasDerivedFrom"--> v2 v3 --"p:statement/P921"--> c6 v4 --"p:P921"--> v3