Question: Among new York and Hawaii which one has less elevation?
Choices:
New Mexico
Kansas
New York
Illinois
New Jersey
Colorado
Massachusetts
California
Iowa
Florida
Program:
function: Find
inputs: New York
function: FilterStr
dependencies: 0
inputs: short name
N.Y.
function: Find
inputs: Okinawa Prefecture
function: Relate
dependencies: 2
inputs: twinned administrative body
forward
function: Find
inputs: Hawaii
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York" . ?e <short_name> ?pv_1 . ?pv_1 <pred:value> "N.Y." . } UNION { ?e <pred:name> "Hawaii" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Okinawa Prefecture" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New York