Question: When do Pam and Pam's spouse on The Office end up together?

Knowledge 1: Pam Beesly
The ``will they or wo n't they ''tension between Jim and Pam is a strong storyline in the early episodes of The Office, encompassing much of Seasons 1 to 3. In the opener of Season 4, the two characters are revealed to be dating, and as such, other character romances, such as the romance between fellow co-workers Dwight Schrute and Angela Martin, begin to move more toward the forefront of episodes. In Season 6, Jim and Pam are married in the season's 4th and 5th episodes (hour long), a feat considered noteworthy by many television critics, as bringing together the two lead love interests in a television series is often thought to be a risky venture. Their child is born in the second half of the season, during another hour long,`` The Delivery''. Pam and Jim's second child is born during season 8. In season 9, their marriage becomes strained when Jim takes up a second job in Philadelphia. They ultimately decide to leave Dunder Mifflin together so Jim can pursue his dream job. [SEP] Knowledge 2: Jim Halpert
In ``The Merger '', Jim's and Pam's reunion is awkward. Pam is overjoyed, but Jim is clearly uncomfortable. He lets Pam know that he is seeing someone, and gradually Karen is introduced as his girlfriend. As Jim settles back in at Scranton, he uses his promotion as an excuse to avoid his old interactions and pranks with Pam, claiming that pulling pranks is not appropriate for his position. However, in time, Jim does return to his old ways, especially targeting Andy Bernard, a Stamford transfer, and Dwight.
Knowledge 1: Pam Beesly
The ``will they or wo n't they ''tension between Jim and Pam is a strong storyline in the early episodes of The Office, encompassing much of Seasons 1 to 3. In the opener of Season 4, the two characters are revealed to be dating, and as such, other character romances, such as the romance between fellow co-workers Dwight Schrute and Angela Martin, begin to move more toward the forefront of episodes. In Season 6, Jim and Pam are married in the season's 4th and 5th episodes (hour long), a feat considered noteworthy by many television critics, as bringing together the two lead love interests in a television series is often thought to be a risky venture. Their child is born in the second half of the season, during another hour long,`` The Delivery''. Pam and Jim's second child is born during season 8. In season 9, their marriage becomes strained when Jim takes up a second job in Philadelphia. They ultimately decide to leave Dunder Mifflin together so Jim can pursue his dream job. [SEP] Knowledge 2: The Delivery (The Office)
Pam's breastfeeding does not go well, and though a male lactation consultant (Lee Kirk, Jenna Fischer's husband, and at that time Jenna's fiance) is summoned to provide apparently successful coaching, Cecelia still fails to ``latch ''properly. Against the advice of the nurse, Jim and Pam opt to have Cecelia spend the night with them instead of in the nursery, and they are kept up long hours tending to her. A sleep - deprived Pam accidentally nurses a baby that belongs to a new mom (Melissa Rauch) in the same hospital room. As Jim and Pam get ready to leave the hospital, Pam manages to breast feed Cecelia while Jim gets the car (which is littered with parking tickets, thanks to Michael parking the car in an ambulance only zone).
Knowledge 1: Pam Beesly
Jim and Pam marry early in the season, at Niagara Falls, during the highly anticipated, hour long episode, ``Niagara ''. The ending of the episode, in which their co-workers dance down the aisle, is an imitation of a viral YouTube video -- JK Wedding Entrance Dance. Following the wedding, a multi-episode story arc begins in which it is revealed that Michael hooked up with Pam's mother the night of the wedding. The two break up during`` Double Date'', an episode that ends with Pam slapping Michael in response to his actions. [SEP] Knowledge 2: Jim Halpert
In ``The Merger '', Jim's and Pam's reunion is awkward. Pam is overjoyed, but Jim is clearly uncomfortable. He lets Pam know that he is seeing someone, and gradually Karen is introduced as his girlfriend. As Jim settles back in at Scranton, he uses his promotion as an excuse to avoid his old interactions and pranks with Pam, claiming that pulling pranks is not appropriate for his position. However, in time, Jim does return to his old ways, especially targeting Andy Bernard, a Stamford transfer, and Dwight.

Answer: during the highly anticipated, hour long episode, ``Niagara ''