Question: Which was the box office winner between Roman Holiday, an Academy Award nominee for Best Costume Design, or The Social Network?
Choices:
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Social Network
The Fifth Element
Training Day
The Towering Inferno
Roman Holiday
Rebecca
Pleasantville
Program:
function: Find
inputs: Academy Award for Best Costume Design
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Roman Holiday
function: And
dependencies: 1
2
function: Find
inputs: The Social Network
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roman Holiday" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Costume Design" .   } UNION { ?e <pred:name> "The Social Network" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Social Network