Question: How many saxophones are popularly associated with both John Coltrane and the Tom Scott born in L.A.?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: John Coltrane
function: Relate
dependencies: 0
inputs: famous people
backward
function: FilterConcept
dependencies: 1
inputs: saxophone
function: Find
inputs: Los Angeles
function: Relate
dependencies: 3
inputs: place of birth
backward
function: Find
inputs: Tom Scott
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: saxophone
function: And
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "saxophone" . ?e <famous_people> ?e_1 . ?e_1 <pred:name> "John Coltrane" .  ?e <famous_people> ?e_2 . ?e_2 <pred:name> "Tom Scott" . ?e_2 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Los Angeles" .  }
Answer: 2