Question: In what way is the city of London, which is served by Heathrow Airport, related to the writer Tom McCarthy?
Choices:
narrative role
industry
place of birth
field of this occupation
replaces
copyright representative
official color
residence
position held
inspired by
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tom McCarthy
function: And
dependencies: 1
2
function: Find
inputs: Heathrow Airport
function: Relate
dependencies: 4
inputs: place served by transport hub
forward
function: Find
inputs: London
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom McCarthy" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "London" . ?e_4 <place_served_by_transport_hub> ?e_2 . ?e_4 <pred:name> "Heathrow Airport" . ?e_1 ?p ?e_2 .  }
Answer: place of birth