query-fffbbe42240fb0ebb2aea2653226480c

rq turtle/ttl

TODO

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?numericQuantity ?point WHERE 
{
  ?item wdt:P31 wd:Q6465. 
  ?item wdt:P131* wd:Q18678265. 
  ?item p:P5982 ?statement . 
  ?statement ps:P5982 ?numericQuantity.
  ?statement pq:P585 ?point . 

  FILTER("2015-00-00"^^xsd:date <= ?point &&
         ?point < "2016-00-00"^^xsd:dat)

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?numericQuantity"):::projected v1("?point"):::projected v3("?statement") c13(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal c11(["bd:serviceParam"]):::iri c6(["wd:Q18678265"]):::iri c4(["wd:Q6465"]):::iri f0[["'2015-00-00^^xsd:date' <= ?point?point < s2016-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 v2 --"p:direct/P31"--> c4 v2 --"p:direct/P131"--> c6 v2 --"p:P5982"--> v3 v3 --"p:statement/P5982"--> v4 v3 --"p:qualifier/P585"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end