Input: Elam was a pre-Iranic ancient civilization located to the east of Mesopotamia. In the Old Elamite period , Elam consisted of kingdoms on the Iranian Plateau, centered in Anshan, and from the mid-2nd millennium BC, it was centered in Susa in the Khuzestan lowlands. Its culture played a crucial role in the Gutian Empire and especially during the Iranic Achaemenid dynasty that succeeded it. The Oxus civilization was a Bronze Age Central Asian culture dated to c.2300-1700 BC and centered on the upper Amu Darya . In the Early Bronze Age the culture of the Kopet Dag oases and Altyndepe developed a proto-urban society. This corresponds to level IV at Namazga-Tepe. Altyndepe was a major centre even then. Pottery was wheel-turned. Grapes were grown. The height of this urban development was reached in the Middle Bronze Age c.2300 BC, corresponding to level V at Namazga-Depe. This Bronze Age culture is called the Bactria-Margiana Archaeological Complex . The Kulli culture, similar to those of the Indus Valley Civilisation, was located in southern Balochistan c.2500-2000 BC. Agriculture was the economical base of this people. At several places dams were found, providing evidence for a highly developed water management system.

Question: How many places did Elam have their Kingdom?

Input: Hakon Sverresson appeared to have pacified the whole country, but died suddenly in 1204. His successor was the infant Guttorm, who himself died later the same year. The Birkebeiner knew of no other direct descendants of King Sverre and chose one of his nephews, Inge Bardson, as their new king. By then a revived Bagler party had formed in Denmark, taking another son of King Magnus Erlingsson, Erling Stonewall, as their king. Helped by King Valdemar II of Denmark, they launched an invasion of Norway in 1204, taking control of the Oslofjord-area. This second Bagler war lasted until 1208. When Erling Stonewall fell ill and died in 1207, he was succeeded as Bagler king by Philippus Simonsson, a nephew of King Inge Crouchback and bishop Nikolas of Oslo, and the war continued uninterrupted. The Bagler were strongest in the Oslofjord-area, while Trndelag was a stronghold of the Birkebeiner, but battles and ambushes took place throughout the country. In the end the bishops were able to negotiate a settlement between the two sides, confirmed at a meeting at Kvitsy in 1208. The Bagler king Philippus was to remain in control of eastern Norway but renounce the title of king, leaving the Birkebeiner King Inge nominally sole ruler of the country. In the event, Philippus continued to style himself king until his death, but peace between the Bagler and Birkebeiner was preserved until 1217.

Question: How many years did the war continue after Stonewall died?

Input: The Ravens lost their second straight game in a contest with the Carolina Panthers. The Panthers got on the board first with a 21-yard field goal by kicker John Kasay. Ravens quarterback Steve McNair was knocked out in the first quarter with a concussion, and backup Kyle Boller took over, connecting on a touchdown pass with Mark Clayton, on a pass intended for Derrick Mason that was tipped to Clayton. The Panthers responded when Drew Carter caught a 42-yard touchdown pass from Jake Delhomme, and Kasay kicked another field goal, this time from 31 yards. The Panthers went into halftime with a 13-7 lead. The third quarter was scoreless, and midway through the fourth quarter, Panthers kicker Kasay kicked his third field goal of the day from 21 yards out. Ravens wide receiver Clayton caught his second touchdown pass from Boller, again on a tipped pass, bringing the score to 16-14 Carolina. Panthers quarterback Delhomme continued his career day, this time throwing a 72-yard touchdown pass to wide receiver Steve Smith. Delhomme threw for a career-high 365 yards. Ravens tight end Todd Heap caught a 7-yard pass from Boller in the final minutes, but it wasn't enough as the Panthers extended their current winning streak to four games. The loss dropped the Ravens to 4-2, and 1-1 against NFC Opponents.

Question: How many points were the Panthers leading by at halftime?

Input: Trying to snap a five-game losing streak, the Rams stayed at home for a Week 13 interconference duel with the Miami Dolphins. The Rams would welcome back Steven Jackson to the lineup after weeks of sitting out with a thigh injury. Jackson gave the Rams a good enough boost to strike first with a first possession field goal by Josh Brown from 23 yards. Brown would kick a 51-yard field goal to give the Rams a 6-0 lead. In the second quarter, the Dolphins responded as RB Ronnie Brown got a 3-yard TD run. The Rams would answer with Brown making a 33-yard field goal, but Miami replied with kicker Dan Carpenter getting a 37-yard field goal. In the third quarter, the Dolphins increased their lead as Carpenter got a 47-yard field goal. In the fourth quarter, St. Louis tried to keep up as Brown made a 38-yard field goal, yet Miami answered right back with Carpenter nailing a 42-yard field goal. The Rams tried to come back, but a late-game interception shattered any hope of a comeback.

Question:
Who pulled ahead third quarter?