Question: Which one has less duration, Heaven Can Wait (the one whose genre is comedy-drama) or Footloose (the one that has Dennis Quaid as a cast member)?
Choices:
A Prairie Home Companion
Talk to Her
Heaven Can Wait
The Hunchback of Notre Dame
Training Day
The Towering Inferno
The Fifth Element
Pleasantville
Rebecca
Footloose
Answer: Heaven Can Wait
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heaven Can Wait" . ?e <genre> ?e_1 . ?e_1 <pred:name> "comedy-drama" .   } UNION { ?e <pred:name> "Footloose" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Dennis Quaid" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: comedy-drama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Heaven Can Wait
function: And
dependencies: 1
2
function: Find
inputs: Dennis Quaid
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Footloose
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less