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_name_5 (rank INTEGER, name VARCHAR, appearances VARCHAR)
  ### Question:
  What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7.
  ### Answer:
  SELECT SUM(rank) FROM table_name_5 WHERE name = "fernando cavenaghi" AND appearances < 7