Question: How many prefectures of Japan share a border with the city whose Twitter username is tocho_koho with 1187028 subscribers?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "tocho_koho" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv_1 ] <number_of_subscribers> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "1187028"^^xsd:double .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
tocho_koho
function: QFilterNum
dependencies: 1
inputs: number of subscribers
1187028
=
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Count
dependencies: 5