Question: Among the studio albums that has the record label Mercury Records,which one has the largest duration ?
Choices:
Friends
Illinois
Shakira
Bedtime Stories
Neil Young
Metallica
Peter Gabriel
David Bowie
The Beatles
Led Zeppelin
Program:
function: Find
inputs: Mercury Records
function: Relate
dependencies: 0
inputs: record label
backward
function: FilterConcept
dependencies: 1
inputs: studio album
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "studio album" . ?e <record_label> ?e_1 . ?e_1 <pred:name> "Mercury Records" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Peter Gabriel