Task: Question Generation
Input (English): Passage: Queluz's architecture is representative of the final extravagant period of Portuguese culture that followed the discovery of Brazilian gold in 1690. From the beginning of the 18th century many foreign artists and architects were employed in Portugal to satisfy the needs of the newly enriched aristocracy; they brought with them classical ideas of architecture which derived from the Renaissance. In its design, Queluz is a revolt against the earlier, heavier, Italian-influenced Baroque which preceded the Rococo style throughout Europe.Comparisons with the far larger and more Baroque Versailles are unwarranted: Versailles is referred to as having "an aura of majesty" and it was built and dedicated to exhibit in stone "all the glories of France," whereas the far smaller palace at Queluz has been described as "exquisite rather than magnificent" and looking like "a very expensive birthday cake". In its frivolity, the architecture of Queluz reflects the lifestyle led by the Portuguese royal family at the time of building: during the reign of Dom Pedro's brother, Joseph I, when Portugal was in practice governed by a valido or favourite, the Marquis of Pombal. Pombal encouraged the royal family to while away their days in the country and leave affairs of state to him. Thus the extravagant, almost whimsical architecture of Queluz, set apart from the capital city, exactly represents the politics and social events of Portugal during this era, and the carefree and flamboyant lives led by its occupants. Queluz's role as a haven for those without responsibility was, however, to be short-lived.
On the accession to the throne of Dom Pedro's wife Maria in 1777, Pombal was dismissed, and Dom Pedro and Maria ruled jointly in his place, using the partially completed Rococo palace at Queluz as a retreat from affairs of state in much the same way as Frederick the Great used Europe's other famed Rococo palace, Sanssouci.
The site chosen for this summer retreat was in a secluded hollow. It had originally been owned by the Marquis of Castelo Rodrigo. When the ruling Spanish were driven from Portugal in 1640, the Marquis was accused of having collaborated with the Spanish and the property was seized by the Portuguese Crown. The estate and its hunting lodge then became one of the many properties of the Portuguese king, João IV. He set it aside as one of the properties reserved for the second son of the reigning monarch. Thus it came into the hands of Dom Pedro, the second son of João V.
Output (English): What is the full name of the person João IV left the property to?