Question: How many colors are abbreviated as G or are the color of the spy movie Gibraltar?
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_1 <color> ?e . ?e_1 <pred:name> "Gibraltar" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "spy film" .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "G" .  } }
Program:
function: Find
inputs: spy film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Gibraltar
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: color
forward
function: FilterConcept
dependencies: 4
inputs: color
function: FindAll
function: FilterStr
dependencies: 6
inputs: short name
G
function: FilterConcept
dependencies: 7
inputs: color
function: Or
dependencies: 5
8
function: Count
dependencies: 9