Question: Is the population lower in the Richmond with zip code 47374–47375 or the Midland that's the birthplace of Kathy Baker?
Choices:
Franklin
Midland
Greenville
Boulder
New Haven
Compton
Waukegan
Lansing
Richmond
Columbus
Program:
function: Find
inputs: Richmond
function: FilterStr
dependencies: 0
inputs: postal code
47374–47375
function: Find
inputs: Kathy Baker
function: Relate
dependencies: 2
inputs: place of birth
forward
function: Find
inputs: Midland
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richmond" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "47374–47375" . } UNION { ?e <pred:name> "Midland" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Kathy Baker" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Richmond