Question: What are the number of metropolitan areas that include the county of Virginia that shares border with Warren County (the one whose population is 37516) as a part ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Warren County
function: FilterNum
dependencies: 0
inputs: population
37516
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Virginia
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: metropolitan area
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan area" . ?e <has_part> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Virginia" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Warren County" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "37516"^^xsd:double .   }
Answer: 1