Question: What is the relationship between Harry Potter and the Goblet of Fire (the one whose publisher is Electronic Arts) to Harry Potter and the Goblet of Fire (the one whose genre is film based on literature)?
Choices: licensed to broadcast to
has contributing factor
located in time zone
appears in the form of
license
time period
based on
educated at
presenter
inspired by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_1 <publisher> ?e_3 . ?e_3 <pred:name> "Electronic Arts" . ?e_2 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_2 <genre> ?e_4 . ?e_4 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Electronic Arts
function: Relate
dependencies: 0
inputs: publisher
backward
function: Find
inputs: Harry Potter and the Goblet of Fire
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Harry Potter and the Goblet of Fire
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: based on