query-e55c9884ca18cb9ef5f080eb058b008a

rq turtle/ttl

billionaire SELECT ?Billionaire ?BillionaireLabel ?numLabel WHERE { ?Billionaire p:P2218 [a wikibase:BestRank ; psv:P2218 [wikibase:quantityAmount ?num ; wikibase:quantityUnit wd:Q4917]] FILTER (?num > 1000000000) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?num)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#billionaire
SELECT  ?Billionaire ?BillionaireLabel ?numLabel
WHERE
{
  ?Billionaire p:P2218 [a wikibase:BestRank ; psv:P2218 [wikibase:quantityAmount ?num ; wikibase:quantityUnit wd:Q4917]]
  FILTER (?num > 1000000000)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?num)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Billionaire"):::projected v1("?num") a1((" ")) a2((" ")) c10(["bd:serviceParam"]):::iri c6(["wd:Q4917"]):::iri c3(["wikibase:BestRank"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?num > '1000000000^^xsd:integer'"]] f0 --> v1 a1 --"a"--> c3 a2 --"wikibase:quantityAmount"--> v1 a2 --"wikibase:quantityUnit"--> c6 a1 --"p:statement/value/P2218"--> a2 v2 --"p:P2218"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end