Question: What is longer in duration, Bad Education or Hannibal, also known as Annibale?
Choices:
A Prairie Home Companion
Rebecca
Training Day
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
Bad Education
The Hunchback of Notre Dame
Talk to Her
Hannibal
Program:
function: Find
inputs: Hannibal
function: FilterStr
dependencies: 0
inputs: title
Annibale
function: Find
inputs: Bad Education
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannibal" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Annibale" . } UNION { ?e <pred:name> "Bad Education" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bad Education