Question: As of 2004-03-20, what number of political parties have Stephen Harper as chairperson?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <has_part> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "political party" . ?e_1 <chairperson> ?e_2 . ?e_2 <pred:name> "Stephen Harper" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <chairperson> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:date> "2004-03-20"^^xsd:date .   }
Program:
function: Find
inputs: Stephen Harper
function: Relate
dependencies: 0
inputs: chairperson
backward
function: QFilterDate
dependencies: 1
inputs: start time
2004-03-20
=
function: FilterConcept
dependencies: 2
inputs: political party
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: political party
function: Count
dependencies: 5