ALTER TABLE sample
    ADD dataset_id BIGINT NULL,
    ADD CONSTRAINT sample_FK_dataset
        FOREIGN KEY (dataset_id) REFERENCES dataset (id);

CREATE INDEX sample_INDEX_dataset
    ON sample (dataset_id);
