query-39d28eea801c5a1bb8cb48535d7020db
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?birth (SAMPLE(?pob) AS ?sample_pob)
WHERE {
VALUES ?item { wd:Q6701 }
OPTIONAL {?item wdt:P569 ?birth .}
OPTIONAL {?item wdt:P19 ?pob .}
}
GROUP BY ?item ?birth
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?birth"):::projected
v1("?item"):::projected
v3("?pob"):::projected
v4("?sample_pob")
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q6701"])
bind00 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P19".-> v3
end
bind2[/"sample(?pob)"/]
v3 --o bind2
bind2 --as--o v4