Question: What is the connection between Robin Hood (whose production company is The Walt Disney Company) and Johnny Mercer (whose profession is composer)?
Choices:
heritage designation
composer
diplomatic relation
member of sports team
contains settlement
league
located in or next to body of water
residence
operating system
costume designer
Program:
function: Find
inputs: The Walt Disney Company
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 1
2
function: Find
inputs: composer
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Johnny Mercer
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robin Hood" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "The Walt Disney Company" . ?e_2 <pred:name> "Johnny Mercer" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "composer" . ?e_1 ?p ?e_2 .  }
Answer: composer