Question: How many Canadian provinces have the motto "Fortis et liber" or are Canadian administrative divisions?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" .  { ?e <motto_text> ?pv . ?pv <pred:value> "Fortis et liber" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Canada" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: motto text
Fortis et liber
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: Find
inputs: Canada
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: province of Canada
function: Or
dependencies: 2
5
function: Count
dependencies: 6