Parse this person name:

Davenport Gray, Mary X. Thomas, 1796-1870
user
first_name: Mary
last_name: Davenport Gray
middle_names:
- X.
- Thomas
temporal:
- start: 1796
  end: 1870
  type: life_span
titles: []
extra_info: []
assistant