Relational Algebra is a procedural query language, which takes Relation as input and generates relation as output. SQL and relational…