Question: Does the dramatic movie The Hours or Queen, of the official website www.queenthefilm.com, have the longer running time?
Choices:
Queen
Pleasantville
The Fifth Element
Training Day
The Hours
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Answer: Queen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Hours" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } UNION { ?e <pred:name> "Queen" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.queenthefilm.com" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Hours
function: And
dependencies: 1
2
function: Find
inputs: Queen
function: FilterStr
dependencies: 4
inputs: official website
http://www.queenthefilm.com
function: SelectBetween
dependencies: 3
5
inputs: duration
greater