Question: How many baseball teams are there whose headquarters is located in the United States city that is the narrative location of Chandler (that has Leslie Caron as a cast member)?
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> "baseball team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Chandler" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Leslie Caron" .   }
Program:
function: Find
inputs: Leslie Caron
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Chandler
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Relate
dependencies: 5
inputs: headquarters location
backward
function: FilterConcept
dependencies: 6
inputs: baseball team
function: Count
dependencies: 7