Question: Which one has greater box office record Hook or Beauty and the Beast (the one whose cost is 160,000,000 United States dollars) ?
Choices: Holes
John Carter
Old Dogs
National Treasure: Book of Secrets
The Flintstones
Beauty and the Beast
Hook
Alvin and the Chipmunks: Chipwrecked
G-Force
The Flintstones in Viva Rock Vegas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hook" . } UNION { ?e <pred:name> "Beauty and the Beast" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "160000000"^^xsd:double . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hook
function: Find
inputs: Beauty and the Beast
function: FilterNum
dependencies: 1
inputs: cost
160000000 United States dollar
=
function: SelectBetween
dependencies: 0
2
inputs: box office
greater
Answer: Beauty and the Beast