Input (grade 11): The amendment requires the new Senator to be from the same party as the old one and would have prevented the appointment by Lewis, but not that by Bjelke-Petersen.
Output (grade 4): The change means a new Senator has to be from the same party as the old one. This would have prevented the appointment by Lewis, but not that by Bjelke-Petersen.