Question: How is Romeo and Juliet starring John Gielgud related to Rank Organisation?
Choices:
platform
home port
public holiday
lowest point
game mode
worshipped by
family name
successful candidate
distributor
affiliation
Answer: distributor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Romeo and Juliet" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "John Gielgud" . ?e_2 <pred:name> "Rank Organisation" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Gielgud
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: Rank Organisation
function: QueryRelation
dependencies: 3
4