query-f65fe3d9e08d75398e3aa8f5d75c3436

rq turtle/ttl

TODO

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 distinct ?person ?personLabel ?dob ?dod WHERE
{
  ?person wdt:P31 wd:Q5.           #human
  ?person wdt:P21 wd:Q6581072.     #female
#sf-ish
  {?person wdt:P106 wd:Q18844224}         #sf writer
  union                                   #and/or
  {?person wdt:P136/wdt:P279* wd:Q24925.} #genre or subclass thereof=sf
#German-ish  
  {?person wdt:P103 wd:Q188 .}            #native lang = German
  union                                   #and/or 
  {?person wdt:P1412 wd:Q108 .}           #spoken/written lang = German
  union                                   #and/or
  {?person wdt:P27 ?Germanish .}          #citizen of (some sort of) Germany
  union                                   #and/or
  {?person wdt:P19/wdt:P131* ?Germanish .} #born somewhere within (some sort of) Germany
  VALUES ?Germanish {wd:Q183 wd:Q16957 wd:Q713750 wd:Q7318}           
  optional {?person wdt:P569 ?dob}
  optional {?person wdt:P570 ?dod}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?personLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?Germanish") v4("?dob"):::projected v5("?dod"):::projected v2("?person"):::projected v1("?personLabel"):::projected a1((" ")) a2((" ")) c9(["wd:Q24925"]):::iri c4(["wd:Q6581072"]):::iri c20(["bd:serviceParam"]):::iri c13(["wd:Q108"]):::iri c6(["wd:Q18844224"]):::iri c2(["wd:Q5"]):::iri c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal c11(["wd:Q188"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P21"--> c4 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P136"--> a1 a1 --"wdt:P279"--> c9 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P106"--> c6 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P19"--> a2 a2 --"wdt:P131"--> v4 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P27"--> v4 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P1412"--> c13 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P103"--> c11 end union1r <== or ==> union1l end bind0[/VALUES ?Germanish/] bind0-->v4 bind00(["wd:Q183"]) bind00 --> bind0 bind01(["wd:Q16957"]) bind01 --> bind0 bind02(["wd:Q713750"]) bind02 --> bind0 bind03(["wd:Q7318"]) bind03 --> bind0 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v4 end 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; c20 --"wikibase:language"--> c22 end