Question: How many distinct building campaigns were there for Versailles?
About the article "Palace of Versailles", section "History".

Candidate passages:
The earliest mention of the name of Versailles is in a document dated 1038, relating to the village of Versailles.
In 1575, the seigneury of Versailles was bought by Albert de Gondi, a naturalized Florentine, who invited Louis XIII on several hunting trips in the forests surrounding Versailles.
Pleased with the location, Louis ordered the construction of a hunting lodge in 1624.
Eight years later, Louis obtained the seigneury of Versailles from the Gondi family and began to make enlargements to the château.
This structure would become the core of the new palace.
Louis XIII's successor, Louis XIV, had it expanded into one of the largest palaces in the world.
Following the Treaties of Nijmegen in 1678, he began to gradually move the court to Versailles.
The court was officially established there on 6 May 1682.
After the disgrace of Nicolas Fouquet in 1661, Louis confiscated Fouquet's estate and employed the talents of Le Vau, Le Nôtre, and Le Brun, who all had worked on Fouquet's grand château Vaux-le-Vicomte, for his building campaigns at Versailles and elsewhere.
For Versailles, there were four distinct building campaigns.
Louis XIII's successor, Louis XIV, had a great interest in Versailles.
He settled on the royal hunting lodge at Versailles and over the following decades had it expanded into one of the largest palaces in the world (Félibien, 1703; Marie, 1972; Verlet, 1985).
Beginning in 1661, the architect Louis Le Vau, landscape architect André Le Nôtre, and painter-decorator Charles Lebrun began a detailed renovation and expansion of the château.
This was done to fulfill Louis XIV's desire to establish a new centre for the royal court.
Following the Treaties of Nijmegen in 1678, he began to gradually move the court to Versailles.
The court was officially established there on 6 May 1682.
By moving his court and government to Versailles, Louis XIV hoped to extract more control of the government from the nobility, and to distance himself from the population of Paris.
All the power of France emanated from this centre: there were government offices here, as well as the homes of thousands of courtiers, their retinues, and all the attendant functionaries of court (Solnon, 1987).
By requiring that nobles of a certain rank and position spend time each year at Versailles, Louis prevented them from developing their own regional power at the expense of his own and kept them from countering his efforts to centralise the French government in an absolute monarchy (Bluche, 1986, 1991; Bendix, 1978; Solnon, 1987).
The meticulous and strict court etiquette that Louis established, which overwhelmed his heirs with its petty boredom, was epitomised in the elaborate ceremonies and exacting procedures that accompanied his rising in the morning, known as the "Lever", divided into a "petit lever" for the most important and a "grand lever" for the whole court.
Like other French court manners, "étiquette" was quickly imitated in other European courts (Benichou, 1948; Bluche, 1991; Solnon 1987).
The expansion of the château became synonymous with the absolutism of Louis XIV (Bluche, 1986, 1991).
In 1661, following the death of Cardinal Mazarin, chief minister of the government, Louis had declared that he would be his own chief minister.
The idea of establishing the court at Versailles was conceived to ensure that all of his advisors and provincial rulers would be kept close to him.
He feared that they would rise up against him and start a revolt.
He thought that if he kept all of his potential threats near him, they would be powerless.
After the disgrace of Nicolas Fouquet in 1661 – Louis claimed the finance minister would not have been able to build his grand château at Vaux-le-Vicomte without having embezzled from the crown – Louis, after the confiscation of Fouquet’s state, employed the talents of Le Vau, Le Nôtre, and Le Brun, who all had worked on Vaux-le-Vicomte, for his building campaigns at Versailles and elsewhere.
For Versailles, there were four distinct building campaigns (after minor alterations and enlargements had been executed on the château and the gardens in 1662–1663), all of which corresponded to Louis XIV’s wars (Bluche, 1986, 1991; Verlet, 1985). 
There is one school building in Versailles.
The building houses Elementary, Middle and Jr./Sr.
High School.
The new school was finished in 2010 and is still in the Versailles Exempted School district.
The schools new address is 280 Marker Road.
The school was paid for by the Versailles people in tax dollars.  
Louis generously supported the royal court of France and those who worked under him.
He brought the Académie Française under his patronage and became its "Protector".
He allowed Classical French literature to flourish by protecting such writers as Molière, Racine and La Fontaine, whose works remain greatly influential to this day.
Louis also patronised the visual arts by funding and commissioning various artists, such as Charles Le Brun, Pierre Mignard, Antoine Coysevox and Hyacinthe Rigaud, whose works became famous throughout Europe.
In music, composers and musicians such as Jean-Baptiste Lully, Jacques Champion de Chambonnières, and François Couperin thrived.
Over the course of four building campaigns, Louis converted a hunting lodge built by Louis XIII into the spectacular Palace of Versailles.
With the exception of the current Royal Chapel (built near the end of Louis's reign), the palace achieved much of its current appearance after the third building campaign, which was followed by an official move of the royal court to Versailles on 6 May 1682.
Versailles became a dazzling, awe-inspiring setting for state affairs and the reception of foreign dignitaries.
At Versailles, the king alone commanded attention.
Several reasons have been suggested for the creation of the extravagant and stately palace, as well as the relocation of the monarchy's seat.
For example, the memoirist Saint-Simon speculated that Louis viewed Versailles as an isolated power center where treasonous cabals could be more readily discovered and foiled.
Alternatively, there has been speculation that the revolt of the "Fronde" caused Louis to hate Paris, which he abandoned for a country retreat.
However, his sponsorship of many public works in Paris, such as the establishment of a police and street-lighting, lend little credence to this theory.
As a further example of his continued care for the capital, Louis constructed the "Hôtel des Invalides", a military complex and home to this day for officers and soldiers rendered infirm either by injury or old age.
While pharmacology was still quite rudimentary in his day, the "Invalides" pioneered new treatments and set new standards for hospice treatment.
The conclusion of the Treaty of Aix-la-Chapelle in 1668 also induced Louis to demolish the northern walls of Paris in 1670 and replace them with wide tree-lined boulevards.
Louis also renovated and improved the Louvre and other royal residences.
Gian Lorenzo Bernini was originally to plan additions to the Louvre, however his plans would have meant the destruction of much of the existing structure, replacing it with an Italian summer villa in the centre of Paris.
Bernini's plans were eventually shelved in favour of Perrault's elegant colonnade.
With the relocation of the court to Versailles, the Louvre was given over to the arts and the public.
During his visit from Rome, Bernini also executed a renowned portrait bust of the king. 
Versailles (city) (pronounced ) is a town and a suburb of Paris in France.
Versailles may also refer to:  Palace of Versailles, located there  Treaty of Versailles, signed there in 1919, ending World War I  Treaty of Versailles (disambiguation), various other treaties  Versailles restaurant, a restaurant in Little Havana, Miami, Florida  Versailles Cuban restaurant, a restaurant chain in Los Angeles  Lincoln Versailles, American luxury automobile produced 1977-1980  Versailles wedding hall disaster, a 2001 building collapse that killed 23 in Israel  "Versailles" (film), a 2008 French film  "Versailles 1685", a video game  Kénold Versailles (born 1984), Haitian footballer