Question: How many subscribers does the man living in Toledo (the area is 217.953266 km2) have for his Twitter username of richsommer?
Choices:
221477
3632
25612
9896
1223215
28365
89129
164089
29097
100093
Answer: 28365
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <residence> ?e_1 . ?e_1 <pred:name> "Toledo" . ?e_1 <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "217.953266"^^xsd:double . ?e <Twitter_username> ?pv . ?pv <pred:value> "richsommer" . [ <pred:fact_h> ?e ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv .  }
Program:
function: Find
inputs: Toledo
function: FilterNum
dependencies: 0
inputs: area
217.953266 square kilometre
=
function: Relate
dependencies: 1
inputs: residence
backward
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttrQualifier
dependencies: 3
inputs: Twitter username
richsommer
number of subscribers