Question: Does Merlin (that is filmed in Wales) or Merlin (that has 2 episodes) have the longer length?
Choices:
Merlin
The Diary of Anne Frank
The Civil War
The Ten Commandments
George Washington
The Stand
The Pacific
Edge of Darkness
Merlin
Roots
Answer: Merlin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Merlin" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Wales" . } UNION { ?e <pred:name> "Merlin" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wales
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Merlin
function: And
dependencies: 1
2
function: Find
inputs: Merlin
function: FilterNum
dependencies: 4
inputs: number of episodes
2
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater