Question: How is Kate Walsh that is an employee of Channel 5 related to London whose IATA airport code is LON?
Choices:
main food source
subject has role
operating area
residence
costume designer
dissertation submitted to
start point
significant event
signatory
professorship
Answer: residence
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kate Walsh" . ?e_1 <employer> ?e_3 . ?e_3 <pred:name> "Channel 5" . ?e_2 <pred:name> "London" . ?e_2 <IATA_airport_code> ?pv . ?pv <pred:value> "LON" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Channel 5
function: Relate
dependencies: 0
inputs: employer
backward
function: Find
inputs: Kate Walsh
function: And
dependencies: 1
2
function: Find
inputs: London
function: FilterStr
dependencies: 4
inputs: IATA airport code
LON
function: QueryRelation
dependencies: 3
5