Question: How many Protestant denominations are headquartered in the US city bordering Silver Spring to the southeast?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Protestantism" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Silver Spring" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <direction_relative_to_location> ?qpv . ?qpv <pred:value> "southeast" .   }
Program:
function: Find
inputs: Silver Spring
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: direction relative to location
southeast
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: Protestantism
function: Count
dependencies: 5