Question: When did the Industrial Revolution end in the country the duke of York came back to?

full_context: Document 1: 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 2: 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 3: Industrial Revolution: The Industrial Revolution was the transition to new manufacturing processes in the period from about 1760 to sometime between 1820 and 1840. This transition included going from hand production methods to machines, new chemical manufacturing and iron production processes, the increasing use of steam power, the development of machine tools and the rise of the factory system.
Document 4: 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 5: Life in Great Britain during the Industrial Revolution: Life in Great Britain during the Industrial Revolution underwent vast social and economic changes, the result of developments in mechanised working methods, and the introduction of the factory system and the steam engine. The Industrial Revolution began in Great Britain about 1760, continuing through to the early 19th century. The lives of large sections of the population of Great Britain underwent massive changes during the Industrial Revolution. Work became more regimented and disciplined and began to take place outside the home. A movement of the population to the cities from the countryside produced dramatic changes in lifestyle.
Document 6: 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 7: Industrial Revolution: The precise start and end of the Industrial Revolution is still debated among historians, as is the pace of economic and social changes. Eric Hobsbawm held that the Industrial Revolution began in Britain in the 1780s and was not fully felt until the 1830s or 1840s, while T.S. Ashton held that it occurred roughly between 1760 and 1830. Rapid industrialization first began in Britain, starting with mechanized spinning in the 1780s, with high rates of growth in steam power and iron production occurring after 1800. Mechanized textile production spread from Great Britain to continental Europe and the United States in the early 19th century, with important centres of textiles, iron and coal emerging in Belgium and the United States and later textiles in France.
Document 8: Textile manufacture during the British Industrial Revolution: Textile manufacture during the Industrial Revolution in Britain was centred in south Lancashire and the towns on both sides of the Pennines. In Germany it was concentrated in the Wupper Valley, Ruhr Region and Upper Silesia, while in the United States it was in New England. The four key drivers of the Industrial Revolution were textile manufacturing, iron founding, steam power and cheap labour.
Document 9: 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 10: Modern history: Engineering achievements of the revolution ranged from electrification to developments in materials science. The advancements made a great contribution to the quality of life. In the first revolution, Lewis Paul was the original inventor of roller spinning, the basis of the water frame for spinning cotton in a cotton mill. Matthew Boulton and James Watt's improvements to the steam engine were fundamental to the changes brought by the Industrial Revolution in both the Kingdom of Great Britain and the world.
Document 11: 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.
Document 12: 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 13: 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 14: 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 15: 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.
ground_truth: sometime between 1820 and 1840
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 the industrial revolution end in England Answer: sometime between 1820 and 1840