Question: Which is shorter, Pirates of the Caribbean: The Curse of the Black Pearl or Harry Potter and the Prisoner of Azkaban starring Richard Griffiths?
Choices:
Harry Potter and the Prisoner of Azkaban
John Carter
The Flintstones in Viva Rock Vegas
Pirates of the Caribbean: The Curse of the Black Pearl
Holes
Old Dogs
Alvin and the Chipmunks: Chipwrecked
The Muppets
National Treasure: Book of Secrets
G-Force
Program:
function: Find
inputs: Pirates of the Caribbean: The Curse of the Black Pearl
function: Find
inputs: Richard Griffiths
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pirates of the Caribbean: The Curse of the Black Pearl" .  } UNION { ?e <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Griffiths" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Harry Potter and the Prisoner of Azkaban