Question: Which movie is shorter, Carson City (the one whose title is Carson City) or Hairspray (the one that has Brittany Snow as a cast member)?
Choices:
Hairspray
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
Carson City
Training Day
A Prairie Home Companion
Rebecca
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Carson City
function: FilterStr
dependencies: 0
inputs: title
Carson City
function: Find
inputs: Brittany Snow
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Hairspray
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carson City" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Carson City" . } UNION { ?e <pred:name> "Hairspray" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Brittany Snow" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hairspray