Question: Which movie is titled As Good as It Gets and contains the script written by James L. Brooks ?
Choices:
As Good as It Gets
Rebecca
Broadcast News
Pleasantville
A Prairie Home Companion
Training Day
Talk to Her
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
As Good as It Gets
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: James L. Brooks
function: Relate
dependencies: 3
inputs: screenwriter
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <title> ?pv . ?pv <pred:value> "As Good as It Gets" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "James L. Brooks" .  }
Answer: As Good as It Gets