Question: Does New York (that is the birthplace of Harold Arlen) or Arizona (that is an administrative division of the United States of America) have the higher percent of water area?
Choices:
Colorado
New Jersey
Florida
Massachusetts
Iowa
New York
Hawaii
New Mexico
Illinois
California
Program:
function: Find
inputs: Harold Arlen
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: New York
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: Find
inputs: Arizona
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Harold Arlen" .   } UNION { ?e <pred:name> "Arizona" . ?e_2 <contains_administrative_territorial_entity> ?e . ?e_2 <pred:name> "United States of America" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: New York