import random
import sys

ntables = 100
ncols = 100
nrows = 10000

def printstderr(s):
  sys.stderr.write(s + '\n')
  sys.stderr.flush()

def get_value():
  return random.randint(-99999999, 99999999)

for t in range(ntables):
  printstderr(f'{t}/{ntables}')
  print(f"create table x ({','.join(['x int'] * ncols)});")
  
  for r in range(nrows):
    print(f"insert into _last ({','.join(['x'] * ncols)}) values (", end='')
    for c in range(ncols):
      print(get_value(), end=('' if c==ncols-1 else ','))
    print(');')
  
# 10 min to generate
# 3 min to process
[((9, 2, 9, 28), 'sys.stderr.write', 'sys.stderr.write', ({(9, 19, 9, 27): "(s + '\\n')"}, {}), "(s + '\\n')", False, 'import sys\n'), ((10, 2, 10, 20), 'sys.stderr.flush', 'sys.stderr.flush', ({}, {}), '()', False, 'import sys\n'), ((13, 9, 13, 44), 'random.randint', 'random.randint', ({(13, 24, 13, 33): '(-99999999)', (13, 35, 13, 43): '(99999999)'}, {}), '(-99999999, 99999999)', False, 'import random\n')]