query-c27ca86e6a6f7414d94d24ad55128189
TODO
Use at
- https://query.wikidata.org/sparql
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 psv: <http://www.wikidata.org/prop/statement/value/>
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 {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item ?numericQuantity ?point WHERE {
?item p:P5982 ?statement .
?statement psv:P5982/wikibase:quantityAmount ?numericQuantity.
?statement pq:P585 ?point .
FILTER("2015-00-00"^^xsd:date <= ?point &&
?point < "2016-00-00"^^xsd:dat)
?item p:P131/ps:P131/wdt:P131* wd:Q18678265.
?item wdt:P31 wd:Q6465.
}
LIMIT 100
}
}
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")
a1((" "))
a2((" "))
a3((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
c14(["wd:Q18678265"]):::iri
c16(["wd:Q6465"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
f0[["'2015-00-00^^xsd:date' <= ?point?point < s2016-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f0 --> v1
v2 --"p:P5982"--> v3
v3 --"p:statement/value/P5982"--> a1
a1 --"wikibase:quantityAmount"--> v4
v3 --"p:qualifier/P585"--> v1
v2 --"p:P131"--> a2
a2 --"p:statement/P131"--> a3
a3 --"p:direct/P131"--> c14
v2 --"p:direct/P31"--> c16