Question: Which has a greater number of vehicles per 1000 people, Dubai (whose number of vehicles per 1000 people is 540) or Shanghai (whose FIPS 10-4 (countries and regions) is CH23)?
Choices:
Bergen
Dubai
Abidjan
Kingston
Cork
Kilkenny
Shanghai
Dundee
Trieste
Chihuahua
Answer: Dubai
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dubai" . ?e <vehicles_per_capita_(1000)> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "540"^^xsd:double . } UNION { ?e <pred:name> "Shanghai" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_2 . ?pv_2 <pred:value> "CH23" . } ?e <vehicles_per_capita_(1000)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dubai
function: FilterNum
dependencies: 0
inputs: vehicles per capita (1000)
540
=
function: Find
inputs: Shanghai
function: FilterStr
dependencies: 2
inputs: FIPS 10-4 (countries and regions)
CH23
function: SelectBetween
dependencies: 1
3
inputs: vehicles per capita (1000)
greater