Question: What is the relationship between Fantastic Four (the one that has Ioan Gruffudd as a cast member) and Ioan Gruffudd?
Choices: product or material produced
military casualty classification
publisher
interests
set in period
distributor
signatory
production company
cast member
destination point
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Fantastic Four" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ioan Gruffudd" . ?e_2 <pred:name> "Ioan Gruffudd" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ioan Gruffudd
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Fantastic Four
function: And
dependencies: 1
2
function: Find
inputs: Ioan Gruffudd
function: QueryRelation
dependencies: 3
4
Answer: cast member