Question: Which movie is longer, Adventureland or Rocky Balboa (the one whose official website is http://rocky.com/)?
Choices:
Talk to Her
Rebecca
Pleasantville
Training Day
A Prairie Home Companion
The Towering Inferno
Rocky Balboa
Curse of the Golden Flower
The Fifth Element
Adventureland
Program:
function: Find
inputs: Adventureland
function: Find
inputs: Rocky Balboa
function: FilterStr
dependencies: 1
inputs: official website
http://rocky.com/
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adventureland" . } UNION { ?e <pred:name> "Rocky Balboa" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://rocky.com/" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Adventureland