input: Write a Python function to generate a sequence of numbers using a similar approach to the given SQL query.
  assert generate_sequence(6) == [1, 2, 3, 4, 5]
  assert generate_sequence(3) == [1, 2]
  assert generate_sequence(10) == [1, 2, 3, 4, 5, 6, 7, 8, 9]
output: def generate_sequence(n):
      return list(range(1, n))