SQL and Map-Reduce code for S2GX 2013 talk