Question: When did the sovereign state that has a diplomatic relation with Indonesia (the subject of this statement is Brunei–Indonesia relations) have a population of 123865?
Choices:
2010-04-28
1863
1996-02-21
1811-01-01
1965-10-01
2009-03-01
2012-10-30
2004-02-29
1758
1969
Answer: 1969
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Indonesia" . [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Brunei–Indonesia relations" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "123865"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv .  }
Program:
function: Find
inputs: Indonesia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Brunei–Indonesia relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 3
inputs: population
123865
point in time