Question: Which area is larger, Toledo (the one whose area is 232.1 square kilometre) or Hamilton County (the one whose population is 345580)?
Choices:
Greene County
Cass County
African Union
Toledo
Hamilton County
Delaware County
Orange County
Lee County
Kent County
San Juan County
Answer: Hamilton County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Toledo" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "232.1"^^xsd:double . } UNION { ?e <pred:name> "Hamilton County" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "345580"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Toledo
function: FilterNum
dependencies: 0
inputs: area
232.1 square kilometre
=
function: Find
inputs: Hamilton County
function: FilterNum
dependencies: 2
inputs: population
345580
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater