Sand is not per se the raw resource for integrated circuit production. More specifically, it is silicon dioxide, also referred to as quartz. Quartz is often found in sand, but sand does not necessarily include quartz. As far as I know, the quartz for semiconductor lithography isn’t usually extracted from sand, but rather from proper pit mines.