Summarize a formatted data like CSV by sql on the shell