query-231f10217d412d7c4e186e4ad7d5e192
More general:
Use at
- https://query.wikidata.org/sparql
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 p: <http://www.wikidata.org/prop/>
SELECT ?item ?claimprop ?value ?lowerBound ?upperBound {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
?prop wikibase:propertyType wikibase:Quantity; wikibase:claim ?claimprop; wikibase:statementValue ?stmtval .
?item ?claimprop [ ?stmtval [ wikibase:quantityAmount ?value; wikibase:quantityLowerBound ?lowerBound; wikibase:quantityUpperBound ?upperBound ] ] .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claimprop"):::projected
v1("?item"):::projected
v6("?lowerBound"):::projected
v2("?prop")
v4("?stmtval")
v7("?upperBound"):::projected
v5("?value"):::projected
a1((" "))
a2((" "))
a4((" "))
a3((" "))
c4(["wd:Q26270618"]):::iri
c6(["wikibase:Quantity"]):::iri
v1 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
v2 --"wikibase:propertyType"--> c6
v2 --"wikibase:claim"--> v3
v2 --"wikibase:statementValue"--> v4
a3 --"wikibase:quantityAmount"--> v5
a3 --"wikibase:quantityLowerBound"--> v6
a3 --"wikibase:quantityUpperBound"--> v7
a4 -->v4--> a3
v1 -->v3--> a4