Question: Which area is larger, Port Huron or Midland (the one whose area is 92440000 square metre)?
Choices:
Columbus
Compton
Lansing
Port Huron
Franklin
Midland
Waukegan
New Haven
Greenville
Boulder
Program:
function: Find
inputs: Port Huron
function: Find
inputs: Midland
function: FilterNum
dependencies: 1
inputs: area
92440000 square metre
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Port Huron" . } UNION { ?e <pred:name> "Midland" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "92440000"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Midland