Create Select_Primary_for_output