Question: Which movie is longer, Love Affair (the one whose director of photography is Conrad Hall) or Catch Me If You Can (the one that was nominated for Grammy Award for Best Score Soundtrack for Visual Media)?
Choices:
The Fifth Element
Catch Me If You Can
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Training Day
Love Affair
The Towering Inferno
Rebecca
Talk to Her
Answer: Catch Me If You Can
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Love Affair" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Conrad Hall" .   } UNION { ?e <pred:name> "Catch Me If You Can" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Grammy Award for Best Score Soundtrack for Visual Media" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Conrad Hall
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Love Affair
function: And
dependencies: 1
2
function: Find
inputs: Grammy Award for Best Score Soundtrack for Visual Media
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Catch Me If You Can
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater