SQLite 3x speedup by using `left join ... not null` instead of `inner join`