Question: What New York county is named after Benjamin Franklin (the one that has the occupation of physicist) and has a population of less than 6500000 (the determination method of this statement is estimation process)?
Choices:
Franklin County
Rensselaer County
Greene County
Albany County
Cayuga County
Niagara County
Warren County
Sullivan County
Orange County
Clinton County
Answer: Franklin County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Benjamin Franklin" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "physicist" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "6500000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <determination_method> ?qpv . ?qpv <pred:value> "estimation process" .  }
Program:
function: Find
inputs: physicist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: FindAll
function: FilterNum
dependencies: 6
inputs: population
6500000
<
function: QFilterStr
dependencies: 7
inputs: determination method
estimation process
function: FilterConcept
dependencies: 8
inputs: county of New York
function: And
dependencies: 5
9
function: What
dependencies: 10