Table: gymnast_results_5
Columns: year
competition_description
location
apparatus
rank_final

Question: What year was the rank final of 6?
SQL: SELECT "year" FROM gymnast_results_5 WHERE "rank_final" = '6'

Question: What was the rank final before 2007?
SQL: SELECT "rank_final" FROM gymnast_results_5 WHERE "year" < 2007