Question: Tell me which movie has the shortest run time, Prince of Persia: The Sands of Time (the one whose box office is 336000000 United States dollar) or Old Dogs.
Choices:
John Carter
Prince of Persia: The Sands of Time
G-Force
The Flintstones in Viva Rock Vegas
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
The Flintstones
Old Dogs
Holes
Enchanted
Program:
function: Find
inputs: Prince of Persia: The Sands of Time
function: FilterNum
dependencies: 0
inputs: box office
336000000 United States dollar
=
function: Find
inputs: Old Dogs
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Prince of Persia: The Sands of Time" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "336000000"^^xsd:double . } UNION { ?e <pred:name> "Old Dogs" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Old Dogs