Question: Which has a lesser elevation above sea level, New York (the headquarter location of Universal Music Group) or Hawaii (where the FIPS 5-2 numeric US code is 15)?
Choices:
Illinois
Kansas
Colorado
Hawaii
New Mexico
California
Iowa
New York
Massachusetts
New Jersey
Program:
function: Find
inputs: Universal Music Group
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: New York
function: And
dependencies: 1
2
function: Find
inputs: Hawaii
function: FilterStr
dependencies: 4
inputs: FIPS 5-2 numeric code (US states)
15
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Universal Music Group" . } UNION { ?e <pred:name> "Hawaii" . ?e <FIPS_5-2_numeric_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "15" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New York