You forgot the ";"
CREATE SCHEMA joe; CREATE SEQUENCE joe.joe_seq start 1; CREATE TABLE joe.joe_table (int id, varchar name);