### HTML Code ```html
| Rank | Year | Title | Total Box Office Earnings |
|---|---|---|---|
| 1 | 2009 | Avatar | $2.923 billion |
| 2 | 2019 | Avengers: Endgame | $2.798 billion |
| 3 | 1997 | Titanic | $2.195 billion |
| 4 | 2015 | Star Wars: The Force Awakens | $2.068 billion |
| 5 | 2018 | Avengers: Infinity War | $2.048 billion |
| 6 | 2021 | Spider-Man: No Way Home | $1.921 billion |
| 7 | 2003 | The Lord of the Rings: The Return of the King | $1.142 billion |
| 8 | 2012 | The Avengers | $1.519 billion |
| 9 | 2014 | Furious 7 | $1.515 billion |
| 10 | 2016 | Star Wars: Rogue One | $1.056 billion |
| 11 | 2017 | Beauty and the Beast | $1.264 billion |
| 12 | 2010 | Inception | $836 million |
| 13 | 2019 | Frozen II | $1.450 billion |
| 14 | 2022 | Top Gun: Maverick | $1.495 billion |
| 15 | 2006 | Pirates of the Caribbean: Dead Man's Chest | $1.066 billion |
| 16 | 2011 | Transformers: Dark of the Moon | $1.124 billion |
| 17 | 2013 | Despicable Me 2 | $970 million |
| 18 | 2015 | Minions | $1.159 billion |
| 19 | 1999 | The Phantom Menace | $1.027 billion |
| 20 | 2001 | Harry Potter and the Philosopher's Stone | $974 million |
| 21 | 2018 | Jurassic World: Fallen Kingdom | $1.310 billion |
| 22 | 2014 | Guardians of the Galaxy | $773 million |
| 23 | 2017 | Jumanji: Welcome to the Jungle | $962 million |
| 24 | 2008 | The Dark Knight | $1.005 billion |
| 25 | 2020 | Wonder Woman 1984 | $166 million |