Question: Between the Mona Lisa, composed by Michael Kamen, and The Lord of the Rings: The Two Towers, scripted by Fran Walsh, which is longer?
Choices:
The Lord of the Rings: The Two Towers
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
Training Day
Rebecca
Mona Lisa
The Towering Inferno
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Michael Kamen
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Mona Lisa
function: And
dependencies: 1
2
function: Find
inputs: Fran Walsh
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: Find
inputs: The Lord of the Rings: The Two Towers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mona Lisa" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Michael Kamen" .   } UNION { ?e <pred:name> "The Lord of the Rings: The Two Towers" . ?e <screenwriter> ?e_2 . ?e_2 <pred:name> "Fran Walsh" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Lord of the Rings: The Two Towers