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_58 (losses INTEGER, draws VARCHAR, played VARCHAR)
  ### Question:
  Name the average losses for draws larger than 6 and played more than 38
  ### Answer:
  SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38