Question: What is the connection between college rock to Bill Berry (the one that has the occupation of songwriter)?
Choices:
facet of
substitute/deputy/replacement of office/officeholder
practiced by
statistical leader
derivative work
sexual orientation
medical treatment
famous people
has parts of the class
place served by transport hub
Program:
function: Find
inputs: college rock
function: Find
inputs: songwriter
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Bill Berry
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "college rock" . ?e_2 <pred:name> "Bill Berry" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "songwriter" . ?e_1 ?p ?e_2 .  }
Answer: famous people