SEC. 101. Querying Procedures Required.
“(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) Access to results of certain queries conducted by fbi.—
“(A) Court order required for fbi review of certain query results in criminal investigations unrelated to national security.—Except as provided by subparagraph (E), in connection with a predicated criminal investigation opened by the Federal Bureau of Investigation that does not relate to the national security of the United States, the Federal Bureau of Investigation may not access the contents of communications acquired under subsection (a) that were retrieved pursuant to a query made using a United States person query term that was not designed to find and extract foreign intelligence information unless—
“(i) the Federal Bureau of Investigation applies for an order of the Court under subparagraph (C); and
“(ii) the Court enters an order under subparagraph (D) approving such application.
“(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; and
“(ii) an affidavit or other information containing a statement of the facts and circumstances relied upon by the applicant to justify the belief of the applicant that the contents of communications described in subparagraph (A) covered by the application would provide evidence of—
“(I) criminal activity;
“(II) contraband, fruits of a crime, or other items illegally possessed by a third party; or
“(III) property designed for use, intended for use, or used in committing a crime.
“(D) Order.—Upon an application made pursuant to subparagraph (C), the Court shall enter an order approving the accessing of the contents of communications described in subparagraph (A) covered by the application if the Court finds probable cause to believe that such contents would provide any of the evidence described in subparagraph (C)(ii).
“(E) Exception.—The requirement for an order of the Court under subparagraph (A) to access the contents of communications described in such subparagraph shall not apply with respect to a query if the Federal Bureau of Investigation determines there is a reasonable belief that such contents could assist in mitigating or eliminating a threat to life or serious bodily harm.
“(F) Rule of construction.—Nothing in this paragraph may be construed as—
“(i) limiting the authority of the Federal Bureau of Investigation to conduct lawful queries of information acquired under subsection (a);
“(ii) limiting the authority of the Federal Bureau of Investigation to review, without a court order, the results of any query of information acquired under subsection (a) that was reasonably designed to find and extract foreign intelligence information, regardless of whether such foreign intelligence information could also be considered evidence of a crime; or
“(iii) prohibiting or otherwise limiting the ability of the Federal Bureau of Investigation to access the results of queries conducted when evaluating whether to open an assessment or predicated investigation relating to the national security of the United States.
“(3) Definitions.—In this subsection:
“(A) The term ‘contents’ has the meaning given that term in section 2510(8) of title 18, United States Code.
“(B) The term ‘query’ means the use of one or more terms to retrieve the unminimized contents or noncontents located in electronic and data storage systems of communications of or concerning United States persons obtained through acquisitions authorized under subsection (a).”
“(D) Querying procedures.—The querying procedures adopted in accordance with subsection (f)(1) to assess whether such procedures comply with the requirements of such subsection.”