select qse.*,

       (CASE WHEN sv."Empfehlung"='JA' THEN 'true'

        ELSE 'false' END) as "EFESOLL"

  from "{{vname}}" sv

    join "QsEintrag" qse on qse."ID"=sv."QSEID"

 where sv."QSTraeger"='{{qst}}'