Question: Among the feature films whose composer is David Newman (the one whose genre is film score), which one has the largest duration ?
Choices:
The Flintstones
National Treasure: Book of Secrets
Holes
Alvin and the Chipmunks: Chipwrecked
Old Dogs
Alvin and the Chipmunks: The Squeakquel
The Flintstones in Viva Rock Vegas
The Muppets
John Carter
Enchanted
Program:
function: Find
inputs: film score
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: David Newman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
backward
function: FilterConcept
dependencies: 4
inputs: feature film
function: SelectAmong
dependencies: 5
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <composer> ?e_1 . ?e_1 <pred:name> "David Newman" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "film score" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alvin and the Chipmunks: The Squeakquel