Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE salary (salary INTEGER, player_id VARCHAR, year VARCHAR)
TABLE: CREATE TABLE player (player_id VARCHAR, name_first VARCHAR, name_last VARCHAR)

### Question ###
How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?

### Accurate SQL ###

SELECT SUM(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990