This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Q: Passage: Peck also received Oscar nominations for his roles in The Keys of the Kingdom (film) (1944), The Yearling (film) (1946), Gentlemans Agreement (1947) and Twelve OClock High (1949).  Other notable films in which he appeared include Spellbound (1945 film) (1945), The Gunfighter (1950), Roman Holiday (1953), Moby Dick (1956 film) (1956, and its Moby Dick (1998 miniseries)), The Big Country (1958), The Bravados (1958), Pork Chop Hill (1959), The Guns of Navarone (film) (1961), Cape Fear (1962 film) (1962, and its Cape Fear (1991 film)), How the West Was Won (film) (1962), The Omen (1976) and The Boys from Brazil (film) (1978). 
Question: How many films was Peck nominated for an Oscar before 1950? 
Answer type: Number 

A: 5.
****
Q: Passage: A global survey done by Pewglobal indicated that at (as of 2014) least 33 surveyed countries have a positive view (50% or above) of the United States. With the top ten most positive countries being Philippines (92%), Israel (84%), South Korea (82%), Kenya (80%), El Salvador (80%), Italy (78%), Ghana (77%), Vietnam (76%), Bangladesh (76%), and Tanzania (75%). While 10 surveyed countries have the most negative view (Below 50%) of the United States. With the countries being Egypt (10%), Jordan (12%), Pakistan (14%), Turkey (19%), Russia (23%), Palestinian Territories (30%), Greece (34%), Argentina (36%), Lebanon (41%), Tunisia (42%). Americans own view of the United States was viewed at 84%. International opinion about the US has often changed with different executive administrations. For example in 2009, the French public favored the United States when President Barack Obama (75% favorable) replaced President George W. Bush (42%). After President Donald Trump took the helm in 2017, French public opinion about the US fell from 63% to 46%. These trends were also seen in other European countries. 
Question: How many percent lower was France's public opinion of the United States after Trump took office? 
Answer type: Number 

A: 17.
****
Q: Passage: During the 9th century, Norway was divided between several local kings controlling their own fiefdoms. By the end of the century, King Harald Fairhair  managed, mainly due to the military superiority gained by his alliance with Sigurd Ladejarl of Nidaros, to subjugate these mini-kingdoms, and he created a unified Norwegian state. This alliance came apart after Harald's death. The jarls of Lade and various descendants of Harald Fairhair would spend the next century interlocked in feuds over power. As well as power politics, religion also played a part in these conflicts, as two of the descendants of Harald Fairhair, Hakon the Good and Olaf Tryggvason attempted to convert the then heathen Norwegians to Christianity. In the year 1000, Svein  and Erik  of Lade took control over Norway, being supported by the Danish King Svein. In 1015, Olaf Haraldsson, representing the descendants of Harald Fairhair, returned from one of his Viking trips and was immediately elected as King of Norway.  In June 1016, he won the Battle at Nesjar against the Jarls of Lade. Olav Haraldsson's success in becoming King of Norway was helped by the Danes being kept occupied with the ongoing fighting in England. In the year 1028, the Danish King Cnut the Great made an alliance with the Lades, and Olaf had to go into exile in Kievan Rus . In the year of 1029 the last Lade, Hakon Jarl, drowned and Olaf returned to Norway with his army to regain his throne and the Kingdom of Norway. 
Question: How many years after being elected King of Norway did Olaf Haraldsson win the Battle at Nesjar? 
Answer type: Number 

A:
1.
****