Question: Which movie is longer, Iris (the one whose genre is biographical film) or Taxi Driver (the one that has Dev Anand as a cast member)?
Choices:
Pleasantville
The Hunchback of Notre Dame
Training Day
A Prairie Home Companion
The Towering Inferno
Talk to Her
Iris
Curse of the Golden Flower
Rebecca
Taxi Driver
Program:
function: Find
inputs: biographical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Iris
function: And
dependencies: 1
2
function: Find
inputs: Dev Anand
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Taxi Driver
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iris" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } UNION { ?e <pred:name> "Taxi Driver" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Dev Anand" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Taxi Driver