Question: How many military branches are involved in the war conflict associated with Samuel Beckett (within French Resistance military branch) ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "military branch" . ?e <conflict> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "war" . ?e_2 <conflict> ?e_1 . ?e_2 <pred:name> "Samuel Beckett" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <conflict> ; <pred:fact_t> ?e_1 ] <military_branch> ?qpv . ?qpv <pred:value> "French Resistance" .   }
Program:
function: Find
inputs: Samuel Beckett
function: Relate
dependencies: 0
inputs: conflict
forward
function: QFilterStr
dependencies: 1
inputs: military branch
French Resistance
function: FilterConcept
dependencies: 2
inputs: war
function: Relate
dependencies: 3
inputs: conflict
backward
function: FilterConcept
dependencies: 4
inputs: military branch
function: Count
dependencies: 5