Farid Zakaria made a SQLite database file that the Linux kernel will execute directly
Farid Zakaria (via Simon Willison)·medium signal
The trick sets the 4-byte SQLite application ID at offset 68 to "SELF", decomposes an ELF binary's components into rows across a custom schema, and registers a binfmt_misc handler matching that magic so the kernel hands the file to a `self-exec` interpreter that queries the tables and runs the program. The result is one file that is simultaneously a queryable database and a runnable binary, meaning you can SQL your way through a program's sections and symbols. Code and schema are in fzakaria/selfdb.