Annie Walker (Kristen Wiig) is a single woman in her late 30s. Following the failure of her bakery, she lost her boyfriend and her savings, forcing her to take a job as a sales clerk in a jewelry store and to share an apartment with an obnoxious roommate Gil (Matt Lucas) and his sister Brynn (Rebel Wilson). Her business's failure was so painful that she has given up baking entirely. She has a no-strings-attached sexual relationship with the self-absorbed Ted (Jon Hamm) but hopes for something more from him. Her best friend, Lillian (Maya Rudolph), is virtually her only source of happiness.Lillian becomes engaged and asks Annie to be her Maid of Honor. At the engagement party, Annie meets Lillian's bridesmaids: cynical cousin Rita (Wendi McLendon-Covey); idealistic friend Becca (Ellie Kemper); the groom's raunchy sister Megan (Melissa McCarthy); and Helen (Rose Byrne), the rich and beautiful wife of the groom's boss. Helen and Annie, who are jealous of each other's friendship with Lillian, take an instant dislike to each other, but Lillian persuades them to spend time together.Annie takes Lillian and the bridesmaids to a Brazilian steak restaurant for lunch before going to a chic bridal shop. However, Helen must use her influence to gain entry to the shop because Annie didn't make a reservation. While trying on gowns, the whole partyâ with the exception of Helen, who chose not to eat before the fitting âbecomes sick from food poisoning. Later, Annie's suggestion of a bachelorette party at Lillian's parents' lake house is overruled in favor of a trip to Las Vegas planned by Helen. Worried about her finances and too proud to accept a ticket paid for by Helen, Annie books a ticket in coach although the rest of the party flies first-class. However, the trip is cut short by an outburst from Annie, who had accepted a sedative from Helen because of her fear of flying. The plane makes an emergency landing in Casper, Wyoming; and the party takes a bus back home. Annie apologizes, but Lillian decides she wants Helen to take over planning the shower and the wedding.Annie continues to hope for a relationship with Ted, but Nathan Rhodes (Chris O'Dowd), a friendly State Patrol officer who had earlier let her off without a ticket for broken tail lights, begins flirting with her. Nathan encourages her to open a new bakery, but Annie refuses. Following a night together, Nathan buys baking supplies for Annie to start baking again. Offended and overwhelmed, Annie leaves. Annie is later fired for being rude to a customer and kicked out of her apartment by her roommates, forcing her to move in with her mother (Jill Clayburgh, in her final film appearance).Annie travels to Helen's home in Chicago for the bridal shower, which has become a Parisian-themed event, an idea that Annie previously came up with but Helen turned down. Helen also upstages Annie's heartfelt, handmade shower gift by giving Lillian a trip to Paris, an idea Helen stole from Annie. Enraged that Helen has taken credit for the Parisian theme, Annie throws a tantrum. Lillian kicks her out of the shower and the wedding. On her way home, Annie is involved in a car accident due to her still-broken tail lights, but the other driver flees the scene. Nathan is the responding officer, and he admonishes her for not fixing her tail lights and taking responsibility for her life. He storms off when Ted arrives to give Annie a ride. On the ride home, Ted asks Annie to perform oral sex on him. Angered, she breaks off the relationship and walks home.Throughout the next several days, Annie becomes reclusive, refusing to leave her mother's house and obsessively watching television. Eventually, Megan arrives and gives Annie a pep talk, telling Annie that she must stop blaming the world for her problems and take control of her life. Annie realizes her errors and begins to repair her life, beginning to bake again and getting her car fixed. She tries to make amends with Nathan, but he ignores her. On the day of the wedding, Helen appears at Annie's doorstep distraught; Lillian has disappeared, and Helen begs for Annie's help in finding her. While driving, Helen apologizes to Annie and opens up to her, revealing that people only involve her in their lives because she is good at planning events, but she does not have any true female friends, leading to a reconciliation between them. The two enlist Nathan to help, and he grudgingly agrees. The group finds Lillian at her own apartment, discovering that she ran from her wedding because of Helen's extravagant planning and from fear of leaving her life in Milwaukee. After reconciling, Annie helps Lillian prepare for her wedding.Annie resumes her place as Maid of Honor. After the wedding, which Annie agrees with Helen is "perfect", Helen again apologizes to Annie and states her hope that they can be friends in the future. Realizing that Annie and Nathan were falling in love, Helen also arranged for him to pick up Annie after the wedding. Nathan and Annie reconcile and the pair ride away in his police car.
Output: Question: Who does Annie have a no-strings-attached sexual relationship with?, Answer: Ted