query-f039d38e54c6813026d3c7f69afb2948
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?fieldLabel ?genderLabel ?scientistLabel {
VALUES ?field { wd:Q7150 wd:Q1662673 } # list of P101 for the selection
?scientist wdt:P31 wd:Q5; wdt:P106/wdt:P279* wd:Q901; wdt:P21 ?gender; wdt:P101 ?field .
FILTER NOT EXISTS { ?scientist wdt:P570 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,es,it,pl,hu,ru,ko,az,hy,nb,fi,be,et,tg,he". }
}
ORDER BY ?fieldLabel ?genderLabel ?scientistLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?field")
v1("?fieldLabel"):::projected
v6("?gender")
v2("?genderLabel"):::projected
v4("?scientist")
v3("?scientistLabel"):::projected
a1((" "))
a2((" "))
c12(["#91;AUTO_LANGUAGE#93;,en,de,fr,es,it,pl,hu,ru,ko,az,hy,nb,fi,be,et,tg,he"]):::literal
c10(["bd:serviceParam"]):::iri
c6(["wd:Q901"]):::iri
c3(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P570"--> e0a1
e0v1("?scientist"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v4
f0 --> c1
f0 --> a1
v4 --"wdt:P570"--> a1
bind1[/VALUES ?field/]
bind1-->v5
bind10(["wd:Q7150"])
bind10 --> bind1
bind11(["wd:Q1662673"])
bind11 --> bind1
v4 --"wdt:P31"--> c3
v4 --"wdt:P106"--> a2
a2 --"wdt:P279"--> c6
v4 --"wdt:P21"--> v6
v4 --"wdt:P101"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end