Question: Which area is larger, Santa Fe (the one that is the birthplace of Adrian Grenier) or Monroe?
Choices:
Columbus
Franklin
Santa Fe
Monroe
New Haven
Compton
Oakland
Greenville
Lansing
Waukegan
Program:
function: Find
inputs: Adrian Grenier
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Santa Fe
function: And
dependencies: 1
2
function: Find
inputs: Monroe
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Fe" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Adrian Grenier" .   } UNION { ?e <pred:name> "Monroe" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Santa Fe