Question: Which is shorter, Bad Teacher distributed by Columbia Pictures or The Girl with the Dragon Tattoo published on 2009-10-01?
Choices:
Training Day
The Fifth Element
A Prairie Home Companion
Bad Teacher
Curse of the Golden Flower
Pleasantville
The Girl with the Dragon Tattoo
The Hunchback of Notre Dame
Rebecca
Talk to Her
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 1
2
function: Find
inputs: The Girl with the Dragon Tattoo
function: FilterDate
dependencies: 4
inputs: publication date
2009-10-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bad Teacher" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Columbia Pictures" . } UNION { ?e <pred:name> "The Girl with the Dragon Tattoo" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-10-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bad Teacher