Question: Which is higher above the sea level, Veracruz (the headquarter location of Tiburones Rojos de Veracruz) or Gotha (the one sharing the border with Erfurt)?
Choices:
Delaware County
Veracruz
San Juan County
Greene County
Gotha
Washoe County
African Union
Kent County
Lee County
Orange County
Program:
function: Find
inputs: Tiburones Rojos de Veracruz
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Veracruz
function: And
dependencies: 1
2
function: Find
inputs: Erfurt
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Gotha
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Veracruz" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Tiburones Rojos de Veracruz" .   } UNION { ?e <pred:name> "Gotha" . ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Erfurt" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Veracruz