Question: Is the box office greater for Shakespeare in Love or Planet of the Apes (the one whose title is Planet of the Apes)?
Choices:
The Towering Inferno
Rebecca
Planet of the Apes
Training Day
A Prairie Home Companion
Shakespeare in Love
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
Pleasantville
Answer: Planet of the Apes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shakespeare in Love" . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Planet of the Apes" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shakespeare in Love
function: Find
inputs: Planet of the Apes
function: FilterStr
dependencies: 1
inputs: title
Planet of the Apes
function: SelectBetween
dependencies: 0
2
inputs: box office
greater