Question: What is the connection between All the King's Men (the one that has Patricia Clarkson as a cast member) to Sean Penn?
Choices:
cast member
does not have part
office held by head of government
home world
source of income
history of topic
author
uses
film crew member
quotes work
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "All the King's Men" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Patricia Clarkson" . ?e_2 <pred:name> "Sean Penn" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Patricia Clarkson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 1
2
function: Find
inputs: Sean Penn
function: QueryRelation
dependencies: 3
4