user: Question: When 8 is the public and the result is Safe what is the highest rank?
Columns: ['Rank', 'Couple', 'Judges', 'Public', 'Total', 'Vote percentage', 'Result']
Types: ['real', 'text', 'real', 'real', 'real', 'text', 'text']
Sample row: [1.0, 'Ray and Maria', 10.0, 8.0, 18.0, '14.618%', 'Safe']
SQL:

assistant: SELECT MAX("Rank") FROM "Table" WHERE "Result" = 'Safe' AND "Public" = 8.0;