Table schema:
CREATE TABLE table (r INTEGER, total VARCHAR)

Question: If the total is 6, what is the maximum R?
SQL: SELECT MAX(r) FROM table WHERE total = 6