SQL_Relation: check for correct join_types