Question: How many kinds of art are distinct from ballet, famously associated with John Cage?
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> "art" . ?e_1 <different_from> ?e . ?e_1 <pred:name> "ballet" . ?e_1 <famous_people> ?e_2 . ?e_2 <pred:name> "John Cage" .   }
Program:
function: Find
inputs: John Cage
function: Relate
dependencies: 0
inputs: famous people
backward
function: Find
inputs: ballet
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: art
function: Count
dependencies: 5