Question: Which has more area, Allegany County which has the capital Cumberland or Frederick County whose population is 241409?
Choices:
Frederick County
Anne Arundel County
Carroll County
Allegany County
Baltimore County
Howard County
Kent County
Cecil County
Charles County
Prince George's County
Answer: Frederick County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Allegany County" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Cumberland" . } UNION { ?e <pred:name> "Frederick County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "241409"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cumberland
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Allegany County
function: And
dependencies: 1
2
function: Find
inputs: Frederick County
function: FilterNum
dependencies: 4
inputs: population
241409
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater