Question: What is the number of colors that have the name b/w for short or are the opposite of black?
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> "color" .  { ?e <short_name> ?pv . ?pv <pred:value> "b/w" .  } UNION { ?e <opposite_of> ?e_1 . ?e_1 <pred:name> "black" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: short name
b/w
function: FilterConcept
dependencies: 1
inputs: color
function: Find
inputs: black
function: Relate
dependencies: 3
inputs: opposite of
backward
function: FilterConcept
dependencies: 4
inputs: color
function: Or
dependencies: 2
5
function: Count
dependencies: 6