Parse this person name:

Joshua Gray (1807-1865, flourished 1836-1858)
user
first_name: Joshua
last_name: Gray
middle_names: []
temporal:
- start: 1807
  end: 1865
  type: life_span
- start: 1836
  end: 1858
  type: flourished
titles: []
extra_info: []
assistant