Question: Among the organizations that is a hub airport of Pan Am (the one whose Merchant Category Code is 3002), which has the largest elevation (above sea level)?
Choices:
Hamburger SV
Academy of Television Arts & Sciences
United States Department of the Air Force
Pfizer
Heathrow Airport
John F. Kennedy International Airport
E. W. Scripps Company
McDonald's
Vigor Shipyards
NBCUniversal
Answer: Heathrow Airport
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "organization" . ?e_1 <airline_hub> ?e . ?e_1 <pred:name> "Pan Am" . ?e_1 <Merchant_Category_Code> ?pv_1 . ?pv_1 <pred:value> "3002" . ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Pan Am
function: FilterStr
dependencies: 0
inputs: Merchant Category Code
3002
function: Relate
dependencies: 1
inputs: airline hub
forward
function: FilterConcept
dependencies: 2
inputs: organization
function: SelectAmong
dependencies: 3
inputs: elevation above sea level
largest