query-35dd8def5a0f569b9eb1249e17ac8a73

rq turtle/ttl

Direi che il primo è più semplice, ma il secondo risulta molto più veloce, quindi usiamolo:

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 ?persona ?personaLabel ?ddn
WHERE
{
  ?persona wdt:P31 wd:Q5;
          wdt:P569 ?ddn.
  FILTER("2015-01-01"^^xsd:date <= ?dob && ?ddn < "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; v2("?ddn"):::projected v1("?dob") v3("?persona"):::projected c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q5"]):::iri f0[["'2015-01-01^^xsd:date' <= ?dob?ddn < 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