begin; create table if not exists "seasons" ( "year" text ); insert into seasons select distinct yearID from appearances; commit;