Question: Which one has a longer running time, Footloose (the one that has John Lithgow as a cast member) or The Patriot (the one whose publication date is 1998-01-01)    ?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
The Patriot
Footloose
The Fifth Element
Pleasantville
Training Day
Rebecca
Curse of the Golden Flower
Program:
function: Find
inputs: John Lithgow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Footloose
function: And
dependencies: 1
2
function: Find
inputs: The Patriot
function: FilterDate
dependencies: 4
inputs: publication date
1998-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Footloose" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Lithgow" . } UNION { ?e <pred:name> "The Patriot" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Footloose