BigBash (https://github.com/zalando/bigbash) is an open-source converter that generates a bash one-liner from an SQL Select query, no database necessary.