Question: Which movie is shorter, Men in Black (the one whose duration is 19 minute) or V for Vendetta (the one that origins from United States of America)?
Choices: The Towering Inferno
Rebecca
The Fifth Element
Curse of the Golden Flower
Men in Black
Pleasantville
Training Day
The Hunchback of Notre Dame
V for Vendetta
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Men in Black" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "19"^^xsd:double . } UNION { ?e <pred:name> "V for Vendetta" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Men in Black
function: FilterNum
dependencies: 0
inputs: duration
19 minute
=
function: Find
inputs: United States of America
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: V for Vendetta
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Men in Black