Question: Does The Painted Veil (the one that has Toby Jones as a cast member) or Kiss (the one whose title is Kiss) have greater duration?
Choices:
A Prairie Home Companion
Kiss
Pleasantville
Talk to Her
The Fifth Element
Training Day
The Towering Inferno
Curse of the Golden Flower
The Painted Veil
Rebecca
Program:
function: Find
inputs: Toby Jones
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Painted Veil
function: And
dependencies: 1
2
function: Find
inputs: Kiss
function: FilterStr
dependencies: 4
inputs: title
Kiss
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Painted Veil" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Toby Jones" . } UNION { ?e <pred:name> "Kiss" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Kiss" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Painted Veil