Allah taught Adam all the names of the plants and animals, which must have taken a while since there are 1.7 million species that
are known, with probably another 10 million or so that are yet to be discovered. And this only includes those that are alive today.
If extinct species are included (~99%), then Allah must have taught Adam a billion or so names. 2:31
"When Abraham and Ishmael were raising the foundations of the House"
"The House" is the Kaaba, which the Quran here (incorrectly)claims was built by Abraham and Ishmael. 2:127