text: create view v
  as
  select 1 as i from rdb$database;
  
  create table t (i int);
  
  set term ^;
  
  create trigger trig for t
  before insert
  as
  declare i int;
  begin
      select first 1 i from v into i;
  end^
  
  set term ;^