 				temp_table_H_VDJ.d_segment_name,
 				temp_table_H_VDJ.j_segment_name,
 				CDR.prot_seq AS CDR3,
-				temp_table_H_VDJ.c_segment_name
+				temp_table_H_VDJ.c_segment_name,
+				derived_mutations_replacement.repl_mutations
 			FROM temp_table_H_VDJ
 			INNER JOIN (
 				# The following query basically returns a seq_id and a CDR3 protein sequence, however it also contains

			temp_heavy.j_segment_name	AS igh_segment_j,
			temp_heavy.CDR3				AS igh_cdr3,
			temp_heavy.c_segment_name	AS igh_segment_c,
			temp_kappa.v_segment_name	AS igk_segment_v,
			temp_kappa.j_segment_name	AS igk_segment_j,
			temp_kappa.CDR3				AS igk_cdr3,
			temp_kappa.c_segment_name	AS igk_segment_c,
			temp_lambda.v_segment_name	AS igl_segment_v,
			temp_lambda.j_segment_name	AS igl_segment_j,
			temp_lambda.CDR3			AS igl_cdr3,
			temp_lambda.c_segment_name	AS igl_segment_c
		FROM (
			SELECT 
				sequences.event_id,

		temp_associated.igh_segment_j,
		temp_associated.igh_cdr3,
		temp_associated.igh_segment_c,
		temp_associated.igh_shm,
		temp_associated.igk_segment_v,
		temp_associated.igk_segment_j,
		temp_associated.igk_cdr3,
		temp_associated.igk_segment_c,
		temp_associated.igk_shm,
		temp_associated.igl_segment_v,
		temp_associated.igl_segment_j,
		temp_associated.igl_cdr3,
		temp_associated.igl_segment_c,
		temp_associated.igl_shm
	FROM (
		SELECT 
			temp_heavy.event_id			AS igh_segment_event_id,
