Question: When did the country where the Duke of York returned to go to war with Spain?

full_context: Document 1: Dutch colonization of the Americas: In 1664, an English naval expedition ordered by Prince James, Duke of York and of Albany (later King James II & VII) sailed in the harbor at New Amsterdam, threatening to attack. Being greatly outnumbered, Director - General Peter Stuyvesant surrendered after negotiating favorable articles of capitulation. The Province then took a new name, New York (from James's English title). Fort Orange was renamed Fort Albany (from James's Scottish title). The region between the lower Hudson and the Delaware was deeded to proprietors and called New Jersey.
Document 2: The Fifteen Decisive Battles of the World: Defeat of the Spanish Armada, AD 1588 Excerpt: ``The England of our own days is so strong, and the Spain of our own days is so feeble, that it is not easy, without some reflection and care, to comprehend the full extent of the peril which England then ran from the power and the ambition of Spain, or to appreciate the importance of that crisis in the history of the world. ''
Document 3: Nine Years' War (Ireland): The war against O'Neill and his allies was the largest conflict fought by England in the Elizabethan era. At the height of the conflict (1600–1601) more than 18,000 soldiers were fighting in the English army in Ireland. By contrast, the English army assisting the Dutch during the Eighty Years' War was never more than 12,000 strong at any one time.
Document 4: Anglo-Spanish War (1585–1604): The Anglo - Spanish War (1585 -- 1604) was an intermittent conflict between the kingdoms of Spain and England that was never formally declared. The war was punctuated by widely separated battles, and began with England's military expedition in 1585 to the Netherlands under the command of the Earl of Leicester in support of the resistance of the States General to Spanish Habsburg rule.
Document 5: England: England has a strong sporting heritage, and during the 19th century codified many sports that are now played around the world. Sports originating in England include association football, cricket, rugby union, rugby league, tennis, boxing, badminton, squash, rounders, hockey, snooker, billiards, darts, table tennis, bowls, netball, thoroughbred horseracing, greyhound racing and fox hunting. It has helped the development of golf, sailing and Formula One.
Document 6: Pug: Pugs were brought from China to Europe in the sixteenth century and were popularized in Western Europe by the House of Orange of the Netherlands, and the House of Stuart. In the United Kingdom, in the nineteenth century, Queen Victoria developed a passion for pugs which she passed on to other members of the Royal family.
Document 7: British Empire: Peace between England and the Netherlands in 1688 meant that the two countries entered the Nine Years' War as allies, but the conflict—waged in Europe and overseas between France, Spain and the Anglo-Dutch alliance—left the English a stronger colonial power than the Dutch, who were forced to devote a larger proportion of their military budget on the costly land war in Europe. The 18th century saw England (after 1707, Britain) rise to be the world's dominant colonial power, and France becoming its main rival on the imperial stage.
Document 8: Huguenots: Stadtholder William III of Orange, who later became King of England, emerged as the strongest opponent of king Louis XIV after the French attacked the Dutch Republic in 1672. William formed the League of Augsburg as a coalition to oppose Louis and the French state. Consequently, many Huguenots considered the wealthy and Calvinist Dutch Republic, which led the opposition to Louis XIV, as the most attractive country for exile after the revocation of the Edict of Nantes. They also found many French-speaking Calvinist churches there.
Document 9: Eighty Years' War: The Eighty Years' War (; ) or Dutch War of Independence (1568–1648) was a revolt of the Seventeen Provinces of what are today the Netherlands, Belgium, and Luxembourg against Philip II of Spain, the sovereign of the Habsburg Netherlands. After the initial stages, Philip II deployed his armies and regained control over most of the rebelling provinces. Under the leadership of the exiled William the Silent, the northern provinces continued their resistance. They eventually were able to oust the Habsburg armies, and in 1581 they established the Republic of the Seven United Netherlands. The war continued in other areas, although the heartland of the republic was no longer threatened; this included the beginnings of the Dutch Colonial Empire, which at the time were conceived as carrying overseas the war with Spain. The Dutch Republic was recognized by Spain and the major European powers in 1609 at the start of the Twelve Years' Truce. Hostilities broke out again around 1619, as part of the broader Thirty Years' War. An end was reached in 1648 with the Peace of Münster (a treaty part of the Peace of Westphalia), when the Dutch Republic was definitively recognised as an independent country no longer part of the Holy Roman Empire. The Peace of Münster is sometimes considered the beginning of the Dutch Golden Age.
Document 10: Ice skating: Ice skating was brought to Britain from the Netherlands, where James II was briefly exiled in the 17th century. When he returned to England, this 'new' sport was introduced to the British aristocracy, and was soon enjoyed by people from all walks of life.
Document 11: New Amsterdam: New Amsterdam was renamed New York on September 8, 1664, in honor of the Duke of York (later James II of England), in whose name the English had captured it. After the Second Anglo - Dutch War of 1665 -- 1667, England and the United Provinces of the Netherlands agreed to the status quo in the Treaty of Breda. The English kept the island of Manhattan, the Dutch giving up their claim to the town and the rest of the colony, while the English formally abandoned Surinam in South America, and the island of Run in the East Indies to the Dutch, confirming their control of the valuable Spice Islands. Today much of what was once New Amsterdam is New York City.
Document 12: History of New York City (prehistory–1664): The history of New York City has been influenced by the prehistoric geological formation during the last glacial period of the territory that is today New York City. The area was long inhabited by the Lenape; after initial European exploration in the 16th century, the Dutch established New Amsterdam in 1626. In 1664, the English conquered the area and renamed it New York.
Document 13: New Amsterdam: On August 27, 1664, while England and the Dutch Republic were at peace, four English frigates sailed into New Amsterdam's harbor and demanded New Netherland's surrender, whereupon New Netherland was provisionally ceded by Stuyvesant. On September 6, Stuyvesant sent lawyer Johannes De Decker and five other delegates to sign the official Articles of Capitulation. This was swiftly followed by the Second Anglo - Dutch War, between England and the Dutch Republic. In June 1665, New Amsterdam was reincorporated under English law as New York City, named after the Duke of York (later King James II). He was the brother of the English King Charles II, who had been granted the lands.
Document 14: New York City: In 1664, Peter Stuyvesant, the Director-General of the colony of New Netherland, surrendered New Amsterdam to the English without bloodshed. The English promptly renamed the fledgling city "New York" after the Duke of York (later King James II).
Document 15: History of field hockey: A game called hockey was played in English public schools in the early 19th century. Lord Lytton wrote in 1853 that On the common some young men were playing at hockey. That old - fashioned game, now very uncommon in England, except at schools... Hockey's popularity increased with that of other team games. A version of the game played in south - east London was rougher than the modern version, played on a very large field (247m by 64m), and used a cube of black rubber and rough planed sticks. The modern game was developed on the other side of London by Middlesex cricket clubs, especially Teddington Hockey Club. The members of these clubs were looking for winter exercise, but did not particularly care for football. In 1870, members of the Teddington cricket club, who had recently moved to play in Bushy Park, were looking for a winter activity. They experimented with a 'stick' game, based loosely on the rules of association football. Teddington played the game on the smooth outfield of their cricket pitch and used a cricket ball, so allowing smooth and predictable motion. By 1874 they had begun to draw up rules for their game, including banning the raising of the stick above shoulder height and stipulating that a shot at goal must take place within the circle in front of it. An association was formed in 1875, which dissolved after seven years, but in 1886 the Hockey Association was formed by seven London clubs and representatives from Trinity College, Cambridge. Blackheath were one of the founder members, but refused to accept the rules drawn up by the other clubs and left to found the National Hockey Union. The Union failed, but the Association grew rapidly.
ground_truth: 1585 -- 1604
sub_queries: What was the regnal name of the Duke of York? Answer: James II
What location did James II come back to? Answer: England
when did England go to war with spain Answer: 1585 -- 1604