Question: Which is shorter, Taxi Driver composed by Bernard Herrmann or Georgia with Ted Levine?
Choices:
Pleasantville
Georgia
Taxi Driver
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Training Day
Program:
function: Find
inputs: Bernard Herrmann
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Taxi Driver
function: And
dependencies: 1
2
function: Find
inputs: Ted Levine
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Georgia
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taxi Driver" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Bernard Herrmann" .   } UNION { ?e <pred:name> "Georgia" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ted Levine" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Taxi Driver