Question: What Gothic revival mansion in Scotland was designed by William Wilkins, and rebuilt in 1881 by the 5th Earl of Rosebery?
Context: Woodchester Mansion is an unfinished, Gothic revival mansion house in Woodchester Park near Nympsfield in Woodchester, Gloucestershire, England.  It was formerly known as Spring Park. Cardiff Castle (Welsh: "Castell Caerdydd" ) is a medieval castle and Victorian Gothic revival mansion located in the city centre of Cardiff, Wales.  The original motte and bailey castle was built in the late 11th century by Norman invaders on top of a 3rd-century Roman fort.  The castle was commissioned either by William the Conqueror or by Robert Fitzhamon, and formed the heart of the medieval town of Cardiff and the Marcher Lord territory of Glamorgan.  In the 12th century the castle began to be rebuilt in stone, probably by Robert of Gloucester, with a shell keep and substantial defensive walls being erected.  Further work was conducted by Richard de Clare, 6th Earl of Gloucester, in the second half of the 13th century.  Cardiff Castle was repeatedly involved in the conflicts between the Anglo-Normans and the Welsh, being attacked several times in the 12th century, and stormed in 1404 during the revolt of Owain Glyndŵr. The Church of St Thomas, Thurstonland, West Yorkshire, England, is an Anglican church.  It is an Arts and Crafts building in Gothic Revival style, designed by James Mallinson and William Swinden Barber, and completed in 1870.  The building was funded by William Legge, 5th Earl of Dartmouth, and it was consecrated by Robert Bickersteth, Bishop of Ripon.  The total height of the tower and spire is 109 ft , and the nave contains an arch-braced hammerbeam roof. Barnbougle Castle is a much-altered tower house on the southern shore of the Firth of Forth, between Cramond and Queensferry, and within the parish of Dalmeny.  It lies within the Earl of Rosebery's estate, just northwest of Dalmeny House.  Although its history goes back to the 13th century, the present castle is the result of rebuilding in 1881 by the 5th Earl of Rosebery, who served as Prime Minister from 1894–1895. ] Quantock Lodge is a green-grey nineteenth-century Gothic revival mansion built by Henry Labouchere, 1st Baron Taunton (1798–1869), to the design of Henry Clutton.  It is built from Cockercombe tuff and is located near the hamlet of Aley, near the village of Over Stowey in the English county of Somerset.  The house was described by Pevsner as "A large rather dull Tudor house... Gothic Stables, a specially crazy Gothic Dovecote and a big Gothic Lodge on the Aisholt Road."  Quantock Lodge and its gatehouse are Listed Buildings. Ashe Cottage, also known as the Ely House, is a historic Carpenter Gothic house in Demopolis, Alabama.  It was built in 1832 and expanded and remodeled in the Gothic Revival style in 1858 by William Cincinnatus Ashe, a physician from North Carolina.  The cottage is a 1 ⁄ -story wood-frame building, the front elevation features two semi-octagonal gabled front bays with a one-story porch inset between them.  The gables and porch are trimmed with bargeboards in a design taken from Samuel Sloan's plan for "An Old English Cottage" in his 1852 publication, "The Model Architect".  The house is one of only about twenty remaining residential examples of Gothic Revival architecture remaining in the state.  Other historic Gothic Revival residences in the area include Waldwic in Gallion and Fairhope Plantation in Uniontown.  Ashe Cottage was added to the Alabama Register of Landmarks and Heritage on August 22, 1975 and to the National Register of Historic Places on 19 October 1978. Wykehurst Place (or Park) is a Gothic Revival mansion in Bolney, West Sussex, England, resembling more the châteaux of the Loire than an English manor house.  It was designed in 1871 by architect Edward Middleton Barry for the banker of German extraction, Henry Huth, MP (1815-1878), a bibliophile and collector of paintings.  At the time of construction (1871-74) it cost £35,000.  Its turrets, arches, conical roofs, and many architectural devices give it the appearance of a fairytale mansion.  The East lodge fronts the main London-Brighton road.  The large black entrance gates are fashioned in wrought iron.  Massive griffins with spread wings perch on either side of the gates.  The entrance to the property leads down a pebble drive to a grassed patio surrounding the house, descending from a 280-foot terrace to a garden and lawn at the back. Dalmeny House is a Gothic revival mansion located in an estate close to Dalmeny on the Firth of Forth, to the north-west of Edinburgh, Scotland.  It was designed by William Wilkins, and completed in 1817.  Dalmeny House is the home of the Earl and Countess of Rosebery.  The house was the first in Scotland to be built in the Tudor Revival style.  It provided more comfortable accommodation than the former ancestral residence, Barnbougle Castle, which still stands close by.  Dalmeny today remains a private house, although it is open to the public during the summer months.  The house is protected as a category A listed building, while the grounds are included in the Inventory of Gardens and Designed Landscapes in Scotland. Sandwich (1928-?)  was a British Thoroughbred racehorse that won the classic St Leger Stakes held at Doncaster racecourse in 1931, for owner Earl of Rosebery.  By 1931, Archibald Primrose, 5th Earl of Rosebery had died, making this a win for his son, Harry Primrose, 6th Earl of Rosebery.  Sandwich was a half-brother to Manna, winner of the 1925 Epsom Derby, and as well as his 1931 St Leger success also won the Chester Vase and King Edward VII Stakes. Kingscote is a Gothic Revival mansion and house museum at Bowery Street and Bellevue Avenue in Newport, Rhode Island.  Designed by Richard Upjohn and built in 1839, Kingscote was one of the first summer "cottages" constructed in Newport, and is now a National Historic Landmark.  It was later twice remodeled and extended, by George Champlin Mason and Stanford White.  It was owned by the King family from 1863 until 1972, when it was given to the Preservation Society of Newport County.
Answer: Barnbougle Castle