この出力にはSQLクエリが必要です。
location ='chennai'の場合、
A 2
B 1
これは私のテーブル構造です:
location team
chennai A
Bangalore A
Bangalore B
chennai B
madurai B
chennai A