Question: Which costed more, Rocky (the one that contains Rocky V) or American Pie (the one whose official website is http://www.americanpiemovie.com/)?
Choices: Rocky
Die Hard
Star Wars
Final Destination
The Mummy
The Fast and the Furious
Rugrats
Ice Age
Dumb and Dumber
American Pie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky" . ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "Rocky V" . } UNION { ?e <pred:name> "American Pie" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.americanpiemovie.com/" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rocky V
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: Rocky
function: And
dependencies: 1
2
function: Find
inputs: American Pie
function: FilterStr
dependencies: 4
inputs: official website
http://www.americanpiemovie.com/
function: SelectBetween
dependencies: 3
5
inputs: cost
greater
Answer: Rocky