You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: subject_subreport.rb
    path of file: ./repos/archivesspace/reports/custom
    
    the code of the file until where you have to start completion: class SubjectSubre
    
	def query_string
    "select
      subject.title as term,
      group_concat(distinct term.term_type_id separator ', ') as type,
      subject.source_id as source,
      subject.authority_id as authority,
      subject.scope_note
    from subject_rlshp
      join subject
        on subject.id = subject_rlshp.subject_id
      left outer join subject_term
        on subject_term.subject_id = subject.id
      left outer join term
        on subject_term.term_id = term.id
    where subject_rlshp.#{@id_type}_id = #{db.literal(@id)}
    group by subject.id"
  end