query-368d424583bf7b8b1c1fec1b704b52a0

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 ?item ?itemLabel ?dob ?span where
{  {
  SELECT ?item ?dob ?span WHERE {
  ?item wdt:P27 wd:Q145.          #item has country of citizenship = UK
  ?item wdt:P569 ?dob.            #item has a DoB
  bind((now()-?dob)/365 as ?span) #span in years measured backwards from now 
  filter(?span<71)                #span less than 71
  } 
}  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; v3("?dob"):::projected v2("?item"):::projected v4("?span"):::projected c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q145"]):::iri f0[["?span < '71^^xsd:integer'"]] f0 --> v4 v2 --"wdt:P27"--> c3 v2 --"wdt:P569"--> v3 bind1[/"NOW() - ?dob / '365^^xsd:integer'"/] v3 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end