Question: What military branch's headquarter location is Moscow (the one whose population is 241500) and country is the Russian Soviet Federative Socialist Republic (the one that is the country of Turku)?
Choices:
Waffen-SS
Royal Australian Navy
Continental Army
United States Army Air Corps
Luftwaffe
Royal Naval Air Service
United States Marine Corps
Soviet Air Forces
Royal Air Force
United States Navy
Answer: Soviet Air Forces
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "military branch" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Moscow" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "241500"^^xsd:double .  ?e <country> ?e_2 . ?e_2 <pred:name> "Russian Soviet Federative Socialist Republic" . ?e_3 <country> ?e_2 . ?e_3 <pred:name> "Turku" .  }
Program:
function: Find
inputs: Moscow
function: FilterNum
dependencies: 0
inputs: population
241500
=
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: FilterConcept
dependencies: 2
inputs: military branch
function: Find
inputs: Turku
function: Relate
dependencies: 4
inputs: country
forward
function: Find
inputs: Russian Soviet Federative Socialist Republic
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: country
backward
function: FilterConcept
dependencies: 8
inputs: military branch
function: And
dependencies: 3
9
function: What
dependencies: 10