Database: yelp
Question: find the total checkins in Italian Delis in each state on Sunday
SQL: select t1.state  ,  sum ( t4.count ) from category as t2 join business as t1 on t2.business_id  =  t1.business_id join category as t3 on t3.business_id  =  t1.business_id join checkin as t4 on t4.business_id  =  t1.business_id where t2.category_name  =  "italian" and t3.category_name  =  "delis" and t4.day  =  "sunday" group by t1.state;