Question: How many baseball teams are related to the sport of baseball and are in the country of the United States of America?
Choices:
27
28
29
30
31
32
33
34
35
36
Program:
function: Find
inputs: baseball
function: Relate
dependencies: 0
inputs: sport
backward
function: FilterConcept
dependencies: 1
inputs: baseball team
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: baseball team
function: And
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" . ?e <sport> ?e_1 . ?e_1 <pred:name> "baseball" .  ?e <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  }
Answer: 29