; 42 U.S.C. 670 et seq.), to the extent determined by the Secretary. (i) GAO study (1) In general Not later than 3 years after the date of enactment of this Act, the Comptroller General of the United States shall conduct a study to determine whether the States have substantially complied with this Act, including specifically whether the States have— (A) eliminated all policies, practices, or laws that permit a covered entity to violate subsection (a); (B) provided necessary training and technical support to covered entities to ensure all services to children and youth involved with child welfare services are carried out in a non-discriminatory, affirming, safe, and culturally competent manner; (C) collected data necessary to accomplishing the purposes of this Act, and ensured that the data is appropriately safeguarded, including data related to— (i) the sexual orientation and gender identity of children and youth involved with child welfare services; (ii) the permanency and placement outcomes and rates for those children and youth, as compared to their non-LGBTQ peers; (iii) the rates at which those children and youth are placed in family homes as compared to congregate or group homes; (iv) the sexual orientation, gender identity, and marital status of foster and adoptive parents, as well as the placement rates and wait periods for those foster and adoptive parents; and (D) ensured that covered entities— (i) are in compliance with this Act