Question: Tell me the one with a larger population, Bryn Mawr or Fairfield (which is where Justin Long was born)
Choices:
West Hartford
Kensington
Amherst
Uxbridge
Greenwich
Brookline
Bedford
Bryn Mawr
Chapel Hill
Fairfield
Program:
function: Find
inputs: Bryn Mawr
function: Find
inputs: Justin Long
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Fairfield
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bryn Mawr" .  } UNION { ?e <pred:name> "Fairfield" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Justin Long" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fairfield