Question: What is the connection between Bad Teacher (the one that has Justin Timberlake as a cast member) to Jason Segel?
Choices: student of
place of death
commander of
director/manager
winner
located in or next to body of water
based on
distribution
cites
cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bad Teacher" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Justin Timberlake" . ?e_2 <pred:name> "Jason Segel" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Justin Timberlake
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 1
2
function: Find
inputs: Jason Segel
function: QueryRelation
dependencies: 3
4
Answer: cast member