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_82 (first_party VARCHAR, year VARCHAR, first_member VARCHAR)
  ### Question:
  What is the first party for Lord John Hay earlier than 1857?
  ### Answer:
  SELECT first_party FROM table_name_82 WHERE year < 1857 AND first_member = "lord john hay"