CREATE TABLE table_1820752_1 (distance___ly__ VARCHAR2, spectral_type VARCHAR2)

If the spectral type is g1v, what is the total distance amount?
SELECT COUNT(distance___ly__) FROM table_1820752_1 WHERE spectral_type = "G1V"
SELECT COUNT("distance___ly__") FROM "table_1820752_1" WHERE "G1V" = "spectral_type"