Question: How many officials are labeled as United States Secretary of State, or are different from pope?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "official" .  { ?e <native_label> ?pv . ?pv <pred:value> "United States Secretary of State" .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "pope" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
United States Secretary of State
function: FilterConcept
dependencies: 1
inputs: official
function: Find
inputs: pope
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: official
function: Or
dependencies: 2
5
function: Count
dependencies: 6