Question: Which one, Gary (the one whose local dialing code is 219) or Belleville (the one whose area is 60.865288 square kilometre), has greater area?
Choices:
Gary
Oakland
Columbus
Franklin
Boulder
New Haven
Belleville
Greenville
Lansing
Compton
Answer: Gary
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gary" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "219" . } UNION { ?e <pred:name> "Belleville" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "60.865288"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Gary
function: FilterStr
dependencies: 0
inputs: local dialing code
219
function: Find
inputs: Belleville
function: FilterNum
dependencies: 2
inputs: area
60.865288 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater