Detailed Instructions: In this task, you are given a set of context paragraphs, some supporting facts and an answer of a question. Your task is to generate question for given answer based on set of context paragraphs, supporting facts and an answer.
Problem:Context_1 : 1600 Pennsylvania Avenue is an MSNBC television program hosted by David Shuster that ended in 2009. The show is a panel discussion of news and trends in American politics among the panelists and anchor. It is a continuation of the show Race for the White House, which was originally hosted by David Gregory and aired in the same time slot from March to November 2008. Shuster became the host of the show when Gregory became moderator of NBC's "Meet the Press". Context_2 : David Gregory (20 December 1625 1720) was a Scottish physician and inventor. His surname is sometimes spelt as Gregorie, the original Scottish spelling. He inherited Kinnairdy Castle in 1664. Three of his twenty-nine children became mathematics professors. He is credited with inventing a military cannon that Isaac Newton described as "being destructive to the human species". Copies and details of the model no longer exist. Gregory's use of a barometer to predict farming-related weather conditions led him to be accused of witchcraft by Presbyterian ministers from Aberdeen, although he was never convicted. Context_3 : David Gregory Phillips is a fictional character on the CBS crime drama "", portrayed by David Berman, who also serves as head researcher for the series. From Season 10 onwards David Berman has been credited in the opening titles. Context_4 : Plague Town is a 2008 American horror film directed by David Gregory and written by David Gregory and John Cregan. Context_5 : David Gregory-Kumar (born David Gregory) is a news correspondent for BBC Midlands Today, covering the English midlands. He is the science and environmental correspondent. Context_6 : David Gregory Cressman (born January 2, 1950 in Kitchener, Ontario) is a retired Canadian ice hockey left winger. He played 85 games in the NHL for the Minnesota North Stars over the 197475 and 197576 NHL seasons. Context_7 : Kinnairdy Castle is a tower house, having five storeys and a garret, two miles south of Aberchirder, Aberdeenshire, Scotland. The alternative name is Old Kinnairdy. Context_8 : David Gregory is an American author of Christian fiction. David is a native of Texas. Context_9 : David Gregory "Dave" Smith (born 24 July 1955) is a retired male race walker from Australia, who represented his native country at two consecutive Summer Olympics, starting in 1980 (Moscow). His best Olympic result was finishing in tenth place in the men's 20km race at the 1984 Summer Olympics. Context_10 : Newton's minimal resistance problem is a problem of finding a solid of revolution which experiences a minimum resistance when it moves through the homogeneous fluid with constant velocity in the direction of the axis of revolution, named after Isaac Newton, who studied the problem in 1685 and published in 1687 in his Principia Mathematica. This problem is considered as one of the first problems solved in the calculus of variations, which appeared even before the brachistochrone problem. Newton published the solution in Principia Mathematica without his derivation and David Gregory was the first person who approached Newton and persuaded him to write an analysis for him. Then the derivation were shared to his students and peers by Gregory. fact_1 : He inherited Kinnairdy Castle in 1664. fact_2 : Kinnairdy Castle is a tower house, having five storeys and a garret, two miles south of Aberchirder, Aberdeenshire, Scotland. Answer: five
Solution:
The castle David Gregory inherited in 1664 has how many storeys?