Instruct: If the spectral type is g1v, what is the total distance amount?
Output: SELECT COUNT Distance ( ly ) FROM table WHERE Spectral type = G1V