Question: Which movie is longer, Out of Africa (the one that has Meryl Streep as a cast member) or Guys and Dolls (the one that was nominated for BAFTA Award for Best Film)?
Choices:
The Fifth Element
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Guys and Dolls
Rebecca
Pleasantville
Training Day
Out of Africa
Answer: Out of Africa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Out of Africa" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Meryl Streep" .   } UNION { ?e <pred:name> "Guys and Dolls" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "BAFTA Award for Best Film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Meryl Streep
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Out of Africa
function: And
dependencies: 1
2
function: Find
inputs: BAFTA Award for Best Film
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Guys and Dolls
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater