Question: Is the population greater than 97000 (in the determination method of demographic balance) for the county of New York that is named after James Madison (who has the occupation of writer)?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "James Madison" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "writer" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "97000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <determination_method> ?qpv . ?qpv <pred:value> "demographic balance" .  }
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: QueryAttrUnderCondition
dependencies: 5
inputs: population
determination method
demographic balance
function: VerifyNum
dependencies: 6
inputs: 97000
>
Answer: no