Question: At which junction does the motorway terminate which has junction 36 in the south west corner of Preston Patrick?

Context paragraphs:
A5117 road: The A5117 is a road in Cheshire, England.  It runs between Shotwick ( ) and Helsby ( ) and connects the A550 at Woodbank to the M56.  As such it forms a northerly bypass to Chester and a shorter route between the North West and North Wales than the A55.  The road is dualled west of the M56.  There is roundabout with the A540 and at Dunkirk at the western terminus of the M56.  East of the junction the road is single carriageway and crosses the A41 by way of a roundabout at Backford Cross.  The A5117 intersects the M53 at Junction 10.  This junction is just east of Cheshire Oaks Designer Outlet.  The road then continues almost parallel to the M56, which it intersects at Junction 14, at which there is a Motorway service area.  The road then continues south east to terminate where it joins the A56 at Helsby.

Preston Patrick: Preston Patrick is a village and civil parish in South Lakeland, Cumbria, England.  It has junction 36 of the M6 motorway in its south west corner and extends north east on both sides of the motorway until just beyond the B2564 road.  In the 2011 census its population was reported to be 426.  The neighbouring parishes are Old Hutton and Holmescales to the north, Lupton to the east, Beetham to the south and Preston Richard to the west.

Frazer Road: Frazer Road (Hindi: फ्रेज़र रोड ; officially Mazharul Haque Path ) is a mixed residential-cum-commercial neighbourhood in Patna.  This is the road most frequently heard after coming out from the Patna Junction as It connect Patna Junction to Gandhi Maidan Marg - the two major hubs in the city.  It emerges in the South West Corner of Gandhi Maidan.  It merges with Gandhi Maidan Marg which takes a full circle of the Gandhi Maidan.  Fraser Road passes through Dakbangla Chauraha, which is an important crossing in the city.  The area around Frazer Road, including New Dak Bangla Road, Exhibition Road, and S P Verma Road have big brands names in marketing and covers all type of shops.  Frazer Road is a location for hotels, restaurants, bars, and high-street stores in the capital of an Indian state of Bihar.  The area is served by Kotwali PS under Patna Police.

M5 motorway: The M5 is a motorway in England linking the Midlands and the South West.  It runs from Junction 8 of the M6 at West Bromwich near Birmingham to Exeter in Devon.  Heading south-west, the M5 runs east of West Bromwich and west of Birmingham through Sandwell Valley.  It continues past Bromsgrove (and from Birmingham and Bromsgrove is part of the Birmingham Motorway Box), Droitwich Spa, Worcester, Tewkesbury, Cheltenham, Gloucester, Bristol, Weston-super-Mare, Bridgwater and Taunton on its way to Exeter, ending at Junction 31.  It is the primary gateway to South West England.  Congestion is common during the summer holidays, on Friday afternoons, and school and bank holidays on the section south of the M4.

M6 motorway: The M6 motorway runs from junction 19 of the M1 at the Catthorpe Interchange, near Rugby via Birmingham then heads north, passing Stoke-on-Trent, Liverpool, Manchester, Preston, Lancaster, Carlisle and terminating at the Gretna junction (J45).  Here, just short of the Scottish border it becomes the A74(M) which continues to Glasgow as the M74.

Flinders Chase National Park: Flinders Chase National Park is a protected area in the Australian state of South Australia located at the west end of Kangaroo Island about 177 km west-south west of the state capital of Adelaide and 110 km west of the municipal seat of Kingscote.  It is a sanctuary for endangered species and home to a few geological phenomena.  It was the second national park to be declared in South Australia.  It consists of three sections - an area of coastal landscapes around Cape du Couedic in the south west corner of the island, the Gosse Lands in the centre of the west end of the island and the former Cape Borda Lightstation reserve in the north west corner of the island.

A590 road: The A590 is a trunk road in southern Cumbria, in the north-west of England.  It runs north-east to south-west from M6 junction 36, through the towns of Ulverston and Barrow-in-Furness to terminate at Vickerstown on Walney Island.  The road is a mixture of dual carriageway and single carriageway, with the section east of Low Newton, Cumbria to the M6 being mainly dual.  Further dual sections are south of Newby Bridge, south of Greenodd and south of Ulverston.  The road is the main route for tourists entering the southern Lake District.  It has often humorously been described as "the longest cul-de-sac in the world".

West Port, Edinburgh: The West Port is a street in Edinburgh's Old Town, Scotland, located just south of Edinburgh Castle.  It runs from Main Point (the junction of Bread Street, Lauriston Street, East Fountainbridge and High Riggs) down to the south west corner of the Grassmarket.  Its name derives from the fact it sloped up from the town gate named the "West Port," which was the only westwards exit from the city when the city walls stood, allowing passage through the Flodden Wall.  The port itself was demolished in 1786.

Listed buildings in Preston Patrick: Preston Patrick is a civil parish in the South Lakeland District of Cumbria, England.  It contains 24 listed buildings that are recorded in the National Heritage List for England.  Of these, one is listed at Grade II*, the middle of the three grades, and the others are at Grade II, the lowest grade.  The parish contains the villages of Preston Patrick and Crooklands, and is otherwise mainly rural.  The Lancaster Canal passes through the parish, and the listed buildings associated with it are bridges, an aqueduct, and milestones.  The other listed buildings consist of houses and associated structures, farmhouses, farm buildings, boundary stones, milestones on roads, and a church.

M3 motorway (Great Britain): The M3 is a motorway that runs from Sunbury-on-Thames, Surrey, to Southampton, Hampshire, a distance of approximately 59 mi .  Along with the A316, the M3 provides the main artery into South West London, as well as providing access to major towns and cities along its route, which include the Aldershot Urban Area, Basingstoke, Winchester and Southampton.  From Junction 9 (A34) near Winchester, to Junction 14 (M27) on the northern fringe of Southampton, the M3 forms the southerly part of the unsigned E05.  It was constructed as a dual three-lane motorway for most of its length, except for the two-lane section between Junctions 8 (A303) and 9.  The motorway was opened in phases, beginning with the first section (Junction 3 to 8) in 1971.  It was eventually completed in 1995 on completion of the Junction 10 to 12 section, which faced widespread opposition because of its route through Twyford Down: numerous road protests were held during construction, which ultimately delayed its opening.  Since then, the motorway has become a major artery to the South Coast, becoming a popular tourist route.  Consequently, the M3 faces regular delays and congestion on its busiest sections during rush hours and seasonal periods.  The Junctions 2 to 4A section is currently being upgraded to a Smart Motorway, which will turn the hard shoulder into a fourth lane to provide extra capacity.

Supporting paragraphs: Preston Patrick M6 motorway
Answer: Gretna junction