query-891c9c79df3e1e003881c2b4041e2d00
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dob (group_concat(?occupationLabel;separator="; ") as ?occupation) WHERE {
?item wdt:P106/wdt:P279* wd:Q3055126.
filter not exists {?item wdt:P18 [] . }
filter not exists {?item wdt:P570 [] .}
optional {?item wdt:P569 ?dob .}
?item wdt:P106 ?occupation.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?occupation rdfs:label ?occupationLabel .
?item rdfs:label ?itemLabel .}
} group by ?item ?itemLabel ?dob
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?dob"):::projected
v1("?item"):::projected
v5("?itemLabel"):::projected
v6("?occupation")
v4("?occupationLabel"):::projected
a2((" "))
a1((" "))
a3((" "))
c5(["wd:Q3055126"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P570"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P570"--> a1
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P18"--> e1a1
e1v1("?item"):::projected
e1a1((" ")):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> a2
v1 --"wdt:P18"--> a2
v1 --"wdt:P106"--> a3
a3 --"wdt:P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v2
end
v1 --"wdt:P106"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v6 --"rdfs:label"--> v4
v1 --"rdfs:label"--> v5
end
bind3[/"?occupationLabel"/]
v4 --o bind3
bind3 --as--o v6