Question: What does All the King's Men (which has cast member Mark Ruffalo) have to do with Kate Winslet?
Choices:
cause of death
taxon rank
used by
occupation
cast member
feast day
connects with
next higher rank
newspaper format
genre
Program:
function: Find
inputs: Mark Ruffalo
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 1
2
function: Find
inputs: Kate Winslet
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "All the King's Men" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Mark Ruffalo" . ?e_2 <pred:name> "Kate Winslet" . ?e_1 ?p ?e_2 .  }
Answer: cast member