Question: Which area is larger, Perth (the one whose population is 2021200) or Shanghai (the one whose China administrative division code is 31)?
Choices:
Chihuahua
Santo Domingo
Perth
Shanghai
Kingston
Dundee
Bergen
Kilkenny
Cork
Abidjan
Answer: Perth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perth" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2021200"^^xsd:double . } UNION { ?e <pred:name> "Shanghai" . ?e <China_administrative_division_code> ?pv_2 . ?pv_2 <pred:value> "31" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Perth
function: FilterNum
dependencies: 0
inputs: population
2021200
=
function: Find
inputs: Shanghai
function: FilterStr
dependencies: 2
inputs: China administrative division code
31
function: SelectBetween
dependencies: 1
3
inputs: area
greater