question: What is the sum of rank with years  1996–2012 and apps greater than 340?
answer: SELECT SUM(rank) FROM table_name_15 WHERE years = "1996–2012" AND apps > 340
context: CREATE TABLE table_name_15 (rank INTEGER, years VARCHAR, apps VARCHAR)