Question: Did the gang-themed Gangs of New York or did Pulp Fiction perform worse at the box office?
Choices:
Gangs of New York
A Prairie Home Companion
Talk to Her
Pulp Fiction
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Rebecca
The Fifth Element
Program:
function: Find
inputs: gang
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Gangs of New York
function: And
dependencies: 1
2
function: Find
inputs: Pulp Fiction
function: SelectBetween
dependencies: 3
4
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gangs of New York" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "gang" .   } UNION { ?e <pred:name> "Pulp Fiction" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gangs of New York