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_6 (losses INTEGER, against VARCHAR, wins VARCHAR, club VARCHAR)
  ### Question:
  What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238?
  ### Answer:
  SELECT SUM(losses) FROM table_name_6 WHERE wins > 6 AND club = "camperdown" AND against > 1238