instruction:
In this task, you are given a short story consisting of exactly 5 sentences where the second sentence is missing. You are given a candidate for the second sentence and you need to identify if the given sentence connects the first sentence with the rest of the story. Indicate your answer by "Yes" if it connects, otherwise "No". Do not generate anything else apart from "Yes" or "No". The given sentence is incorrect if it changes the subsequent storyline, so that at least one of the three subsequent sentences form a consistent story.
question:
Sentence 1: Megan wanted to make an apple pie.
Sentence 3: She inspected the tree for any good looking apples
Sentence 4: Most were duds, but there were a few good ones
Sentence 5: Using her home grown apples she made her pie
Given Sentence 2: It occurred to her that she had an apple tree in her yard.
answer:
Yes

question:
Sentence 1: Perry had a very comfortable hat.
Sentence 3: He had to buy a new hat
Sentence 4: Perry spent a very long time finding the perfect hat
Sentence 5: Finally, Perry found the perfect hat
Given Sentence 2: His brother wanted to borrow the movie.
answer:
No

question:
Sentence 1: Shelby was under pressure from studying too hard for her finals.
Sentence 3: Shelby finally took her final exams
Sentence 4: She was less stressed after the exams
Sentence 5: Her headaches subsided
Given Sentence 2: She worked at a pizzeria, an informal place.
answer:
No