Question: What war has an end time before 1928 and is the main subject of Nicholas and Alexandra?
Choices:
World War I
Coalition Wars
English Civil War
First Crusade
Second Boer War
Crusade
Seven Years' War
First War of Indian Independence of 1857
Second Sino-Japanese War
Yom Kippur War
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1928
<
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: Nicholas and Alexandra
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: war
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1928 ) . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Nicholas and Alexandra" .  }
Answer: World War I