Question: Where is the population larger, Birmingham (birthplace of Amber Benson) or Columbus (postal code 31914)?
Choices:
Compton
Franklin
New Haven
Waukegan
Greenville
Birmingham
Lansing
New Britain
Columbus
Boulder
Program:
function: Find
inputs: Amber Benson
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Birmingham
function: And
dependencies: 1
2
function: Find
inputs: Columbus
function: FilterStr
dependencies: 4
inputs: postal code
31914
function: SelectBetween
dependencies: 3
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Birmingham" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Amber Benson" . } UNION { ?e <pred:name> "Columbus" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "31914" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Birmingham