CREATE TABLE t0 (  col0 text  DEFAULT 'default' NOT NULL,  col1 text );
INSERT INTO t0 (col0,col1) VALUES ('UNmizptjd6','pEIXeXRq'); INSERT INTO t0 (col0,col1) VALUES ('D9','JCb'); INSERT INTO t0 (col0,col1) VALUES ('723d','NRHthpKD'); INSERT INTO t0 (col0,col1) VALUES ('z','78FdwDsn'); INSERT INTO t0 (col0,col1) VALUES ('sq1Wn4Q','4'); INSERT INTO t0 (col0,col1) VALUES ('E','IHmJe'); INSERT INTO t0 (col0,col1) VALUES ('Kt3',NULL); INSERT INTO t0 (col0) VALUES ('Zm2unTj'); 
CREATE TABLE t1 (  col0 text ,  col1 int ,  col2 text ,  col3 int ,  col4 text );
INSERT INTO t1 (col1,col2,col3,col4) VALUES (448715285,'M',-1832017664,'TOODVU'); INSERT INTO t1 (col0,col1,col2,col3,col4) VALUES ('GZuiY',620393216,'AHX',-1305616808,'TPudz8'); INSERT INTO t1 (col0,col1,col3,col4) VALUES ('nNfJeLwp',439561028,NULL,'Kbre8p'); INSERT INTO t1 (col0,col1,col2,col3,col4) VALUES (NULL,NULL,'av',-1252356455,'Yjca'); INSERT INTO t1 (col0,col1,col2,col3,col4) VALUES (NULL,1237306720,'yQTk',-403961669,'DmMyNvm'); INSERT INTO t1 (col0,col1,col2,col4) VALUES (NULL,2049300292,'sYCWGtg8J','RxYwTBHZ3'); INSERT INTO t1 (col0,col1,col2,col3,col4) VALUES ('Lr',-1650880014,'HAFG',-1384780549,'e0ZItlu'); 
CREATE TABLE t2 (  col0 text  NOT NULL,  col1 int ,  col2 int  NOT NULL);
INSERT INTO t2 (col0,col1,col2) VALUES ('5wkZ',-578609212,-1451861236); INSERT INTO t2 (col0,col1,col2) VALUES ('QdWDYOWaN',-1208558314,1774332077); INSERT INTO t2 (col0,col1,col2) VALUES ('r',-895172089,-925435689); INSERT INTO t2 (col0,col1,col2) VALUES ('owjNqRkto',NULL,-258402792); INSERT INTO t2 (col0,col1,col2) VALUES ('JE1Xy53PSJ',1094324410,-1789434804); 
CREATE TABLE t3 (  col0 text ,  col1 int ,  col2 int  NOT NULL,  col3 text ,  col4 int ,  col5 text );
INSERT INTO t3 (col0,col1,col2,col3,col5) VALUES ('V2xGy7',1905137556,991887252,'eirzPZGtTh','qXGiehd1'); INSERT INTO t3 (col0,col1,col2,col3,col4,col5) VALUES ('47Hw96W6xa',1148164379,699964734,'E5',-2146066543,'ZAQ0ru'); INSERT INTO t3 (col0,col2,col3,col4,col5) VALUES ('TtVhEsfk',1987252506,NULL,-801952450,'ODucy4DxoV'); INSERT INTO t3 (col1,col2,col3,col4,col5) VALUES (-1790726037,-29594294,'uU1sAcGd',2146383358,'ArnoC6'); INSERT INTO t3 (col0,col1,col2,col3,col4,col5) VALUES ('7yjwvWfGSu',-1407498466,-520058265,'aICsPiMfVW',NULL,'PgGkOyK'); INSERT INTO t3 (col2,col4,col5) VALUES (-455547118,2098766623,'no2'); INSERT INTO t3 (col0,col1,col2,col3,col4,col5) VALUES ('TZ',566302061,1599877988,'kH0Qxq',-599348559,'6075W'); INSERT INTO t3 (col0,col1,col2,col5) VALUES ('I',-1488912520,-1164400479,'mff2TCQw'); 
CREATE TABLE t4 (  col0 text ,  col1 text ,  col2 text ,  col3 int );
INSERT INTO t4 (col0,col1,col2) VALUES ('qVqqZ7eR','JMV','cp'); INSERT INTO t4 (col1,col2,col3) VALUES ('o3wWtVU','KJnwp',-781743193); INSERT INTO t4 (col0,col1,col2,col3) VALUES ('3','mh','xYYMuA',NULL); INSERT INTO t4 (col0,col1,col2,col3) VALUES ('Ogf6jAn','xFpTvrWL',NULL,1926754161); INSERT INTO t4 (col0,col1,col3) VALUES ('shWWxc7rq1',NULL,-1660962766); INSERT INTO t4 (col0,col1,col2,col3) VALUES ('oWLkOBt','l','tQ',734675971); INSERT INTO t4 (col0,col1,col2,col3) VALUES (NULL,'fzCe','lGyatqO',NULL); INSERT INTO t4 (col0,col1,col2,col3) VALUES ('a',NULL,'W5kZgK34n',670528846); 
SELECT LAG(- (- (-403961669))) OVER () AS win0, AVG(UPPER ((t1.col2 || 'HAFG'))) OVER (PARTITION BY col4 ORDER BY col3) AS win1, ROW_NUMBER() OVER (RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS win2 FROM t1;
