Question: Among the states of Germany, which have military conflicts with the Kingdom of Great Britain, which has the largest elevation (above sea level)?
Choices:
Rhineland-Palatinate
Thuringia
Bavaria
Saxony
Hesse
Lower Saxony
Schleswig-Holstein
Brandenburg
Mecklenburg-Vorpommern
Saxony-Anhalt
Program:
function: Find
inputs: Kingdom of Great Britain
function: Relate
dependencies: 0
inputs: military conflicts
forward
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e_1 <military_conflicts> ?e . ?e_1 <pred:name> "Kingdom of Great Britain" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bavaria