Question: Tell me the spirit that is Beetlejuice's main subject (the one that comes from United States of America)
Choices: Jun Fukuyama
Borussia Dortmund
Meet Joe Black
Andre Braugher
death
ghost
Chicken Little
Jim Dale
The Simpsons
Die Another Day
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "spirit" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Beetlejuice" . ?e_1 <country_of_origin> ?e_2 . ?e_2 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Beetlejuice
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: spirit
function: What
dependencies: 5
Answer: ghost