query-2a07dbe30b17c310cffeb266e36ffcb6
Query dates with instance of statement with Gregorian date earlier than 1584 ).contribs • [[User talk:|talk]] ([[User:|?]] comment was added byunsignedThe preceding – What's the best way to query date of birth (P569) that are instances of statement with Gregorian date earlier than 1584 (Q26961029)? Try:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dob
WHERE
{
?item p:P569 [ pq:P31 wd:Q26961029 ; ps:P569 ?dob ]
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v2("?item"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q26961029"]):::iri
a1 --"p:qualifier/P31"--> c2
a1 --"p:statement/P569"--> v1
v2 --"p:P569"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end