query-ed3bedb3440c486e6dc7c973aaf4ba27

rq turtle/ttl

Peoples born between Oct 23 1900 and Nov 22 1900

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#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?person ?personLabel ?personDescription ?birth ?death ?age ?occupationLabel ?sex_or_genderLabel WHERE {
  ?person wdt:P31 wd:Q5.
  ?person wdt:P569 ?birth.
  ?person wdt:P570 ?death.
  ?person wdt:P21 ?sex_or_gender.
  ?person wdt:P106 ?occupation.
  BIND((YEAR(?death)) - (YEAR(?birth)) AS ?age)
  FILTER((?age > 10) && (?age < 100))
  FILTER((?birth > "1900-10-22"^^xsd:dat) && (?birth < "1900-11-23"^^xsd:dat))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?age"):::projected v1("?birth"):::projected v4("?death"):::projected v6("?occupation") v3("?person"):::projected v5("?sex_or_gender") c12(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?birth > s1900-10-22^^<http://www.w3.org/2001/XMLSchema#dat>'?birth < s1900-11-23^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 f1[["?age > '10^^xsd:integer'?age < '100^^xsd:integer'"]] f1 --> v7 v3 --"wdt:P31"--> c6 v3 --"wdt:P569"--> v1 v3 --"wdt:P570"--> v4 v3 --"wdt:P21"--> v5 v3 --"wdt:P106"--> v6 bind2[/"year-from-dateTime(?death) - year-from-dateTime(?birth)"/] v4 --o bind2 v1 --o bind2 bind2 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end