Question: How many hardcore punk types come from the democracy that has as diplomatic relation with South Sudan starting in 2011?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "hardcore punk" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "South Sudan" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:year> 2011 .   }
Program:
function: Find
inputs: South Sudan
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterYear
dependencies: 1
inputs: start time
2011
=
function: FilterConcept
dependencies: 2
inputs: democracy
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: hardcore punk
function: Count
dependencies: 5