Question: Is the episode total lower for Doctor Zhivago, with Hugh Bonneville as a cast member, or The Three Musketeers, clocking in at 112 minutes?
Choices:
Doctor Zhivago
The Three Musketeers
The Challenge
The Goodbye Girl
The Music Man
The Late Shift
All Quiet on the Western Front
Shackleton
A Streetcar Named Desire
Luther
Program:
function: Find
inputs: Hugh Bonneville
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Doctor Zhivago
function: And
dependencies: 1
2
function: Find
inputs: The Three Musketeers
function: FilterNum
dependencies: 4
inputs: duration
112 minute
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doctor Zhivago" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Hugh Bonneville" . } UNION { ?e <pred:name> "The Three Musketeers" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "112"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Doctor Zhivago