Question: How many of Netherlands' provinces have the capital city located in North Holland (the start time of this statement is 1814)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e_1 <capital_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "North Holland" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:year> 1814 .   }
Program:
function: Find
inputs: North Holland
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: QFilterYear
dependencies: 1
inputs: start time
1814
=
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
function: Count
dependencies: 5
Answer: 1