Total Recall

At the end of the 21st century, Earth is devastated by chemical warfare. What little habitable land remains is divided into two territories, the United Federation of Britain (UFB, located on the British Isles and western mainland Europe) and the Colony (Australia). Many residents of the Colony travel to the UFB to work in factories via âThe Fall,â a gravity elevator running through the Earthâs core. A Resistance operating in the UFB, which the UFB views as a terrorist movement, seeks to improve life in the Colony.
Colony citizen Douglas Quaid[8] has been having dreams of being a secret agent, aided by an unknown woman. Tired of his factory job building police robots with friend Harry, he visits Rekall, a virtual entertainment company that implants artificial memories. Among the choices Rekall salesman Bob McClane offers Quaid are the memories of a secret agent. An emblem of Rekall is stamped onto his arm. Just as Quaid is starting to be implanted, McClane discovers that he already has real memories of being a covert operative. As McClane starts to question Quaid about the memories, UFB police officers burst in, killing the Rekall crew and attempting to arrest Quaid. Quaid instinctively reacts and kills the officers before escaping. Upon returning home his wife Lori attempts to kill him, revealing that she is an undercover UFB agent who has been monitoring him only for the past six weeks, and that she doesnât know who or what he was. After Quaid escapes, Charles Hammond, a âfriendâ Quaid does not recognize, contacts him and directs him to a safe-deposit box. Quaid finds a recorded message from his former self with the address of a UFB apartment.
While being pursued by Lori and other human and robot police, Quaid meets Melina, the woman from his dreams. At the apartment Quaid finds another recording, revealing that his name is actually Carl Hauser, an agent working for UFB Chancellor Vilos Cohaagen. After defecting to the Resistance, Hauser was captured by the UFB and implanted with false memories. The recording reveals that Cohaagen will use robots to invade the Colony so the UFB will have more living space. Hauser, however, has seen a âkill codeâ that would disable the robots. The code can be recovered from his memory by Resistance leader Matthias. Melina reveals that she was Hauserâs lover before Hauser was captured; she proves that they knew each other by showing that they have matching scars from a time they were both shot while holding hands. The police surround the apartment building and Harry appears. He tries to convince Quaid that he is still in a Rekall-induced dream and that killing Melina is the only way out. Quaid is conflicted, but notices a tear on Melinaâs cheek and shoots Harry instead. Lori pursues the pair inside the building's elevators, but fails to capture them.
Quaid and Melina meet with Matthias. While Matthias searches Quaidâs memories, Lori and Cohaagen storm the Resistance base. Cohaagen reveals that Hauser was in fact working for him without Quaid even knowing it due to the memory alteration, using the kill code as a trap. Cohaagen kills Matthias and arranges to restore Hauserâs memory before leaving with Melina as a prisoner. As the officers are about to inject Quaid, Hammond (revealed to be one of the police officers involved in the raid) sacrifices himself to help Quaid escape.
Cohaagen begins his invasion of the Colony, loading The Fall with his army of robots. Quaid sneaks onboard, setting timed explosives throughout the ship while searching for Melina. After freeing her, they climb atop The Fall as it arrives at the Colony. As they fight the soldiers and Cohaagen, Quaid's explosives detonate. Quaid and Melina jump off before the ship plummets back into the tunnel and explodes underground, killing Cohaagen and destroying his army and The Fall itself.
Waking up in an ambulance, Quaid is greeted by Melina. When he notices that she is missing her scar, he realizes that she is Lori using a holographic disguise; they fight and Lori is killed. Quaid finds the real Melina outside the ambulance and they embrace. As news channels declare the independence of The Colony, Quaid looks up to find an advertisement of Rekall on an electronic billboard and sees that the stamp given by Rekall crew on his arm is missing.

Question: What had Douglas Quaid been having dreams of being?
Answer: a secret agent