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_19744915_18 (rank INTEGER, result VARCHAR, public VARCHAR)
  ### Question:
  When 8 is the public and the result is safe what is the highest rank?
  ### Answer:
  SELECT MAX(rank) FROM table_19744915_18 WHERE result = "Safe" AND public = 8