Question: Which human has the Twitter username tomhanks and is a cast member of Philadelphia (which has Gary Goetzman as a cast member)?
Choices: Rahul Dev Burman
Bradley Whitford
Sylvester Stallone
Tak Fujimoto
David Byrne
Max Fleischer
Richard Gere
William Henry Harrison
Tom Hanks
Antonio Banderas
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <Twitter_username> ?pv . ?pv <pred:value> "tomhanks" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Philadelphia" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Gary Goetzman" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
tomhanks
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Gary Goetzman
function: Relate
dependencies: 3
inputs: cast member
backward
function: Find
inputs: Philadelphia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: cast member
forward
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Tom Hanks