query-001268128f239d7f2aec80b7b861ed75
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?country ?countryLabel ?OOS {
?country wdt:P31 wd:Q6256;
wdt:P1082 ?pop;
wdt:P2573 ?outOfSchool.
BIND(ROUND( (?outOfSchool/?pop*100) *100)/100 AS ?OOS). # *100)/100 is workaruound for two places after comma, `round` doesn't do that (?)
# BIND((?outOfSchool/?pop*100) AS ?OOS). # no rounding
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?OOS"):::projected
v1("?country"):::projected
v3("?outOfSchool")
v2("?pop")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q6256"]):::iri
c8(["#91;AUTO_LANGUAGE#93;, en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P1082"--> v2
v1 --"wdt:P2573"--> v3
bind0[/"numeric-round(?outOfSchool / ?pop * '100^^xsd:integer' * '100^^xsd:integer') / '100^^xsd:integer'"/]
v3 --o bind0
v2 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end