Question: How many rivers have a tributary river that is partially contained by Montana whose FIPS 5-2 alpha code (US states) is MT?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Montana
function: FilterStr
dependencies: 0
inputs: FIPS 5-2 alpha code (US states)
MT
function: Relate
dependencies: 1
inputs: partially contains
forward
function: FilterConcept
dependencies: 2
inputs: river
function: Relate
dependencies: 3
inputs: tributary
backward
function: FilterConcept
dependencies: 4
inputs: river
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e <tributary> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "river" . ?e_2 <partially_contains> ?e_1 . ?e_2 <pred:name> "Montana" . ?e_2 <FIPS_5-2_alpha_code_(US_states)> ?pv . ?pv <pred:value> "MT" .   }
Answer: 1