Question: How many North Carolina counties, with BrinswickGovt as their Twitter username, share border with York County (the one whose FIPS 6-4 (US counties) is 45091) ?
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> "county of North Carolina" .  { ?e <Twitter_username> ?pv . ?pv <pred:value> "BrunswickGovt" .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "York County" . ?e_1 <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "45091" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
BrunswickGovt
function: FilterConcept
dependencies: 1
inputs: county of North Carolina
function: Find
inputs: York County
function: FilterStr
dependencies: 3
inputs: FIPS 6-4 (US counties)
45091
function: Relate
dependencies: 4
inputs: shares border with
backward
function: FilterConcept
dependencies: 5
inputs: county of North Carolina
function: Or
dependencies: 2
6
function: Count
dependencies: 7