Input (grade 5): It is a sequel to the platform games Duke Nukem and Duke Nukem II published by Apogee.
Output (grade 8): Duke Nukem 3D is based on the main character from the platform games Duke Nukem and Duke Nukem II which were also published by Apogee.