query-b4de5725d245013315b76d9dd7678d11
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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/>
SELECT ?person ?baptism WHERE {
?person wdt:P31 wd:Q5 .
?person p:P793 ?mem .
?mem ps:P793 wd:Q35856 .
OPTIONAL{ ?mem pq:P585 ?baptism }
}
Query found at
- https://www.wikidata.org/wiki/User:Jarekt/queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2018/01
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?baptism"):::projected
v2("?mem")
v1("?person"):::projected
c2(["wd:Q5"]):::iri
c5(["wd:Q35856"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:P793"--> v2
v2 --"p:statement/P793"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P585".-> v3
end