Table: italy_football_records
Columns: rank
name
years
goals
apps

Question: What is the sum of rank with years  1996–2012 and apps greater than 340?
SQL: SELECT SUM("rank") FROM italy_football_records WHERE "years" = '1996–2012' AND "apps" > 340