I guess algo is `REFERENCES algorithms(id)`.