query-5339832e563cb03d62b4188f236355f6
No bounds constraint… Bounds statistics
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?diff (COUNT(*) AS ?cnt) WHERE {
{
SELECT ?any WHERE { ?property wikibase:propertyType wikibase:Quantity; wikibase:statementValue|wikibase:qualifierValue|wikibase:referenceValue ?any }
}.
[] ?any [ wikibase:quantityLowerBound ?lower; wikibase:quantityUpperBound ?upper ] .
BIND((?upper - ?lower) / 2 as ?diff) .
} GROUP BY ?diff ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?any")
v7("?cnt")
v6("?diff"):::projected
v4("?lower")
v2("?property")
v5("?upper")
a2((" "))
a1((" "))
c2(["wikibase:Quantity"]):::iri
v2 --"wikibase:propertyType"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wikibase:referenceValue"--> v3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wikibase:qualifierValue"--> v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wikibase:statementValue"--> v3
end
union0r <== or ==> union0l
end
a1 --"wikibase:quantityLowerBound"--> v4
a1 --"wikibase:quantityUpperBound"--> v5
a2 -->v3--> a1
bind0[/"?upper - ?lower / '2^^xsd:integer'"/]
v5 --o bind0
v4 --o bind0
bind0 --as--o v6
bind2[/"count(*)"/]
bind2 --as--o v7