Question: Is 7.9 the population (as of 1877) of the capital city of Egypt (that has a diplomatic connection with Japan)?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Egypt" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Japan" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "7.9"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 1877 .  }
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city
function: QueryAttrUnderCondition
dependencies: 5
inputs: population
point in time
1877
function: VerifyNum
dependencies: 6
inputs: 7.9
!=
Answer: yes