(CommandList
  children: [
    (C {(set)} {(-euo)} {(pipefail)})
    (FuncDef
      name: sql
      body: 
        (BraceGroup
          children: [
            (C {(kubectl)} {(exec)} {(DQ (cockroachdb-) (${ VSub_Number 1))} {(--)} 
              {(/cockroach/cockroach)} {(sql)} {(--host)} {(DQ (cockroachdb-) (${ VSub_Number 1) (.cockroachdb))} {(--insecure)} {(-e)} 
              {
                (DQ 
                  (CommandSubPart
                    command_list: (CommandList children:[(C {(cat)} {(/dev/stdin)})])
                    left_token: <Left_CommandSub '$('>
                    spids: [106 110]
                  )
                )
              }
            )
          ]
          spids: [57]
        )
      spids: [51 56]
    )
    (FuncDef
      name: kill
      body: 
        (BraceGroup
          children: [
            (Sentence
              child: 
                (Pipeline
                  children: [
                    (C {(kubectl)} {(exec)} {(-t)} {(DQ (cockroachdb-) (${ VSub_Number 1))} {(--)} 
                      {(/bin/bash)} {(-c)} {(DQ ('while true; do kill 1; done'))}
                    )
                  ]
                  negated: True
                )
              terminator: <Op_Amp '&'>
            )
            (SimpleCommand
              redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[151])]
            )
          ]
          spids: [122]
        )
      spids: [116 121]
    )
    (Pipeline
      children: [
        (SimpleCommand
          words: [{(cat)}]
          redirects: [
            (HereDoc
              op_id: Redir_DLess
              fd: 16777215
              body: 
                {
                  (DQ ('CREATE DATABASE IF NOT EXISTS foo;\n') 
                    ('CREATE TABLE IF NOT EXISTS foo.bar (k STRING PRIMARY KEY, v STRING); \n') ("UPSERT INTO foo.bar VALUES ('Kuber', 'netes'), ('Cockroach', 'DB');\n")
                  )
                }
              do_expansion: True
              here_end: EOF
              was_filled: True
              spids: [163]
            )
          ]
        )
        (C {(sql)} {(1)})
      ]
      negated: False
    )
    (C {(kill)} {(1)})
    (ForEach
      iter_name: i
      iter_words: [{(0)} {(2)} {(3)} {(4)}]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (Pipeline
              children: [
                (SimpleCommand
                  words: [{(cat)}]
                  redirects: [
                    (HereDoc
                      op_id: Redir_DLess
                      fd: 16777215
                      body: {(DQ ('SELECT CONCAT(k, v) FROM foo.bar;\n'))}
                      do_expansion: True
                      here_end: EOF
                      was_filled: True
                      spids: [211]
                    )
                  ]
                )
                (C {(sql)} {(DQ (${ VSub_Name i))})
              ]
              negated: False
            )
          ]
          spids: [206 226]
        )
      spids: [196 204]
    )
  ]
)