Question: What is the title of American Beauty (the one that received Academy Award for Best Actor)?
Choices:
Glory
The Rainmaker
Georgia
Meridian
Ice Age: Continental Drift
The Assassination of Jesse James by the Coward Robert Ford
He's Just Not That into You
The Tudors
American Beauty
The Holy Bible
Program:
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: American Beauty
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "American Beauty" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actor" .  ?e <title> ?pv .  }
Answer: American Beauty