WASHINGTON -- Pranay Varada was stung by last year's National Geographic Bee, when he flubbed the official language of Sierra Leone -- it's English; he answered French -- and finished in sixth place. Determined to avoid another setback in his final year of eligibility, he started studying for this year's bee that same day.

He spent a year forgoing school field trips and birthday parties to pore over spreadsheets he created with dossiers on every country in the world. That hard work paid off Wednesday as Pranay finished off the bee the way he'd envisioned: standing on stage with a medal around his neck, accepting congratulations and prizes including a $50,000 scholarship.

Congrats to Pranay Varada (right) of Irving, Texas, a 14-year-old at Dewitt Perry Middle School, 29th annual #NatGeoBee Champion! pic.twitter.com/MRlQoFHBOH — National Geographic (@InsideNatGeo) May 17, 2017

"It was extreme disappointment, to get all the way up here and not win," said Pranay, a 14-year-old 8th grader with a wispy black mustache. "I was researching and trying to find ways to not make the same mistakes twice."

Pranay, who lives in Irving, Texas, survived a tense duel with another top-10 finisher from last year, 14-year-old Thomas Wright of Milwaukee, Wisconsin. Pranay had the best score through most of the 2-hour competition, but Thomas pulled even when he gave a more thorough answer to an essay-type question about a country that would be well-suited for resettling residents of the Maldives displaced by rising sea levels.

Host Mo Rocca, right, gestures to the competitors in the 2017 National Geographic Bee, on Wed., May 17, 2017, at the National Geographic Society in Washington. Top row, from left are, Rohan Kanchana, 14, of Newark, Del., Max Garon, 13, of Washington, Veda Bhattaram, 13, of Montville, N.J., Nicholas Monahan, 14, of McCall, Idaho, and Pranay Varada, 14, of Carrollton, Texas. Bottom row, from left are Ahilan Eraniyan, 12, of Danville, Calif., Thomas Wright, 14, of Milwaukee, Wis., Anish Susarla, 11, of Leesburg, Va., Lucas Eggers, 14, of Minneapolis, Minn., and Abhinav Govindaraju, 12, of Bedford, New Hampshire. AP

During the championship rounds, both boys got all five questions correct, but only after Pranay successfully challenged an answer that was initially deemed wrong. The question was about a mountain range between northern Vietnam and Laos; Pranav identified it as the Annamite Range and not the Annam Mountains.

Get Breaking News Delivered to Your Inbox

"I was absolutely sure I could win that challenge," he said.

The bee moved into sudden death and Pranay won on the first tiebreaker question, correctly identifying the Kunlun Mountains as the 1,200-mile range that separates the Taklimakan Desert from the Tibetan Plateau.

Pranay showed an interest in geography starting at age 3, when his mother, Vasuki Kodaganti, started teaching him world capitals and giving him puzzles of maps. When he was 4, his parents gave him an atlas that he would pore over every day. His mother said she didn't know about the National Geographic Bee back then, and didn't realize it would become an obsession.

"I feel guilty," said Kodaganti, who was in tears after her son's victory. "I was enjoying being a mother. He was my first born."

Pranay's parents, who immigrated to the United States from India in the late 1990s, said they were mostly hands-off about preparing him for the bee, although his mother quizzed him with questions from his spreadsheets.

"There's no way you can push a kid to learn geography," said his father, Praveen Rao. "He's very methodical and planned everything out."

Pranay is the sixth consecutive Indian-American to win the National Geographic Bee. The past 10 champions of the National Spelling Bee have also been Indian-American. But unlike many of those winners, Pranay did not participate heavily in bees run by the North South Foundation, an Indian-American nonprofit that serves as a training ground for a variety of academic competitions. The National Geographic Bee has been his competitive focus since 4th grade, when he finished second in the Texas state bee.

Host Mo Rocca watches at left as Pranay Varada, 14, of Carrollton, Texas reacts after winning the 2017 National Geographic Bee, on Wed., May 17, 2017, at the National Geographic Society in Washington. AP

Rao said his son, who attends Dewitt Perry Middle School in Carrollton, Texas, has been more interested in playing piano and cello and composing music than "participating in every geography bee or every spelling bee," but he budgets his time well.

"It's no hanging out with friends or goofing off on weekends," Rao said. "It's a sacrifice. To win at nationals, you have to sacrifice something. You can't have distractions."

In addition to the scholarship, Pranay gets a trip with his family to the Galapagos Islands and a lifetime membership in the National Geographic Society. Thomas gets a $25,000 scholarship as runner-up. Veda Bhattaram of Montville, New Jersey, finished third and gets $10,000.

The host for the second straight year was "CBS Sunday Morning" correspondent and humorist Mo Rocca, who did his best to keep the contestants loose as they stood awkwardly on stage during breaks in the action. At one point he quizzed the kids about corn production in their home states.

"Do you have a lot of corn in Wisconsin?" Rocca asked.

"Yeah," Thomas said, "but I really don't care."