Question: Which movie published before 2008 is longest?
Choices: The Santa Clause 3: The Escape Clause
The Straight Story
The Flintstones
Bedknobs and Broomsticks
Enchanted
Wallace & Gromit: The Curse of the Were-Rabbit
Pirates of the Caribbean: The Curse of the Black Pearl
Star Wars: Episode I – The Phantom Menace
Holes
Fiddler on the Roof
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 < 2008 ) . ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2008
<
function: FilterConcept
dependencies: 1
inputs: feature film
function: SelectAmong
dependencies: 2
inputs: duration
largest
Answer: Fiddler on the Roof