Question: Does Styx whose date of first performance is 2018-02-16 or Crossroads whose production company is Columbia Pictures have the longer running time?
Choices:
The Towering Inferno
A Prairie Home Companion
The Fifth Element
Talk to Her
Pleasantville
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
Styx
Crossroads
Answer: Crossroads
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Styx" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:date> "2018-02-16"^^xsd:date . } UNION { ?e <pred:name> "Crossroads" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Columbia Pictures" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Styx
function: FilterDate
dependencies: 0
inputs: date of first performance
2018-02-16
=
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Crossroads
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater