You will be given a definition of a task first, then some input of the task.
In this task, you are given a set of context paragraph and some supporting facts to answer a question. Your task is to generate answer for given question based on set of context paragraphs and supporting facts.

Context_1 : Politiets Efterretningstjeneste (PET) (official name in English: Danish Security and Intelligence Service, abbreviated DSIS) is the national security & intelligence agency of Denmark. The agency focuses solely upon national security while foreign intelligence operations is handled by Forsvarets Efterretningstjeneste the foreign intelligence service administrsted by the Danish Royal Defense. Context_2 : The Estonian Foreign Intelligence Service (Estonian: "Valisluureamet" ) is the foreign intelligence service of the Republic of Estonia. The Foreign Intelligence Service coordinates with all Estonian intelligence functions, collects intelligence concerning foreign interests and activities, and transmits information to the President, Prime Minister, the General Staff of the Estonian Defence Forces, the Interior Minister, the Foreign Minister, and the Minister of Defence. s of March 2016 the Director General of the Foreign Intelligence Service is Mikk Marran. Context_3 : The First Main Directorate (or First Chief Directorate, Russian: , "Pervoye glavnoye upravleniye") of the Committee for State Security of the USSR (PGU KGB) was the organization responsible for foreign operations and intelligence activities by providing for the training and management of covert agents, intelligence collection administration, and the acquisition of foreign and domestic political, scientific and technical intelligence in the Soviet Union. The First Chief Directorate was formed within the KGB directorate in 1954, and after the collapse of the Soviet Union was renamed as the Central Intelligence Service and finally the Foreign Intelligence Service (SVR RF). Although the agency "SVR" restyle in 1991 implies a generic overseas surveillance activity, the primary foreign intelligence service in Russia and the Soviet Union has been the GRU, a military intelligence organization and special operations force shrouded in secrecy, most famed for stealing the blueprints of the atomic bomb during the Manhattan Project and barring entry into its headquarters to anyone, even the leader of the Soviet Union proper, without a formal authentication. Context_4 : The Australian Secret Intelligence Service (ASIS; ) is Australia's foreign intelligence agency. ASIS was formed in 1952, but its existence remained secret even within the Government until 1972. ASIS is part of the Australian Intelligence Community responsible for the collection of foreign intelligence, including both counter-intelligence and liaising with the intelligence agencies of other countries. In these roles, ASIS is comparable to the British Secret Intelligence Service (MI6) and the American Central Intelligence Agency (CIA). Context_5 : A security agency is a governmental organization which conducts intelligence activities for the internal security of a nation. They are the domestic cousins of foreign intelligence agencies, and typically conduct counterintelligence to thwart other countries' foreign intelligence efforts. For example, the United States Federal Bureau of Investigation (FBI) is the internal intelligence, security and law enforcement agency, while the Central Intelligence Agency (CIA) is an external intelligence service, which deals primarily with intelligence collection overseas. A similar relationship exists in Britain between MI5 and MI6. Context_6 : Rabinder Singh was a joint secretary in the Research and Analysis Wing (R&AW), India's external intelligence agency, who defected to the United States in 2004. Context_7 : Grzegorz Maecki (born 18 October 1967) is an official of polish intelligence and security services, diplomat, colonel, such as the Office for State Protection (UOP), the Internal Security Agency (ABW) and the Foreign Intelligence Agency (AW). In 2016 he was the Head of the Foreign Intelligence Agency of the Republic of Poland. Context_8 : The Research and Analysis Wing (R&AW or RAW) is the primary foreign intelligence agency of India. It was established in 1968 following the intelligence failures of the Sino-Indian and Indo-Pakistani wars, which persuaded the Government of India to create a specialised, independent agency dedicated to foreign intelligence gathering; previously, both domestic and foreign intelligence had been the purview of the Intelligence Bureau. Context_9 : Charbatia Air Base is located approximately 10km north of Cuttack, Odisha in eastern India. It is an aerial reconnaissance post of the intelligence agency's aviation unit, the Aviation Research Centre (ARC). The Research and Analysis Wing, India's primary foreign intelligence agency, operates intelligence collection aircraft through the ARC. The aircraft are fitted with electronic surveillance equipment and long range cameras capable of taking pictures of targets from high altitudes. The base was built with the assistance of the Central Intelligence Agency in the early 1960s and was used for aerial surveillance and intelligence gathering of China's strategic forces. The first aircraft was delivered in the mid 60's and was a World War II vintage C-46 which was outfitted with an oxygen distribution system for operator and flight personnel along with surveillance electronics and recording equipment at the Air America base in Tainan, Taiwan. The installation was supervised by the design engineer, a Mr. Kent Williamson. Mr. Williamson, along with other experienced personnel also deployed to Charbatia to train the first operator and maintenance personnel. Context_10 : The Rosenholz files are a collection of 381 CD-ROMs containing 280,000 files with information on persons who were sources and targets or employees and helpers in the focus of the "Hauptverwaltung Aufklarung" ("HVA", Main Directorate for Reconnaissance), the primary foreign intelligence agency of the former German Democratic Republic (East Germany). At the beginning one thought that the files mostly contain the real names of agents who worked for the HVA in former West Germany. Later it came clear that at least 90% of the persons never worked for or with the HVA. fact_1 : Rabinder Singh was a joint secretary in the Research and Analysis Wing (R&AW), India's external intelligence agency, who defected to the United States in 2004. fact_2 : The Research and Analysis Wing (R&AW or RAW) is the primary foreign intelligence agency of India. Question: Which primary foreign intelligence agency of India is Rabinder Singh was a joint secretary in
Output:
The Research and Analysis Wing