Jesus is referring to the account in 1 Kings 10, wherein we read the Queen of Sheba cruised up from Africa to see Solomon. Having heard about his splendor, his majesty, and his wisdom, she went away saying, "Amazing! The half wasn't even told to me. What I've seen here is a mind blower." Yet a greater King than Solomon was in their midst.
Solomon had wisdom from God. Jesus is the wisdom of God.
Solomon was a great king. Jesus is the King of kings.
Solomon spoke practically to his nation. Jesus spoke powerfully to all of creation.
Solomon gave the Queen of Sheba gifts. Jesus is able to do exceedingly abundantly above all we can ask or think.