terminal version
sql