Question: What is the connection between Watchmen (that has Tim Blake Nelson as a cast member) and Don Johnson (the spouse of Melanie Griffith)?
Choices:
doctoral student
cast member
practiced by
natural product of taxon
capital of
relative
appears in the form of
quotes work
publisher
country of citizenship
Program:
function: Find
inputs: Tim Blake Nelson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Watchmen
function: And
dependencies: 1
2
function: Find
inputs: Melanie Griffith
function: Relate
dependencies: 4
inputs: spouse
backward
function: Find
inputs: Don Johnson
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Watchmen" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Tim Blake Nelson" . ?e_2 <pred:name> "Don Johnson" . ?e_2 <spouse> ?e_4 . ?e_4 <pred:name> "Melanie Griffith" . ?e_1 ?p ?e_2 .  }
Answer: cast member