query-a63a94594a34d55153afbf606c4a9e4f
Date of baptism from significant event (P793) statements in same item? (P793)significant event statement and not other (Q35856)baptism = (P793)significant event , but returns additional pairs if there is mode. Can someone help me fix it, so I only get qualifiers of (P793)significant event . The following query works fine if there is only a single (Q35856)baptism = (P793)significant event I am trying to get dates of baptism which are stored using old method as qualifiers of
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?person ?baptism WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P793 wd:Q35856 .
?person p:P793/pq:P585 ?baptism .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?baptism"):::projected
v1("?person"):::projected
a1((" "))
c2(["wd:Q5"]):::iri
c4(["wd:Q35856"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P793"--> c4
v1 --"p:P793"--> a1
a1 --"p:qualifier/P585"--> v2