SELECT DISTINCT COUNT(?uri) WHERE {?uri <http://dbpedia.org/property/city> <http://dbpedia.org/resource/Pennsylvania> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/AmericanFootballTeam>}
Pennsylvania has how many american football teams?
SELECT DISTINCT COUNT ( ?u ) WHERE { ?u property:city resource:Pennsylvania . ?u rdf:type ontology:American_Football_Team }
2
There are [2] American football teams in Pennsylvania.
Pennsylvania has [2] American football teams.