Question: For the democracy that has a diplomatic relation with the United States of America (the subject of this statement is Liberia–United States relations), at what time point is its nominal GDP 543000000 United States dollars?
Choices:
2008-02-24
2010-09-01
1984-06-06
2013-03-11
2004-02-01
1980-04-01
2015-03-15
2010-07-14
2002-01-01
1920
Answer: 2002-01-01
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "United States of America" . [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Liberia–United States relations" . ?e <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "543000000"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <nominal_GDP> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Liberia–United States relations
function: FilterConcept
dependencies: 2
inputs: democracy
function: QueryAttrQualifier
dependencies: 3
inputs: nominal GDP
543000000 United States dollar
point in time