Question: To which part does a 1st January 1999 establishment of a currency used in Cyprus (the one whose population is 697717) apply ?
Choices:
head
McNairy County
rest
Chester County
Menominee County
demand deposit
Henry County
Peace River Regional District
Sint Maarten
Rhea County
Answer: demand deposit
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "currency" . ?e <country> ?e_1 . ?e_1 <pred:name> "Cyprus" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "697717"^^xsd:double . ?e <inception> ?pv . ?pv <pred:date> "1999-01-01"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <inception> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Cyprus
function: FilterNum
dependencies: 0
inputs: population
697717
=
function: Relate
dependencies: 1
inputs: country
backward
function: FilterConcept
dependencies: 2
inputs: currency
function: QueryAttrQualifier
dependencies: 3
inputs: inception
1999-01-01
applies to part