Question: Which movie, distinct from Mr. & Mrs. Smith with Robert Montgomery as a cast member, has a run-time under 640 minutes?
Choices:
Mr. & Mrs. Smith
Talk to Her
The Towering Inferno
Rebecca
A Prairie Home Companion
Training Day
The Fifth Element
You've Got Mail
The Shining
Mississippi Burning
Program:
function: Find
inputs: Robert Montgomery
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Mr. & Mrs. Smith
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: film
function: FindAll
function: FilterNum
dependencies: 6
inputs: duration
640 minute
<
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e_1 <different_from> ?e . ?e_1 <pred:name> "Mr. & Mrs. Smith" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Robert Montgomery" .  ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v < "640"^^xsd:double ) .  }
Answer: Mr. & Mrs. Smith