Question: What is the connection between Kevin Bacon (the one that has the occupation of film producer) to Kyra Sedgwick?
Choices:
spouse
head coach
statistical leader
collection
director/manager
drug used for treatment
cast member
Wikidata property
executive producer
languages spoken, written or signed
Program:
function: Find
inputs: film producer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Kevin Bacon
function: And
dependencies: 1
2
function: Find
inputs: Kyra Sedgwick
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kevin Bacon" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "film producer" . ?e_2 <pred:name> "Kyra Sedgwick" . ?e_1 ?p ?e_2 .  }
Answer: spouse