IOWA — Iowa made it back to the state tournament the hard way, both literally and figuratively, blowing a four-run lead Sunday before rallying in the bottom of the seventh and winning the game 7-6 when catcher Trenton Richard was hit by a pitch with the bases loaded.

The No. 3 seed Yellow Jackets will play No. 2 John Curtis at 6 p.m. Friday in a Class 3A semifinal. John Curtis advanced with a 1-0 win over North Vermilion on Sunday.

Iowa (22-8) built a 5-1 lead in the first three innings, scoring four in the third, highlighted by a two-run triple by Dayton Sonnier and squeeze bunt by Richard.

St. Charles (22-11) fought back to tie the game at 6-6 in the top of the sixth inning, scoring a pair of runs in the fourth and sixth and a single run in the fifth. Austin Weber doubled in a run in the sixth and scored the tying run on a single by Eian Mitchell.

Iowa pulled it out in the seventh, with Elwayne Carrier leading off with a single to left and advancing to third on a Sonnier double. Thomas Lebleu was intentionally walked to bring up Richard, who was plunked to end the game.

Iowa’s last trip to state came in 2012, when the Yellow Jackets finished as runner-up.

Sonnier finished with two hits, two RBIs and two runs. Carrier and Lebleu had two hits each.

Hunter Roussell (9-3) picked up the win in relief.

Justin Loupe had three hits, a run and RBI to lead St. Charles.