I wrote this up here: <https://til.simonwillison.net/til/til/sqlite_text-value-is-integer-or-float.md>