Question: Which area is bigger, Linn County (the one whose area is 5983 square kilometre) or Columbia County (the one whose population is 49351)?
Choices:
Jackson County
Marion County
Columbia County
Linn County
Douglas County
Tillamook County
Lake County
Yamhill County
Lane County
Clackamas County
Answer: Linn County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Linn County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "5983"^^xsd:double . } UNION { ?e <pred:name> "Columbia County" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "49351"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Linn County
function: FilterNum
dependencies: 0
inputs: area
5983 square kilometre
=
function: Find
inputs: Columbia County
function: FilterNum
dependencies: 2
inputs: population
49351
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater