Question: What is the relationship between The Contender (the one whose genre is game show) and Hans Zimmer (the one that works in the location Los Angeles)?
Choices:
connects with
occupation
industry
model item
named after
public holiday
game mode
original network
composer
presenter
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Contender" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "game show" . ?e_2 <pred:name> "Hans Zimmer" . ?e_2 <work_location> ?e_4 . ?e_4 <pred:name> "Los Angeles" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: game show
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Contender
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles
function: Relate
dependencies: 4
inputs: work location
backward
function: Find
inputs: Hans Zimmer
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7