Question: How is War and Peace whose episode count is 20 related to War and Peace which mainly depicts the French invasion of Russia?
Choices:
presenter
famous people
religious order
territory overlaps
office contested
original language of film or TV show
movement
stated in
public holiday
based on
Answer: based on
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "War and Peace" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "20"^^xsd:double . ?e_2 <pred:name> "War and Peace" . ?e_2 <main_subject> ?e_3 . ?e_3 <pred:name> "French invasion of Russia" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: War and Peace
function: FilterNum
dependencies: 0
inputs: number of episodes
20
=
function: Find
inputs: French invasion of Russia
function: Relate
dependencies: 2
inputs: main subject
backward
function: Find
inputs: War and Peace
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5