Question: Which United States state has the nickname Mother of the Presidents and Mother of the Statesmen and has a population greater than 0.8 (the determination method of this statement is census)?
Choices:
North Dakota
Illinois
Washington
Massachusetts
Maine
Alabama
Colorado
South Dakota
Virginia
Florida
Answer: Virginia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e <nickname> ?pv . ?pv <pred:value> "Mother of Presidents and the Mother of Statesmen" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v > "0.8"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <determination_method> ?qpv . ?qpv <pred:value> "census" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: nickname
Mother of Presidents and the Mother of Statesmen
function: FilterConcept
dependencies: 1
inputs: state of the United States
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
0.8
>
function: QFilterStr
dependencies: 4
inputs: determination method
census
function: FilterConcept
dependencies: 5
inputs: state of the United States
function: And
dependencies: 2
6
function: What
dependencies: 7