Question: Does Long Beach in Nassau County or Syracuse, birthplace of Tom Cruise, have less area?
Choices:
Glens Falls
Syracuse
Utica
Elmira
Ithaca
Yonkers
Long Beach
White Plains
Auburn
Troy
Answer: Long Beach
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Long Beach" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Nassau County" .   } UNION { ?e <pred:name> "Syracuse" . ?e_2 <place_of_birth> ?e . ?e_2 <pred:name> "Tom Cruise" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Nassau County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Long Beach
function: And
dependencies: 1
2
function: Find
inputs: Tom Cruise
function: Relate
dependencies: 4
inputs: place of birth
forward
function: Find
inputs: Syracuse
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less