The libretto is cast in three tableaus -- the first touching on Solomon 's piety , represented by his completion of the Temple ; the second on his wisdom , by way of the story of the two women claiming to be the mother of one baby ; and the third on his statesmanship and fostering of peace , illustrated by the Queen of Sheba 's visit to Jerusalem .