Question: What is the connection between Yellow Submarine (the one whose production company is United Artists) to London (the one that is the working location of Margaret Thatcher)?
Choices:
make-up artist
organizer
place of burial
part of the series
filming location
medical condition
godparent
home world
religious order
signatory
Program:
function: Find
inputs: United Artists
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Yellow Submarine
function: And
dependencies: 1
2
function: Find
inputs: Margaret Thatcher
function: Relate
dependencies: 4
inputs: work location
forward
function: Find
inputs: London
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Yellow Submarine" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "United Artists" . ?e_2 <pred:name> "London" . ?e_4 <work_location> ?e_2 . ?e_4 <pred:name> "Margaret Thatcher" . ?e_1 ?p ?e_2 .  }
Answer: filming location