query-fc89c0c43bd1c64486c497406d0f77e0
Female scientists
SELECT ?item ?itemLabel ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?itemDescription WITH { SELECT ?item WHERE { ?item wdt:P21 wd:Q6581072 . hint:Prior hint:runFirst true. ?item wdt:P106/wdt:P279* wd:Q901 . hint:Prior hint:gearing "forward". } } as %i WHERE { INCLUDE %i optional { ?item wdt:P734 ?lastname . } optional { ?item wdt:P569 ?birthdate . } optional { ?item wdt:P570 ?deathdate . } optional { ?item wdt:P27 ?nationality . } SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,fr,de,es,it,no" } }
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#>
# Female scientists
SELECT ?item ?itemLabel ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?itemDescription WHERE
{
{ SELECT ?item WHERE {
?item wdt:P21 wd:Q6581072 .
?item wdt:P106/wdt:P279* wd:Q901 .
} } optional { ?item wdt:P734 ?lastname . }
optional { ?item wdt:P569 ?birthdate . }
optional { ?item wdt:P570 ?deathdate . }
optional { ?item wdt:P27 ?nationality . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,fr,de,es,it,no" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birthdate"):::projected
v4("?deathdate"):::projected
v1("?item"):::projected
v2("?lastname")
v5("?nationality")
a1((" "))
c13(["nl,en,fr,de,es,it,no"]):::literal
c2(["wd:Q6581072"]):::iri
c11(["bd:serviceParam"]):::iri
c5(["wd:Q901"]):::iri
v1 --"wdt:P21"--> c2
v1 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P734".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P27".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end