Question: Which movie is longer, Bad Teacher (the one whose release region is Netherlands) or Chicago (the one whose official website is http://www.miramax.com/movie/chicago)?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Bad Teacher
A Prairie Home Companion
Chicago
Rebecca
Curse of the Golden Flower
Training Day
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Netherlands
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 1
2
function: Find
inputs: Chicago
function: FilterStr
dependencies: 4
inputs: official website
http://www.miramax.com/movie/chicago
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bad Teacher" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Netherlands" . } UNION { ?e <pred:name> "Chicago" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.miramax.com/movie/chicago" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chicago