query-727cf9bee6d499270c55d11d7f9ae593
Indian scientists born in March
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?dob ?dod
WHERE{
?item wdt:P106/wdt:P279* wd:Q901 . # scientist/subclass of scientist
{ ?item wdt:P27 wd:Q668 } # place of birth = India
OPTIONAL { ?item wdt:P569 ?dob }
OPTIONAL { ?item wdt:P570 ?dod }
FILTER (month(?dob) = 3) . # born in March (=3)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?dob
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v3("?dod"):::projected
v2("?item"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c4(["wd:Q901"]):::iri
c6(["wd:Q668"]):::iri
c12(["en"]):::literal
f0[["month-from-dateTime(?dob) = '3^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P27"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end