Question: How many time zones include the sovereign state country that has a diplomatic relation with Bangladesh (whose inflation rate is 12.8 percentage) in the subject of Bangladesh–Philippines relations?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "time zone" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Bangladesh" . ?e_2 <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> "12.8"^^xsd:double . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Bangladesh–Philippines relations" .   }
Program:
function: Find
inputs: Bangladesh
function: FilterNum
dependencies: 0
inputs: inflation rate
12.8 percentage
=
function: Relate
dependencies: 1
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 2
inputs: statement is subject of
Bangladesh–Philippines relations
function: FilterConcept
dependencies: 3
inputs: sovereign state
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: time zone
function: Count
dependencies: 6