knock one out of the ball park

Meaning 1
to hit a ball out of the baseball park
Sentence 1
Babe Ruth knocked the ball out of Yankee Stadium.
Meaning 2
to have a great idea, to do something extremely well.
Sentence 2
The President knocked one out of the ballpark at the NATO meeting.