FR #1332 - Adams pie chart sql gen tool

Change-Id: I44fa60b6788cf1e8245a991d22a6b25317002cc1