Question: How many Massachusetts counties have the United States capital city that is the capital of Oregon (the one whose FIPS 10-4 (countries and regions) is US41)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Oregon" . ?e_2 <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "US41" .   }
Program:
function: Find
inputs: Oregon
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
US41
function: Relate
dependencies: 1
inputs: capital of
backward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: Count
dependencies: 5
Answer: 0