Question: How many Wisconsin counties contain La Crosse or are named after Christopher Columbus (that is the origin of the name British Columbia)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Wisconsin" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "La Crosse" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Christopher Columbus" . ?e_2 <named_after> ?e_1 . ?e_2 <pred:name> "British Columbia" .  } }
Program:
function: Find
inputs: La Crosse
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: county of Wisconsin
function: Find
inputs: British Columbia
function: Relate
dependencies: 3
inputs: named after
forward
function: Find
inputs: Christopher Columbus
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: county of Wisconsin
function: Or
dependencies: 2
8
function: Count
dependencies: 9