The element distributions of X ions in the MP and OQMD datasets are depicted in figure and S7, displaying diverse combinations of elements with oxygen (O) being predominant. This diversity results in numerous perovskite subclasses, including oxides, hydrides, chalcogenides, halides, along with a wide array of space groups. In both datasets, the primary space group is P m 3m, accounting for 1, 397 structures (92.1%) in the MP dataset and 9, 552 structures (84.8%) in the OQMD dataset.