Question: Which movie is longer, The Perks of Being a Wallflower (the one whose duration is 102 minute) or The Ten Commandments (the one that has Vincent Price as a cast member)?
Choices:
The Perks of Being a Wallflower
The Ten Commandments
Talk to Her
Pleasantville
Training Day
A Prairie Home Companion
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
Program:
function: Find
inputs: The Perks of Being a Wallflower
function: FilterNum
dependencies: 0
inputs: duration
102 minute
=
function: Find
inputs: Vincent Price
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: The Ten Commandments
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Perks of Being a Wallflower" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "102"^^xsd:double . } UNION { ?e <pred:name> "The Ten Commandments" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Vincent Price" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Ten Commandments