Question: UK citizen Alan Moore is renowned for how many works in the literary genre?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Alan Moore
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: notable work
forward
function: FilterConcept
dependencies: 4
inputs: literary genre
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Alan Moore" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "United Kingdom" .   }
Answer: 3