Question: How is the Hamlet with Anthony Hopkins as a cast member related to English?
Choices:
medical condition
industry
significant person
located on astronomical location
chief executive officer
country of origin
candidacy in election
drug used for treatment
original language of film or TV show
studies
Answer: original language of film or TV show
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Anthony Hopkins" . ?e_2 <pred:name> "English" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Anthony Hopkins
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: English
function: QueryRelation
dependencies: 3
4