Question: Is the duration greater for Wimbledon (the one whose genre is romantic comedy) or Taxi Driver (the one whose publication date is 1954-01-01)?
Choices:
Curse of the Golden Flower
Training Day
Wimbledon
The Hunchback of Notre Dame
Taxi Driver
The Fifth Element
The Towering Inferno
Talk to Her
Rebecca
Pleasantville
Answer: Taxi Driver
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wimbledon" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romantic comedy" . } UNION { ?e <pred:name> "Taxi Driver" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1954-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: romantic comedy
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Wimbledon
function: And
dependencies: 1
2
function: Find
inputs: Taxi Driver
function: FilterDate
dependencies: 4
inputs: publication date
1954-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater