Question: Does Wonder Woman (the one whose distributor is Warner Bros.) or As Good as It Gets, have lesser box office ?
Choices:
The Fifth Element
As Good as It Gets
Wonder Woman
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Training Day
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 1
2
function: Find
inputs: As Good as It Gets
function: SelectBetween
dependencies: 3
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wonder Woman" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Warner Bros." .   } UNION { ?e <pred:name> "As Good as It Gets" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: As Good as It Gets