Question: What is the title for Superman (the one whose color is black-and-white)?
Choices:
Working Girl
Daylight
The Best Exotic Marigold Hotel
Little Nicky
Superman
The X-Files
The Birds
Rules of Engagement
Los tres mosqueteros
City Slickers
Program:
function: Find
inputs: black-and-white
function: Relate
dependencies: 0
inputs: color
backward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Superman" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .  ?e <title> ?pv .  }
Answer: Superman