Question: Of all the studio albums with a duration shorter than 4300 seconds, which has the longest duration?
Choices:
Illinois
Led Zeppelin
Bedtime Stories
David Bowie
Neil Young
Friends
Metallica
Shakira
The Beatles
Peter Gabriel
Answer: Metallica
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "studio album" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "second" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "4300"^^xsd:double ) . ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
4300 second
<
function: FilterConcept
dependencies: 1
inputs: studio album
function: SelectAmong
dependencies: 2
inputs: duration
largest