http://stackoverflow.com/questions/1...metrized-query