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 home_game ( team_id VARCHAR, year VARCHAR, attendance INTEGER )
TABLE: CREATE TABLE team ( team_id VARCHAR, rank VARCHAR )

### Question ###
In 2014, what are the id and rank of the team that has the largest average number of attendance?

### Accurate SQL ###

SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1