Question: Which is shorter, Shadowlands (the one whose date of first performance is 1989) or Rock of Ages (the one whose title is Rock of Ages)?
Choices:
All Quiet on the Western Front
The Late Shift
Shackleton
The Goodbye Girl
The Music Man
The Three Musketeers
A Christmas Carol
The Challenge
Rock of Ages
Shadowlands
Answer: Shadowlands
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shadowlands" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:year> 1989 . } UNION { ?e <pred:name> "Rock of Ages" . ?e <title> ?pv_2 . ?pv_2 <pred:value> "Rock of Ages" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Shadowlands
function: FilterYear
dependencies: 0
inputs: date of first performance
1989
=
function: Find
inputs: Rock of Ages
function: FilterStr
dependencies: 2
inputs: title
Rock of Ages
function: SelectBetween
dependencies: 1
3
inputs: duration
less