question: Joanna la Beltraneja, born in 1462, the first and only daughter of King Henry IV of Castile, was of Asturias. A rumour spread that Princess Joanna was not actually the daughter of King Henry but rather of Beltrán de la Cueva, the alleged lover of Queen Joan of Portugal. Joanna was thus nicknamed "la Beltraneja", as a mocking reference to her assumed father. Pressure from members of the nobility forced the King to strip her of the title and name his half-brother Alfonso as heir, in 1464. In 1465, a group of nobility assembled in Ávila and overthrew King Henry, replacing him with Alfonso. That led to a war that ended in 1468 with the death of the 14-year-old Alfonso. Henry IV regained the throne, but the title of heir became disputed between Joanna, his daughter, and Isabella, his half-sister. That was resolved via the Treaty of the Bulls of Guisando, which gave Isabella succession rights but restricted her marriage options. Isabella secretly married Ferdinand in 1469 at the age of 17, ignoring Henry IV's wishes. Gradually, the couple gained a larger number of supporters and obtained a papal bull sanctioning their marriage from Pope Sixtus IV in 1472 and gained the support of the powerful Mendoza family in 1473. When Henry IV died in December 1474, both candidates for the throne were proclaimed Queen of Castile by their respective supporters. Aware of their position of weakness against Isabella's supporters, Joanna's supporters proposed for the 43-year-old King Afonso V of Portugal, a widower for some 20 years, to marry Joanna, his niece, and assume the throne of Castile with her.
Answer this question: How many years after being named heir did Alfonso replace Henry on the throne?
answer: 1

question: In Week 1, on September 7, the Baltimore Ravens lost to the Cincinnati Bengals, 23-16. The next day, on September 8, 2014, TMZ released additional footage from an elevator camera showing Rice punching Palmer. The Baltimore Ravens terminated Rices contract as a result, and was later indefinitely suspended by the NFL. Although starting out 0-1 for two straight seasons and having received unwanted media attention for the Ray Rice incident, on September 11, 2014, the Ravens rallied back and beat the Pittsburgh Steelers 26-6, to improve to 1-1. In Week 12, the Ravens traveled down for an interconference battle with the New Orleans Saints, which the Ravens won 34-27, reaching a 4-0 sweep of the NFC south. In Week 16, the Ravens traveled to Houston to take on the Texans. In one of Joe Flaccos worst performances, the offense sputtered against the Houston defense and Flacco threw three interceptions, falling to the Texans 25-13. With their playoff chances and season hanging in the balance, the Ravens took on the Browns in Week 17 at home. After three quarters had gone by and down 10-3, Joe Flacco led the Ravens on a comeback scoring 17 unanswered points, winning 20-10. With the win, and the Kansas City Chiefs defeating the San Diego Chargers, the Ravens clinched their sixth playoff berth in seven seasons, and the first since winning Super Bowl XLVII.
Answer this question: How many points were scored in all in week 17 between the Ravens and the Browns?
answer: 30

question: Within days of Boleslaw's murder, Casimir III of Poland invaded the principality to save Polish merchants and Catholic residents from attacks in Lviv. In June 1340, Casimir returned with a larger army. After four weeks he reached an agreement with local nobles and their leader Dmytro Dedko: in return for their services, local nobles would enjoy protection from the Polish king. However, the agreement was short-lived. The data is sparse, but it seems that Galicia-Volhynia was divided between the Lithuanians  and local nobles . During the winter 1340-1341, the Golden Horde  attacked Poland and reached Lublin as a result of diminished tribute from the principality to the Mongol khan. The raid weakened Polish influence in the principality. Eufemija, Boleslaw's widow, was drowned in the Vistula in winter 1342 to keep her out of the succession disputes. Detko, who managed to play Poles, Lithuanians, and Mongols against each other, disappeared from written sources in 1344. The same year direct conflict between Poland and Lithuania renewed, but soon a peace treaty was signed: Volhynia was assigned to Liubartas and Galicia to Casimir.
Answer this question: How many nations did Detko manage to pit against each other?
answer:
3