Saturday Night Live has just scored its most Emmy nominations ever, with a couple of caveats.

The NBC show and its various spinoffs around its 50th anniversary landed 31 nominations. Its previous best ever haul was in 2017 with 22 nominations.

This included seven for Saturday Night Live’s 50th including Bowen Yang in Outstanding Supporting Actor in a Comedy Series, as well as 12 nominations for SNL50: The Anniversary Special and six for SNL50: The Anniversary Special. It also scored two for Questlove’s Ladies & Gentlemen… 50 Years of SNL Music and three for SNL50: Beyond Saturday Night Live as well as one for an immersive special.

It will go head-to-head, once again, against Last Week Tonight with John Oliver in the Outstanding Scripted Variety Series category, which has its own special voting rules given the number of nominees.

In 2015, the Saturday Night Live 40th Anniversary Special, also known as SNL40, picked up seven nominations and won the Outstanding Variety Special award, beating Bill Maher: Live From D.C., The Kennedy Center Honors, Louis C.K: Live At The Comedy Store, Mel Brooks: Live at the Geffen and Tony Bennett and Lady Gaga: Cheek to Cheek Live!

Don Roy King also won for Outstanding Directing for a Variety Special and the show won a makeup award.

That year, SNL totaled 15 Emmy nominations across its main show – with noms for Kate McKinnon, Louis C.K and Bill Hader as well as in Outstanding Variety Sketch Series, losing out to Inside Amy Schumer – and its 40th anniversary.

Last year, Saturday Night Live scored 17 nominations and won six awards in the technical categories such as directing, production design, makeup, hairstyling, lighting design and technical design and camerawork. It lost out to Last Week Tonight with John Oliver in the main Outstanding Scripted Variety Series category, while stars and hosts such as Kristen Wiig, Bowen Yang, Ryan Gosling and Maya Rudolph were nominated in various categories but also lost out.

This was, however, well up from the previous year, when the show received only nine nominations and only two wins.