Question: How many Canadian provinces are the headquarters of Ferret Music or include St. John's within them?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Ferret Music
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: Find
inputs: St. John's
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: province of Canada
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" .  { ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Ferret Music" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "St. John's" .  } }
Answer: 2