Question: How many independent cities are part of Virginia (the one that is the narrative location of The Cleveland Show) or that are a part of San Francisco Bay Area?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: The Cleveland Show
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: independent city
function: Find
inputs: San Francisco Bay Area
function: Relate
dependencies: 6
inputs: part of
backward
function: FilterConcept
dependencies: 7
inputs: independent city
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Virginia" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Cleveland Show" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "San Francisco Bay Area" .  } }
Answer: 1