Question: Which written work was the basis of Jaws, with Steven Spielberg as a cast member?
Choices:
Live and Let Die
customer service
The Hours
Jaws
Starship Troopers
The Pianist
The Maltese Falcon
A Single Man
The Great Gatsby
Contact
Answer: Jaws
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "Jaws" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Steven Spielberg" .   }
Program:
function: Find
inputs: Steven Spielberg
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Jaws
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: What
dependencies: 5