@echo off

gsqlcmd convert "SELECT Symbol, Security AS Name FROM https://en.wikipedia.org/wiki/List_of_S&P_500_companies" result.csv /quoteChar= /echo

gsqlcmd select result.csv /limit=5 /echo

if .%1.==./Q. goto :EOF

@pause
