“Right to Offend: The Black Comedy Revolution” (A&E, 9 p.m.) looks at the history of challenging Black comedians from Richard Pryor and Redd Foxx to Key & Peele. 

Tiny invertebrates in the undergrowth are examined on “Into the Wild New Zealand” (Smithsonian, 8 p.m.). 

“The Flash” (Fox, 8 p.m.) has its season finale.

The 18 chefs have the Coast Guard to feed on “MasterChef” (Fox, 8 p.m.). 

Contestants on “So You Think You Can Dance” (Fox, 9 p.m.) perform in pairs in a double elimination round. 

A mass shooting in Iowa constitutes the ninth season finale on “See No Evil” (Investigation Discovery, 11 p.m.).

The staff of “The Zoo: San Diego” (Animal Planet, 8 p.m.) has to make a decision about flamingo eggs. 

Turner Classic Movies has a fun night of movie spoofs with “Murder by Death” (8 p.m.), “Spaceballs” (10 p.m.), “Support Your Local Sheriff” (midnight) and “The Silencers” (1:45 a.m.). During the day are films of impending doom in “Godzilla, King of the Monsters!” (6 a.m.), “Nostradamus Says So!” (7:30 a.m.), “The Last Days of Pompeii” (7:45 a.m.), “Them!” (9:30 a.m.), “The Time Machine” (11:15 a.m.), “The Swarm” (1 p.m.), “The House in the Middle” (3:45 p.m.), “The Beginning or the End” (4 p.m.), “Duck and Cover” (6 p.m.) and “Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb” (6:15 p.m.). 

There is second round play at Wimbledon (ESPN, 8 a.m.).

Baseball includes Houston at Mets (MLB, 1 p.m.) and Atlanta at Philadelphia (MLB, 7 p.m.).

In the WNBA, it’s Connecticut at Chicago (NBA, noon) and Indiana at Phoenix (NBA, 10 p.m.).

Daytime Talk

Kelly Ripa and Ryan Seacrest: Tom Holland, the Crafty Lumberjacks, Sophia Bush, Raven-Symone. The View: Marcus Samuelsson, Simu Liu, Chloe Fineman. The Talk: Chace Crawford. Ellen DeGeneres: John Cena, Parquet Courts (rerun). Drew Barrymore: Jason Biggs, Mikel Welch, Ego Nwodim (rerun). Kelly Clarkson: Maury Povich, Connie Chung, Ed Helms, Randall Park, Jo Koy, Chelsea Handler, Charlie Day, Jenny Slate, Katie Lowes, Ron Howard, Clint Howard. Tamron Hall: Dawn Staley, Rene Syler, Beverly Bass, Rachel Tucker (rerun). 

Late Talk

Stephen Colbert: Rep. Adam Kinzinger, Karl Urban. Jimmy Kimmel: Paris Hilton, Matteo Lane, Vespa, Chelsea Handler. Jimmy Fallon: Elizabeth Olsen, Gaten Matarazzo, Samantha Ruddy. Seth Meyers: Steve Carell, Machine Gun Kelly, Ingrid Andress, Jonathan Ulman. James Corden: John Bodega, Sam Smith, Minnie Driver, Lior Suchard, Cat Burns. Trevor Noah: Van Lathan Jr.