text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table (r INTEGER, total VARCHAR)
  ### Question:
  If the total is 6, what is the maximum R?
  ### Answer:
  SELECT MAX(r) FROM table WHERE total = 6