Heh. Creating the (text-based) UI is doable, waiting for results is not, as it is a query language. The extensions to the language (t-sql, pl/sql, etc..) make it more interesting, though.
Fwiw, i once created a query to make an arrow shoot up the screen in a terminal. Not useful at all, but a fun way to learn the language and its extensions.