sqlitemodel: fix select statements with limit/offset using expressions