Question: How does National Treasure (the one that has Sean Bean as a cast member) relate with Sean Bean ?
Choices:
signatory
developer
dialect of
filming location
instrument
costume designer
substitute/deputy/replacement of office/officeholder
cast member
league
depicted by
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "National Treasure" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Sean Bean" . ?e_2 <pred:name> "Sean Bean" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Sean Bean
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: National Treasure
function: And
dependencies: 1
2
function: Find
inputs: Sean Bean
function: QueryRelation
dependencies: 3
4