query-d05dcae88077e428bea69aebf4d90ec1

rq turtle/ttl

BrownHairedGirl

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item
WHERE {
  ?item wdt:P31 wd:Q5 . # Human
  ?item wdt:P21 wd:Q6581097 . # Male
  ?item wdt:P106 / wdt:P279 *  wd:Q3391743 . # Visual artist
  ?item wdt:P569 ?dob .  # Date of birth 
  FILTER("1860-00-00"^^xsd:date <= ?dob && ?dob < "1979-00-00"^^xsd:dat)
  OPTIONAL { ?item wdt:P570 ?dod .  } # Date of death
  FILTER (! BOUND(?dod) || "1900-00-00"^^xsd:date <= ?dod)
  [] schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> . # Has en.wp page
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?dob") v1("?dod") v3("?item"):::projected a2((" ")) a1((" ")) c10(["wd:Q3391743"]):::iri c7(["wd:Q6581097"]):::iri c15([https://en.wikipedia.org/]):::iri c5(["wd:Q5"]):::iri f0[["(not bound(?dod) || '1900-00-00^^xsd:date' <= ?dod)"]] f0 --> v1 f1[["'1860-00-00^^xsd:date' <= ?dob?dob < s1979-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f1 --> v2 v3 --"wdt:P31"--> c5 v3 --"wdt:P21"--> c7 v3 --"wdt:P106"--> a1 a1 --"wdt:P279"--> c10 v3 --"wdt:P569"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P570".-> v1 end a2 --"schema:about"--> v3 a2 --"schema:isPartOf"--> c15