Question: Which area is larger, Newton (the one that is the birthplace of Robert Morse) or San Juan (the one that is the twinned administrative body of Mexico City)?
Choices:
Franklin
San Juan
Newton
Greenville
Boulder
Compton
Oakland
Columbus
Lansing
Waukegan
Program:
function: Find
inputs: Robert Morse
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Newton
function: And
dependencies: 1
2
function: Find
inputs: Mexico City
function: Relate
dependencies: 4
inputs: twinned administrative body
forward
function: Find
inputs: San Juan
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newton" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Robert Morse" .   } UNION { ?e <pred:name> "San Juan" . ?e_2 <twinned_administrative_body> ?e . ?e_2 <pred:name> "Mexico City" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: San Juan