Question: Is the population less than 980000 for the U.S. city whose subreddit is BloomfieldHills which has 6 subscribers?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "BloomfieldHills" . [ <pred:fact_h> ?e ; <pred:fact_r> <subreddit> ; <pred:fact_t> ?pv_1 ] <number_of_subscribers> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "6"^^xsd:double . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "980000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: subreddit
BloomfieldHills
function: QFilterNum
dependencies: 1
inputs: number of subscribers
6
=
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: QueryAttr
dependencies: 3
inputs: population
function: VerifyNum
dependencies: 4
inputs: 980000
<
Answer: yes