Question: Which one had a lower box office score, Lincoln (the one that has James Spader as a cast member) or Harry Potter and the Order of the Phoenix (the one whose publication date is 11th July 2007)?
Choices:
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Lincoln
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Training Day
The Towering Inferno
Pleasantville
Answer: Lincoln
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lincoln" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "James Spader" . } UNION { ?e <pred:name> "Harry Potter and the Order of the Phoenix" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-07-11"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: James Spader
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Lincoln
function: And
dependencies: 1
2
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: FilterDate
dependencies: 4
inputs: publication date
2007-07-11
=
function: SelectBetween
dependencies: 3
5
inputs: box office
less