Question: How many TV production companies are in a sovereign state that has Mark Johnson as a citizen (the one that is a member of St. Louis Cardinals)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "TV production company" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "Mark Johnson" . ?e_2 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "St. Louis Cardinals" .   }
Program:
function: Find
inputs: St. Louis Cardinals
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Mark Johnson
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Relate
dependencies: 5
inputs: country
backward
function: FilterConcept
dependencies: 6
inputs: TV production company
function: Count
dependencies: 7
Answer: 6