To get ending D you have to make all-around growth, economic and personal.
Rather embarrassingly, ending F was broken due to a typo until just now. To get that one you have to be as successful as possible, ethics be damned, without contaminating yourself and ending up in ending G.
I hope that points you in the right direction.