Question: Between In the Name of the King, or The Green Hornet with Jay Chou as a cast member, which is longer?
Choices:
The Hunchback of Notre Dame
Training Day
Talk to Her
In the Name of the King
Curse of the Golden Flower
The Towering Inferno
The Green Hornet
A Prairie Home Companion
Rebecca
The Fifth Element
Program:
function: Find
inputs: In the Name of the King
function: Find
inputs: Jay Chou
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Green Hornet
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "In the Name of the King" .  } UNION { ?e <pred:name> "The Green Hornet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jay Chou" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: In the Name of the King