This is an example of writing an XQuery application to plot a chart of the artists in your iTunes library.