Question: Which movie is shorter, Alice in Wonderland (the one that origins from Germany) or Sense and Sensibility (the one whose official website is http://www.bbc.co.uk/drama/senseandsensibility/)?
Choices:
Roots
Alice in Wonderland
Battlestar Galactica
The Stand
Sense and Sensibility
The Diary of Anne Frank
The Civil War
Edge of Darkness
George Washington
The Pacific
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 1
2
function: Find
inputs: Sense and Sensibility
function: FilterStr
dependencies: 4
inputs: official website
http://www.bbc.co.uk/drama/senseandsensibility/
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice in Wonderland" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" . } UNION { ?e <pred:name> "Sense and Sensibility" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.bbc.co.uk/drama/senseandsensibility/" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alice in Wonderland