Question: How many film production company do we know that come from a democracy with diplomatic relations with Russia (the subject of this statement is India–Russia relations) ?
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> "film production company" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_3 <diplomatic_relation> ?e_1 . ?e_3 <pred:name> "Russia" . [ <pred:fact_h> ?e_3 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "India–Russia relations" .   }
Program:
function: Find
inputs: Russia
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
India–Russia relations
function: FilterConcept
dependencies: 2
inputs: democracy
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: film production company
function: Count
dependencies: 5
Answer: 2