Question: How many prefectures of Japan are an administrative division of the sovereign state that has diplomatic relations with Azerbaijan (the resident mission being the Embassy of Japan, Baku)?
Choices:
16
17
18
19
20
21
22
23
24
25
Program:
function: Find
inputs: Azerbaijan
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: diplomatic mission sent
Embassy of Japan, Baku
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Azerbaijan" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <diplomatic_mission_sent> ?qpv . ?qpv <pred:value> "Embassy of Japan, Baku" .   }
Answer: 16