how many sports teams are there in gaelic football?
Value
187
class entity
sports.sports_team m.09dg5
sports.sports_team sports.sport
Sports Team Gaelic football
count none
sports.sport.teams
Teams
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :sports.sports_team . 
VALUES ?x1 { :m.09dg5 } 
?x1 :sports.sport.teams ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND sports.sports_team (JOIN (R sports.sport.teams) m.09dg5)))