Question: Which area is smaller, Bloomington (the one that is the capital of McLean County) or Burlington (the one whose postal code is 05401–05403)?
Choices:
Waukegan
Columbus
Compton
Boulder
Bloomington
Burlington
Franklin
Oakland
New Haven
Lansing
Answer: Burlington
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bloomington" . ?e_1 <capital> ?e . ?e_1 <pred:name> "McLean County" . } UNION { ?e <pred:name> "Burlington" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "05401–05403" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: McLean County
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Bloomington
function: And
dependencies: 1
2
function: Find
inputs: Burlington
function: FilterStr
dependencies: 4
inputs: postal code
05401–05403
function: SelectBetween
dependencies: 3
5
inputs: area
less