It's written in Python, and seems to use SQLite under the hood. I guess it just applies tokenization and throws the text into a temporary database. Quite similar to the Go project https://github.com/dinedal/textql , at least superficially.
https://news.ycombinator.com/item?id=7175830
> MS ADO / ODBC
> Perl DBI
> npm j (with jqa)
> Ruby (csv2sqlite)
> Python (csvkit)
> Go (textql, comp)
> Java (optiq, openrefine, H2 SQL)
> R (sqldf)
> Haskell (txt-sushi)
> XML (xmlstarlet, xmllint, xmlstar)
> HTML (HtmlAgilityPack, Chrome $x())
> Postgres file_fdw
> Oracle external tables
> SQL Server OPENDATASOURCE and OPENQUERY
> Log file viewers (MS LogParser, Apache asql, lnav)