Question: How many Virginia counties have FIPS 6-4 (US counties) of 51165  or are located in Virginia, the narrative location of The Vampire Diaries?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" .  { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "51165" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Virginia" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Vampire Diaries" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
51165
function: FilterConcept
dependencies: 1
inputs: county of Virginia
function: Find
inputs: The Vampire Diaries
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Virginia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Virginia
function: Or
dependencies: 2
8
function: Count
dependencies: 9