Question: How many basketball teams have headquarters in the state that shares the Oregon-Washington border with Oregon (whose motto is Alis volat propriis) in the United States?
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> "basketball team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Oregon" . ?e_2 <motto_text> ?pv . ?pv <pred:value> "Alis volat propriis" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Oregon–Washington border" .   }
Program:
function: Find
inputs: Oregon
function: FilterStr
dependencies: 0
inputs: motto text
Alis volat propriis
function: Relate
dependencies: 1
inputs: shares border with
forward
function: QFilterStr
dependencies: 2
inputs: statement is subject of
Oregon–Washington border
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: Relate
dependencies: 4
inputs: headquarters location
backward
function: FilterConcept
dependencies: 5
inputs: basketball team
function: Count
dependencies: 6
Answer: 1