Question: How many Florida counties are in the sovereign state country that has Kevin Smith (whose Twitter username is thatkevinsmith) as a citizen?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "Kevin Smith" . ?e_2 <Twitter_username> ?pv . ?pv <pred:value> "thatkevinsmith" .   }
Program:
function: Find
inputs: Kevin Smith
function: FilterStr
dependencies: 0
inputs: Twitter username
thatkevinsmith
function: Relate
dependencies: 1
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of Florida
function: Count
dependencies: 5