query-c7bd6cc826367383dd5e4129b21292ec

rq turtle/ttl

Minu arust on esimene variant selgem, aga tuleb välja, et teine on tunduvalt kiirem, seega kasutame teist:

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?inimene ?inimeneLabel ?aasta
WHERE
{
  ?inimene wdt:P31 wd:Q5;
          wdt:P569 ?sünd.
  FILTER("2015-01-01"^^xsd:date <= ?dob && ?sünd < "2016-01-01"^^xsd:dat).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dob") v3("?inimene"):::projected v2("?sünd") c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q5"]):::iri f0[["'2015-01-01^^xsd:date' <= ?dob?sünd < s2016-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 f0 --> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P569"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end