Question: Which has fewer people, Mount Vernon (the one that is the capital of Skagit County) or Independence (the one whose population is 116830)?
Choices:
Boulder
Columbus
Mount Vernon
Greenville
Franklin
Oakland
Lansing
New Haven
Waukegan
Independence
Answer: Mount Vernon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mount Vernon" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Skagit County" . } UNION { ?e <pred:name> "Independence" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "116830"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Skagit County
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Mount Vernon
function: And
dependencies: 1
2
function: Find
inputs: Independence
function: FilterNum
dependencies: 4
inputs: population
116830
=
function: SelectBetween
dependencies: 3
5
inputs: population
less