Netflix finished second and trailed the premium cable network by 20 after the two big spenders tied last year. HBO also broke its own record for the most nominees in a single year.

Heading into Tuesday's Emmy nominations, all eyes were on the battle of bragging rights between Netflix and HBO to see which of the two outlets would wind up with the biggest haul. And the winner this year is…HBO, which returned to dominance and topped the streamer by 20 (137 versus 117). HBO's showing was so impressive that it broke its own record for the most nominations in a single year as its 137 topped the 126 the Casey Bloys-led cabler earned back in 2015.

The premium cable network was helped by the (divisive) final season of Game of Thrones — which led all programs (32); limited series Chernobyl (finishing third with 19), comedy Barry (tied for fifth with 17); variety series Last Week Tonight With John Oliver; and other shows including True Detective, the Deadwood movie, Sharp Objects, Succession and Leaving Neverland. This was fifth time Game of Thrones led the nominees in the eight years in which it was eligible. The series has led the pack every year since 2014 (save for 2017 when it was not eligible). This year's Thrones haul also broke the Emmy record for the most nominations by a program in a single year.

Netflix, meanwhile, was nominated in all of the major categories save for variety show. The streaming giant and HBO were the only two outlets to score more than 100 total nominations. Netflix's most-nominated series was Ava DuVernay's limited entry When They See Us (16), followed by comedy Russian Doll, docuseries Our Planet, drama Ozark, Beyoncé's Homecoming andGLOW.

Last year, Netflix made history when the streamer snapped HBO's 18-year streak as the most-nominated network(112 versus 108). It became the first streamer to lead the Emmy noms pack. The fierce competitors would settle the battle with a tie — taking home 23 statuettes apiece— when the awards were presented in September. It's also worth noting that HBO's Game of Thrones ended the 70th annual Primetime Emmys with the most wins of any program (nine), topping Amazon's Marvelous Mrs. Maisel and NBC's Saturday Night Live.

Here's a look at the 2019 Emmy nominations by the numbers.

Nominations by network (10 or more):

HBO 137 (108 last year)

Netflix 117 (112 last year)

NBC 58 (78 last year)

Amazon Prime Video 47 (22 last year)

CBS 43 (35 last year)

FX Networks 32 (50 last year)

ABC 26 (31 last year)

Hulu 20 (27 last year)

Fox 18 (16 last year)

Showtime 18 (21 last year)

CNN 17 (10 last year)

VH1 14 (12 last year)

National Geographic 13 (17 last year)

AMC 11 (1 last year)

Nominations by program (five or more):

Game of Thrones 32

Marvelous Mrs. Maisel 20

Chernobyl 19

Saturday Night Live 18

Barry 17

Fosse/Verdon 17

When They See Us 16

Russian Doll 13

Escape at Dannemora 12

Fleabag 11

The Handmaid's Tale 11

Our Planet 10

Better Call Saul 9

Killing Eve 9

Last Week Tonight With John Oliver 9

Ozark 9

RuPaul's Drag Race 9

This Is Us 9

True Detective 9

Veep 9

Deadwood 8

The Oscars 8

Sharp Objects 8

Free Solo 7

The Voice 7

Anthony Bourdain Parts Unknown 6

Homecoming: A Film by Beyoncé 6

Pose 6

Queer Eye 6

American Horror Story: Apocalypse 5

Carpool Karaoke: When Corden Met McCarney Live From Liverpool 5

GLOW 5

The Good Place 5

Leaving Neverland 5

Rent 5

Succession 5

World of Dance 5

Nominations by studio:

HBO Entertainment 137

Disney TV Studios 58

Universal TV 43

Amazon Studios 47

FX Productions 27

CBS TV Studios 27

Warner Bros. TV 23

Sony Pictures TV 21

Netflix Originals 13

MRC 12

Universal Content Productions 6

The 71st Emmy Awards will return to the Microsoft Theater in Los Angeles and will air on Fox on Sunday, Sept. 22, at 5 p.m. PT. A host has not yet been announced.