query-092aec2cc3e1669b222d939fd97e16d3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dateOfBirth ?twitter_username ?place_of_birthLabel WHERE
{
{ SELECT ?item ?dateOfBirth
WHERE
{
?item wdt:P106 wd:Q82955. # occupation = politician
?item wdt:P27 wd:Q142. # country of citizenship = France
?item wdt:P569 ?dateOfBirth. # date of birth greater than or equal to 1900
FILTER("1900-00-00"^^xsd:date <= ?dateOfBirth)
} } OPTIONAL {?item wdt:P2002 ?twitter_username .}
OPTIONAL {?item wdt:P19 ?place_of_birth .}
# add more OPTIONAL statements here ... remember also to add a column to the SELECT at the top
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dateOfBirth"):::projected
v2("?item"):::projected
v4("?place_of_birth")
v3("?twitter_username"):::projected
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q82955"]):::iri
c5(["wd:Q142"]):::iri
f0[["'1900-00-00^^xsd:date' <= ?dateOfBirth"]]
f0 --> v1
v2 --"wdt:P106"--> c3
v2 --"wdt:P27"--> c5
v2 --"wdt:P569"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2002".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P19".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end