Question: Were the box office returns smaller for Spartacus, at 22800000 Hong Kong dollars in sales, or for Little Nicky, with Quentin Tarantino as a cast member?
Choices:
The Towering Inferno
Talk to Her
Curse of the Golden Flower
Rebecca
Pleasantville
Little Nicky
Spartacus
A Prairie Home Companion
The Fifth Element
Training Day
Answer: Spartacus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spartacus" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "Hong Kong dollar" . ?pv_1 <pred:value> "22800000"^^xsd:double . } UNION { ?e <pred:name> "Little Nicky" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Quentin Tarantino" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Spartacus
function: FilterNum
dependencies: 0
inputs: box office
22800000 Hong Kong dollar
=
function: Find
inputs: Quentin Tarantino
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Little Nicky
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: box office
less