Question: Does Dynasty, recorded on the Casablanca Records label, or the work titled Brian Wilson have the shorter run-time?
Choices:
Bon Jovi
Dynasty
Toni Braxton
Flight of the Conchords
Hollywood
Brian Wilson
The B-52's
Luis Miguel
American Beauty
Roots
Program:
function: Find
inputs: Casablanca Records
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: Dynasty
function: And
dependencies: 1
2
function: Find
inputs: Brian Wilson
function: FilterStr
dependencies: 4
inputs: title
Brian Wilson
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dynasty" . ?e <record_label> ?e_1 . ?e_1 <pred:name> "Casablanca Records" . } UNION { ?e <pred:name> "Brian Wilson" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Brian Wilson" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brian Wilson