Question: Does the longer run-time belong to the musical movie Alvin and the Chipmunks: Chipwrecked or to the literature-based movie The Chronicles of Narnia: Prince Caspian?
Choices:
Alvin and the Chipmunks: Chipwrecked
Enchanted
John Carter
The Muppets
National Treasure: Book of Secrets
The Chronicles of Narnia: Prince Caspian
Holes
Old Dogs
The Flintstones in Viva Rock Vegas
G-Force
Answer: The Chronicles of Narnia: Prince Caspian
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alvin and the Chipmunks: Chipwrecked" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } UNION { ?e <pred:name> "The Chronicles of Narnia: Prince Caspian" . ?e <genre> ?e_2 . ?e_2 <pred:name> "film based on literature" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Alvin and the Chipmunks: Chipwrecked
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Chronicles of Narnia: Prince Caspian
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater