query-de4ef79de6157c86631f4a1b6e5705bd
Billionaires
added before 2016-10
SELECT ?item ?itemLabel ?billions WHERE { ?item wdt:P2218 ?worth. FILTER(?worth>1000000000). BIND(?worth/1000000000 AS ?billions). SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?billions)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Billionaires
#added before 2016-10
SELECT ?item ?itemLabel ?billions
WHERE
{
?item wdt:P2218 ?worth.
FILTER(?worth>1000000000).
BIND(?worth/1000000000 AS ?billions).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?billions)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?billions"):::projected
v3("?item"):::projected
v2("?worth")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["?worth > '1000000000^^xsd:integer'"]]
f0 --> v2
v3 --"wdt:P2218"--> v2
bind1[/"?worth / '1000000000^^xsd:integer'"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end