; and (B) by inserting after subsection (e) the following new subsection: (f) Queries (1) Procedures required (A) Requirement to adopt The Attorney General, in consultation with the Director of National Intelligence, shall adopt querying procedures consistent with the requirements of the Fourth Amendment to the Constitution of the United States for information collected pursuant to an authorization under subsection (a). (B) Record of United States person query terms The Attorney General, in consultation with the Director of National Intelligence, shall ensure that the procedures adopted under subparagraph (A) include a technical procedure whereby a record is kept of each United States person query term used for a query. (C) Judicial review The procedures adopted in accordance with subparagraph (A) shall be subject to judicial review pursuant to subsection (j). (2) Court orders for access of contents from certain queries (A) Discretion to apply for Court order Before accessing the contents of communications acquired under subsection (a) that were retrieved using a United States person query term that was not designed to find and extract foreign intelligence information, the Federal Bureau of Investigation may apply for an order of the Court under subparagraph (C). (B) Jurisdiction The Court shall have jurisdiction to review an application and to enter an order approving the access described in subparagraph (A). (C) Application Each application for an order under this paragraph shall be made by a Federal officer in writing upon oath or affirmation to a judge having jurisdiction under subparagraph (B). Each application shall require the approval of the Attorney General based upon the finding of the Attorney General that the application satisfies the criteria and requirements of such application, as set forth in this paragraph, and shall include— (i) the identity of the Federal officer making the application