Question: Between The Last Emperor directed by Bernardo Bertolucci and Fame whose official website is http://www.generationfame.com, which one lasts longer?
Choices:
Pleasantville
A Prairie Home Companion
The Fifth Element
Fame
The Hunchback of Notre Dame
The Towering Inferno
Training Day
The Last Emperor
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: Bernardo Bertolucci
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Last Emperor
function: And
dependencies: 1
2
function: Find
inputs: Fame
function: FilterStr
dependencies: 4
inputs: official website
http://www.generationfame.com
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last Emperor" . ?e <director> ?e_1 . ?e_1 <pred:name> "Bernardo Bertolucci" . } UNION { ?e <pred:name> "Fame" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.generationfame.com" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Last Emperor