Question: How many baseball teams' headquarters are located in Tokyo that is the site of the 1964 Summer Olympics?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: 1964 Summer Olympics
function: Relate
dependencies: 0
inputs: location
forward
function: Find
inputs: Tokyo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: baseball team
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Tokyo" . ?e_2 <location> ?e_1 . ?e_2 <pred:name> "1964 Summer Olympics" .   }
Answer: 2