Question: How many basketball teams have a headquarters location in the city of the United States that is the birthplace of Jim O'Rourke (who belongs to United States of America)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country for sport
backward
function: Find
inputs: Jim O'Rourke
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Relate
dependencies: 5
inputs: headquarters location
backward
function: FilterConcept
dependencies: 6
inputs: basketball team
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "basketball team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Jim O'Rourke" . ?e_2 <country_for_sport> ?e_3 . ?e_3 <pred:name> "United States of America" .   }
Answer: 0