select first and rest word, first name last name
SELECT nome, SUBSTRING_INDEX(nome, ' ', 1), SUBSTRING(nome, LOCATE(' ', nome)) FROM motorista m