Parse this person name:

Pagès Gómez, Bartolomé Modesto J. M. Maximiano Elías, 1289-1364
user
first_name: Bartolomé
last_name: Pagès Gómez
middle_names:
- Modesto
- J.
- M.
- Maximiano
- Elías
temporal:
- start: 1289
  end: 1364
  type: life_span
titles: []
extra_info: []
assistant