Table: sagan_tosu_stats
Columns: season
div
tms
pos
attendance_g
emperor_s_cup

Question: How many people attended the 3rd round Emperor's cup with a TMS larger than 12?
SQL: SELECT "attendance_g" FROM sagan_tosu_stats WHERE "emperor_s_cup" = '3rd round' AND "tms" > 12

Question: What is the average attendance for seasons before 1999 with pos of 8?
SQL: SELECT AVG("attendance_g") FROM sagan_tosu_stats WHERE "pos" = 8 AND "season" < 1999