Just to answer what I know for sure regarding KE fares.
S-Fare - Delta considers this "Almost Full Fare Economy" so you will earn 1.5 times MQMs plus 100% mileage under Delta Skymiles Program. All other SkyTeam Programs earn 100% on both Elite Miles and Award miles on this fare.
Q-Fare - This one is scary because it made me miss my Gold Medallion Level 2 yrs ago because I did not know it does NOT earn MQMs on Delta (nor award mileage) and on most other SkyTeam Programs. Only KE Program itself and one program in Europe (forgot if it is Alitalia or CZ) earn 70% of mileage (both Elite Miles and Award Miles).
G Fare for TG - From what I know, this one should earn mileage (both elite and award miles) because only W and N fares are not eligible (as of June 1, 2005). You should call TG to reconfirm this.
In conclusion, DO NOT FLY Q fare on KE, it is not worth it !!! pay a very little more and you will get a higher booking class with minimum 100% elite mileage.