db.execute("create table test1(a int, b int, c int)");
db.execute("insert into test0 select x / 100, mod(x / 10, 10), mod(x, 10) from system_range(0, 999)");
db.execute("update test0 set a = null where a = 9");
db.execute("update test0 set b = null where b = 9");
db.execute("update test0 set c = null where c = 9");
db.execute("insert into test1 select * from test0");
// this failed at some point
Prepared p = db.prepare("select * from test0 where b in(" +
"select a from test1 where a <? and a not in(" +
"select c from test1 where b <=10 and a in(" +