Problem: Background: Martina Hingis (born 30 September 1980) is a Swiss former professional tennis player who spent a total of 209 weeks as the singles world No. 1 and 90 weeks as doubles world No. 1, holding both No. 1 rankings simultaneously for 29 weeks. She won five Grand Slam singles titles, thirteen Grand Slam women's doubles titles, winning a calendar-year doubles Grand Slam in 1998, and seven Grand Slam mixed doubles titles; for a combined total of twenty-five major titles. In addition, she won the season-ending WTA Finals two times in singles and three times in doubles, and an Olympic silver medal.
Context: In 2001, Switzerland, with Hingis and Roger Federer on its team, won the Hopman Cup. Hingis didn't drop a set in any of her singles matches during the event, defeating Tamarine Tanasugarn, Nicole Pratt, Amanda Coetzer, and Monica Seles. Federer was later quoted as saying: "I learned a lot from her, especially the two years I was here - once as a hitting partner and once as a partner with Martina. Definitely she helped me to become the player I am today."  Hingis reached her fifth consecutive Australian Open final in 2001, defeating both of the Williams sisters en route, before losing to Jennifer Capriati. She briefly ended her coaching relationship with her mother Melanie early in the year but had a change of heart two months later just before the French Open. 2001 was her least successful year in several seasons, with only three tournament victories in total. She lost her No. 1 ranking for the last time (to Jennifer Capriati) on 14 October 2001. In that same month, Hingis underwent surgery on her right ankle.  Coming back from injury, Hingis won the Australian Open doubles final at the start of 2002 (again teaming with Anna Kournikova) and reached a sixth straight Australian Open final in singles, again facing Capriati. Hingis led by a set and 4-0 and had four match points but lost in three sets. In May 2002, she needed another ankle ligament operation, this time on her left ankle. After that, she continued to struggle with injuries and was not able to recapture her best form.  In February 2003, at the age of 22, Hingis announced her retirement from tennis, due to her injuries and being in pain. "I want to play tennis only for fun and concentrate more on horse riding and finish my studies." In several interviews, she has indicated she wishes to return to her home country and coach full-time.  During this segment of her tennis career, Hingis won 40 singles titles and 36 doubles events. She held the World No. 1 singles ranking for a total of 209 weeks (fifth most following Steffi Graf, Martina Navratilova (after whom she was named), Chris Evert, and Serena Williams). In 2005, Tennis magazine put her in 22nd place in its list of 40 Greatest Players of the TENNIS era.
Question: How long was she out with the injury?
Answer: 

Problem: Background: Canby was born in Piatt's Landing, Kentucky, to Israel T. and Elizabeth (Piatt) Canby. He attended Wabash College, but transferred to the United States Military Academy, from which he graduated in 1839. He was commissioned a second lieutenant in the 2nd U.S. Infantry and served as the regimental adjutant. Although often referred to as Edward Canby, a biographer has suggested that he was known as "Richard" during childhood and to some friends for most of his life.
Context: During his early career, Canby served in the Second Seminole War in Florida and saw combat during the Mexican-American War, where he received three brevet promotions, including to major for Contreras and Churubusco, and lieutenant colonel for Belen Gates. He also served at various posts, including Upstate New York and in the adjutant general's office in California from 1849 until 1851, covering the period of the territory's transition to statehood.  Against his wishes, he was assigned to what was supposed to be the civilian post of custodian of the California Archives from March 1850 until he left California in April 1851. The Archives included records of Spanish and Mexican governments in California, as well as Mission records and land titles. Evidently, Canby had some knowledge of the Spanish language, which was extremely useful as the government was trying to unravel land titles. (The Filson Historical Society in Louisville, Kentucky holds what appears to be a document written in Canby's hand in Spanish, in which he identifies himself as "Edwardo  [sic] Ricardo S. Canby.")  Canby served in Wyoming and Utah (then both part of the Utah Territory) during the Utah War (1857-1858). During this period, he served on the panel of judges for the court martial of Captain Henry Hopkins Sibley. Sibley was acquitted. Subsequently, Canby wrote an endorsement for a teepee-like army tent which Sibley had adapted from the American Indian style.  Both officers were later assigned to New Mexico, where in 1860 Canby coordinated a campaign against the Navajo, commanding Sibley in a futile attempt to capture and punish Navajo for "depredations" against the livestock of settlers. The campaign ended in frustration, with Canby and Sibley rarely sighting Navajo raiders. Usually they saw the Navajo at a distance and never got close to them.
Question: What was Canby's rank in the military?
Answer:
where he received three brevet promotions, including to major for Contreras and Churubusco, and lieutenant colonel for Belen Gates.