Question: Which place has less area, Flint or Medford, which has a local dialing code of 541?
Choices:
Flint
New Haven
Greenville
Boulder
Waukegan
Lansing
Compton
Columbus
Medford
Franklin
Program:
function: Find
inputs: Flint
function: Find
inputs: Medford
function: FilterStr
dependencies: 1
inputs: local dialing code
541
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flint" . } UNION { ?e <pred:name> "Medford" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "541" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Medford