Question: Which has fewer people, Auburn (the one that is the capital of Placer County) or Lafayette (the one whose postal code is 47901, 47904, 47905, 47909)?
Choices:
Auburn
Waukegan
New Haven
Oakland
Lafayette
Greenville
Boulder
Columbus
Lansing
Compton
Answer: Auburn
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Auburn" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Placer County" . } UNION { ?e <pred:name> "Lafayette" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "47901, 47904, 47905, 47909" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Placer County
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Auburn
function: And
dependencies: 1
2
function: Find
inputs: Lafayette
function: FilterStr
dependencies: 4
inputs: postal code
47901, 47904, 47905, 47909
function: SelectBetween
dependencies: 3
5
inputs: population
less