So how does Uhura know the melody to lower the shields for the comet all of a sudden?
She was studying the language. The ship is sentient after all and just wanted to make sure they understood it.
And why does the computer know exactly which kids Pike means at the end? Some of the names were quite general and presumably thousands of kids with these names exist?
I'm guessing we can presume he has them "saved" from previous searches.