Question: Which movie is longer, Gulliver's Travels (the one whose publication date is 1977-01-01) or Around the World in 80 Days (the one that has Steve Coogan as a cast member)?
Choices:
Old Dogs
The Flintstones in Viva Rock Vegas
John Carter
The Muppets
Around the World in 80 Days
Gulliver's Travels
Holes
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
G-Force
Answer: Around the World in 80 Days
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gulliver's Travels" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1977-01-01"^^xsd:date . } UNION { ?e <pred:name> "Around the World in 80 Days" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Steve Coogan" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Gulliver's Travels
function: FilterDate
dependencies: 0
inputs: publication date
1977-01-01
=
function: Find
inputs: Steve Coogan
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Around the World in 80 Days
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater