query-22be22e7ab12d8fe510eb11e86504909

rq turtle/ttl

Wrong uses as birthdayI suggest that we add this query to complex constraint.

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?birth WHERE {
    ?item p:P569/psv:P569 [
      wikibase:timeValue ?birth; wikibase:timePrecision ?precision
    ].
    FILTER(?birth > "+0000-00-00T00:00:00Z"^^xsd:dateTime).
    FILTER(?birth < "+0032-00-00T00:00:00Z"^^xsd:dateTime).
    FILTER(?precision = 10).
    FILTER (?item not in (wd:Q4115189,wd:Q13406268,wd:Q15397819)).
  }
  LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?birth"):::projected v1("?item"):::projected v2("?precision") a2((" ")) a1((" ")) f0[["?item != 'wd:Q4115189'?item != 'wd:Q13406268'?item != 'wd:Q15397819'"]] f0 --> v1 f1[["?precision = '10^^xsd:integer'"]] f1 --> v2 f2[["?birth < '+0032-00-00T00:00:00Z^^xsd:dateTime'"]] f2 --> v3 f3[["?birth > '+0000-00-00T00:00:00Z^^xsd:dateTime'"]] f3 --> v3 a1 --"wikibase:timeValue"--> v3 a1 --"wikibase:timePrecision"--> v2 v1 --"p:P569"--> a2 a2 --"p:statement/value/P569"--> a1