Question: Which has fewer people, Jamaica (the one whose country is United States of America) or Dorchester (the one that is the birthplace of Neal McDonough)?
Choices:
Northridge
Dorchester
Sherman Oaks
Roxbury
Astoria
Jamaica
Studio City
Encino
Monte Carlo
Pacific Palisades
Answer: Dorchester
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jamaica" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Dorchester" . ?e_2 <place_of_birth> ?e . ?e_2 <pred:name> "Neal McDonough" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Jamaica
function: And
dependencies: 1
2
function: Find
inputs: Neal McDonough
function: Relate
dependencies: 4
inputs: place of birth
forward
function: Find
inputs: Dorchester
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
less