Question: Which is shorter, Illinois whose genre is baroque pop or The Beatles whose nickname is The White Album?
Choices:
David Bowie
Bedtime Stories
Peter Gabriel
Led Zeppelin
Friends
The Beatles
Shakira
Metallica
Neil Young
Illinois
Program:
function: Find
inputs: baroque pop
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Illinois
function: And
dependencies: 1
2
function: Find
inputs: The Beatles
function: FilterStr
dependencies: 4
inputs: nickname
The White Album
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Illinois" . ?e <genre> ?e_1 . ?e_1 <pred:name> "baroque pop" . } UNION { ?e <pred:name> "The Beatles" . ?e <nickname> ?pv_1 . ?pv_1 <pred:value> "The White Album" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Illinois