query-e7d5c8b8034459fdf7adca28ca5c99ae

rq turtle/ttl

Gib mir alle Ingeneuerinnen!

Use at

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 ?person ?personLabel (SAMPLE(?birth) AS ?born) (SAMPLE(?death) AS ?died) (SAMPLE(?picture) AS ?pic)
WHERE {
  ?person wdt:P106/wdt:P279* wd:Q81096 .   #Ingenieuer
  {?person wdt:P21 wd:Q6581072} # Frau
  #{{?person wdt:P103 wd:Q188 } UNION {?person wdt:P27 wd:Q183}}   #deutsch
  #?person wdt:P103 wd:Q188 .
  OPTIONAL { ?person wdt:P18 ?picture }
  ?person wdt:P569 ?birth .
  OPTIONAL {?person wdt:P570 ?death .}
  #FILTER(YEAR(?death)<=1900).   # died before …
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" }
} 
GROUP BY ?person ?personLabel
ORDER BY DESC(?born)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?birth"):::projected v6("?born") v5("?death"):::projected v6("?died") v2("?person"):::projected v7("?pic") v3("?picture"):::projected a1((" ")) c3(["wd:Q81096"]):::iri c10(["bd:serviceParam"]):::iri c5(["wd:Q6581072"]):::iri c12(["de,en"]):::literal v2 --"wdt:P106"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P21"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v3 end v2 --"wdt:P569"--> v4 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind3[/"sample(?birth)"/] v4 --o bind3 bind3 --as--o v6 bind4[/"sample(?death)"/] v5 --o bind4 bind4 --as--o v6 bind5[/"sample(?picture)"/] v3 --o bind5 bind5 --as--o v7