input: After the 1986 People Power Revolution, Duterte was appointed officer-in-charge vice mayor by president Corazon Aquino. In 1988, he ran for mayor and won, serving until 1998. He set a precedent by designating deputy mayors that represented the Lumad and Moro peoples in the city government, which was later copied in other parts of the Philippines. In 1998, because he was term-limited to run again for mayor, he ran for the House of Representatives and won as Congressman of the 1st District of Davao City (under the Laban ng Makabayang Masang Pilipino coalition). In 2001, he ran again for mayor in Davao and was again elected for his fourth term. He was re-elected in 2004 and in 2007.  In 2013, Davao City sent rescue and medical teams to Tacloban to give aid to the victims of Typhoon Haiyan, locally known in the country as Typhoon Yolanda. Financial assistance was also given to Bohol and Cebu for the earthquake victims.  In 2010, he was elected vice mayor, succeeding his daughter, Sara Duterte-Carpio, who was elected as mayor. He has been offered the Interior Secretary post 4 times, by presidents Fidel V. Ramos, Joseph Ejercito Estrada, Gloria Macapagal-Arroyo, and Benigno S. Aquino III but rejected all of them.  Duterte also passed the city's Women Development Code, which aims "to uphold the rights of women and the belief in their worth and dignity as human beings". Duterte banned swimsuit competitions in beauty pageants in Davao City. Duterte also gained prominence for supporting the first-ever Gawad Kalinga Village inside a jail facility which is only located in Davao City. It is a home-type jail with ten cottages built inside the compound, which now serve as home for women inmates.

Answer this question "What did the Women Developement Code entail?"
output: Duterte banned swimsuit competitions in beauty pageants in Davao City.

input: Alydar was made the 6-5 favorite for Kentucky Derby, with Affirmed the second choice at 9-5 and undefeated Sensitive Prince the third choice at 9-2. At the start of the Kentucky Derby, Sensitive Prince took the early lead as Affirmed ran in third through the early stages, while Alydar stayed far back. Affirmed made a strong move for the lead on the far turn, put away a challenge by Wood Memorial winner Believe It, and held off Alydar's fast-closing charge to win by 1 1/2 lengths. Affirmed now had a 5-2 edge in the series.  In the Preakness Stakes, Affirmed set the pace. Alydar made his big move on the far turn, at the same point in the race where Affirmed made his winning move in the Derby. Affirmed held a short lead entering the stretch and held it to defeat Alydar by a neck.  Alydar's partisans assumed that the 1 1/2 mile distance of the Belmont, two furlongs longer than the Derby and 5/16 of a mile longer than the Preakness Stakes, would favor Alydar with his finishing style and staying pedigree, and he would deny Affirmed the Triple Crown. Trainer Veitch removed Alydar's blinkers for the Belmont, saying that if Alydar got a better look at Affirmed, maybe he would get by him.  In the Belmont, Affirmed led and set a very slow pace, going the first quarter mile in 25 seconds and the half in 50 seconds. Alydar's jockey, Jorge Velasquez, put Alydar close to the pace, and moved alongside Affirmed with more than seven furlongs to go. For more than six furlongs (half the distance of the race), the colts raced neck and neck, pulling away from the rest of the field. Alydar got his nose in front at mid-stretch, but just as Affirmed appeared to tire, Cauthen went to a left-handed whip, something he had never done before in his eight rides on Affirmed. Affirmed won by a nose to become racing's 11th (and last winner for 37 years until American Pharoah won in 2015), Triple Crown winner. After the third slowest start in Belmont Stakes history, they raced the fastest last mile in Belmont Stakes history, 3/4 in 1:14, the mile in 1:37 2/5 and finished in 2:26 4/5. It was, at the time, the third fastest Belmont ever, behind Secretariat and Gallant Man.  His Triple Crown win set two records: the shortest and longest gaps between the previous and next Triple Crown winners. Affirmed's win in 1978 was the first time the Triple Crown had been won in consecutive years (Seattle Slew won in 1977). Affirmed's win also marked the start of the longest gap until the next Triple Crown winner, with American Pharoah's win on June 6, 2015 occurring 37 years later.

Answer this question "Which horses did he beat when he won the crown?"
output: Secretariat and Gallant Man.

input: Maines's first commercially released work was background vocals on Pat Green's debut album, Dancehall Dreamer, produced by her father Lloyd Maines and released in 1995. At the end of 1995, at age 21, Maines joined the all-female country music band, the Dixie Chicks, which had been performing since 1989, but which had been unsuccessful in gaining more than local attention. Maines replaced founding lead singer Laura Lynch. She plays guitar and bass in concert in the band.  Maines co-wrote four tracks for the Dixie Chicks' first three albums, including the Billboard Hot Country Singles & Tracks chart number one hit "Without You" on Fly. Maines was a primary songwriter on all 14 tracks of the band's 2006 album Taking the Long Way which peaked on the Billboard 200 chart at No. 1. Taking the Long Way has the Billboard Hot 100 single "Not Ready to Make Nice", (Maines, Strayer, Erwin, Wilson) hitting No. 4 and for which the band won the songwriting Grammy Award, for Song of the Year. Maines considers the songwriting she did for Taking the Long Way "pure therapy" after the controversy that ensued over a comment Maines made from the stage in London that criticized U.S. President George W. Bush. "Everything felt more personal this time", Maines said about the album, "there's just more maturity, depth, intelligence. ... [These songs] feel more grown-up."  Maines collaborates with other musical artists, both as a member of the Dixie Chicks and an individual singer. The Dixie Chicks first worked with Sheryl Crow in 1999 while performing for the concert tour Lilith Fair. Since then, the Dixie Chicks have worked with Crow on her Sheryl Crow and Friends: Live from Central Park album, a Crow remixed version of "Landslide" performed by the Chicks, and the Dixie Chicks' song "Favorite Year" from Taking the Long Way. Maines has performed with artists including Pat Green, Charlie Robison, Yellowcard, Stevie Nicks, Patty Griffin, Neil Diamond, Eddie Vedder, Pete Yorn and Ben Harper.  Maines is a friend of Howard Stern and has made several appearances on his show.  On May 7, 2013, Maines released a solo album entitled Mother. This was Maines's first album since the Dixie Chicks hiatus started in 2007. The album was co-produced by Ben Harper. The album contains Maines's interpretation of several cover songs, including Pink Floyd's "Mother", Eddie Vedder's "Without You", and Jeff Buckley's "Lover, You Should've Come Over". She also sings about motherhood, feminism, and painful relationships.

Answer this question "How many shows did she do on that tour?"
output: