Question: Does Buffy the Vampire Slayer (that has Thomas Jane as a cast member) or Romeo and Juliet (whose release  date is 2013-01-01) have the lower box office?
Choices:
Romeo and Juliet
The Hunchback of Notre Dame
Rebecca
Buffy the Vampire Slayer
A Prairie Home Companion
Training Day
The Fifth Element
The Towering Inferno
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Thomas Jane
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Buffy the Vampire Slayer
function: And
dependencies: 1
2
function: Find
inputs: Romeo and Juliet
function: FilterDate
dependencies: 4
inputs: publication date
2013-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: box office
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Buffy the Vampire Slayer" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Thomas Jane" . } UNION { ?e <pred:name> "Romeo and Juliet" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2013-01-01"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Romeo and Juliet