In 2002, Miranda and John Buffalo Mailer worked with director Thomas Kail to revise In the Heights. Book writer Quiara Alegria Hudes joined the team in 2004. After success off-Broadway, the musical went to Broadway, opening in March 2008. It was nominated for 13 Tony Awards, winning four, including Best Musical and Best Original Score. It also won the 2009 Grammy Award for Best Musical Theater Album. Miranda's performance in the leading role of Usnavi earned him a nomination for the Tony Award for Best Actor in a Musical. Miranda left the cast of the Broadway production on February 15, 2009.  Miranda reprised the role when the national tour of In the Heights played in Los Angeles from June 23 to July 25, 2010. He again joined the tour in San Juan, Puerto Rico. Miranda rejoined the Broadway cast as Usnavi from December 25, 2010 until the production closed on January 9, 2011, after 29 previews and 1,185 regular performances.  Miranda created other work for the stage during this period. He wrote Spanish language dialogue and worked with Stephen Sondheim to translate into Spanish song lyrics for the 2009 Broadway revival of West Side Story. In 2008, he was invited by composer-lyricist Stephen Schwartz to contribute two new songs to a revised version of Schwartz and Nina Faso's 1978 musical Working, which opened in May 2008 at the Asolo Repertory Theatre in Sarasota, Florida.  Miranda also did work for film and television. In 2007, he made a guest appearance on the television series The Sopranos in the episode "Remember When", and in 2009, he played Alvie, Gregory House's roommate in a psychiatric hospital, in the two-hour season six premiere episode of House; he returned to the role in May 2010. He also has done work for Sesame Street, playing occasional roles and singing the theme song to the recurring segment Murray Has a Little Lamb. He was a composer and actor on the 2009 revival of The Electric Company and appeared in the CollegeHumor sketch "Hardly Working: Rap Battle", playing himself working as an intern and rapper.  During these years, Miranda also worked as an English teacher at his former high school, wrote for the Manhattan Times as a columnist and restaurant reviewer, and composed music for commercials.

Answer this question "Did the play run from 2002 to 2010?" by extracting the answer from the text above.