Question: Which movie made less at the box office, Ben-Hur (the one whose Twitter username is BenHurMovie) or From Dusk till Dawn (the one whose box office is 25836616 United States dollar)?
Choices:
Pleasantville
The Towering Inferno
Talk to Her
The Fifth Element
From Dusk till Dawn
Rebecca
Training Day
Ben-Hur
Curse of the Golden Flower
The Hunchback of Notre Dame
Answer: From Dusk till Dawn
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben-Hur" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "BenHurMovie" . } UNION { ?e <pred:name> "From Dusk till Dawn" . ?e <box_office> ?pv_2 . ?pv_2 <pred:unit> "United States dollar" . ?pv_2 <pred:value> "25836616"^^xsd:double . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ben-Hur
function: FilterStr
dependencies: 0
inputs: Twitter username
BenHurMovie
function: Find
inputs: From Dusk till Dawn
function: FilterNum
dependencies: 2
inputs: box office
25836616 United States dollar
=
function: SelectBetween
dependencies: 1
3
inputs: box office
less