Question: How many literary genres can associated with an art movement that matches the one of Edgar Allan Poe (whose last words were 'Lord help my poor Soul') ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e <movement> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "art movement" . ?e_2 <movement> ?e_1 . ?e_2 <pred:name> "Edgar Allan Poe" . ?e_2 <last_words> ?pv . ?pv <pred:value> "Lord help my poor Soul." .   }
Program:
function: Find
inputs: Edgar Allan Poe
function: FilterStr
dependencies: 0
inputs: last words
Lord help my poor Soul.
function: Relate
dependencies: 1
inputs: movement
forward
function: FilterConcept
dependencies: 2
inputs: art movement
function: Relate
dependencies: 3
inputs: movement
backward
function: FilterConcept
dependencies: 4
inputs: literary genre
function: Count
dependencies: 5