Question: What is the relationship between Catch Me If You Can (the one that was nominated for BAFTA Award for Best Adapted Screenplay) to Tom Hanks?
Choices: country of origin
appears in the form of
instrumentation
cast member
medical treatment
symptoms
contains administrative territorial entity
member of political party
programming language
capital
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Catch Me If You Can" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Adapted Screenplay" . ?e_2 <pred:name> "Tom Hanks" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: BAFTA Award for Best Adapted Screenplay
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Catch Me If You Can
function: And
dependencies: 1
2
function: Find
inputs: Tom Hanks
function: QueryRelation
dependencies: 3
4
Answer: cast member