Question: How many kinds of death metal come from the state that has the capital of New York City (the start time of this statement is 1785)?
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> "death metal" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "New York City" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:year> 1785 .   }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: capital
backward
function: QFilterYear
dependencies: 1
inputs: start time
1785
=
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: death metal
function: Count
dependencies: 5