Goya's Ghosts

This article's plot summary may be too long or excessively detailed. Please help improve it by removing unnecessary details and making it more concise. (August 2014) (Learn how and when to remove this template message)
In 1792, Spain reels amid the turmoil and upheaval of the French Revolution. Francisco Goya (Stellan SkarsgÃ¥rd) is a renowned painter, who, among others, does portraits for the royal family as the Official Court Painter to the King and Queen.
The Spanish Inquisition is disturbed by part of Goya's work. Brother Lorenzo Casamares (Javier Bardem) is hiring Goya to paint a portrait and defends him, saying that his works are not evil, they just show evil. He recommends the Church step up the fight against anti-Catholic practices. He requests and is put in charge of intensifying the Inquisition.
When posing in Goya's studio, Lorenzo asks Goya about a young model he uses, InÃ©s (Natalie Portman), daughter of a rich merchant, TomÃ¡s BilbatÃºa (JosÃ© Luis GÃ³mez) who also has a son named Ãngel (Unax Ugalde). InÃ©s is spotted by Inquisition spies (trained by Lorenzo) declining a dish of pork in a tavern. The Holy Office of the Inquisition orders InÃ©s to come to the office. There she is arrested and accused of "judaizing", i.e. spreading Jewish rituals, because she did not eat pork the other evening. She is stripped naked and tortured by strappado ("put to The Question"), confesses, and is imprisoned. Naturally, the Inquisition's archives had already revealed that one of her father's ancestors had converted from Judaism to Christianity in 1624 upon arrival in Spain from Amsterdam.
TomÃ¡s begs Goya for help, who in turn asks Lorenzo to find out about InÃ©s's situation. Lorenzo visits InÃ©s in prison telling her that he is going to help her and will pass a message to her family if she wishes. He offers to pray with InÃ©s, but is clearly struggling with his desire to rape her as she prays in the nude with him at his request. At a dinner in TomÃ¡s's home, where he and Goya are guests, Lorenzo defends "The Question" (and brings up the subject of the father's Jewish ancestor): he argues that if the accused is really innocent, God will give him or her the strength to deny guilt, so a person who confesses must be guilty. TomÃ¡s does not agree: he argues that people will confess to anything under torture, and Goya agrees. To prove this TomÃ¡s draws up a statement which says that Lorenzo confesses to being a monkey, and, with the help of his sons, does not let Lorenzo leave unless he agrees to sign it. Goya pleads for Lorenzo without success, and is escorted away and pushed out of the home. TomÃ¡s, his sons and servants torture with a makeshift strappado (ropes strung on the chandelier), causing Lorenzo to break down and sign. TomÃ¡s promises to destroy the document after InÃ©s is released. He gives Lorenzo a large amount of gold for the Church, hoping it will persuade the Holy Office to consider leniency.
Lorenzo pleads for InÃ©s, but the Inquisitor General Father Gregorio, while accepting the money, refuses, since InÃ©s has confessed. Lorenzo again visits InÃ©s in prison and, offering to pray with her, instead he rapes her. TomÃ¡s brings the document to the king, Charles IV (Randy Quaid) who is highly amused at seeing it, and promises to assist InÃ©s. Lorenzo is now an embarrassment to the Spanish Church and they come to arrest him. He flees. Lorenzo's portrait is confiscated by the Church, and is set on fire in public, to burn him in effigy.
Fifteen years pass, and Goya is at the height of his creativity, but has grown deaf. The French army under Napoleon invades Spain, abolishes the Inquisition and sets the prisoners free. Lorenzo had fled to France, where he was introduced to the ideas of the French Revolution and became a fanatical adherent of them. He is now Napoleon's chief special prosecutor against his former Spanish colleagues in the Inquisition. (This twist in Lorenzo's allegiance might have been inspired by the career of Juan Antonio Llorente.) A French court presides over the show trial, conviction and sentencing to death of the Inquisitor General. InÃ©s, who was said to be tried, has actually been left to languish in the dungeons until now. She had given birth to a daughter in prison, who was taken away from her immediately after birth. Upon visiting her old home and finding her family killed, InÃ©s turns to Goya for help in finding her child. Lorenzo is the father, which is embarrassing for him, and he sends InÃ©s, whose sanity has suffered in prison, to an insane asylum. Lorenzo questions the condemned Inquisitor General, sparing him for information about what would happen to a child born in the Inquisition prison. The Inquisitor General tells him the child would be placed in an orphanage. Lorenzo tracks it down, and he learns from the nuns who run it that his daughter's name is Alicia. She had run away several years before.
In Garden Park, Goya finds a prostitute named Alicia (also played by Natalie Portman) who looks identical to InÃ©s. He goes to Lorenzo asking for InÃ©s in order to reunite her with her daughter. Lorenzo takes the initiative and secretly goes to see Alicia, offering to pay for her passage to America if she will agree to leave Spain. However she refuses the offer and jumps out of his carriage declaring him insane. In the meantime, Goya travels out into the countryside, where InÃ©s has been kept in an asylum. Goya pays the director a bribe to release her, and then tries to bring InÃ©s to see Alicia. Unfortunately, as Goya tries to persuade Alicia to see her mother, a group of soldiers, under orders from Lorenzo, burst into the tavern and forcibly arrest all the prostitutes. Goya discovers Lorenzo's intention to sell the women off to America where they will be treated as slaves. InÃ©s, waiting outside to meet Alicia, wonders off into the tavern and finds the abandoned baby Alicia left under a table when she was seized by the raid. In her delusion InÃ©s thinks the baby, who might be her granddaughter (although Alicia denies it's hers when Goya questions her about the baby), to be her own lost daughter; she is delighted and wanders off with the child.
The British invade Spain from Portugal, defeating the French troops with the help of the Spanish population. The wagons in which the prostitutes are being transported are abandoned by the French cavalry guarding them when the British attack, with Alicia catching the eye of a British officer. Lorenzo is arrested as he is fleeing. The Spanish reinstate the Inquisition, which now tries and sentences Lorenzo to death, the Inquisitor General condemning him in much the same words as in Lorenzo's speech at his trial. They are willing to spare him if he repents, and they urge Lorenzo to do so until the last moment at the site of the execution in the city center, to which he is led in the auto da fe wearing a sanbenito with painted flames indicating he is sentenced to die. On the scaffold, Lorenzo spots his daughter Alicia, on the arm of the British officer, scoffing at him. He also notices Goya sitting at a distance sketching the entire ordeal. InÃ©s is also present in the crowd and calls to Lorenzo enthusiastically to show him the baby she believes is their daughter. Refusing to repent, despite pleas from his former colleagues the monks, Lorenzo is garrotted. The film ends with a cart taking Lorenzo's body away, escorted by InÃ©s still carrying the child, as she holds the hand of the dead Lorenzo, children prancing about singing songs, and with Goya following closely behind her calling for her. She merely glances back with a smile, but is content to instead accompany Lorenzo as she kisses his hand.

Question: Is Lorenzo executed in the end?
Answer: Yes