Question: What is the connection between A Bug's Life (the one whose production company is Walt Disney Pictures) to Walt Disney Studios Motion Pictures?
Choices:
works in collection
participant
destination point
present in work
father
author
production company
country of origin
field of this occupation
symptom of
Answer: production company
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "A Bug's Life" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Walt Disney Pictures" . ?e_2 <pred:name> "Walt Disney Studios Motion Pictures" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: A Bug's Life
function: And
dependencies: 1
2
function: Find
inputs: Walt Disney Studios Motion Pictures
function: QueryRelation
dependencies: 3
4