sqllogictest
Check-in [9b5974b19a]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated to skip tests for PostgreSQL where output column is (re)named without an AS term.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9b5974b19a1cccea01224aed50b05c295fd053fa
User & Date: shaneh 2008-12-23 04:48:35
Original Comment: Updated to skip tests for PostreSQL where output column is (re)named with AS term.
Context
2008-12-23
20:29
More updates for PostgreSQL compatibility. check-in: 9483eb157c user: shaneh tags: trunk
04:48
Updated to skip tests for PostgreSQL where output column is (re)named without an AS term. check-in: 9b5974b19a user: shaneh tags: trunk
2008-12-22
21:58
Send ODBC error messages to stderr instead of stdout. check-in: c715699ccb user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/random/aggregates/slt_good_0.test.

3087
3088
3089
3090
3091
3092
3093

3094
3095
3096
3097
3098
3099
3100
....
4040
4041
4042
4043
4044
4045
4046

4047
4048
4049
4050
4051
4052
4053
....
5526
5527
5528
5529
5530
5531
5532

5533
5534
5535
5536
5537
5538
5539
....
5720
5721
5722
5723
5724
5725
5726

5727
5728
5729
5730
5731
5732
5733
....
5768
5769
5770
5771
5772
5773
5774

5775
5776
5777
5778
5779
5780
5781
....
6899
6900
6901
6902
6903
6904
6905

6906
6907
6908
6909
6910
6911
6912
....
7711
7712
7713
7714
7715
7716
7717

7718
7719
7720
7721
7722
7723
7724
7725
7726
7727

7728
7729
7730
7731
7732
7733
7734
....
7803
7804
7805
7806
7807
7808
7809

7810
7811
7812
7813
7814
7815
7816
....
8601
8602
8603
8604
8605
8606
8607

8608
8609
8610
8611
8612
8613
8614
....
9928
9929
9930
9931
9932
9933
9934

9935
9936
9937
9938
9939
9940
9941
.....
11174
11175
11176
11177
11178
11179
11180

11181
11182
11183
11184
11185
11186
11187
.....
11487
11488
11489
11490
11491
11492
11493

11494
11495
11496
11497
11498
11499
11500
.....
11718
11719
11720
11721
11722
11723
11724

11725
11726
11727
11728
11729
11730
11731
.....
11917
11918
11919
11920
11921
11922
11923

11924
11925
11926
11927
11928
11929
11930
.....
12519
12520
12521
12522
12523
12524
12525

12526
12527
12528
12529
12530
12531
12532
.....
13114
13115
13116
13117
13118
13119
13120

13121
13122
13123
13124
13125
13126
13127
.....
13541
13542
13543
13544
13545
13546
13547

13548
13549
13550
13551
13552
13553
13554
.....
14159
14160
14161
14162
14163
14164
14165

14166
14167
14168
14169
14170
14171
14172
.....
15580
15581
15582
15583
15584
15585
15586

15587
15588
15589
15590
15591
15592
15593
.....
16377
16378
16379
16380
16381
16382
16383

16384
16385
16386
16387
16388
16389
16390
.....
16855
16856
16857
16858
16859
16860
16861

16862
16863
16864
16865
16866
16867
16868
.....
19060
19061
19062
19063
19064
19065
19066

19067
19068
19069
19070
19071
19072
19073
.....
20493
20494
20495
20496
20497
20498
20499

20500
20501
20502
20503
20504
20505
20506
.....
20812
20813
20814
20815
20816
20817
20818

20819
20820
20821
20822
20823
20824
20825
.....
21780
21781
21782
21783
21784
21785
21786

21787
21788
21789
21790
21791
21792
21793
.....
22337
22338
22339
22340
22341
22342
22343

22344
22345
22346
22347
22348
22349
22350
.....
24475
24476
24477
24478
24479
24480
24481

24482
24483
24484
24485
24486
24487
24488
.....
25619
25620
25621
25622
25623
25624
25625

25626
25627
25628
25629
25630
25631
25632
.....
27089
27090
27091
27092
27093
27094
27095

27096
27097
27098
27099
27100
27101
27102
.....
27331
27332
27333
27334
27335
27336
27337

27338
27339
27340
27341
27342
27343
27344
.....
28867
28868
28869
28870
28871
28872
28873

28874
28875
28876
28877
28878
28879
28880
.....
29894
29895
29896
29897
29898
29899
29900

29901
29902
29903
29904
29905
29906
29907
.....
30181
30182
30183
30184
30185
30186
30187

30188
30189
30190
30191
30192
30193
30194
.....
30814
30815
30816
30817
30818
30819
30820

30821
30822
30823
30824
30825
30826
30827
.....
31372
31373
31374
31375
31376
31377
31378

31379
31380
31381
31382
31383
31384
31385
.....
31842
31843
31844
31845
31846
31847
31848

31849
31850
31851
31852
31853
31854
31855
.....
32100
32101
32102
32103
32104
32105
32106

32107
32108
32109
32110
32111
32112
32113
.....
32198
32199
32200
32201
32202
32203
32204

32205
32206
32207
32208
32209
32210
32211
.....
32737
32738
32739
32740
32741
32742
32743

32744
32745
32746
32747
32748
32749
32750
.....
32970
32971
32972
32973
32974
32975
32976

32977
32978
32979
32980
32981
32982
32983
.....
33013
33014
33015
33016
33017
33018
33019

33020
33021
33022
33023
33024
33025
33026
.....
34938
34939
34940
34941
34942
34943
34944

34945
34946
34947
34948
34949
34950
34951
.....
35707
35708
35709
35710
35711
35712
35713

35714
35715
35716
35717
35718
35719
35720
.....
35791
35792
35793
35794
35795
35796
35797

35798
35799
35800
35801
35802
35803
35804
.....
35928
35929
35930
35931
35932
35933
35934

35935
35936
35937
35938
35939
35940
35941
.....
35954
35955
35956
35957
35958
35959
35960

35961
35962
35963
35964
35965
35966
35967
.....
36679
36680
36681
36682
36683
36684
36685

36686
36687
36688
36689
36690
36691
36692
.....
37009
37010
37011
37012
37013
37014
37015

37016
37017
37018
37019
37020
37021
37022
.....
37302
37303
37304
37305
37306
37307
37308

37309
37310
37311
37312
37313
37314
37315
.....
38437
38438
38439
38440
38441
38442
38443

38444
38445
38446
38447
38448
38449
38450
.....
42565
42566
42567
42568
42569
42570
42571

42572
42573
42574
42575
42576
42577
42578
.....
42843
42844
42845
42846
42847
42848
42849

42850
42851
42852
42853
42854
42855
42856
.....
43631
43632
43633
43634
43635
43636
43637

43638
43639
43640
43641
43642
43643
43644
.....
44029
44030
44031
44032
44033
44034
44035

44036
44037
44038
44039
44040
44041
44042
.....
45047
45048
45049
45050
45051
45052
45053

45054
45055
45056
45057
45058
45059
45060
.....
46068
46069
46070
46071
46072
46073
46074

46075
46076
46077
46078
46079
46080
46081
.....
46090
46091
46092
46093
46094
46095
46096

46097
46098
46099
46100
46101
46102
46103
.....
47207
47208
47209
47210
47211
47212
47213

47214
47215
47216
47217
47218
47219
47220
.....
47807
47808
47809
47810
47811
47812
47813

47814
47815
47816
47817
47818
47819
47820
.....
48375
48376
48377
48378
48379
48380
48381

48382
48383
48384
48385
48386
48387
48388
.....
48459
48460
48461
48462
48463
48464
48465

48466
48467
48468
48469
48470
48471
48472
.....
50737
50738
50739
50740
50741
50742
50743

50744
50745
50746
50747
50748
50749
50750
.....
51291
51292
51293
51294
51295
51296
51297

51298
51299
51300
51301
51302
51303
51304
.....
53707
53708
53709
53710
53711
53712
53713

53714
53715
53716
53717
53718
53719
53720
.....
53727
53728
53729
53730
53731
53732
53733

53734
53735
53736
53737
53738
53739
53740
.....
54957
54958
54959
54960
54961
54962
54963

54964
54965
54966
54967
54968
54969
54970
.....
56487
56488
56489
56490
56491
56492
56493

56494
56495
56496
56497
56498
56499
56500
.....
56569
56570
56571
56572
56573
56574
56575

56576
56577
56578
56579
56580
56581
56582
.....
56770
56771
56772
56773
56774
56775
56776

56777
56778
56779
56780
56781
56782
56783
.....
56788
56789
56790
56791
56792
56793
56794

56795
56796
56797
56798
56799
56800
56801
.....
56853
56854
56855
56856
56857
56858
56859

56860
56861
56862
56863
56864
56865
56866
.....
57207
57208
57209
57210
57211
57212
57213

57214
57215
57216
57217
57218
57219
57220
.....
57602
57603
57604
57605
57606
57607
57608

57609
57610
57611
57612
57613
57614
57615
.....
58200
58201
58202
58203
58204
58205
58206

58207
58208
58209
58210
58211
58212
58213
.....
59471
59472
59473
59474
59475
59476
59477

59478
59479
59480
59481
59482
59483
59484
.....
61497
61498
61499
61500
61501
61502
61503

61504
61505
61506
61507
61508
61509
61510
.....
62619
62620
62621
62622
62623
62624
62625

62626
62627
62628
62629
62630
62631
62632
.....
68014
68015
68016
68017
68018
68019
68020

68021
68022
68023
68024
68025
68026
68027
.....
69814
69815
69816
69817
69818
69819
69820

69821
69822
69823
69824
69825
69826
69827
.....
69999
70000
70001
70002
70003
70004
70005

70006
70007
70008
70009
70010
70011
70012
.....
70727
70728
70729
70730
70731
70732
70733

70734
70735
70736
70737
70738
70739
70740
.....
71284
71285
71286
71287
71288
71289
71290

71291
71292
71293
71294
71295
71296
71297
.....
71790
71791
71792
71793
71794
71795
71796

71797
71798
71799
71800
71801
71802
71803
.....
72791
72792
72793
72794
72795
72796
72797

72798
72799
72800
72801
72802
72803
72804
.....
74330
74331
74332
74333
74334
74335
74336

74337
74338
74339
74340
74341
74342
74343
.....
74738
74739
74740
74741
74742
74743
74744

74745
74746
74747
74748
74749
74750
74751
.....
77302
77303
77304
77305
77306
77307
77308

77309
77310
77311
77312
77313
77314
77315
.....
79103
79104
79105
79106
79107
79108
79109

79110
79111
79112
79113
79114
79115
79116
.....
79260
79261
79262
79263
79264
79265
79266

79267
79268
79269
79270
79271
79272
79273
.....
79573
79574
79575
79576
79577
79578
79579

79580
79581
79582
79583
79584
79585
79586
.....
79738
79739
79740
79741
79742
79743
79744

79745
79746
79747
79748
79749
79750
79751
.....
79892
79893
79894
79895
79896
79897
79898

79899
79900
79901
79902
79903
79904
79905
.....
80888
80889
80890
80891
80892
80893
80894

80895
80896
80897
80898
80899
80900
80901
.....
81045
81046
81047
81048
81049
81050
81051

81052
81053
81054
81055
81056
81057
81058
.....
81812
81813
81814
81815
81816
81817
81818

81819
81820
81821
81822
81823
81824
81825
.....
82908
82909
82910
82911
82912
82913
82914

82915
82916
82917
82918
82919
82920
82921
.....
82994
82995
82996
82997
82998
82999
83000

83001
83002
83003
83004
83005
83006
83007
.....
83201
83202
83203
83204
83205
83206
83207

83208
83209
83210
83211
83212
83213
83214
.....
84033
84034
84035
84036
84037
84038
84039

84040
84041
84042
84043
84044
84045
84046
.....
85179
85180
85181
85182
85183
85184
85185

85186
85187
85188
85189
85190
85191
85192
.....
85320
85321
85322
85323
85324
85325
85326

85327
85328
85329
85330
85331
85332
85333
.....
86875
86876
86877
86878
86879
86880
86881

86882
86883
86884
86885
86886
86887
86888
.....
87912
87913
87914
87915
87916
87917
87918

87919
87920
87921
87922
87923
87924
87925
.....
88150
88151
88152
88153
88154
88155
88156

88157
88158
88159
88160
88161
88162
88163
.....
88444
88445
88446
88447
88448
88449
88450

88451
88452
88453
88454
88455
88456
88457
.....
89112
89113
89114
89115
89116
89117
89118

89119
89120
89121
89122
89123
89124
89125
.....
89578
89579
89580
89581
89582
89583
89584

89585
89586
89587
89588
89589
89590
89591
.....
89787
89788
89789
89790
89791
89792
89793

89794
89795
89796
89797
89798
89799
89800

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 10 / 61 IS NULL
----
-3


query II rowsort
SELECT + col1 col2, + 84 FROM tab0 AS cor0
----
1
84
21
84
................................................................................
query II rowsort label-454
SELECT + COUNT( * ) col0, + 98 + + COUNT( * ) FROM tab1
----
3
101

skipif mysql # not compatible

query II rowsort label-454
SELECT + COUNT ( * ) col0, + 98 + + COUNT ( * ) FROM tab1
----
3
101

query II rowsort
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-615
SELECT - COUNT ( * ) + + 39 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
30


query II rowsort
SELECT DISTINCT col1 col2, col2 FROM tab1 AS cor0
----
14
96
47
68
................................................................................
-40
1
-58
2
-23

skipif mysql # not compatible

query II rowsort label-633
SELECT col0 / + col2 col1, - col2 AS col0 FROM tab2 AS cor0
----
1
-40
1
-58
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 + + + 12 col0 FROM tab1 WHERE NULL IS NULL
----
10


query II rowsort
SELECT DISTINCT col0 col1, ( - col1 ) AS col2 FROM tab2
----
46
-51
64
-77
................................................................................
59
59

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE 47 NOT BETWEEN - 91 AND NULL
----


query II rowsort
SELECT ALL - col1 * + - col1 col2, + 90 AS col0 FROM tab2 AS cor0
----
2601
90
4489
90
................................................................................
43
47
-65
99
-36

skipif mysql # not compatible

query II rowsort label-871
SELECT + col2 col1, col0 + - col2 - - + CAST ( + col1 AS INTEGER ) / + 65 + - 34 FROM tab0
----
10
43
47
-65
99
-36


query II rowsort
SELECT DISTINCT - col1 col1, - 15 * 10 FROM tab2
----
-51
-150
-67
-150
................................................................................
-315392
-376875

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 73 * + col2 IS NOT NULL
----


query II rowsort
SELECT DISTINCT - - 58 col1, col1 AS col1 FROM tab0 AS cor0
----
58
1
58
21
................................................................................
196
0
62
0
97

skipif mysql # not compatible

query II rowsort label-972
SELECT - + 55 / - 65 col1, ( + col0 ) + + + col2 FROM tab0 AS cor0
----
0
196
0
62
................................................................................
query I rowsort
SELECT - - col2 * - - 65 * - + 81 FROM tab2 AS cor0
----
-121095
-210600
-305370


query II rowsort
SELECT - col2 * - - col2 col2, - col2 AS col0 FROM tab1
----
-3481
-59
-4624
-68
................................................................................
-81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 1
----


query II rowsort
SELECT + 85 col1, - col1 FROM tab2
----
85
-51
85
-67
................................................................................
query I rowsort
SELECT 77 + - + col1 + col0 * - - 94 FROM tab2 AS cor0
----
4350
6016
7060


query II rowsort
SELECT DISTINCT col2 * ( col2 ) col2, + 35 AS col2 FROM tab2 AS cor0
----
1600
35
3364
35
................................................................................
query I rowsort
SELECT ALL - 44 col2 FROM tab0 cor0
----
-44
-44
-44


query III rowsort
SELECT + + 36, 6 col1, - ( + col0 ) AS col1 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - col0 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
................................................................................
query II rowsort label-1333
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col0, - COUNT( * ) FROM tab1
----
9
-3

skipif mysql # not compatible

query II rowsort label-1333
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ) FROM tab1
----
9
-3

onlyif mysql # DIV for integer division: 
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab2 AS cor0
----
-38


query II rowsort
SELECT ALL - col2 col1, - col0 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
................................................................................
119

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT - 0 col0, + col2 * + 60 AS col0 FROM tab1
----
0
3540
0
4080
................................................................................
0
-68
0
-96
0

skipif mysql # not compatible

query II rowsort label-1515
SELECT ALL - col2 col1, 44 / - 51 AS col2 FROM tab1
----
-59
0
-68
0
................................................................................
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible

query II rowsort label-1581
SELECT col2 * col1 col1, 75 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
1173
NULL
3080
NULL
................................................................................
query I rowsort
SELECT ALL col2 + + 27 col1 FROM tab0 AS cor0
----
126
37
74


query II rowsort
SELECT DISTINCT + col0 + + - col2 col2, col1 FROM tab2 AS cor0
----
17
67
23
51
................................................................................
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible

query II rowsort label-1822
SELECT DISTINCT + ( - col0 ) col0, col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
................................................................................
query I rowsort
SELECT DISTINCT + col1 + + ( + - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82


query II rowsort
SELECT ALL - 18 col0, + 91 AS col2 FROM tab1 cor0
----
-18
91
-18
91
................................................................................
1
40
1
58
1

skipif mysql # not compatible

query II rowsort label-2107
SELECT ALL col2 col1, - 73 / - 51 FROM tab2
----
23
1
40
1
................................................................................
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = NULL
----


query II rowsort
SELECT + ( - - col1 ) col2, + col2 AS col2 FROM tab0
----
1
99
21
10
................................................................................
-51
-192
-85
-118
-91
-136


query II rowsort
SELECT - col2 col2, + col2 * + 68 * col0 AS col0 FROM tab2 AS cor0
----
-23
71944
-40
174080
................................................................................
query II rowsort label-2408
SELECT 65 + - + COUNT( * ) col0, COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
62
-9

skipif mysql # not compatible

query II rowsort label-2408
SELECT 65 + - + COUNT ( * ) col0, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
62
-9

onlyif mysql # DIV for integer division: 
................................................................................
query II rowsort label-2469
SELECT 80 + - COUNT( * ) + - COUNT( * ) col2, 78 AS col0 FROM tab2
----
74
78

skipif mysql # not compatible

query II rowsort label-2469
SELECT 80 + - COUNT ( * ) + - COUNT ( * ) col2, 78 AS col0 FROM tab2
----
74
78

query III rowsort
................................................................................
-23
NULL
-40
NULL
-58

skipif mysql # not compatible

query II rowsort label-2701
SELECT DISTINCT - 87 * + 84 * - + ( CAST ( NULL AS INTEGER ) ) col1, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
................................................................................
6933
-1914
23
-194
10015

skipif mysql # not compatible

query II rowsort label-2827
SELECT ALL - col0 + ( + col1 ) * - col0 col0, col2 * col2 * col2 / - - col0 + 12 FROM tab0 AS cor0
----
-1230
6933
-1914
23
................................................................................
----

skipif mysql # not compatible
query III rowsort label-2983
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < + CAST ( NULL AS INTEGER )
----


query II rowsort
SELECT - col0 col1, + col1 * - - col0 * - col1 FROM tab1 AS cor0
----
-51
-9996
-85
-2125
................................................................................
51
4614
67
6046
77

skipif mysql # not compatible

query II rowsort label-3008
SELECT ALL - - CAST ( + col1 AS INTEGER ) + col2 + + + col1 * + col1 col0, + col1 AS col1 FROM tab2 AS cor0
----
2675
51
4614
67
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3184
SELECT - + 6, + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) / ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-6
75


query II rowsort
SELECT + - 86 col1, - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-86
-2116
-86
-4096
................................................................................
query II rowsort label-3297
SELECT ALL - - COUNT( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible

query II rowsort label-3297
SELECT ALL - - COUNT ( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-3325
SELECT - COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab2
----
-3
-3

skipif mysql # not compatible

query II rowsort label-3325
SELECT - COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab2
----
-3
-3

query III rowsort
................................................................................
46
NULL
64
NULL
75

skipif mysql # not compatible

query II rowsort label-3396
SELECT + col2 + + CAST ( NULL AS INTEGER ) + + ( ( - col0 ) ) col0, col0 FROM tab2
----
NULL
46
NULL
64
................................................................................
query II rowsort label-3455
SELECT DISTINCT SUM( ALL + - col2 ) DIV + COUNT( * ) col0, COUNT( * ) FROM tab2
----
-40
3

skipif mysql # not compatible

query II rowsort label-3455
SELECT DISTINCT SUM ( ALL + - col2 ) / + COUNT ( * ) col0, COUNT ( * ) FROM tab2
----
-40
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT DISTINCT + col1 - + + col0 * + 6 AS col2 FROM tab0
----
-501
-581
-9


query II rowsort
SELECT - col1 col2, col2 * + col0 * col1 * + - 69 AS col2 FROM tab1
----
-14
-4729536
-47
-20067684
................................................................................
2601
48668
4489
326250
5929
163840


query II rowsort
SELECT - col1 * - col2 * col1 col2, 75 AS col1 FROM tab0 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT DISTINCT + + 72 * - + 52 + - col1 AS col0 FROM tab1 AS cor0
----
................................................................................
143
85
146
51
158
91


query II rowsort
SELECT 65 + - + ( col0 ) + - ( + col1 ) col0, - 50 FROM tab1
----
-25
-50
-73
-50
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT 48 + - COUNT ( * ) col2 FROM tab0
----
45


query II rowsort
SELECT DISTINCT + - 29 col2, 25 AS col1 FROM tab1 AS cor0
----
-29
25

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-3624
SELECT 91 col1, + COUNT( * ) AS col2 FROM tab2
----
91
3

skipif mysql # not compatible

query II rowsort label-3624
SELECT 91 col1, + COUNT ( * ) AS col2 FROM tab2
----
91
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----
NULL


query II rowsort
SELECT DISTINCT - col2 * col1 * + col2 col1, ( + 54 ) AS col1 FROM tab0 AS cor0
----
-178929
54
-2100
54
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT - SUM ( ALL - 75 ) col1 FROM tab0
----
225


query II rowsort
SELECT DISTINCT col0 col2, 78 FROM tab0
----
15
78
87
78
................................................................................
query I rowsort
SELECT + col1 - - + col1 FROM tab2 AS cor0
----
102
134
154


query II rowsort
SELECT + 86 col1, 17 + col1 FROM tab2 AS cor0 WHERE NOT col2 / - - 1 - - col1 IS NULL
----
86
68
86
84
................................................................................
15
47
87
10
97
99


query II rowsort
SELECT - - 5 col2, ( - - 88 ) * col1 * - 98 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col2 = NULL
................................................................................
query II rowsort label-3967
SELECT 31 col1, + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
----
31
NULL

skipif mysql # not compatible

query II rowsort label-3967
SELECT 31 col1, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
----
31
NULL

query III rowsort
................................................................................
query II rowsort label-3970
SELECT ALL COUNT( * ) col0, + MIN( DISTINCT ( + col1 ) ) FROM tab0
----
3
1

skipif mysql # not compatible

query II rowsort label-3970
SELECT ALL COUNT ( * ) col0, + MIN ( DISTINCT ( + col1 ) ) FROM tab0
----
3
1

query II rowsort
................................................................................
-1989
NULL
-2613
NULL
-3003

skipif mysql # not compatible

query II rowsort label-4043
SELECT ALL + CAST ( NULL AS INTEGER ) col2, 39 * + - col1 FROM tab2 AS cor0
----
NULL
-1989
NULL
-2613
................................................................................

skipif mysql # not compatible
query I rowsort label-4084
SELECT + ( + 39 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
13


query II rowsort
SELECT - 52 * col2 col1, 97 FROM tab0 AS cor0
----
-2444
97
-5148
97
................................................................................

skipif mysql # not compatible
query I rowsort label-4113
SELECT + + COUNT ( * ) * - 77 AS col0 FROM tab0 WHERE ( NULL ) IS NULL AND NOT CAST ( NULL AS INTEGER ) * 44 IS NOT NULL
----
-231


query II rowsort
SELECT DISTINCT - col0 col1, col0 AS col2 FROM tab1
----
-51
51
-85
85
................................................................................

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( + col0 ) FROM tab1
----
3


query II rowsort
SELECT ALL - col2 col0, col0 FROM tab0
----
-10
87
-47
15
................................................................................

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3


query II rowsort
SELECT col1 col0, - 30 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
51
-35190
67
-116580
................................................................................
query I rowsort
SELECT + + 55 * 1 FROM tab2 AS cor0
----
55
55
55


query III rowsort
SELECT DISTINCT 15 col0, col1 * + col2, - col2 AS col0 FROM tab2
----
9 values hashing to 3367038e942e104e8196040bff63ebd9

query I rowsort
SELECT + col1 * - - 71 * - col1 FROM tab2
................................................................................
query I rowsort
SELECT ALL + 0 + + col2 AS col1 FROM tab0
----
10
47
99


query II rowsort
SELECT ALL col0 col1, col2 AS col0 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + + - col0 AS col1 FROM tab0 AS cor0
----
................................................................................
query II rowsort label-4854
SELECT DISTINCT CAST( - + 11 AS SIGNED ) col2, 22 FROM tab0
----
-11
22

skipif mysql # not compatible

query II rowsort label-4854
SELECT DISTINCT CAST ( - + 11 AS INTEGER ) col2, 22 FROM tab0
----
-11
22

query III rowsort
................................................................................
----
-1
30
0
30

skipif mysql # not compatible

query II rowsort label-4967
SELECT DISTINCT col1 / - 75 col1, + 30 FROM tab2
----
-1
30
0
30
................................................................................
5390

query I rowsort
SELECT DISTINCT - 17 FROM tab2 WHERE - 19 + + col0 IS NOT NULL
----
-17


query II rowsort
SELECT - col1 col2, - col0 + - col0 AS col2 FROM tab1
----
-14
-102
-47
-182
................................................................................
query II rowsort label-5080
SELECT - CAST( NULL AS SIGNED ) col2, MAX( - col2 ) AS col1 FROM tab1
----
NULL
-59

skipif mysql # not compatible

query II rowsort label-5080
SELECT - CAST ( NULL AS INTEGER ) col2, MAX ( - col2 ) AS col1 FROM tab1
----
NULL
-59

onlyif mysql # DIV for integer division: 
................................................................................
147425
1
245379
1
262665

skipif mysql # not compatible

query II rowsort label-5210
SELECT - + 59 / - 42 col0, - ( - - 43 ) * - + 67 * col0 + + 13 * + ( + 38 ) FROM tab1 cor0
----
1
147425
1
245379
................................................................................
query I rowsort
SELECT - 69 - - 84 AS col0 FROM tab1
----
15
15
15


query II rowsort
SELECT ALL + col0 * col1 col1, 79 AS col1 FROM tab1
----
425
79
4277
79
................................................................................

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + COUNT ( * ) + + 35 AS col0 FROM tab1 AS cor0
----
38


query II rowsort
SELECT + col2 col0, - 12 AS col0 FROM tab2 AS cor0
----
23
-12
40
-12
................................................................................
51
32
85
32
91
32


query II rowsort
SELECT - + 19 col1, col1 FROM tab0 cor0
----
-19
1
-19
21
................................................................................

skipif mysql # not compatible
query I rowsort label-5582
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + col1 IS NULL )
----
3


query II rowsort
SELECT ALL + 79 col1, - col1 FROM tab2
----
79
-51
79
-67
................................................................................

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - ( - col0 ) * col2 )
----
0


query II rowsort
SELECT + 63 col0, - col2 + - 40 AS col2 FROM tab2 AS cor0
----
63
-63
63
-80
................................................................................
-74
55
-74
55
-74
55


query II rowsort
SELECT + - 8 col0, - col0 AS col0 FROM tab0 AS cor0
----
-8
-15
-8
-87
................................................................................
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT col0 * + col0 col0, col2 * + col2 FROM tab0 AS cor0
----
225
2209
7569
100
................................................................................

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL


query II rowsort
SELECT ALL col1 col1, col1 AS col2 FROM tab1
----
14
14
47
47
................................................................................
query II rowsort label-6218
SELECT ALL - COUNT( * ) col1, COUNT( + col2 ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible

query II rowsort label-6218
SELECT ALL - COUNT ( * ) col1, COUNT ( + col2 ) FROM tab0 AS cor0
----
-3
3

query I rowsort
................................................................................
query I rowsort
SELECT - 29 * + col2 AS col0 FROM tab2
----
-1160
-1682
-667


query II rowsort
SELECT - 9 * + 62 col2, 6 AS col0 FROM tab1
----
-558
6
-558
6
................................................................................
query I rowsort label-6247
SELECT col2 / 63 FROM tab1
----
0
1
1


query II rowsort
SELECT + col1 col0, - 58 FROM tab0
----
1
-58
21
-58
................................................................................
query II rowsort label-6249
SELECT SUM( - 29 ) col2, COUNT( * ) AS col2 FROM tab2
----
-87
3

skipif mysql # not compatible

query II rowsort label-6249
SELECT SUM ( - 29 ) col2, COUNT ( * ) AS col2 FROM tab2
----
-87
3

query I rowsort
................................................................................
query I rowsort
SELECT - 19 - - 48 FROM tab1
----
29
29
29


query II rowsort
SELECT DISTINCT col0 col2, + 43 - + - col0 FROM tab1
----
51
94
85
128
................................................................................
96
0
59
0
68

skipif mysql # not compatible

query II rowsort label-6297
SELECT DISTINCT + col2 / - col0 col0, col2 AS col1 FROM tab1
----
-1
96
0
59
................................................................................
46
-8
64
-8
75
-8


query II rowsort
SELECT col2 col1, + 31 AS col0 FROM tab0
----
10
31
47
31
................................................................................
----
0

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1 WHERE NOT col0 - - ( col2 ) IS NOT NULL
----


query II rowsort
SELECT 9 * + col1 col2, + col1 AS col1 FROM tab1
----
126
14
423
47
................................................................................
-62

query I rowsort
SELECT DISTINCT - - ( 61 ) AS col2 FROM tab0 WHERE - 7 + - 74 * + - col1 * - 93 IS NOT NULL
----
61


query II rowsort
SELECT - col0 col0, - col0 FROM tab0
----
-15
-15
-87
-87
................................................................................
85
91

query III rowsort
SELECT * FROM tab2 WHERE - - 55 IS NULL
----


query II rowsort
SELECT ALL 12 col2, - col1 AS col1 FROM tab0
----
12
-1
12
-21
................................................................................

skipif mysql # not compatible
query I rowsort label-6884
SELECT COUNT ( * ) + + - 2 * - 1 FROM tab2
----
5


query II rowsort
SELECT + 13 col0, 25 * + col0 AS col2 FROM tab1
----
13
1275
13
2125
................................................................................
query II rowsort label-7466
SELECT - COUNT( col1 ) col1, 53 AS col1 FROM tab0
----
-3
53

skipif mysql # not compatible

query II rowsort label-7466
SELECT - COUNT ( col1 ) col1, 53 AS col1 FROM tab0
----
-3
53

query I rowsort
................................................................................
query I rowsort
SELECT ALL - 95 col0 FROM tab2 AS cor0
----
-95
-95
-95


query II rowsort
SELECT + col1 col2, - col0 FROM tab1
----
14
-51
47
-91
................................................................................
query I rowsort
SELECT - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5


query II rowsort
SELECT + col1 - + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
-66
21
-96
1
................................................................................
71
-50
71
-50
71

skipif mysql # not compatible

query II rowsort label-7771
SELECT - + 50 col2, 71 + 16 / + 24 * col1 FROM tab2 AS cor0
----
-50
71
-50
71
................................................................................
query II rowsort label-7831
SELECT DISTINCT + COUNT( * ) col2, + ( + 59 ) FROM tab0
----
3
59

skipif mysql # not compatible

query II rowsort label-7831
SELECT DISTINCT + COUNT ( * ) col2, + ( + 59 ) FROM tab0
----
3
59

query I rowsort
................................................................................
query I rowsort
SELECT ALL + col0 * + + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350


query II rowsort
SELECT DISTINCT + - col1 col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................
query II rowsort label-7998
SELECT 66 col0, SUM( + + CAST( - - col2 AS SIGNED ) ) - - 21 FROM tab1 cor0
----
66
244

skipif mysql # not compatible

query II rowsort label-7998
SELECT 66 col0, SUM ( + + CAST ( - - col2 AS INTEGER ) ) - - 21 FROM tab1 cor0
----
66
244

query I rowsort
................................................................................
3807
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 21 BETWEEN ( + col0 ) AND ( NULL )
----


query II rowsort
SELECT + 16 col2, 18 + - + col2 FROM tab0
----
16
-29
16
-81
................................................................................
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8224
SELECT + - col1 / CAST( NULL AS SIGNED ) col0, + 69 + + ( + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to c3f211610c274e6733018ea0b4811969

skipif mysql # not compatible

query III rowsort label-8224
SELECT + - col1 / CAST ( NULL AS INTEGER ) col0, + 69 + + ( + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to c3f211610c274e6733018ea0b4811969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
................................................................................
query II rowsort label-8503
SELECT DISTINCT 84 col0, SUM( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
----
84
-63

skipif mysql # not compatible

query II rowsort label-8503
SELECT DISTINCT 84 col0, SUM ( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
----
84
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
query II rowsort label-8703
SELECT DISTINCT - CAST( - 61 AS SIGNED ) * + CAST( NULL AS SIGNED ) / SUM( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
50

skipif mysql # not compatible

query II rowsort label-8703
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / SUM ( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
50

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT ALL 46 * + col2 + + 48 AS col1 FROM tab2 AS cor0
----
1106
1888
2716


query II rowsort
SELECT col0 col0, 32 * - 6 AS col2 FROM tab2 AS cor0
----
46
-192
64
-192
................................................................................

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - 30 / - col0 + - ( + 55 ) AS col0 FROM tab1 AS cor0
----
-55


query II rowsort
SELECT - 31 col1, col0 * 85 AS col1 FROM tab2 AS cor0
----
-31
3910
-31
5440
................................................................................
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN 50 + ( - - col0 ) AND + - col2
----


query II rowsort
SELECT 52 col2, 75 FROM tab0
----
52
75
52
75
................................................................................
-15
NULL
-87
NULL
-97

skipif mysql # not compatible

query II rowsort label-8785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 col1, ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
................................................................................
-54
-23
-54
-40
-54
-58


query II rowsort
SELECT DISTINCT - col2 col1, + 5 * 81 - - col0 + + + col2 FROM tab1 AS cor0
----
-59
549
-68
564
................................................................................
query II rowsort label-8909
SELECT ALL + ( - 32 ) col2, CAST( + + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2
----
-32
9

skipif mysql # not compatible

query II rowsort label-8909
SELECT ALL + ( - 32 ) col2, CAST ( + + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2
----
-32
9

query I rowsort
................................................................................
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 76 * + + 33 FROM tab1 AS cor0
----
2508


query II rowsort
SELECT - 45 col0, + col1 AS col0 FROM tab1
----
-45
14
-45
47
................................................................................

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 80 <= ( + col2 )
----
4


query II rowsort
SELECT ALL col1 col2, - 85 FROM tab2
----
51
-85
67
-85
................................................................................
-23
-51

query III rowsort
SELECT * FROM tab1 WHERE + 10 + + 40 IS NULL
----


query II rowsort
SELECT - - col2 + - 40 + + col2 * - col1 col0, col0 FROM tab2 AS cor0
----
-1190
46
-3080
64
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9162
SELECT 98, col0 * - col2 * + - CAST( + ( + col1 ) AS SIGNED ) col0, + + col0 AS col1 FROM tab2
----
9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6

skipif mysql # not compatible

query III rowsort label-9162
SELECT 98, col0 * - col2 * + - CAST ( + ( + col1 ) AS INTEGER ) col0, + + col0 AS col1 FROM tab2
----
9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col1 * col0 / 34 * + col0 ) IS NOT NULL
................................................................................
query I rowsort
SELECT - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216


query II rowsort
SELECT + col0 * - 51 col2, + col0 AS col1 FROM tab0 AS cor0
----
-4437
87
-4947
97
................................................................................
query II rowsort label-9390
SELECT DISTINCT - - 93 col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
-3

skipif mysql # not compatible

query II rowsort label-9390
SELECT DISTINCT - - 93 col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
-3

query I rowsort
................................................................................
query I rowsort
SELECT - - 93 col2 FROM tab1 AS cor0
----
93
93
93


query II rowsort
SELECT DISTINCT + col2 col2, col1 * + ( - col0 ) FROM tab1 AS cor0
----
59
-425
68
-4277
................................................................................

skipif mysql # not compatible
query I rowsort label-9578
SELECT + - COUNT ( DISTINCT + 70 ) FROM tab2 AS cor0
----
-1


query II rowsort
SELECT DISTINCT - col2 col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
................................................................................
6
1
6
21
6
81


query II rowsort
SELECT ALL col2 col2, col0 FROM tab2
----
23
46
40
64
................................................................................
query II rowsort label-9717
SELECT + COUNT( * ) col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible

query II rowsort label-9717
SELECT + COUNT ( * ) col0, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-9750
SELECT ALL + 46 col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
46
3

skipif mysql # not compatible

query II rowsort label-9750
SELECT ALL + 46 col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
46
3

query I rowsort
................................................................................
query II rowsort label-9828
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible

query II rowsort label-9828
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query I rowsort
................................................................................
query II rowsort label-9875
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible

query II rowsort label-9875
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) FROM tab0
----
3
3

query III rowsort
................................................................................
query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97


query II rowsort
SELECT DISTINCT col0 * - 82 col1, + 0 FROM tab2
----
-3772
0
-5248
0







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
....
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
....
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
....
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
....
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
....
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
....
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
....
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
....
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
....
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
.....
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
.....
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
.....
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
.....
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
.....
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
.....
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
.....
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
.....
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
.....
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
.....
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
.....
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
.....
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
.....
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
.....
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
.....
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
.....
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
.....
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
.....
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
.....
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
.....
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
.....
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
.....
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
.....
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
.....
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
.....
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
.....
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
.....
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
.....
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
.....
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
.....
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
.....
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
.....
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
.....
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
.....
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
.....
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
.....
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
.....
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
.....
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
.....
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
.....
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496
38497
38498
38499
38500
38501
.....
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
.....
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904
42905
42906
42907
42908
42909
.....
43684
43685
43686
43687
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
.....
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
.....
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111
45112
45113
45114
45115
45116
.....
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138
.....
46147
46148
46149
46150
46151
46152
46153
46154
46155
46156
46157
46158
46159
46160
46161
.....
47265
47266
47267
47268
47269
47270
47271
47272
47273
47274
47275
47276
47277
47278
47279
.....
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880
.....
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447
48448
48449
.....
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
.....
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
.....
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
.....
53771
53772
53773
53774
53775
53776
53777
53778
53779
53780
53781
53782
53783
53784
53785
.....
53792
53793
53794
53795
53796
53797
53798
53799
53800
53801
53802
53803
53804
53805
53806
.....
55023
55024
55025
55026
55027
55028
55029
55030
55031
55032
55033
55034
55035
55036
55037
.....
56554
56555
56556
56557
56558
56559
56560
56561
56562
56563
56564
56565
56566
56567
56568
.....
56637
56638
56639
56640
56641
56642
56643
56644
56645
56646
56647
56648
56649
56650
56651
.....
56839
56840
56841
56842
56843
56844
56845
56846
56847
56848
56849
56850
56851
56852
56853
.....
56858
56859
56860
56861
56862
56863
56864
56865
56866
56867
56868
56869
56870
56871
56872
.....
56924
56925
56926
56927
56928
56929
56930
56931
56932
56933
56934
56935
56936
56937
56938
.....
57279
57280
57281
57282
57283
57284
57285
57286
57287
57288
57289
57290
57291
57292
57293
.....
57675
57676
57677
57678
57679
57680
57681
57682
57683
57684
57685
57686
57687
57688
57689
.....
58274
58275
58276
58277
58278
58279
58280
58281
58282
58283
58284
58285
58286
58287
58288
.....
59546
59547
59548
59549
59550
59551
59552
59553
59554
59555
59556
59557
59558
59559
59560
.....
61573
61574
61575
61576
61577
61578
61579
61580
61581
61582
61583
61584
61585
61586
61587
.....
62696
62697
62698
62699
62700
62701
62702
62703
62704
62705
62706
62707
62708
62709
62710
.....
68092
68093
68094
68095
68096
68097
68098
68099
68100
68101
68102
68103
68104
68105
68106
.....
69893
69894
69895
69896
69897
69898
69899
69900
69901
69902
69903
69904
69905
69906
69907
.....
70079
70080
70081
70082
70083
70084
70085
70086
70087
70088
70089
70090
70091
70092
70093
.....
70808
70809
70810
70811
70812
70813
70814
70815
70816
70817
70818
70819
70820
70821
70822
.....
71366
71367
71368
71369
71370
71371
71372
71373
71374
71375
71376
71377
71378
71379
71380
.....
71873
71874
71875
71876
71877
71878
71879
71880
71881
71882
71883
71884
71885
71886
71887
.....
72875
72876
72877
72878
72879
72880
72881
72882
72883
72884
72885
72886
72887
72888
72889
.....
74415
74416
74417
74418
74419
74420
74421
74422
74423
74424
74425
74426
74427
74428
74429
.....
74824
74825
74826
74827
74828
74829
74830
74831
74832
74833
74834
74835
74836
74837
74838
.....
77389
77390
77391
77392
77393
77394
77395
77396
77397
77398
77399
77400
77401
77402
77403
.....
79191
79192
79193
79194
79195
79196
79197
79198
79199
79200
79201
79202
79203
79204
79205
.....
79349
79350
79351
79352
79353
79354
79355
79356
79357
79358
79359
79360
79361
79362
79363
.....
79663
79664
79665
79666
79667
79668
79669
79670
79671
79672
79673
79674
79675
79676
79677
.....
79829
79830
79831
79832
79833
79834
79835
79836
79837
79838
79839
79840
79841
79842
79843
.....
79984
79985
79986
79987
79988
79989
79990
79991
79992
79993
79994
79995
79996
79997
79998
.....
80981
80982
80983
80984
80985
80986
80987
80988
80989
80990
80991
80992
80993
80994
80995
.....
81139
81140
81141
81142
81143
81144
81145
81146
81147
81148
81149
81150
81151
81152
81153
.....
81907
81908
81909
81910
81911
81912
81913
81914
81915
81916
81917
81918
81919
81920
81921
.....
83004
83005
83006
83007
83008
83009
83010
83011
83012
83013
83014
83015
83016
83017
83018
.....
83091
83092
83093
83094
83095
83096
83097
83098
83099
83100
83101
83102
83103
83104
83105
.....
83299
83300
83301
83302
83303
83304
83305
83306
83307
83308
83309
83310
83311
83312
83313
.....
84132
84133
84134
84135
84136
84137
84138
84139
84140
84141
84142
84143
84144
84145
84146
.....
85279
85280
85281
85282
85283
85284
85285
85286
85287
85288
85289
85290
85291
85292
85293
.....
85421
85422
85423
85424
85425
85426
85427
85428
85429
85430
85431
85432
85433
85434
85435
.....
86977
86978
86979
86980
86981
86982
86983
86984
86985
86986
86987
86988
86989
86990
86991
.....
88015
88016
88017
88018
88019
88020
88021
88022
88023
88024
88025
88026
88027
88028
88029
.....
88254
88255
88256
88257
88258
88259
88260
88261
88262
88263
88264
88265
88266
88267
88268
.....
88549
88550
88551
88552
88553
88554
88555
88556
88557
88558
88559
88560
88561
88562
88563
.....
89218
89219
89220
89221
89222
89223
89224
89225
89226
89227
89228
89229
89230
89231
89232
.....
89685
89686
89687
89688
89689
89690
89691
89692
89693
89694
89695
89696
89697
89698
89699
.....
89895
89896
89897
89898
89899
89900
89901
89902
89903
89904
89905
89906
89907
89908
89909

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 10 / 61 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + 84 FROM tab0 AS cor0
----
1
84
21
84
................................................................................
query II rowsort label-454
SELECT + COUNT( * ) col0, + 98 + + COUNT( * ) FROM tab1
----
3
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-454
SELECT + COUNT ( * ) col0, + 98 + + COUNT ( * ) FROM tab1
----
3
101

query II rowsort
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-615
SELECT - COUNT ( * ) + + 39 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 FROM tab1 AS cor0
----
14
96
47
68
................................................................................
-40
1
-58
2
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-633
SELECT col0 / + col2 col1, - col2 AS col0 FROM tab2 AS cor0
----
1
-40
1
-58
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 + + + 12 col0 FROM tab1 WHERE NULL IS NULL
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, ( - col1 ) AS col2 FROM tab2
----
46
-51
64
-77
................................................................................
59
59

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE 47 NOT BETWEEN - 91 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + - col1 col2, + 90 AS col0 FROM tab2 AS cor0
----
2601
90
4489
90
................................................................................
43
47
-65
99
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-871
SELECT + col2 col1, col0 + - col2 - - + CAST ( + col1 AS INTEGER ) / + 65 + - 34 FROM tab0
----
10
43
47
-65
99
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - 15 * 10 FROM tab2
----
-51
-150
-67
-150
................................................................................
-315392
-376875

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 73 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 58 col1, col1 AS col1 FROM tab0 AS cor0
----
58
1
58
21
................................................................................
196
0
62
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-972
SELECT - + 55 / - 65 col1, ( + col0 ) + + + col2 FROM tab0 AS cor0
----
0
196
0
62
................................................................................
query I rowsort
SELECT - - col2 * - - 65 * - + 81 FROM tab2 AS cor0
----
-121095
-210600
-305370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - - col2 col2, - col2 AS col0 FROM tab1
----
-3481
-59
-4624
-68
................................................................................
-81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col1, - col1 FROM tab2
----
85
-51
85
-67
................................................................................
query I rowsort
SELECT 77 + - + col1 + col0 * - - 94 FROM tab2 AS cor0
----
4350
6016
7060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * ( col2 ) col2, + 35 AS col2 FROM tab2 AS cor0
----
1600
35
3364
35
................................................................................
query I rowsort
SELECT ALL - 44 col2 FROM tab0 cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + 36, 6 col1, - ( + col0 ) AS col1 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - col0 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
................................................................................
query II rowsort label-1333
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col0, - COUNT( * ) FROM tab1
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1333
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ) FROM tab1
----
9
-3

onlyif mysql # DIV for integer division: 
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab2 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, - col0 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
................................................................................
119

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 0 col0, + col2 * + 60 AS col0 FROM tab1
----
0
3540
0
4080
................................................................................
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1515
SELECT ALL - col2 col1, 44 / - 51 AS col2 FROM tab1
----
-59
0
-68
0
................................................................................
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1581
SELECT col2 * col1 col1, 75 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
1173
NULL
3080
NULL
................................................................................
query I rowsort
SELECT ALL col2 + + 27 col1 FROM tab0 AS cor0
----
126
37
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + - col2 col2, col1 FROM tab2 AS cor0
----
17
67
23
51
................................................................................
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1822
SELECT DISTINCT + ( - col0 ) col0, col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
................................................................................
query I rowsort
SELECT DISTINCT + col1 + + ( + - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 18 col0, + 91 AS col2 FROM tab1 cor0
----
-18
91
-18
91
................................................................................
1
40
1
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2107
SELECT ALL col2 col1, - 73 / - 51 FROM tab2
----
23
1
40
1
................................................................................
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - col1 ) col2, + col2 AS col2 FROM tab0
----
1
99
21
10
................................................................................
-51
-192
-85
-118
-91
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + col2 * + 68 * col0 AS col0 FROM tab2 AS cor0
----
-23
71944
-40
174080
................................................................................
query II rowsort label-2408
SELECT 65 + - + COUNT( * ) col0, COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
62
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2408
SELECT 65 + - + COUNT ( * ) col0, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
62
-9

onlyif mysql # DIV for integer division: 
................................................................................
query II rowsort label-2469
SELECT 80 + - COUNT( * ) + - COUNT( * ) col2, 78 AS col0 FROM tab2
----
74
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2469
SELECT 80 + - COUNT ( * ) + - COUNT ( * ) col2, 78 AS col0 FROM tab2
----
74
78

query III rowsort
................................................................................
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2701
SELECT DISTINCT - 87 * + 84 * - + ( CAST ( NULL AS INTEGER ) ) col1, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
................................................................................
6933
-1914
23
-194
10015

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT ALL - col0 + ( + col1 ) * - col0 col0, col2 * col2 * col2 / - - col0 + 12 FROM tab0 AS cor0
----
-1230
6933
-1914
23
................................................................................
----

skipif mysql # not compatible
query III rowsort label-2983
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col1 * - - col0 * - col1 FROM tab1 AS cor0
----
-51
-9996
-85
-2125
................................................................................
51
4614
67
6046
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3008
SELECT ALL - - CAST ( + col1 AS INTEGER ) + col2 + + + col1 * + col1 col0, + col1 AS col1 FROM tab2 AS cor0
----
2675
51
4614
67
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3184
SELECT - + 6, + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) / ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-6
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 86 col1, - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-86
-2116
-86
-4096
................................................................................
query II rowsort label-3297
SELECT ALL - - COUNT( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3297
SELECT ALL - - COUNT ( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-3325
SELECT - COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab2
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3325
SELECT - COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab2
----
-3
-3

query III rowsort
................................................................................
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3396
SELECT + col2 + + CAST ( NULL AS INTEGER ) + + ( ( - col0 ) ) col0, col0 FROM tab2
----
NULL
46
NULL
64
................................................................................
query II rowsort label-3455
SELECT DISTINCT SUM( ALL + - col2 ) DIV + COUNT( * ) col0, COUNT( * ) FROM tab2
----
-40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3455
SELECT DISTINCT SUM ( ALL + - col2 ) / + COUNT ( * ) col0, COUNT ( * ) FROM tab2
----
-40
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT DISTINCT + col1 - + + col0 * + 6 AS col2 FROM tab0
----
-501
-581
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 * + col0 * col1 * + - 69 AS col2 FROM tab1
----
-14
-4729536
-47
-20067684
................................................................................
2601
48668
4489
326250
5929
163840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col2 * col1 col2, 75 AS col1 FROM tab0 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT DISTINCT + + 72 * - + 52 + - col1 AS col0 FROM tab1 AS cor0
----
................................................................................
143
85
146
51
158
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 + - + ( col0 ) + - ( + col1 ) col0, - 50 FROM tab1
----
-25
-50
-73
-50
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT 48 + - COUNT ( * ) col2 FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 29 col2, 25 AS col1 FROM tab1 AS cor0
----
-29
25

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-3624
SELECT 91 col1, + COUNT( * ) AS col2 FROM tab2
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3624
SELECT 91 col1, + COUNT ( * ) AS col2 FROM tab2
----
91
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 * + col2 col1, ( + 54 ) AS col1 FROM tab0 AS cor0
----
-178929
54
-2100
54
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT - SUM ( ALL - 75 ) col1 FROM tab0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 78 FROM tab0
----
15
78
87
78
................................................................................
query I rowsort
SELECT + col1 - - + col1 FROM tab2 AS cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 col1, 17 + col1 FROM tab2 AS cor0 WHERE NOT col2 / - - 1 - - col1 IS NULL
----
86
68
86
84
................................................................................
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 5 col2, ( - - 88 ) * col1 * - 98 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col2 = NULL
................................................................................
query II rowsort label-3967
SELECT 31 col1, + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
----
31
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3967
SELECT 31 col1, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
----
31
NULL

query III rowsort
................................................................................
query II rowsort label-3970
SELECT ALL COUNT( * ) col0, + MIN( DISTINCT ( + col1 ) ) FROM tab0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3970
SELECT ALL COUNT ( * ) col0, + MIN ( DISTINCT ( + col1 ) ) FROM tab0
----
3
1

query II rowsort
................................................................................
-1989
NULL
-2613
NULL
-3003

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4043
SELECT ALL + CAST ( NULL AS INTEGER ) col2, 39 * + - col1 FROM tab2 AS cor0
----
NULL
-1989
NULL
-2613
................................................................................

skipif mysql # not compatible
query I rowsort label-4084
SELECT + ( + 39 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 * col2 col1, 97 FROM tab0 AS cor0
----
-2444
97
-5148
97
................................................................................

skipif mysql # not compatible
query I rowsort label-4113
SELECT + + COUNT ( * ) * - 77 AS col0 FROM tab0 WHERE ( NULL ) IS NULL AND NOT CAST ( NULL AS INTEGER ) * 44 IS NOT NULL
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col0 AS col2 FROM tab1
----
-51
51
-85
85
................................................................................

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( + col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col0 FROM tab0
----
-10
87
-47
15
................................................................................

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 30 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
51
-35190
67
-116580
................................................................................
query I rowsort
SELECT + + 55 * 1 FROM tab2 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 15 col0, col1 * + col2, - col2 AS col0 FROM tab2
----
9 values hashing to 3367038e942e104e8196040bff63ebd9

query I rowsort
SELECT + col1 * - - 71 * - col1 FROM tab2
................................................................................
query I rowsort
SELECT ALL + 0 + + col2 AS col1 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 AS col0 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + + - col0 AS col1 FROM tab0 AS cor0
----
................................................................................
query II rowsort label-4854
SELECT DISTINCT CAST( - + 11 AS SIGNED ) col2, 22 FROM tab0
----
-11
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4854
SELECT DISTINCT CAST ( - + 11 AS INTEGER ) col2, 22 FROM tab0
----
-11
22

query III rowsort
................................................................................
----
-1
30
0
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4967
SELECT DISTINCT col1 / - 75 col1, + 30 FROM tab2
----
-1
30
0
30
................................................................................
5390

query I rowsort
SELECT DISTINCT - 17 FROM tab2 WHERE - 19 + + col0 IS NOT NULL
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 + - col0 AS col2 FROM tab1
----
-14
-102
-47
-182
................................................................................
query II rowsort label-5080
SELECT - CAST( NULL AS SIGNED ) col2, MAX( - col2 ) AS col1 FROM tab1
----
NULL
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5080
SELECT - CAST ( NULL AS INTEGER ) col2, MAX ( - col2 ) AS col1 FROM tab1
----
NULL
-59

onlyif mysql # DIV for integer division: 
................................................................................
147425
1
245379
1
262665

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5210
SELECT - + 59 / - 42 col0, - ( - - 43 ) * - + 67 * col0 + + 13 * + ( + 38 ) FROM tab1 cor0
----
1
147425
1
245379
................................................................................
query I rowsort
SELECT - 69 - - 84 AS col0 FROM tab1
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col1 col1, 79 AS col1 FROM tab1
----
425
79
4277
79
................................................................................

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + COUNT ( * ) + + 35 AS col0 FROM tab1 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 12 AS col0 FROM tab2 AS cor0
----
23
-12
40
-12
................................................................................
51
32
85
32
91
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 19 col1, col1 FROM tab0 cor0
----
-19
1
-19
21
................................................................................

skipif mysql # not compatible
query I rowsort label-5582
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + col1 IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 79 col1, - col1 FROM tab2
----
79
-51
79
-67
................................................................................

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - ( - col0 ) * col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 col0, - col2 + - 40 AS col2 FROM tab2 AS cor0
----
63
-63
63
-80
................................................................................
-74
55
-74
55
-74
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 8 col0, - col0 AS col0 FROM tab0 AS cor0
----
-8
-15
-8
-87
................................................................................
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 col0, col2 * + col2 FROM tab0 AS cor0
----
225
2209
7569
100
................................................................................

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col1 AS col2 FROM tab1
----
14
14
47
47
................................................................................
query II rowsort label-6218
SELECT ALL - COUNT( * ) col1, COUNT( + col2 ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6218
SELECT ALL - COUNT ( * ) col1, COUNT ( + col2 ) FROM tab0 AS cor0
----
-3
3

query I rowsort
................................................................................
query I rowsort
SELECT - 29 * + col2 AS col0 FROM tab2
----
-1160
-1682
-667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 * + 62 col2, 6 AS col0 FROM tab1
----
-558
6
-558
6
................................................................................
query I rowsort label-6247
SELECT col2 / 63 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - 58 FROM tab0
----
1
-58
21
-58
................................................................................
query II rowsort label-6249
SELECT SUM( - 29 ) col2, COUNT( * ) AS col2 FROM tab2
----
-87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6249
SELECT SUM ( - 29 ) col2, COUNT ( * ) AS col2 FROM tab2
----
-87
3

query I rowsort
................................................................................
query I rowsort
SELECT - 19 - - 48 FROM tab1
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + 43 - + - col0 FROM tab1
----
51
94
85
128
................................................................................
96
0
59
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6297
SELECT DISTINCT + col2 / - col0 col0, col2 AS col1 FROM tab1
----
-1
96
0
59
................................................................................
46
-8
64
-8
75
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + 31 AS col0 FROM tab0
----
10
31
47
31
................................................................................
----
0

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1 WHERE NOT col0 - - ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 * + col1 col2, + col1 AS col1 FROM tab1
----
126
14
423
47
................................................................................
-62

query I rowsort
SELECT DISTINCT - - ( 61 ) AS col2 FROM tab0 WHERE - 7 + - 74 * + - col1 * - 93 IS NOT NULL
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col0 FROM tab0
----
-15
-15
-87
-87
................................................................................
85
91

query III rowsort
SELECT * FROM tab2 WHERE - - 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 col2, - col1 AS col1 FROM tab0
----
12
-1
12
-21
................................................................................

skipif mysql # not compatible
query I rowsort label-6884
SELECT COUNT ( * ) + + - 2 * - 1 FROM tab2
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 col0, 25 * + col0 AS col2 FROM tab1
----
13
1275
13
2125
................................................................................
query II rowsort label-7466
SELECT - COUNT( col1 ) col1, 53 AS col1 FROM tab0
----
-3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7466
SELECT - COUNT ( col1 ) col1, 53 AS col1 FROM tab0
----
-3
53

query I rowsort
................................................................................
query I rowsort
SELECT ALL - 95 col0 FROM tab2 AS cor0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col0 FROM tab1
----
14
-51
47
-91
................................................................................
query I rowsort
SELECT - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
-66
21
-96
1
................................................................................
71
-50
71
-50
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7771
SELECT - + 50 col2, 71 + 16 / + 24 * col1 FROM tab2 AS cor0
----
-50
71
-50
71
................................................................................
query II rowsort label-7831
SELECT DISTINCT + COUNT( * ) col2, + ( + 59 ) FROM tab0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7831
SELECT DISTINCT + COUNT ( * ) col2, + ( + 59 ) FROM tab0
----
3
59

query I rowsort
................................................................................
query I rowsort
SELECT ALL + col0 * + + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................
query II rowsort label-7998
SELECT 66 col0, SUM( + + CAST( - - col2 AS SIGNED ) ) - - 21 FROM tab1 cor0
----
66
244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7998
SELECT 66 col0, SUM ( + + CAST ( - - col2 AS INTEGER ) ) - - 21 FROM tab1 cor0
----
66
244

query I rowsort
................................................................................
3807
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 21 BETWEEN ( + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 col2, 18 + - + col2 FROM tab0
----
16
-29
16
-81
................................................................................
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8224
SELECT + - col1 / CAST( NULL AS SIGNED ) col0, + 69 + + ( + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to c3f211610c274e6733018ea0b4811969

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8224
SELECT + - col1 / CAST ( NULL AS INTEGER ) col0, + 69 + + ( + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to c3f211610c274e6733018ea0b4811969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
................................................................................
query II rowsort label-8503
SELECT DISTINCT 84 col0, SUM( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
----
84
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8503
SELECT DISTINCT 84 col0, SUM ( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
----
84
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
query II rowsort label-8703
SELECT DISTINCT - CAST( - 61 AS SIGNED ) * + CAST( NULL AS SIGNED ) / SUM( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8703
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / SUM ( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
50

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT ALL 46 * + col2 + + 48 AS col1 FROM tab2 AS cor0
----
1106
1888
2716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 32 * - 6 AS col2 FROM tab2 AS cor0
----
46
-192
64
-192
................................................................................

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - 30 / - col0 + - ( + 55 ) AS col0 FROM tab1 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31 col1, col0 * 85 AS col1 FROM tab2 AS cor0
----
-31
3910
-31
5440
................................................................................
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN 50 + ( - - col0 ) AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col2, 75 FROM tab0
----
52
75
52
75
................................................................................
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 col1, ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
................................................................................
-54
-23
-54
-40
-54
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + 5 * 81 - - col0 + + + col2 FROM tab1 AS cor0
----
-59
549
-68
564
................................................................................
query II rowsort label-8909
SELECT ALL + ( - 32 ) col2, CAST( + + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2
----
-32
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8909
SELECT ALL + ( - 32 ) col2, CAST ( + + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2
----
-32
9

query I rowsort
................................................................................
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 76 * + + 33 FROM tab1 AS cor0
----
2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 col0, + col1 AS col0 FROM tab1
----
-45
14
-45
47
................................................................................

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 80 <= ( + col2 )
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - 85 FROM tab2
----
51
-85
67
-85
................................................................................
-23
-51

query III rowsort
SELECT * FROM tab1 WHERE + 10 + + 40 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + - 40 + + col2 * - col1 col0, col0 FROM tab2 AS cor0
----
-1190
46
-3080
64
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9162
SELECT 98, col0 * - col2 * + - CAST( + ( + col1 ) AS SIGNED ) col0, + + col0 AS col1 FROM tab2
----
9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9162
SELECT 98, col0 * - col2 * + - CAST ( + ( + col1 ) AS INTEGER ) col0, + + col0 AS col1 FROM tab2
----
9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col1 * col0 / 34 * + col0 ) IS NOT NULL
................................................................................
query I rowsort
SELECT - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 51 col2, + col0 AS col1 FROM tab0 AS cor0
----
-4437
87
-4947
97
................................................................................
query II rowsort label-9390
SELECT DISTINCT - - 93 col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9390
SELECT DISTINCT - - 93 col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
-3

query I rowsort
................................................................................
query I rowsort
SELECT - - 93 col2 FROM tab1 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col1 * + ( - col0 ) FROM tab1 AS cor0
----
59
-425
68
-4277
................................................................................

skipif mysql # not compatible
query I rowsort label-9578
SELECT + - COUNT ( DISTINCT + 70 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
................................................................................
6
1
6
21
6
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col0 FROM tab2
----
23
46
40
64
................................................................................
query II rowsort label-9717
SELECT + COUNT( * ) col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9717
SELECT + COUNT ( * ) col0, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-9750
SELECT ALL + 46 col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9750
SELECT ALL + 46 col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
46
3

query I rowsort
................................................................................
query II rowsort label-9828
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9828
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query I rowsort
................................................................................
query II rowsort label-9875
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9875
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) FROM tab0
----
3
3

query III rowsort
................................................................................
query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 82 col1, + 0 FROM tab2
----
-3772
0
-5248
0

Changes to test/random/aggregates/slt_good_1.test.

1825
1826
1827
1828
1829
1830
1831

1832
1833
1834
1835
1836
1837
1838
....
2848
2849
2850
2851
2852
2853
2854

2855
2856
2857
2858
2859
2860
2861
....
4713
4714
4715
4716
4717
4718
4719

4720
4721
4722
4723
4724
4725
4726
....
5321
5322
5323
5324
5325
5326
5327

5328
5329
5330
5331
5332
5333
5334
....
8854
8855
8856
8857
8858
8859
8860

8861
8862
8863
8864
8865
8866
8867
....
9812
9813
9814
9815
9816
9817
9818

9819
9820
9821
9822
9823
9824
9825
.....
10257
10258
10259
10260
10261
10262
10263

10264
10265
10266
10267
10268
10269
10270
.....
10639
10640
10641
10642
10643
10644
10645

10646
10647
10648
10649
10650
10651
10652
.....
11398
11399
11400
11401
11402
11403
11404

11405
11406
11407
11408
11409
11410
11411
.....
12396
12397
12398
12399
12400
12401
12402

12403
12404
12405
12406
12407
12408
12409
.....
13394
13395
13396
13397
13398
13399
13400

13401
13402
13403
13404
13405
13406
13407
.....
15333
15334
15335
15336
15337
15338
15339

15340
15341
15342
15343
15344
15345
15346
.....
15468
15469
15470
15471
15472
15473
15474

15475
15476
15477
15478
15479
15480
15481
.....
16438
16439
16440
16441
16442
16443
16444

16445
16446
16447
16448
16449
16450
16451
.....
18563
18564
18565
18566
18567
18568
18569

18570
18571
18572
18573
18574
18575
18576
.....
20061
20062
20063
20064
20065
20066
20067

20068
20069
20070
20071
20072
20073
20074
.....
20212
20213
20214
20215
20216
20217
20218

20219
20220
20221
20222
20223
20224
20225
.....
25314
25315
25316
25317
25318
25319
25320

25321
25322
25323
25324
25325
25326
25327
.....
25551
25552
25553
25554
25555
25556
25557

25558
25559
25560
25561
25562
25563
25564
.....
26496
26497
26498
26499
26500
26501
26502

26503
26504
26505
26506
26507
26508
26509
.....
27851
27852
27853
27854
27855
27856
27857

27858
27859
27860
27861
27862
27863
27864
.....
30548
30549
30550
30551
30552
30553
30554

30555
30556
30557
30558
30559
30560
30561
.....
31298
31299
31300
31301
31302
31303
31304

31305
31306
31307
31308
31309
31310
31311
.....
33382
33383
33384
33385
33386
33387
33388

33389
33390
33391
33392
33393
33394
33395
.....
33443
33444
33445
33446
33447
33448
33449

33450
33451
33452
33453
33454
33455
33456
.....
33987
33988
33989
33990
33991
33992
33993

33994
33995
33996
33997
33998
33999
34000
.....
34142
34143
34144
34145
34146
34147
34148

34149
34150
34151
34152
34153
34154
34155
.....
36030
36031
36032
36033
36034
36035
36036

36037
36038
36039
36040
36041
36042
36043
.....
36122
36123
36124
36125
36126
36127
36128

36129
36130
36131
36132
36133
36134
36135
.....
37394
37395
37396
37397
37398
37399
37400

37401
37402
37403
37404
37405
37406
37407
.....
38688
38689
38690
38691
38692
38693
38694

38695
38696
38697
38698
38699
38700
38701
.....
40616
40617
40618
40619
40620
40621
40622

40623
40624
40625
40626
40627
40628
40629
.....
40801
40802
40803
40804
40805
40806
40807

40808
40809
40810
40811
40812
40813
40814
.....
43768
43769
43770
43771
43772
43773
43774

43775
43776
43777
43778
43779
43780
43781
.....
45465
45466
45467
45468
45469
45470
45471

45472
45473
45474
45475
45476
45477
45478
.....
46040
46041
46042
46043
46044
46045
46046

46047
46048
46049
46050
46051
46052
46053
.....
46131
46132
46133
46134
46135
46136
46137

46138
46139
46140
46141
46142
46143
46144
.....
50039
50040
50041
50042
50043
50044
50045

50046
50047
50048
50049
50050
50051
50052
.....
50879
50880
50881
50882
50883
50884
50885

50886
50887
50888
50889
50890
50891
50892
.....
52094
52095
52096
52097
52098
52099
52100

52101
52102
52103
52104
52105
52106
52107
.....
52377
52378
52379
52380
52381
52382
52383

52384
52385
52386
52387
52388
52389
52390
.....
52415
52416
52417
52418
52419
52420
52421

52422
52423
52424
52425
52426
52427
52428
.....
53714
53715
53716
53717
53718
53719
53720

53721
53722
53723
53724
53725
53726
53727
.....
53990
53991
53992
53993
53994
53995
53996

53997
53998
53999
54000
54001
54002
54003
.....
54615
54616
54617
54618
54619
54620
54621

54622
54623
54624
54625
54626
54627
54628
.....
56905
56906
56907
56908
56909
56910
56911

56912
56913
56914
56915
56916
56917
56918
.....
57727
57728
57729
57730
57731
57732
57733

57734
57735
57736
57737
57738
57739
57740
.....
58096
58097
58098
58099
58100
58101
58102

58103
58104
58105
58106
58107
58108
58109
.....
58496
58497
58498
58499
58500
58501
58502

58503
58504
58505
58506
58507
58508
58509
.....
59689
59690
59691
59692
59693
59694
59695

59696
59697
59698
59699
59700
59701
59702
.....
60559
60560
60561
60562
60563
60564
60565

60566
60567
60568
60569
60570
60571
60572
.....
61533
61534
61535
61536
61537
61538
61539

61540
61541
61542
61543
61544
61545
61546
.....
61933
61934
61935
61936
61937
61938
61939

61940
61941
61942
61943
61944
61945
61946
.....
64184
64185
64186
64187
64188
64189
64190

64191
64192
64193
64194
64195
64196
64197
.....
64504
64505
64506
64507
64508
64509
64510

64511
64512
64513
64514
64515
64516
64517
.....
66368
66369
66370
66371
66372
66373
66374

66375
66376
66377
66378
66379
66380
66381
.....
66850
66851
66852
66853
66854
66855
66856

66857
66858
66859
66860
66861
66862
66863
.....
68781
68782
68783
68784
68785
68786
68787

68788
68789
68790
68791
68792
68793
68794
.....
68956
68957
68958
68959
68960
68961
68962

68963
68964
68965
68966
68967
68968
68969
.....
70155
70156
70157
70158
70159
70160
70161

70162
70163
70164
70165
70166
70167
70168
.....
70987
70988
70989
70990
70991
70992
70993

70994
70995
70996
70997
70998
70999
71000
.....
72064
72065
72066
72067
72068
72069
72070

72071
72072
72073
72074
72075
72076
72077
72078
72079
72080

72081
72082
72083
72084
72085
72086
72087
.....
72425
72426
72427
72428
72429
72430
72431

72432
72433
72434
72435
72436
72437
72438
.....
76177
76178
76179
76180
76181
76182
76183

76184
76185
76186
76187
76188
76189
76190
.....
76209
76210
76211
76212
76213
76214
76215

76216
76217
76218
76219
76220
76221
76222
.....
77662
77663
77664
77665
77666
77667
77668

77669
77670
77671
77672
77673
77674
77675
.....
77948
77949
77950
77951
77952
77953
77954

77955
77956
77957
77958
77959
77960
77961
.....
78852
78853
78854
78855
78856
78857
78858

78859
78860
78861
78862
78863
78864
78865
.....
79935
79936
79937
79938
79939
79940
79941

79942
79943
79944
79945
79946
79947
79948
.....
83049
83050
83051
83052
83053
83054
83055

83056
83057
83058
83059
83060
83061
83062
.....
83093
83094
83095
83096
83097
83098
83099

83100
83101
83102
83103
83104
83105
83106
.....
84976
84977
84978
84979
84980
84981
84982

84983
84984
84985
84986
84987
84988
84989
.....
84991
84992
84993
84994
84995
84996
84997

84998
84999
85000
85001
85002
85003
85004
.....
85453
85454
85455
85456
85457
85458
85459

85460
85461
85462
85463
85464
85465
85466
.....
86170
86171
86172
86173
86174
86175
86176

86177
86178
86179
86180
86181
86182
86183
.....
87815
87816
87817
87818
87819
87820
87821

87822
87823
87824
87825
87826
87827
87828
.....
88156
88157
88158
88159
88160
88161
88162

88163
88164
88165
88166
88167
88168
88169
.....
88208
88209
88210
88211
88212
88213
88214

88215
88216
88217
88218
88219
88220
88221
.....
89091
89092
89093
89094
89095
89096
89097

89098
89099
89100
89101
89102
89103
89104
query II rowsort label-214
SELECT DISTINCT COUNT( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

skipif mysql # not compatible

query II rowsort label-214
SELECT DISTINCT COUNT ( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

query I rowsort
................................................................................
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + 18 ) + + 37
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + ( + - col0 ) * - 65 * + + col2 IS NOT NULL ) )
----


query II rowsort
SELECT ALL - 83 + + 77 col1, + col2 AS col0 FROM tab0 AS cor0
----
-6
10
-6
47
................................................................................
query II rowsort label-529
SELECT + 88 col2, + COUNT( * ) FROM tab0
----
88
3

skipif mysql # not compatible

query II rowsort label-529
SELECT + 88 col2, + COUNT ( * ) FROM tab0
----
88
3

query III rowsort
................................................................................
query I rowsort
SELECT DISTINCT - col2 * + col0 * - 9 * - - 55 AS col2 FROM tab0 AS cor0
----
348975
430650
4753485


query II rowsort
SELECT + - col0 col0, + col0 + + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-46
-5
-64
-13
................................................................................
query I rowsort
SELECT ALL + 51 * + + 20 AS col1 FROM tab1
----
1020
1020
1020


query II rowsort
SELECT + col1 + col0 col1, - col2 AS col0 FROM tab0
----
108
-10
96
-47
................................................................................

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3


query II rowsort
SELECT DISTINCT 36 col0, ( - 11 ) FROM tab0 AS cor0
----
36
-11

query I rowsort
................................................................................
81

query I rowsort
SELECT DISTINCT 18 * - 53 FROM tab1
----
-954


query II rowsort
SELECT col0 col1, + 59 AS col2 FROM tab2
----
46
59
64
59
................................................................................
-6

query I rowsort
SELECT + 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7


query II rowsort
SELECT DISTINCT col0 col1, + 53 AS col0 FROM tab0 AS cor0
----
15
53
87
53
................................................................................
query II rowsort label-1253
SELECT + COUNT( * ) col1, + 78 FROM tab0 AS cor0
----
3
78

skipif mysql # not compatible

query II rowsort label-1253
SELECT + COUNT ( * ) col1, + 78 FROM tab0 AS cor0
----
3
78

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-1372
SELECT ALL + ( COUNT( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

skipif mysql # not compatible

query II rowsort label-1372
SELECT ALL + ( COUNT ( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3


query II rowsort
SELECT 19 col0, col1 + - 20 AS col0 FROM tab0
----
19
-19
19
1
................................................................................
51
96
85
59
91
68


query II rowsort
SELECT ALL col2 col1, 35 AS col2 FROM tab0 AS cor0
----
10
35
47
35
................................................................................
query I rowsort label-1703
SELECT DISTINCT - col1 * - 87 * - CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-160776
-620136
-7656


query II rowsort
SELECT DISTINCT - + col1 col2, + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 < + + col2
----
................................................................................
44
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2
----


query II rowsort
SELECT - col1 col1, + 21 * 0 AS col2 FROM tab2 AS cor0
----
-51
0
-67
0
................................................................................
query I rowsort
SELECT ALL 80 - - + 90 AS col1 FROM tab0 AS cor0
----
170
170
170


query II rowsort
SELECT - col0 + + 1 col2, + 75 FROM tab0 cor0
----
-14
75
-86
75
................................................................................
-3478

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT + col0 col1, - col1 + + 67 + - + col2 * + - col1 FROM tab2 AS cor0
----
46
1189
64
3070
................................................................................
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * + col1
----


query II rowsort
SELECT DISTINCT 74 col2, + col2 + col0 AS col2 FROM tab1
----
74
144
74
147
................................................................................
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----


query II rowsort
SELECT 0 * + - col2 col2, col2 FROM tab2 AS cor0
----
0
23
0
40
................................................................................
10
59
10
68
10
96


query II rowsort
SELECT ALL - col1 col1, 75 FROM tab0 AS cor0
----
-1
75
-21
75
................................................................................
-446
85
-446
91
-446

skipif mysql # not compatible

query II rowsort label-2914
SELECT + col0 + + - 39 / + col2 col2, ( col0 ) / - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0
----
51
-446
85
-446
................................................................................
0
0
0
0
0

skipif mysql # not compatible

query II rowsort label-3065
SELECT - 4 / + - 8 col2, + col1 / + col2 FROM tab1
----
0
0
0
0
................................................................................
15
NULL
87
NULL
97

skipif mysql # not compatible

query II rowsort label-3364
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 40 col0, col0 FROM tab0 cor0
----
NULL
15
NULL
87
................................................................................

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab0
----
103


query II rowsort
SELECT DISTINCT - col1 col0, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
................................................................................
51
-79
67
-95
77
-105


query II rowsort
SELECT ALL - ( col1 ) col0, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
................................................................................
query II rowsort label-3670
SELECT MIN( - + col0 ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible

query II rowsort label-3670
SELECT MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT + - 66 col0 FROM tab2 WHERE + + 15 IS NOT NULL
----
-66
-66
-66


query II rowsort
SELECT ( + 4 ) col1, col2 FROM tab0
----
4
10
4
47
................................................................................
-74
47
-74
99
-74

skipif mysql # not compatible

query II rowsort label-3749
SELECT CAST ( + col2 AS INTEGER ) col2, 9 + - 83 FROM tab0
----
10
-74
47
-74
................................................................................
query II rowsort label-3955
SELECT - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible

query II rowsort label-3955
SELECT - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

query II rowsort
................................................................................
query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN( - + ( - 18 ) ) DIV SUM( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

skipif mysql # not compatible

query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN ( - + ( - 18 ) ) / SUM ( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - SUM ( + 52 ) * - COUNT ( * ) AS col0 FROM tab1
----
468


query II rowsort
SELECT DISTINCT - col2 col1, 92 AS col1 FROM tab0
----
-10
92
-47
92
................................................................................
NULL
-1352

query I rowsort
SELECT col2 * + 17 FROM tab1 AS cor0 WHERE NOT 54 NOT BETWEEN col1 * + col1 + 90 AND + 45 + + + col1 * - col0
----


query II rowsort
SELECT - col1 col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
................................................................................
query II rowsort label-4443
SELECT COUNT( * ) col1, + COUNT( 7 ) + - 50 FROM tab0
----
3
-47

skipif mysql # not compatible

query II rowsort label-4443
SELECT COUNT ( * ) col1, + COUNT ( 7 ) + - 50 FROM tab0
----
3
-47

query I rowsort
................................................................................
query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX( DISTINCT + + col1 ) FROM tab2
----
69
77

skipif mysql # not compatible

query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX ( DISTINCT + + col1 ) FROM tab2
----
69
77

query I rowsort
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible

query II rowsort label-4794
SELECT ALL - - col2 col2, CAST ( NULL AS INTEGER ) * + - 42 FROM tab0 AS cor0
----
10
NULL
47
NULL
................................................................................
NULL
23
NULL
24
NULL

skipif mysql # not compatible

query II rowsort label-4974
SELECT DISTINCT + col0 - + col2 col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
17
NULL
23
NULL
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible

query II rowsort label-5037
SELECT col2 col1, - CAST ( NULL AS INTEGER ) + 87 FROM tab0 cor0
----
10
NULL
47
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 15 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
45


query II rowsort
SELECT ALL - col0 col1, 36 + - 69 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5049
SELECT + + ( col1 ) AS col0, - 84 DIV + - col0 AS col2 FROM tab1 AS cor0
................................................................................
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + + ( - col0 ) <> 95 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT col0 col2, 38 AS col0 FROM tab2 AS cor0
----
46
38
64
38
................................................................................
81
NULL
81
NULL
81

skipif mysql # not compatible

query II rowsort label-5574
SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0
----
NULL
81
NULL
81
................................................................................
46
51
23
64
77
40


query II rowsort
SELECT ALL 94 col0, - col1 FROM tab1
----
94
-14
94
-47
................................................................................
query I rowsort
SELECT col1 * - + col2 + + + col0 FROM tab1
----
-1293
-210
-3105


query II rowsort
SELECT + col1 + - + 41 + col2 + - + col1 col1, + ( col0 ) AS col1 FROM tab0
----
-31
87
58
97
................................................................................
query II rowsort label-5738
SELECT ALL - - 18 col1, MIN( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

skipif mysql # not compatible

query II rowsort label-5738
SELECT ALL - - 18 col1, MIN ( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

query I rowsort
................................................................................
query II rowsort label-5893
SELECT ALL CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT + 10 ) * + COUNT( * ) DIV + 3 FROM tab2
----
NULL
-10

skipif mysql # not compatible

query II rowsort label-5893
SELECT ALL CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT + 10 ) * + COUNT ( * ) / + 3 FROM tab2
----
NULL
-10

onlyif mysql # DIV for integer division: 
................................................................................
75
-121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 IS NULL
----


query II rowsort
SELECT ALL - 84 col0, 83 AS col1 FROM tab0 AS cor0
----
-84
83
-84
83
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5997
SELECT ALL + MIN ( + col1 ) col0 FROM tab0 cor0
----
1


query II rowsort
SELECT DISTINCT 55 col0, 90 FROM tab0 AS cor0
----
55
90

onlyif mysql # aggregate syntax: 
................................................................................
-1
-97
-21
-97
-81

skipif mysql # not compatible

query II rowsort label-6241
SELECT DISTINCT - CAST ( 97 AS INTEGER ) col0, - col1 FROM tab0 AS cor0
----
-97
-1
-97
-21
................................................................................
5
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
----


query II rowsort
SELECT DISTINCT + 85 col2, - col0 FROM tab2 AS cor0
----
85
-46
85
-64
................................................................................
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible

query II rowsort label-6379
SELECT DISTINCT - ( + col0 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-51
NULL
-85
NULL
................................................................................
NULL
-1
NULL
-2
NULL

skipif mysql # not compatible

query II rowsort label-6423
SELECT + col1 / - + col2 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-1
NULL
-1
NULL
................................................................................
query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST( NULL AS SIGNED ) col0, + 89 FROM tab0
----
NULL
89

skipif mysql # not compatible

query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST ( NULL AS INTEGER ) col0, + 89 FROM tab0
----
NULL
89

query I rowsort
................................................................................
query I rowsort
SELECT ALL col0 + + 87 AS col0 FROM tab2
----
133
151
162


query II rowsort
SELECT DISTINCT - 59 * - col0 + col1 col2, - 4 FROM tab2 cor0
----
2765
-4
3853
-4
................................................................................
query I rowsort
SELECT ALL + col1 + 95 FROM tab0
----
116
176
96


query II rowsort
SELECT ALL - col0 col1, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
................................................................................
query I rowsort
SELECT col0 * col2 * + col1 FROM tab2 AS cor0
----
197120
291450
53958


query II rowsort
SELECT - col1 col0, - col1 - - 32 FROM tab0 cor0
----
-1
31
-21
11
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7044
SELECT DISTINCT 58, ( + COUNT ( * ) ) col1 FROM tab1
----
58
3


query II rowsort
SELECT ALL col2 col1, col0 + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
0
68
0
................................................................................
85
NULL
85
NULL
85

skipif mysql # not compatible

query II rowsort label-7073
SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0
----
NULL
85
NULL
85
................................................................................

skipif mysql # not compatible
query III rowsort label-7278
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT + col2 col1, + 32 FROM tab2 AS cor0
----
23
32
40
32
................................................................................
-14
-14
-47
-47
-5
-5


query II rowsort
SELECT ALL + col2 + + col2 * 89 * + 85 col1, col2 AS col1 FROM tab1 AS cor0
----
446394
59
514488
68
................................................................................
query I rowsort
SELECT + 55 * + 93 FROM tab1 AS cor0
----
5115
5115
5115


query II rowsort
SELECT DISTINCT - col1 * - - 36 col2, col2 FROM tab0 cor0
----
-2916
47
-36
99
................................................................................
query II rowsort label-7566
SELECT ( COUNT( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

skipif mysql # not compatible

query II rowsort label-7566
SELECT ( COUNT ( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

onlyif mysql # aggregate syntax: 
................................................................................
115
134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 24 * - - 61 <= NULL )
----


query II rowsort
SELECT 17 col0, col2 FROM tab0
----
17
10
17
47
................................................................................
query I rowsort
SELECT - 94 col1 FROM tab2
----
-94
-94
-94


query II rowsort
SELECT col0 * + + 24 col0, 67 + + - col2 FROM tab1
----
1224
-29
2040
8
................................................................................

skipif mysql # not compatible
query I rowsort label-7913
SELECT - SUM ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
223


query II rowsort
SELECT + col1 col0, + col0 + - col2 FROM tab2 AS cor0
----
51
23
67
17
77
24


query II rowsort
SELECT col0 col2, - col0 + 99 AS col0 FROM tab0 AS cor0
----
15
84
87
12
................................................................................
query III rowsort label-7957
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2
----
3
1838
7


query II rowsort
SELECT ALL + col2 col2, - 11 AS col0 FROM tab1
----
59
-11
68
-11
................................................................................
query I rowsort
SELECT ALL 97 AS col0 FROM tab0 cor0
----
97
97
97


query II rowsort
SELECT DISTINCT - col2 * + col0 * col0 col2, col0 AS col2 FROM tab2
----
-163840
64
-326250
75
................................................................................
query I rowsort
SELECT col1 + - 84 FROM tab0 cor0
----
-3
-63
-83


query II rowsort
SELECT - col0 col2, 64 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 22 * + col0 IS NULL
----
-51
160
-85
123
................................................................................
query I rowsort
SELECT - + 82 * + col2 FROM tab2 AS cor0
----
-1886
-3280
-4756


query II rowsort
SELECT ALL 7 col1, col1 FROM tab0 AS cor0
----
7
1
7
21
................................................................................
0

query I rowsort
SELECT DISTINCT + 24 FROM tab0 cor0
----
24


query II rowsort
SELECT - - col0 col2, + col1 + col1 AS col2 FROM tab1 AS cor0
----
51
28
85
10
................................................................................

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - MAX ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL


query II rowsort
SELECT DISTINCT - + col1 col1, col2 + col2 FROM tab2 AS cor0
----
-51
46
-67
116
................................................................................
-51
47
-91
5
-85

skipif mysql # not compatible

query II rowsort label-8786
SELECT col1 col2, - col0 + + col1 / - col0 AS col2 FROM tab1
----
14
-51
47
-91
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible

query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 98 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
................................................................................
query I rowsort
SELECT ALL + + 93 AS col2 FROM tab0 AS cor0
----
93
93
93


query II rowsort
SELECT - col2 col0, col1 + - col1 AS col1 FROM tab1 AS cor0
----
-59
0
-68
0
................................................................................
query I rowsort
SELECT ALL - ( - + 33 ) col2 FROM tab0 cor0
----
33
33
33


query II rowsort
SELECT + - col2 / - col0 col2, col1 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - 86 <= NULL
----
................................................................................
query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5


query II rowsort
SELECT ALL - col2 col0, col1 FROM tab0 AS cor0
----
-10
21
-47
81
................................................................................
52
-59
52
-68
52
-96


query II rowsort
SELECT DISTINCT - 26 col1, col0 + + 34 AS col1 FROM tab2
----
-26
109
-26
80
................................................................................
21
-21
21
-81
21

skipif mysql # not compatible

query II rowsort label-9481
SELECT DISTINCT - col1 col2, CAST ( + + 21 AS INTEGER ) FROM tab0 AS cor0
----
-1
21
-21
21
................................................................................
-5
-3481

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----


query II rowsort
SELECT ALL - 53 col0, + 72 FROM tab0
----
-53
72
-53
72
................................................................................
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT ALL - col0 col1, col0 FROM tab0 cor0
----
-15
15
-87
87
................................................................................
58
72

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----


query II rowsort
SELECT - + 45 col1, + 39 + + ( + col0 ) + - col0 * 58 * + col2 AS col0 FROM tab0 AS cor0
----
-45
-40836
-45
-50334
................................................................................
query II rowsort label-9795
SELECT DISTINCT - COUNT( * ) + + + 33 col1, + COUNT( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

skipif mysql # not compatible

query II rowsort label-9795
SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

onlyif mysql # aggregate syntax: 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
....
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
....
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
....
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
....
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
....
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
.....
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
.....
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
.....
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
.....
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
.....
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
.....
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
.....
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
.....
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
.....
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
.....
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
.....
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
.....
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
.....
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
.....
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
.....
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
.....
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
.....
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
.....
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
.....
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
.....
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
.....
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
.....
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
.....
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
.....
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
.....
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
.....
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
.....
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
.....
43801
43802
43803
43804
43805
43806
43807
43808
43809
43810
43811
43812
43813
43814
43815
.....
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
.....
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
.....
46167
46168
46169
46170
46171
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
.....
50076
50077
50078
50079
50080
50081
50082
50083
50084
50085
50086
50087
50088
50089
50090
.....
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
50931
.....
52133
52134
52135
52136
52137
52138
52139
52140
52141
52142
52143
52144
52145
52146
52147
.....
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430
52431
.....
52456
52457
52458
52459
52460
52461
52462
52463
52464
52465
52466
52467
52468
52469
52470
.....
53756
53757
53758
53759
53760
53761
53762
53763
53764
53765
53766
53767
53768
53769
53770
.....
54033
54034
54035
54036
54037
54038
54039
54040
54041
54042
54043
54044
54045
54046
54047
.....
54659
54660
54661
54662
54663
54664
54665
54666
54667
54668
54669
54670
54671
54672
54673
.....
56950
56951
56952
56953
56954
56955
56956
56957
56958
56959
56960
56961
56962
56963
56964
.....
57773
57774
57775
57776
57777
57778
57779
57780
57781
57782
57783
57784
57785
57786
57787
.....
58143
58144
58145
58146
58147
58148
58149
58150
58151
58152
58153
58154
58155
58156
58157
.....
58544
58545
58546
58547
58548
58549
58550
58551
58552
58553
58554
58555
58556
58557
58558
.....
59738
59739
59740
59741
59742
59743
59744
59745
59746
59747
59748
59749
59750
59751
59752
.....
60609
60610
60611
60612
60613
60614
60615
60616
60617
60618
60619
60620
60621
60622
60623
.....
61584
61585
61586
61587
61588
61589
61590
61591
61592
61593
61594
61595
61596
61597
61598
.....
61985
61986
61987
61988
61989
61990
61991
61992
61993
61994
61995
61996
61997
61998
61999
.....
64237
64238
64239
64240
64241
64242
64243
64244
64245
64246
64247
64248
64249
64250
64251
.....
64558
64559
64560
64561
64562
64563
64564
64565
64566
64567
64568
64569
64570
64571
64572
.....
66423
66424
66425
66426
66427
66428
66429
66430
66431
66432
66433
66434
66435
66436
66437
.....
66906
66907
66908
66909
66910
66911
66912
66913
66914
66915
66916
66917
66918
66919
66920
.....
68838
68839
68840
68841
68842
68843
68844
68845
68846
68847
68848
68849
68850
68851
68852
.....
69014
69015
69016
69017
69018
69019
69020
69021
69022
69023
69024
69025
69026
69027
69028
.....
70214
70215
70216
70217
70218
70219
70220
70221
70222
70223
70224
70225
70226
70227
70228
.....
71047
71048
71049
71050
71051
71052
71053
71054
71055
71056
71057
71058
71059
71060
71061
.....
72125
72126
72127
72128
72129
72130
72131
72132
72133
72134
72135
72136
72137
72138
72139
72140
72141
72142
72143
72144
72145
72146
72147
72148
72149
72150
.....
72488
72489
72490
72491
72492
72493
72494
72495
72496
72497
72498
72499
72500
72501
72502
.....
76241
76242
76243
76244
76245
76246
76247
76248
76249
76250
76251
76252
76253
76254
76255
.....
76274
76275
76276
76277
76278
76279
76280
76281
76282
76283
76284
76285
76286
76287
76288
.....
77728
77729
77730
77731
77732
77733
77734
77735
77736
77737
77738
77739
77740
77741
77742
.....
78015
78016
78017
78018
78019
78020
78021
78022
78023
78024
78025
78026
78027
78028
78029
.....
78920
78921
78922
78923
78924
78925
78926
78927
78928
78929
78930
78931
78932
78933
78934
.....
80004
80005
80006
80007
80008
80009
80010
80011
80012
80013
80014
80015
80016
80017
80018
.....
83119
83120
83121
83122
83123
83124
83125
83126
83127
83128
83129
83130
83131
83132
83133
.....
83164
83165
83166
83167
83168
83169
83170
83171
83172
83173
83174
83175
83176
83177
83178
.....
85048
85049
85050
85051
85052
85053
85054
85055
85056
85057
85058
85059
85060
85061
85062
.....
85064
85065
85066
85067
85068
85069
85070
85071
85072
85073
85074
85075
85076
85077
85078
.....
85527
85528
85529
85530
85531
85532
85533
85534
85535
85536
85537
85538
85539
85540
85541
.....
86245
86246
86247
86248
86249
86250
86251
86252
86253
86254
86255
86256
86257
86258
86259
.....
87891
87892
87893
87894
87895
87896
87897
87898
87899
87900
87901
87902
87903
87904
87905
.....
88233
88234
88235
88236
88237
88238
88239
88240
88241
88242
88243
88244
88245
88246
88247
.....
88286
88287
88288
88289
88290
88291
88292
88293
88294
88295
88296
88297
88298
88299
88300
.....
89170
89171
89172
89173
89174
89175
89176
89177
89178
89179
89180
89181
89182
89183
89184
query II rowsort label-214
SELECT DISTINCT COUNT( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-214
SELECT DISTINCT COUNT ( * ) col2, - 81 * 68 * - 18 FROM tab1
----
3
99144

query I rowsort
................................................................................
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + 18 ) + + 37
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + ( + - col0 ) * - 65 * + + col2 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 + + 77 col1, + col2 AS col0 FROM tab0 AS cor0
----
-6
10
-6
47
................................................................................
query II rowsort label-529
SELECT + 88 col2, + COUNT( * ) FROM tab0
----
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-529
SELECT + 88 col2, + COUNT ( * ) FROM tab0
----
88
3

query III rowsort
................................................................................
query I rowsort
SELECT DISTINCT - col2 * + col0 * - 9 * - - 55 AS col2 FROM tab0 AS cor0
----
348975
430650
4753485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, + col0 + + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-46
-5
-64
-13
................................................................................
query I rowsort
SELECT ALL + 51 * + + 20 AS col1 FROM tab1
----
1020
1020
1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + col0 col1, - col2 AS col0 FROM tab0
----
108
-10
96
-47
................................................................................

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col0, ( - 11 ) FROM tab0 AS cor0
----
36
-11

query I rowsort
................................................................................
81

query I rowsort
SELECT DISTINCT 18 * - 53 FROM tab1
----
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 59 AS col2 FROM tab2
----
46
59
64
59
................................................................................
-6

query I rowsort
SELECT + 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 53 AS col0 FROM tab0 AS cor0
----
15
53
87
53
................................................................................
query II rowsort label-1253
SELECT + COUNT( * ) col1, + 78 FROM tab0 AS cor0
----
3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1253
SELECT + COUNT ( * ) col1, + 78 FROM tab0 AS cor0
----
3
78

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-1372
SELECT ALL + ( COUNT( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1372
SELECT ALL + ( COUNT ( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 col0, col1 + - 20 AS col0 FROM tab0
----
19
-19
19
1
................................................................................
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 35 AS col2 FROM tab0 AS cor0
----
10
35
47
35
................................................................................
query I rowsort label-1703
SELECT DISTINCT - col1 * - 87 * - CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-160776
-620136
-7656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col2, + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 < + + col2
----
................................................................................
44
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + 21 * 0 AS col2 FROM tab2 AS cor0
----
-51
0
-67
0
................................................................................
query I rowsort
SELECT ALL 80 - - + 90 AS col1 FROM tab0 AS cor0
----
170
170
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 1 col2, + 75 FROM tab0 cor0
----
-14
75
-86
75
................................................................................
-3478

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col1 + + 67 + - + col2 * + - col1 FROM tab2 AS cor0
----
46
1189
64
3070
................................................................................
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 74 col2, + col2 + col0 AS col2 FROM tab1
----
74
144
74
147
................................................................................
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 * + - col2 col2, col2 FROM tab2 AS cor0
----
0
23
0
40
................................................................................
10
59
10
68
10
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 75 FROM tab0 AS cor0
----
-1
75
-21
75
................................................................................
-446
85
-446
91
-446

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2914
SELECT + col0 + + - 39 / + col2 col2, ( col0 ) / - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0
----
51
-446
85
-446
................................................................................
0
0
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3065
SELECT - 4 / + - 8 col2, + col1 / + col2 FROM tab1
----
0
0
0
0
................................................................................
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3364
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 40 col0, col0 FROM tab0 cor0
----
NULL
15
NULL
87
................................................................................

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
................................................................................
51
-79
67
-95
77
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) col0, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
................................................................................
query II rowsort label-3670
SELECT MIN( - + col0 ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3670
SELECT MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT + - 66 col0 FROM tab2 WHERE + + 15 IS NOT NULL
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 4 ) col1, col2 FROM tab0
----
4
10
4
47
................................................................................
-74
47
-74
99
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3749
SELECT CAST ( + col2 AS INTEGER ) col2, 9 + - 83 FROM tab0
----
10
-74
47
-74
................................................................................
query II rowsort label-3955
SELECT - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3955
SELECT - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-3
66

query II rowsort
................................................................................
query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN( - + ( - 18 ) ) DIV SUM( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3964
SELECT DISTINCT + + 50 col2, + MIN ( - + ( - 18 ) ) / SUM ( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
----
50
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - SUM ( + 52 ) * - COUNT ( * ) AS col0 FROM tab1
----
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 92 AS col1 FROM tab0
----
-10
92
-47
92
................................................................................
NULL
-1352

query I rowsort
SELECT col2 * + 17 FROM tab1 AS cor0 WHERE NOT 54 NOT BETWEEN col1 * + col1 + 90 AND + 45 + + + col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
................................................................................
query II rowsort label-4443
SELECT COUNT( * ) col1, + COUNT( 7 ) + - 50 FROM tab0
----
3
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4443
SELECT COUNT ( * ) col1, + COUNT ( 7 ) + - 50 FROM tab0
----
3
-47

query I rowsort
................................................................................
query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX( DISTINCT + + col1 ) FROM tab2
----
69
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4464
SELECT DISTINCT 69 col2, + MAX ( DISTINCT + + col1 ) FROM tab2
----
69
77

query I rowsort
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4794
SELECT ALL - - col2 col2, CAST ( NULL AS INTEGER ) * + - 42 FROM tab0 AS cor0
----
10
NULL
47
NULL
................................................................................
NULL
23
NULL
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4974
SELECT DISTINCT + col0 - + col2 col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
17
NULL
23
NULL
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5037
SELECT col2 col1, - CAST ( NULL AS INTEGER ) + 87 FROM tab0 cor0
----
10
NULL
47
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 15 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 36 + - 69 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5049
SELECT + + ( col1 ) AS col0, - 84 DIV + - col0 AS col2 FROM tab1 AS cor0
................................................................................
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + + ( - col0 ) <> 95 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 38 AS col0 FROM tab2 AS cor0
----
46
38
64
38
................................................................................
81
NULL
81
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5574
SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0
----
NULL
81
NULL
81
................................................................................
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col0, - col1 FROM tab1
----
94
-14
94
-47
................................................................................
query I rowsort
SELECT col1 * - + col2 + + + col0 FROM tab1
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - + 41 + col2 + - + col1 col1, + ( col0 ) AS col1 FROM tab0
----
-31
87
58
97
................................................................................
query II rowsort label-5738
SELECT ALL - - 18 col1, MIN( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5738
SELECT ALL - - 18 col1, MIN ( ALL - 79 ) - + 73 FROM tab1 AS cor0
----
18
-152

query I rowsort
................................................................................
query II rowsort label-5893
SELECT ALL CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT + 10 ) * + COUNT( * ) DIV + 3 FROM tab2
----
NULL
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5893
SELECT ALL CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT + 10 ) * + COUNT ( * ) / + 3 FROM tab2
----
NULL
-10

onlyif mysql # DIV for integer division: 
................................................................................
75
-121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 col0, 83 AS col1 FROM tab0 AS cor0
----
-84
83
-84
83
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5997
SELECT ALL + MIN ( + col1 ) col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 55 col0, 90 FROM tab0 AS cor0
----
55
90

onlyif mysql # aggregate syntax: 
................................................................................
-1
-97
-21
-97
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6241
SELECT DISTINCT - CAST ( 97 AS INTEGER ) col0, - col1 FROM tab0 AS cor0
----
-97
-1
-97
-21
................................................................................
5
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 85 col2, - col0 FROM tab2 AS cor0
----
85
-46
85
-64
................................................................................
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6379
SELECT DISTINCT - ( + col0 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-51
NULL
-85
NULL
................................................................................
NULL
-1
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6423
SELECT + col1 / - + col2 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-1
NULL
-1
NULL
................................................................................
query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST( NULL AS SIGNED ) col0, + 89 FROM tab0
----
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6551
SELECT DISTINCT 23 * 23 * - CAST ( NULL AS INTEGER ) col0, + 89 FROM tab0
----
NULL
89

query I rowsort
................................................................................
query I rowsort
SELECT ALL col0 + + 87 AS col0 FROM tab2
----
133
151
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 59 * - col0 + col1 col2, - 4 FROM tab2 cor0
----
2765
-4
3853
-4
................................................................................
query I rowsort
SELECT ALL + col1 + 95 FROM tab0
----
116
176
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
................................................................................
query I rowsort
SELECT col0 * col2 * + col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col1 - - 32 FROM tab0 cor0
----
-1
31
-21
11
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7044
SELECT DISTINCT 58, ( + COUNT ( * ) ) col1 FROM tab1
----
58
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
0
68
0
................................................................................
85
NULL
85
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7073
SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0
----
NULL
85
NULL
85
................................................................................

skipif mysql # not compatible
query III rowsort label-7278
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 32 FROM tab2 AS cor0
----
23
32
40
32
................................................................................
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + col2 * 89 * + 85 col1, col2 AS col1 FROM tab1 AS cor0
----
446394
59
514488
68
................................................................................
query I rowsort
SELECT + 55 * + 93 FROM tab1 AS cor0
----
5115
5115
5115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - - 36 col2, col2 FROM tab0 cor0
----
-2916
47
-36
99
................................................................................
query II rowsort label-7566
SELECT ( COUNT( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7566
SELECT ( COUNT ( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
----
3
56

onlyif mysql # aggregate syntax: 
................................................................................
115
134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 24 * - - 61 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col0, col2 FROM tab0
----
17
10
17
47
................................................................................
query I rowsort
SELECT - 94 col1 FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + 24 col0, 67 + + - col2 FROM tab1
----
1224
-29
2040
8
................................................................................

skipif mysql # not compatible
query I rowsort label-7913
SELECT - SUM ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col0 + - col2 FROM tab2 AS cor0
----
51
23
67
17
77
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 + 99 AS col0 FROM tab0 AS cor0
----
15
84
87
12
................................................................................
query III rowsort label-7957
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2
----
3
1838
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 11 AS col0 FROM tab1
----
59
-11
68
-11
................................................................................
query I rowsort
SELECT ALL 97 AS col0 FROM tab0 cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col0 * col0 col2, col0 AS col2 FROM tab2
----
-163840
64
-326250
75
................................................................................
query I rowsort
SELECT col1 + - 84 FROM tab0 cor0
----
-3
-63
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 64 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 22 * + col0 IS NULL
----
-51
160
-85
123
................................................................................
query I rowsort
SELECT - + 82 * + col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 col1, col1 FROM tab0 AS cor0
----
7
1
7
21
................................................................................
0

query I rowsort
SELECT DISTINCT + 24 FROM tab0 cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col2, + col1 + col1 AS col2 FROM tab1 AS cor0
----
51
28
85
10
................................................................................

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - MAX ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, col2 + col2 FROM tab2 AS cor0
----
-51
46
-67
116
................................................................................
-51
47
-91
5
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8786
SELECT col1 col2, - col0 + + col1 / - col0 AS col2 FROM tab1
----
14
-51
47
-91
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9126
SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 98 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
................................................................................
query I rowsort
SELECT ALL + + 93 AS col2 FROM tab0 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 + - col1 AS col1 FROM tab1 AS cor0
----
-59
0
-68
0
................................................................................
query I rowsort
SELECT ALL - ( - + 33 ) col2 FROM tab0 cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 / - col0 col2, col1 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - 86 <= NULL
----
................................................................................
query I rowsort
SELECT ALL - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 FROM tab0 AS cor0
----
-10
21
-47
81
................................................................................
52
-59
52
-68
52
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col1, col0 + + 34 AS col1 FROM tab2
----
-26
109
-26
80
................................................................................
21
-21
21
-81
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9481
SELECT DISTINCT - col1 col2, CAST ( + + 21 AS INTEGER ) FROM tab0 AS cor0
----
-1
21
-21
21
................................................................................
-5
-3481

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 53 col0, + 72 FROM tab0
----
-53
72
-53
72
................................................................................
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col0 FROM tab0 cor0
----
-15
15
-87
87
................................................................................
58
72

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 45 col1, + 39 + + ( + col0 ) + - col0 * 58 * + col2 AS col0 FROM tab0 AS cor0
----
-45
-40836
-45
-50334
................................................................................
query II rowsort label-9795
SELECT DISTINCT - COUNT( * ) + + + 33 col1, + COUNT( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9795
SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2
----
30
1

onlyif mysql # aggregate syntax: 

Changes to test/random/aggregates/slt_good_10.test.

1135
1136
1137
1138
1139
1140
1141

1142
1143
1144
1145
1146
1147
1148
....
2018
2019
2020
2021
2022
2023
2024

2025
2026
2027
2028
2029
2030
2031
....
3416
3417
3418
3419
3420
3421
3422

3423
3424
3425
3426
3427
3428
3429
....
3655
3656
3657
3658
3659
3660
3661

3662
3663
3664
3665
3666
3667
3668
....
5112
5113
5114
5115
5116
5117
5118

5119
5120
5121
5122
5123
5124
5125
....
5396
5397
5398
5399
5400
5401
5402

5403
5404
5405
5406
5407
5408
5409
....
5708
5709
5710
5711
5712
5713
5714

5715
5716
5717
5718
5719
5720
5721
....
6058
6059
6060
6061
6062
6063
6064

6065
6066
6067
6068
6069
6070
6071
....
6264
6265
6266
6267
6268
6269
6270

6271
6272
6273
6274
6275
6276
6277
....
6621
6622
6623
6624
6625
6626
6627

6628
6629
6630
6631
6632
6633
6634
....
7459
7460
7461
7462
7463
7464
7465

7466
7467
7468
7469
7470
7471
7472
....
7688
7689
7690
7691
7692
7693
7694

7695
7696
7697
7698
7699
7700
7701
....
8468
8469
8470
8471
8472
8473
8474

8475
8476
8477
8478
8479
8480
8481
.....
11398
11399
11400
11401
11402
11403
11404

11405
11406
11407
11408
11409
11410
11411
.....
12263
12264
12265
12266
12267
12268
12269

12270
12271
12272
12273
12274
12275
12276
.....
12752
12753
12754
12755
12756
12757
12758

12759
12760
12761
12762
12763
12764
12765
.....
13874
13875
13876
13877
13878
13879
13880

13881
13882
13883
13884
13885
13886
13887
.....
15292
15293
15294
15295
15296
15297
15298

15299
15300
15301
15302
15303
15304
15305
.....
16799
16800
16801
16802
16803
16804
16805

16806
16807
16808
16809
16810
16811
16812
.....
17056
17057
17058
17059
17060
17061
17062

17063
17064
17065
17066
17067
17068
17069
.....
17553
17554
17555
17556
17557
17558
17559

17560
17561
17562
17563
17564
17565
17566
.....
17663
17664
17665
17666
17667
17668
17669

17670
17671
17672
17673
17674
17675
17676
.....
18584
18585
18586
18587
18588
18589
18590

18591
18592
18593
18594
18595
18596
18597
.....
18609
18610
18611
18612
18613
18614
18615

18616
18617
18618
18619
18620
18621
18622
.....
19021
19022
19023
19024
19025
19026
19027

19028
19029
19030
19031
19032
19033
19034
.....
19109
19110
19111
19112
19113
19114
19115

19116
19117
19118
19119
19120
19121
19122
.....
21524
21525
21526
21527
21528
21529
21530

21531
21532
21533
21534
21535
21536
21537
.....
23415
23416
23417
23418
23419
23420
23421

23422
23423
23424
23425
23426
23427
23428
.....
23743
23744
23745
23746
23747
23748
23749

23750
23751
23752
23753
23754
23755
23756
.....
24109
24110
24111
24112
24113
24114
24115

24116
24117
24118
24119
24120
24121
24122
.....
25207
25208
25209
25210
25211
25212
25213

25214
25215
25216
25217
25218
25219
25220
.....
27805
27806
27807
27808
27809
27810
27811

27812
27813
27814
27815
27816
27817
27818
.....
28090
28091
28092
28093
28094
28095
28096

28097
28098
28099
28100
28101
28102
28103
.....
28238
28239
28240
28241
28242
28243
28244

28245
28246
28247
28248
28249
28250
28251
.....
28392
28393
28394
28395
28396
28397
28398

28399
28400
28401
28402
28403
28404
28405
.....
31727
31728
31729
31730
31731
31732
31733

31734
31735
31736
31737
31738
31739
31740
.....
32244
32245
32246
32247
32248
32249
32250

32251
32252
32253
32254
32255
32256
32257
.....
32364
32365
32366
32367
32368
32369
32370

32371
32372
32373
32374
32375
32376
32377
.....
32913
32914
32915
32916
32917
32918
32919

32920
32921
32922
32923
32924
32925
32926
.....
33142
33143
33144
33145
33146
33147
33148

33149
33150
33151
33152
33153
33154
33155
.....
34002
34003
34004
34005
34006
34007
34008

34009
34010
34011
34012
34013
34014
34015
.....
34115
34116
34117
34118
34119
34120
34121

34122
34123
34124
34125
34126
34127
34128
.....
34860
34861
34862
34863
34864
34865
34866

34867
34868
34869
34870
34871
34872
34873
.....
35774
35775
35776
35777
35778
35779
35780

35781
35782
35783
35784
35785
35786
35787
.....
37919
37920
37921
37922
37923
37924
37925

37926
37927
37928
37929
37930
37931
37932
.....
39211
39212
39213
39214
39215
39216
39217

39218
39219
39220
39221
39222
39223
39224
.....
39228
39229
39230
39231
39232
39233
39234

39235
39236
39237
39238
39239
39240
39241
.....
39931
39932
39933
39934
39935
39936
39937

39938
39939
39940
39941
39942
39943
39944
.....
40325
40326
40327
40328
40329
40330
40331

40332
40333
40334
40335
40336
40337
40338
.....
40466
40467
40468
40469
40470
40471
40472

40473
40474
40475
40476
40477
40478
40479
.....
42359
42360
42361
42362
42363
42364
42365

42366
42367
42368
42369
42370
42371
42372
.....
45144
45145
45146
45147
45148
45149
45150

45151
45152
45153
45154
45155
45156
45157
.....
46070
46071
46072
46073
46074
46075
46076

46077
46078
46079
46080
46081
46082
46083
.....
46097
46098
46099
46100
46101
46102
46103

46104
46105
46106
46107
46108
46109
46110
.....
46917
46918
46919
46920
46921
46922
46923

46924
46925
46926
46927
46928
46929
46930
.....
47347
47348
47349
47350
47351
47352
47353

47354
47355
47356
47357
47358
47359
47360
.....
47407
47408
47409
47410
47411
47412
47413

47414
47415
47416
47417
47418
47419
47420
.....
47812
47813
47814
47815
47816
47817
47818

47819
47820
47821
47822
47823
47824
47825
.....
49023
49024
49025
49026
49027
49028
49029

49030
49031
49032
49033
49034
49035
49036
.....
49838
49839
49840
49841
49842
49843
49844

49845
49846
49847
49848
49849
49850
49851
.....
51943
51944
51945
51946
51947
51948
51949

51950
51951
51952
51953
51954
51955
51956
.....
52765
52766
52767
52768
52769
52770
52771

52772
52773
52774
52775
52776
52777
52778
.....
54478
54479
54480
54481
54482
54483
54484

54485
54486
54487
54488
54489
54490
54491
.....
55500
55501
55502
55503
55504
55505
55506

55507
55508
55509
55510
55511
55512
55513
.....
56769
56770
56771
56772
56773
56774
56775

56776
56777
56778
56779
56780
56781
56782
.....
57074
57075
57076
57077
57078
57079
57080

57081
57082
57083
57084
57085
57086
57087
.....
57106
57107
57108
57109
57110
57111
57112

57113
57114
57115
57116
57117
57118
57119
.....
58199
58200
58201
58202
58203
58204
58205

58206
58207
58208
58209
58210
58211
58212
.....
58339
58340
58341
58342
58343
58344
58345

58346
58347
58348
58349
58350
58351
58352
.....
59768
59769
59770
59771
59772
59773
59774

59775
59776
59777
59778
59779
59780
59781
.....
60062
60063
60064
60065
60066
60067
60068

60069
60070
60071
60072
60073
60074
60075
.....
60380
60381
60382
60383
60384
60385
60386

60387
60388
60389
60390
60391
60392
60393
.....
60944
60945
60946
60947
60948
60949
60950

60951
60952
60953
60954
60955
60956
60957
.....
61226
61227
61228
61229
61230
61231
61232

61233
61234
61235
61236
61237
61238
61239
.....
63135
63136
63137
63138
63139
63140
63141

63142
63143
63144
63145
63146
63147
63148
.....
63442
63443
63444
63445
63446
63447
63448

63449
63450
63451
63452
63453
63454
63455
.....
64622
64623
64624
64625
64626
64627
64628

64629
64630
64631
64632
64633
64634
64635
.....
65254
65255
65256
65257
65258
65259
65260

65261
65262
65263
65264
65265
65266
65267
.....
66010
66011
66012
66013
66014
66015
66016

66017
66018
66019
66020
66021
66022
66023
.....
66124
66125
66126
66127
66128
66129
66130

66131
66132
66133
66134
66135
66136
66137
.....
66329
66330
66331
66332
66333
66334
66335

66336
66337
66338
66339
66340
66341
66342
.....
67728
67729
67730
67731
67732
67733
67734

67735
67736
67737
67738
67739
67740
67741
.....
67831
67832
67833
67834
67835
67836
67837

67838
67839
67840
67841
67842
67843
67844
.....
69314
69315
69316
69317
69318
69319
69320

69321
69322
69323
69324
69325
69326
69327
.....
72630
72631
72632
72633
72634
72635
72636

72637
72638
72639
72640
72641
72642
72643
.....
72728
72729
72730
72731
72732
72733
72734

72735
72736
72737
72738
72739
72740
72741
.....
76230
76231
76232
76233
76234
76235
76236

76237
76238
76239
76240
76241
76242
76243
76244
76245
76246

76247
76248
76249
76250
76251
76252
76253
.....
76730
76731
76732
76733
76734
76735
76736

76737
76738
76739
76740
76741
76742
76743
.....
77022
77023
77024
77025
77026
77027
77028

77029
77030
77031
77032
77033
77034
77035
.....
77070
77071
77072
77073
77074
77075
77076

77077
77078
77079
77080
77081
77082
77083
.....
77373
77374
77375
77376
77377
77378
77379

77380
77381
77382
77383
77384
77385
77386
.....
79359
79360
79361
79362
79363
79364
79365

79366
79367
79368
79369
79370
79371
79372
.....
80261
80262
80263
80264
80265
80266
80267

80268
80269
80270
80271
80272
80273
80274
.....
80294
80295
80296
80297
80298
80299
80300

80301
80302
80303
80304
80305
80306
80307
.....
80666
80667
80668
80669
80670
80671
80672

80673
80674
80675
80676
80677
80678
80679
.....
81388
81389
81390
81391
81392
81393
81394

81395
81396
81397
81398
81399
81400
81401
.....
82018
82019
82020
82021
82022
82023
82024

82025
82026
82027
82028
82029
82030
82031
.....
84591
84592
84593
84594
84595
84596
84597

84598
84599
84600
84601
84602
84603
84604
.....
84929
84930
84931
84932
84933
84934
84935

84936
84937
84938
84939
84940
84941
84942
.....
85347
85348
85349
85350
85351
85352
85353

85354
85355
85356
85357
85358
85359
85360
.....
86040
86041
86042
86043
86044
86045
86046

86047
86048
86049
86050
86051
86052
86053
.....
87980
87981
87982
87983
87984
87985
87986

87987
87988
87989
87990
87991
87992
87993
.....
88106
88107
88108
88109
88110
88111
88112

88113
88114
88115
88116
88117
88118
88119
.....
88996
88997
88998
88999
89000
89001
89002

89003
89004
89005
89006
89007
89008
89009
.....
89883
89884
89885
89886
89887
89888
89889

89890
89891
89892
89893
89894
89895
89896
.....
91968
91969
91970
91971
91972
91973
91974

91975
91976
91977
91978
91979
91980
91981
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT ALL + + col0 * col1 + + + 67 * + 44 + - 31 col2, col1 * 97 FROM tab2 AS cor0
----
5263
4947
7845
7469
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible

query II rowsort label-212
SELECT + col2 col1, 95 + col1 * + CAST ( NULL AS INTEGER ) - + + 1 FROM tab2 AS cor0
----
23
NULL
40
NULL
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible

query II rowsort label-369
SELECT ALL - - col2 col1, col1 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
................................................................................
query I rowsort
SELECT - col1 + ( + col0 ) FROM tab2
----
-13
-5
8


query II rowsort
SELECT col1 + + + col1 col1, col0 - col2 + + 96 - - 3 AS col0 FROM tab1
----
10
125
28
54
................................................................................

skipif mysql # not compatible
query I rowsort label-554
SELECT + MIN ( ALL + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
8


query II rowsort
SELECT DISTINCT 45 * + + 23 + + + col1 col0, col2 * - 74 AS col0 FROM tab1 AS cor0
----
1040
-4366
1049
-7104
................................................................................
query II rowsort label-582
SELECT ALL COUNT( * ) col2, - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-50

skipif mysql # not compatible

query II rowsort label-582
SELECT ALL COUNT ( * ) col2, - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-50

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT DISTINCT - 93 + + + col1 FROM tab2 AS cor0
----
-16
-26
-42


query II rowsort
SELECT col2 * + col1 + + col1 + + col0 col1, + col2 + - col0 FROM tab0 AS cor0
----
197
2
318
-77
................................................................................
NULL
67
NULL
77
NULL

skipif mysql # not compatible

query II rowsort label-657
SELECT ALL col1 col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9


query II rowsort
SELECT DISTINCT col2 * + col1 + + - ( + 87 ) col1, - col2 + - col0 AS col2 FROM tab1 AS cor0
----
1257
-147
208
-144
................................................................................
query II rowsort label-715
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) col1, - COUNT( + col0 ) FROM tab1
----
-3
-3

skipif mysql # not compatible

query II rowsort label-715
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) col1, - COUNT ( + col0 ) FROM tab1
----
-3
-3

query III rowsort
................................................................................
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 80 + + col1 BETWEEN ( col1 ) AND + + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT DISTINCT 84 + ( - col2 ) col2, ( + col2 ) * + + col2 FROM tab2 AS cor0
----
26
3364
44
1600
................................................................................
-92
29
-92
29
-92
29


query II rowsort
SELECT 50 * 52 * + + 89 col0, + col2 FROM tab0
----
231400
10
231400
47
................................................................................
skipif mysql # not compatible
query II rowsort label-917
SELECT COUNT ( * ) AS col1, MAX ( ( - col2 ) ) + - ( + 93 ) AS col0 FROM tab1
----
3
-152


query III rowsort
SELECT col1 AS col2, 38 col0, + 64 FROM tab0
----
9 values hashing to 1ef329afdc7b2888f1ea1830e57ab3ef

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * col2 ) IS NULL
................................................................................
75
75

query I rowsort
SELECT DISTINCT + 4 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----


query II rowsort
SELECT ALL + col1 col0, - col2 AS col1 FROM tab2 cor0
----
51
-23
67
-58
................................................................................
query II rowsort label-1328
SELECT - + 0 col0, COUNT( * ) AS col1 FROM tab2 cor0
----
0
3

skipif mysql # not compatible

query II rowsort label-1328
SELECT - + 0 col0, COUNT ( * ) AS col1 FROM tab2 cor0
----
0
3

onlyif mysql # aggregate syntax: 
................................................................................
23
74

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----


query II rowsort
SELECT col0 col0, + col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................
query I rowsort
SELECT col0 * - + 88 + + col1 FROM tab2 AS cor0
----
-3997
-5555
-6533


query II rowsort
SELECT col2 col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
................................................................................
query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 DIV + 81 * - - 30 AS col2 FROM tab2
----
174
0

skipif mysql # not compatible

query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 / + 81 * - - 30 AS col2 FROM tab2
----
174
0

onlyif mysql # aggregate syntax: 
................................................................................
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 65 + col2 NOT BETWEEN - 61 AND NULL
----


query II rowsort
SELECT ALL col1 col0, + col2 AS col1 FROM tab2
----
51
23
67
58
................................................................................
67
13
77
5
51

skipif mysql # not compatible

query II rowsort label-1849
SELECT DISTINCT - col0 + col0 / col1 + - - col1 col1, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-7
67
13
77
................................................................................
68
-3835
68
-4420
68
-6240


query II rowsort
SELECT DISTINCT - + col2 * + 98 col2, col0 FROM tab0 AS cor0
----
-4606
15
-9702
97
................................................................................
skipif mysql # not compatible
query II rowsort label-1908
SELECT - 81 AS col1, COUNT ( * ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab0
----
-81
NULL


query II rowsort
SELECT DISTINCT col1 col1, + col0 * - 3 AS col0 FROM tab0
----
1
-291
21
-261
................................................................................
query I rowsort
SELECT - col1 + + 82 * - + col1 AS col2 FROM tab0
----
-1743
-6723
-83


query II rowsort
SELECT DISTINCT 48 * - col2 + col2 col2, + 28 AS col2 FROM tab2
----
-1081
28
-1880
28
................................................................................
query I rowsort
SELECT ALL - col2 * - col0 - + 77 AS col2 FROM tab0
----
628
793
9526


query II rowsort
SELECT ALL + col2 col0, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
................................................................................
query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

skipif mysql # not compatible

query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT ( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

query I rowsort
................................................................................
47
-40
64
-58
75

skipif mysql # not compatible

query II rowsort label-2063
SELECT ALL - col2 col2, ( + col0 ) + - - 60 / col0 AS col0 FROM tab2
----
-23
47
-40
64
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST( NULL AS SIGNED ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

skipif mysql # not compatible

query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST ( NULL AS INTEGER ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

query I rowsort
SELECT DISTINCT col1 * 3 FROM tab0
................................................................................
----
0
83
1
83

skipif mysql # not compatible

query II rowsort label-2529
SELECT DISTINCT col1 / 54 col1, 83 FROM tab2
----
0
83
1
83
................................................................................
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab0 WHERE NULL <> NULL
----


query II rowsort
SELECT DISTINCT - col2 col0, 88 FROM tab0
----
-10
88
-47
88
................................................................................
-99
-21
-10
-81
-47

skipif mysql # not compatible

query II rowsort label-2602
SELECT - + CAST ( col1 AS INTEGER ) col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
................................................................................
query I rowsort
SELECT DISTINCT + col1 * - 65 + - 79 FROM tab2 AS cor0
----
-3394
-4434
-5084


query II rowsort
SELECT ALL + 85 col2, + col1 FROM tab0 AS cor0
----
85
1
85
21
................................................................................
query I rowsort
SELECT DISTINCT - 75 * + col0 AS col2 FROM tab2
----
-3450
-4800
-5625


query II rowsort
SELECT DISTINCT + 1 col0, 61 * 17 + 52 FROM tab1
----
1
1089

query III rowsort
................................................................................
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN + col2 AND 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT DISTINCT - + 96 * + - col2 * - col0 col2, + 34 * - col0 AS col1 FROM tab0 cor0
----
-67680
-510
-83520
-2958
................................................................................
9

query I rowsort
SELECT DISTINCT + AVG ( ALL - + 4 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL


query II rowsort
SELECT ALL + 32 + + ( + col0 ) col0, 58 * + 83 + - - 13 AS col2 FROM tab2 cor0
----
107
4827
78
4827
................................................................................
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 29 / + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col1 IS NOT NULL
----


query II rowsort
SELECT - + 95 col1, 11 FROM tab0 AS cor0
----
-95
11
-95
11
................................................................................
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col0 NOT IN ( col0 * - - 87, col1 * col1, - - col2, + col0 )
----
46
64
75


query II rowsort
SELECT DISTINCT - col2 col0, - col0 * + + col2 * - - col1 FROM tab2
----
-23
-53958
-40
-197120
................................................................................
query I rowsort
SELECT ALL - 89 + + 13 FROM tab2
----
-76
-76
-76


query II rowsort
SELECT + col1 col2, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
................................................................................
23
10
23
47
23
99


query II rowsort
SELECT col0 col1, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3


query II rowsort
SELECT ALL - + col2 col0, - 77 AS col0 FROM tab2 cor0
----
-23
-77
-40
-77
................................................................................
68
-51
68
-67
68
-77


query II rowsort
SELECT 17 col1, col0 * 32 AS col1 FROM tab0
----
17
2784
17
3104
................................................................................
query I rowsort label-3693
SELECT 0 / + + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
59
68
96


query II rowsort
SELECT + col2 + + 74 + 24 col0, col1 AS col1 FROM tab2 AS cor0
----
121
51
138
77
................................................................................
query II rowsort label-3707
SELECT COUNT( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

skipif mysql # not compatible

query II rowsort label-3707
SELECT COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + - 63 * COUNT ( * ) FROM tab1 AS cor0
----
-189


query II rowsort
SELECT DISTINCT col1 col1, 41 FROM tab0
----
1
41
21
41
................................................................................
query II rowsort label-3876
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

skipif mysql # not compatible

query II rowsort label-3876
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

query I rowsort
................................................................................
query I rowsort
SELECT ALL + 26 col1 FROM tab1
----
26
26
26


query II rowsort
SELECT - - ( + - col1 ) col0, + 67 + - 54 FROM tab0 AS cor0
----
-1
13
-21
13
................................................................................
-1
64
-1
75
-1

skipif mysql # not compatible

query II rowsort label-4237
SELECT + col0 col1, - col0 / col0 FROM tab2
----
46
-1
64
-1
................................................................................
query I rowsort
SELECT - ( - ( ( - col2 ) ) ) FROM tab1
----
-59
-68
-96


query II rowsort
SELECT col0 col1, - col1 + + col2 * - - 35 * - col2 AS col2 FROM tab0
----
15
-77396
87
-3521
................................................................................
query II rowsort label-4308
SELECT 2 col1, COUNT( * ) AS col1 FROM tab1
----
2
3

skipif mysql # not compatible

query II rowsort label-4308
SELECT 2 col1, COUNT ( * ) AS col1 FROM tab1
----
2
3

query I rowsort
................................................................................
23
-27
40
-27
58

skipif mysql # not compatible

query II rowsort label-4351
SELECT CAST ( - 27 AS INTEGER ) col2, col2 AS col2 FROM tab2
----
-27
23
-27
40
................................................................................
-108
-10
-96
-47
-98
-99


query II rowsort
SELECT DISTINCT + 99 + + col1 * - col1 * col0 col0, col1 * - 47 FROM tab1
----
-200920
-2209
-2026
-235
................................................................................
58
68
67
96
95

skipif mysql # not compatible

query II rowsort label-4572
SELECT col2 col1, + col2 + + 99 / - col2 FROM tab1 AS cor0
----
59
58
68
67
................................................................................
NULL
2
NULL
2
NULL

skipif mysql # not compatible

query II rowsort label-4855
SELECT ALL 2 col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
2
NULL
2
NULL
................................................................................
query II rowsort label-4956
SELECT + 52 col0, SUM( ALL - 97 ) AS col2 FROM tab2
----
52
-291

skipif mysql # not compatible

query II rowsort label-4956
SELECT + 52 col0, SUM ( ALL - 97 ) AS col2 FROM tab2
----
52
-291

query I rowsort
................................................................................
47
87
10
97
99

skipif mysql # not compatible

query II rowsort label-4959
SELECT col0 col2, + CAST ( - - col2 AS INTEGER ) FROM tab0
----
15
47
87
10
................................................................................

skipif mysql # not compatible
query I rowsort label-5048
SELECT 67 + + COUNT ( * ) AS col1 FROM tab2
----
70


query II rowsort
SELECT DISTINCT + 41 col1, col0 FROM tab2
----
41
46
41
64
................................................................................
----
NULL

query I rowsort
SELECT + + 60 FROM tab0 WHERE NOT - col1 NOT BETWEEN - col1 + - - col1 AND NULL
----


query II rowsort
SELECT + 21 + + 75 col1, - 36 FROM tab1 AS cor0
----
96
-36
96
-36
................................................................................
query II rowsort label-5102
SELECT COUNT( * ) col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible

query II rowsort label-5102
SELECT COUNT ( * ) col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-5143
SELECT ALL - + COUNT( * ) col2, + COUNT( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif mysql # not compatible

query II rowsort label-5143
SELECT ALL - + COUNT ( * ) col2, + COUNT ( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
-11
68
-1
96
-6

skipif mysql # not compatible

query II rowsort label-5272
SELECT col2 col0, col2 / - col1 AS col1 FROM tab1
----
59
-11
68
-1
................................................................................
59
68
68
96
96

skipif mysql # not compatible

query II rowsort label-5363
SELECT CAST ( + + col2 AS INTEGER ) col1, + col2 FROM tab1
----
59
59
68
68
................................................................................

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----
0


query II rowsort
SELECT - col1 col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
96
-47
68
................................................................................
query I rowsort
SELECT - col2 * + + ( 68 ) col0 FROM tab1 cor0
----
-4012
-4624
-6528


query II rowsort
SELECT col0 col0, + col0 AS col1 FROM tab2
----
46
46
64
64
................................................................................

skipif mysql # not compatible
query I rowsort label-5875
SELECT - SUM ( ALL - - col2 ) AS col2 FROM tab2
----
-121


query II rowsort
SELECT ALL + col0 col0, col1 FROM tab0
----
15
81
87
21
................................................................................
query I rowsort
SELECT ALL + col1 + col1 - + 60 FROM tab1 AS cor0
----
-32
-50
34


query II rowsort
SELECT + col1 col2, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
................................................................................
-59
5
-68
47
-96
14


query II rowsort
SELECT ALL + col0 col2, col0 AS col1 FROM tab0 cor0
----
15
15
87
87
................................................................................
382034880

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT ALL - 13 * - + col0 col1, col0 * - ( - col0 ) FROM tab1
----
1105
7225
1183
8281
................................................................................
query II rowsort label-6159
SELECT - MAX( - col2 ) col1, + 92 FROM tab2
----
23
92

skipif mysql # not compatible

query II rowsort label-6159
SELECT - MAX ( - col2 ) col1, + 92 FROM tab2
----
23
92

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6276
SELECT MIN ( - 28 ) FROM tab0
----
-28


query II rowsort
SELECT 85 col2, col2 * + col0 - - col0 AS col2 FROM tab2
----
85
1104
85
2624
................................................................................
-87
-1600
-87
-3364
-87
-529


query II rowsort
SELECT ALL - col1 col2, + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
................................................................................
query II rowsort label-6445
SELECT + + COUNT( * ) col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible

query II rowsort label-6445
SELECT + + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
NULL

query I rowsort
................................................................................
97
22
87
82
15

skipif mysql # not compatible

query II rowsort label-6477
SELECT - + col0 / - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0
----
2
97
22
87
................................................................................
query II rowsort label-6509
SELECT 97 + + + COUNT( * ) col0, COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

skipif mysql # not compatible

query II rowsort label-6509
SELECT 97 + + + COUNT ( * ) col0, COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

query I rowsort
................................................................................
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < - col2
----
97
1
99


query II rowsort
SELECT DISTINCT - 32 col0, - col1 AS col0 FROM tab2
----
-32
-51
-32
-67
................................................................................
query II rowsort label-6599
SELECT DISTINCT - SUM( + - 70 ) col1, + COUNT( * ) FROM tab2, tab1 AS cor0
----
630
9

skipif mysql # not compatible

query II rowsort label-6599
SELECT DISTINCT - SUM ( + - 70 ) col1, + COUNT ( * ) FROM tab2, tab1 AS cor0
----
630
9

query I rowsort
................................................................................
NULL
NULL

query I rowsort
SELECT 78 FROM tab2 WHERE - + col1 IS NULL
----


query II rowsort
SELECT DISTINCT col2 col2, col0 FROM tab0
----
10
87
47
15
................................................................................
query II rowsort label-6837
SELECT ALL COUNT( * ) col2, COUNT( * ) * + 90 AS col0 FROM tab2
----
3
270

skipif mysql # not compatible

query II rowsort label-6837
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 90 AS col0 FROM tab2
----
3
270

query I rowsort
................................................................................
NULL
0
NULL
0
NULL

skipif mysql # not compatible

query II rowsort label-6968
SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
-99
NULL
0
NULL
................................................................................
query II rowsort label-7038
SELECT ALL - + COUNT( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

skipif mysql # not compatible

query II rowsort label-7038
SELECT ALL - + COUNT ( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

query I rowsort
................................................................................
51
42
85
42
91

skipif mysql # not compatible

query II rowsort label-7128
SELECT ALL + 42 col0, col1 / - col0 + ( + ( col0 ) ) FROM tab1 AS cor0
----
42
51
42
85
................................................................................
query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT( * ) AS col1 FROM tab1
----
70
3

skipif mysql # not compatible

query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1
----
70
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-7163
SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46


query II rowsort
SELECT ( + + ( + col2 ) ) col1, + 23 + - - col1 * - + ( 50 ) AS col1 FROM tab1
----
59
-227
68
-2327
................................................................................
----

query I rowsort
SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52


query II rowsort
SELECT + ( 9 ) + - col2 col1, col2 + - col1 * + ( + - col2 ) AS col1 FROM tab2
----
-14
1196
-31
3120
................................................................................
query II rowsort label-7338
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + SUM( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

skipif mysql # not compatible

query II rowsort label-7338
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + SUM ( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 72 + - + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL


query II rowsort
SELECT + col1 col0, col2 * - col1 AS col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
................................................................................
query I rowsort label-7865
SELECT DISTINCT - col0 / + - 30 + - + 96 col0 FROM tab0
----
-93
-94
-96


query II rowsort
SELECT - col0 col1, + 7 FROM tab0
----
-15
7
-87
7
................................................................................
query I rowsort
SELECT ALL - + col0 - 39 * 65 AS col0 FROM tab0 AS cor0
----
-2550
-2622
-2632


query II rowsort
SELECT ALL - col0 - col0 + - + 47 col0, 3 FROM tab0 AS cor0
----
-221
3
-241
3
................................................................................
query I rowsort
SELECT + ( + - 10 ) FROM tab1
----
-10
-10
-10


query II rowsort
SELECT + col0 col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97


query II rowsort
SELECT DISTINCT 33 + col2 col0, + ( - 88 ) AS col0 FROM tab0 WHERE - + col1 - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ( ( MAX( + + col1 ) ) ) FROM tab2
................................................................................
query I rowsort
SELECT DISTINCT - col0 * - col0 * + 15 FROM tab2 AS cor0
----
31740
61440
84375


query II rowsort
SELECT 26 + col1 + 33 * + - col1 / 41 * - col0 + col1 col0, col1 FROM tab1 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + 20 * + - 53 AS col2, + 85 AS col0 FROM tab2 AS cor0
----
................................................................................
query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1 cor0
----
-144
-147
-159


query II rowsort
SELECT ALL - col2 col0, col1 FROM tab2
----
-23
51
-40
77
................................................................................
query II rowsort label-8351
SELECT DISTINCT + col1 DIV + col1 col2, 30 AS col1 FROM tab0
----
1
30

skipif mysql # not compatible

query II rowsort label-8351
SELECT DISTINCT + col1 / + col1 col2, 30 AS col1 FROM tab0
----
1
30

query I rowsort
................................................................................
query II rowsort label-8387
SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

skipif mysql # not compatible

query II rowsort label-8387
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

onlyif mysql # aggregate syntax: 
................................................................................
1
96
1
96
1

skipif mysql # not compatible

query II rowsort label-8597
SELECT ALL 96 col1, CAST ( + - 36 AS INTEGER ) / - 23 FROM tab0
----
96
1
96
1
................................................................................
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 11 + + + col1 ) )
----


query II rowsort
SELECT DISTINCT - col0 - - 66 col0, col0 + 19 FROM tab0 AS cor0
----
-21
106
-31
116
................................................................................
query I rowsort
SELECT ( + 78 ) FROM tab1 AS cor0
----
78
78
78


query II rowsort
SELECT col0 col2, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
................................................................................
query II rowsort label-8736
SELECT + 30 col0, MIN( ALL col1 ) AS col0 FROM tab0
----
30
1

skipif mysql # not compatible

query II rowsort label-8736
SELECT + 30 col0, MIN ( ALL col1 ) AS col0 FROM tab0
----
30
1

query III rowsort
................................................................................
104
NULL
11
NULL
7

skipif mysql # not compatible

query II rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) / col1 + + col0 * - + col2 + + 69 col1, + ( + - ( - + col0 ) ) / col1 + 7 FROM tab0 cor0
----
NULL
104
NULL
11
................................................................................
----

skipif mysql # not compatible
query III rowsort label-8883
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col1 + col0 - - 63 AND ( - col2 + - CAST ( + ( col2 ) AS INTEGER ) )
----


query II rowsort
SELECT + col0 - - col1 * - 43 * - ( - 13 ) * + 45 + col1 * - col2 * + col0 col1, col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + CAST( NULL AS SIGNED ) + - 7 FROM tab0
................................................................................
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 38 / + - col0 + + + ( + col0 ) * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT + 62 col0, - col0 AS col2 FROM tab0
----
62
-15
62
-87
................................................................................
query II rowsort label-9194
SELECT COUNT( * ) col1, MIN( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

skipif mysql # not compatible

query II rowsort label-9194
SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-9233
SELECT ALL - COUNT( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

skipif mysql # not compatible

query II rowsort label-9233
SELECT ALL - COUNT ( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

onlyif mysql # aggregate syntax: 
................................................................................
1
18
21
18
81

skipif mysql # not compatible

query II rowsort label-9307
SELECT CAST ( 18 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
18
1
18
21
................................................................................

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 54 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57


query II rowsort
SELECT ALL - ( - + ( + col2 ) ) col2, col0 FROM tab1 AS cor0
----
59
85
68
91
................................................................................

skipif mysql # not compatible
query III rowsort label-9516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) * - + col0 * col0 * - col0 * + + col0 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT ALL - col0 col2, + col0 FROM tab0 cor0
----
-15
15
-87
87
................................................................................
-99
451
-10
6608
-47

skipif mysql # not compatible

query II rowsort label-9610
SELECT ALL col1 * CAST ( col1 AS INTEGER ) + + col2 col2, - col2 AS col0 FROM tab0
----
100
-99
451
-10
................................................................................
query II rowsort label-9706
SELECT ALL MAX( col1 ) * - COUNT( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

skipif mysql # not compatible

query II rowsort label-9706
SELECT ALL MAX ( col1 ) * - COUNT ( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-9930
SELECT - + MAX ( + - 24 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
24


query II rowsort
SELECT ALL 64 col1, - col1 * + 13 AS col2 FROM tab0
----
64
-1053
64
-13







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
....
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
....
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
....
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
....
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
....
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
....
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
....
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
....
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
....
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
....
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
....
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
....
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
.....
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
.....
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
.....
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
.....
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
.....
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
.....
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
.....
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
.....
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
.....
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
.....
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
.....
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
.....
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
.....
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
.....
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
.....
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
.....
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
.....
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
.....
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
.....
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
.....
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
.....
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
.....
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
.....
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
.....
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
.....
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
.....
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
.....
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
.....
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
.....
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
.....
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
.....
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
.....
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
.....
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
.....
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
.....
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
.....
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
.....
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
.....
42409
42410
42411
42412
42413
42414
42415
42416
42417
42418
42419
42420
42421
42422
42423
.....
45195
45196
45197
45198
45199
45200
45201
45202
45203
45204
45205
45206
45207
45208
45209
.....
46122
46123
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
46134
46135
46136
.....
46150
46151
46152
46153
46154
46155
46156
46157
46158
46159
46160
46161
46162
46163
46164
.....
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
.....
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
.....
47463
47464
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474
47475
47476
47477
.....
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880
47881
47882
47883
.....
49081
49082
49083
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093
49094
49095
.....
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
.....
52003
52004
52005
52006
52007
52008
52009
52010
52011
52012
52013
52014
52015
52016
52017
.....
52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
52837
52838
52839
52840
.....
54540
54541
54542
54543
54544
54545
54546
54547
54548
54549
54550
54551
54552
54553
54554
.....
55563
55564
55565
55566
55567
55568
55569
55570
55571
55572
55573
55574
55575
55576
55577
.....
56833
56834
56835
56836
56837
56838
56839
56840
56841
56842
56843
56844
56845
56846
56847
.....
57139
57140
57141
57142
57143
57144
57145
57146
57147
57148
57149
57150
57151
57152
57153
.....
57172
57173
57174
57175
57176
57177
57178
57179
57180
57181
57182
57183
57184
57185
57186
.....
58266
58267
58268
58269
58270
58271
58272
58273
58274
58275
58276
58277
58278
58279
58280
.....
58407
58408
58409
58410
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
.....
59837
59838
59839
59840
59841
59842
59843
59844
59845
59846
59847
59848
59849
59850
59851
.....
60132
60133
60134
60135
60136
60137
60138
60139
60140
60141
60142
60143
60144
60145
60146
.....
60451
60452
60453
60454
60455
60456
60457
60458
60459
60460
60461
60462
60463
60464
60465
.....
61016
61017
61018
61019
61020
61021
61022
61023
61024
61025
61026
61027
61028
61029
61030
.....
61299
61300
61301
61302
61303
61304
61305
61306
61307
61308
61309
61310
61311
61312
61313
.....
63209
63210
63211
63212
63213
63214
63215
63216
63217
63218
63219
63220
63221
63222
63223
.....
63517
63518
63519
63520
63521
63522
63523
63524
63525
63526
63527
63528
63529
63530
63531
.....
64698
64699
64700
64701
64702
64703
64704
64705
64706
64707
64708
64709
64710
64711
64712
.....
65331
65332
65333
65334
65335
65336
65337
65338
65339
65340
65341
65342
65343
65344
65345
.....
66088
66089
66090
66091
66092
66093
66094
66095
66096
66097
66098
66099
66100
66101
66102
.....
66203
66204
66205
66206
66207
66208
66209
66210
66211
66212
66213
66214
66215
66216
66217
.....
66409
66410
66411
66412
66413
66414
66415
66416
66417
66418
66419
66420
66421
66422
66423
.....
67809
67810
67811
67812
67813
67814
67815
67816
67817
67818
67819
67820
67821
67822
67823
.....
67913
67914
67915
67916
67917
67918
67919
67920
67921
67922
67923
67924
67925
67926
67927
.....
69397
69398
69399
69400
69401
69402
69403
69404
69405
69406
69407
69408
69409
69410
69411
.....
72714
72715
72716
72717
72718
72719
72720
72721
72722
72723
72724
72725
72726
72727
72728
.....
72813
72814
72815
72816
72817
72818
72819
72820
72821
72822
72823
72824
72825
72826
72827
.....
76316
76317
76318
76319
76320
76321
76322
76323
76324
76325
76326
76327
76328
76329
76330
76331
76332
76333
76334
76335
76336
76337
76338
76339
76340
76341
.....
76818
76819
76820
76821
76822
76823
76824
76825
76826
76827
76828
76829
76830
76831
76832
.....
77111
77112
77113
77114
77115
77116
77117
77118
77119
77120
77121
77122
77123
77124
77125
.....
77160
77161
77162
77163
77164
77165
77166
77167
77168
77169
77170
77171
77172
77173
77174
.....
77464
77465
77466
77467
77468
77469
77470
77471
77472
77473
77474
77475
77476
77477
77478
.....
79451
79452
79453
79454
79455
79456
79457
79458
79459
79460
79461
79462
79463
79464
79465
.....
80354
80355
80356
80357
80358
80359
80360
80361
80362
80363
80364
80365
80366
80367
80368
.....
80388
80389
80390
80391
80392
80393
80394
80395
80396
80397
80398
80399
80400
80401
80402
.....
80761
80762
80763
80764
80765
80766
80767
80768
80769
80770
80771
80772
80773
80774
80775
.....
81484
81485
81486
81487
81488
81489
81490
81491
81492
81493
81494
81495
81496
81497
81498
.....
82115
82116
82117
82118
82119
82120
82121
82122
82123
82124
82125
82126
82127
82128
82129
.....
84689
84690
84691
84692
84693
84694
84695
84696
84697
84698
84699
84700
84701
84702
84703
.....
85028
85029
85030
85031
85032
85033
85034
85035
85036
85037
85038
85039
85040
85041
85042
.....
85447
85448
85449
85450
85451
85452
85453
85454
85455
85456
85457
85458
85459
85460
85461
.....
86141
86142
86143
86144
86145
86146
86147
86148
86149
86150
86151
86152
86153
86154
86155
.....
88082
88083
88084
88085
88086
88087
88088
88089
88090
88091
88092
88093
88094
88095
88096
.....
88209
88210
88211
88212
88213
88214
88215
88216
88217
88218
88219
88220
88221
88222
88223
.....
89100
89101
89102
89103
89104
89105
89106
89107
89108
89109
89110
89111
89112
89113
89114
.....
89988
89989
89990
89991
89992
89993
89994
89995
89996
89997
89998
89999
90000
90001
90002
.....
92074
92075
92076
92077
92078
92079
92080
92081
92082
92083
92084
92085
92086
92087
92088
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * col1 + + + 67 * + 44 + - 31 col2, col1 * 97 FROM tab2 AS cor0
----
5263
4947
7845
7469
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-212
SELECT + col2 col1, 95 + col1 * + CAST ( NULL AS INTEGER ) - + + 1 FROM tab2 AS cor0
----
23
NULL
40
NULL
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-369
SELECT ALL - - col2 col1, col1 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
................................................................................
query I rowsort
SELECT - col1 + ( + col0 ) FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + + col1 col1, col0 - col2 + + 96 - - 3 AS col0 FROM tab1
----
10
125
28
54
................................................................................

skipif mysql # not compatible
query I rowsort label-554
SELECT + MIN ( ALL + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 * + + 23 + + + col1 col0, col2 * - 74 AS col0 FROM tab1 AS cor0
----
1040
-4366
1049
-7104
................................................................................
query II rowsort label-582
SELECT ALL COUNT( * ) col2, - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-582
SELECT ALL COUNT ( * ) col2, - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-50

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT DISTINCT - 93 + + + col1 FROM tab2 AS cor0
----
-16
-26
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1 + + col1 + + col0 col1, + col2 + - col0 FROM tab0 AS cor0
----
197
2
318
-77
................................................................................
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-657
SELECT ALL col1 col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 + + - ( + 87 ) col1, - col2 + - col0 AS col2 FROM tab1 AS cor0
----
1257
-147
208
-144
................................................................................
query II rowsort label-715
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) col1, - COUNT( + col0 ) FROM tab1
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-715
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) col1, - COUNT ( + col0 ) FROM tab1
----
-3
-3

query III rowsort
................................................................................
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 80 + + col1 BETWEEN ( col1 ) AND + + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 84 + ( - col2 ) col2, ( + col2 ) * + + col2 FROM tab2 AS cor0
----
26
3364
44
1600
................................................................................
-92
29
-92
29
-92
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 * 52 * + + 89 col0, + col2 FROM tab0
----
231400
10
231400
47
................................................................................
skipif mysql # not compatible
query II rowsort label-917
SELECT COUNT ( * ) AS col1, MAX ( ( - col2 ) ) + - ( + 93 ) AS col0 FROM tab1
----
3
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col2, 38 col0, + 64 FROM tab0
----
9 values hashing to 1ef329afdc7b2888f1ea1830e57ab3ef

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * col2 ) IS NULL
................................................................................
75
75

query I rowsort
SELECT DISTINCT + 4 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, - col2 AS col1 FROM tab2 cor0
----
51
-23
67
-58
................................................................................
query II rowsort label-1328
SELECT - + 0 col0, COUNT( * ) AS col1 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1328
SELECT - + 0 col0, COUNT ( * ) AS col1 FROM tab2 cor0
----
0
3

onlyif mysql # aggregate syntax: 
................................................................................
23
74

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................
query I rowsort
SELECT col0 * - + 88 + + col1 FROM tab2 AS cor0
----
-3997
-5555
-6533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
................................................................................
query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 DIV + 81 * - - 30 AS col2 FROM tab2
----
174
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 / + 81 * - - 30 AS col2 FROM tab2
----
174
0

onlyif mysql # aggregate syntax: 
................................................................................
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 65 + col2 NOT BETWEEN - 61 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + col2 AS col1 FROM tab2
----
51
23
67
58
................................................................................
67
13
77
5
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1849
SELECT DISTINCT - col0 + col0 / col1 + - - col1 col1, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-7
67
13
77
................................................................................
68
-3835
68
-4420
68
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * + 98 col2, col0 FROM tab0 AS cor0
----
-4606
15
-9702
97
................................................................................
skipif mysql # not compatible
query II rowsort label-1908
SELECT - 81 AS col1, COUNT ( * ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab0
----
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col0 * - 3 AS col0 FROM tab0
----
1
-291
21
-261
................................................................................
query I rowsort
SELECT - col1 + + 82 * - + col1 AS col2 FROM tab0
----
-1743
-6723
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 * - col2 + col2 col2, + 28 AS col2 FROM tab2
----
-1081
28
-1880
28
................................................................................
query I rowsort
SELECT ALL - col2 * - col0 - + 77 AS col2 FROM tab0
----
628
793
9526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
................................................................................
query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT ( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

query I rowsort
................................................................................
47
-40
64
-58
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2063
SELECT ALL - col2 col2, ( + col0 ) + - - 60 / col0 AS col0 FROM tab2
----
-23
47
-40
64
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST( NULL AS SIGNED ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST ( NULL AS INTEGER ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

query I rowsort
SELECT DISTINCT col1 * 3 FROM tab0
................................................................................
----
0
83
1
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2529
SELECT DISTINCT col1 / 54 col1, 83 FROM tab2
----
0
83
1
83
................................................................................
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 88 FROM tab0
----
-10
88
-47
88
................................................................................
-99
-21
-10
-81
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2602
SELECT - + CAST ( col1 AS INTEGER ) col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
................................................................................
query I rowsort
SELECT DISTINCT + col1 * - 65 + - 79 FROM tab2 AS cor0
----
-3394
-4434
-5084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 85 col2, + col1 FROM tab0 AS cor0
----
85
1
85
21
................................................................................
query I rowsort
SELECT DISTINCT - 75 * + col0 AS col2 FROM tab2
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 1 col0, 61 * 17 + 52 FROM tab1
----
1
1089

query III rowsort
................................................................................
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN + col2 AND 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 96 * + - col2 * - col0 col2, + 34 * - col0 AS col1 FROM tab0 cor0
----
-67680
-510
-83520
-2958
................................................................................
9

query I rowsort
SELECT DISTINCT + AVG ( ALL - + 4 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32 + + ( + col0 ) col0, 58 * + 83 + - - 13 AS col2 FROM tab2 cor0
----
107
4827
78
4827
................................................................................
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 29 / + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 95 col1, 11 FROM tab0 AS cor0
----
-95
11
-95
11
................................................................................
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col0 NOT IN ( col0 * - - 87, col1 * col1, - - col2, + col0 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 * + + col2 * - - col1 FROM tab2
----
-23
-53958
-40
-197120
................................................................................
query I rowsort
SELECT ALL - 89 + + 13 FROM tab2
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
................................................................................
23
10
23
47
23
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, - 77 AS col0 FROM tab2 cor0
----
-23
-77
-40
-77
................................................................................
68
-51
68
-67
68
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col1, col0 * 32 AS col1 FROM tab0
----
17
2784
17
3104
................................................................................
query I rowsort label-3693
SELECT 0 / + + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + 74 + 24 col0, col1 AS col1 FROM tab2 AS cor0
----
121
51
138
77
................................................................................
query II rowsort label-3707
SELECT COUNT( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3707
SELECT COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + - 63 * COUNT ( * ) FROM tab1 AS cor0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 41 FROM tab0
----
1
41
21
41
................................................................................
query II rowsort label-3876
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3876
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

query I rowsort
................................................................................
query I rowsort
SELECT ALL + 26 col1 FROM tab1
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + - col1 ) col0, + 67 + - 54 FROM tab0 AS cor0
----
-1
13
-21
13
................................................................................
-1
64
-1
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4237
SELECT + col0 col1, - col0 / col0 FROM tab2
----
46
-1
64
-1
................................................................................
query I rowsort
SELECT - ( - ( ( - col2 ) ) ) FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col1 + + col2 * - - 35 * - col2 AS col2 FROM tab0
----
15
-77396
87
-3521
................................................................................
query II rowsort label-4308
SELECT 2 col1, COUNT( * ) AS col1 FROM tab1
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4308
SELECT 2 col1, COUNT ( * ) AS col1 FROM tab1
----
2
3

query I rowsort
................................................................................
23
-27
40
-27
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4351
SELECT CAST ( - 27 AS INTEGER ) col2, col2 AS col2 FROM tab2
----
-27
23
-27
40
................................................................................
-108
-10
-96
-47
-98
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 99 + + col1 * - col1 * col0 col0, col1 * - 47 FROM tab1
----
-200920
-2209
-2026
-235
................................................................................
58
68
67
96
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4572
SELECT col2 col1, + col2 + + 99 / - col2 FROM tab1 AS cor0
----
59
58
68
67
................................................................................
NULL
2
NULL
2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4855
SELECT ALL 2 col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
2
NULL
2
NULL
................................................................................
query II rowsort label-4956
SELECT + 52 col0, SUM( ALL - 97 ) AS col2 FROM tab2
----
52
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4956
SELECT + 52 col0, SUM ( ALL - 97 ) AS col2 FROM tab2
----
52
-291

query I rowsort
................................................................................
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4959
SELECT col0 col2, + CAST ( - - col2 AS INTEGER ) FROM tab0
----
15
47
87
10
................................................................................

skipif mysql # not compatible
query I rowsort label-5048
SELECT 67 + + COUNT ( * ) AS col1 FROM tab2
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 41 col1, col0 FROM tab2
----
41
46
41
64
................................................................................
----
NULL

query I rowsort
SELECT + + 60 FROM tab0 WHERE NOT - col1 NOT BETWEEN - col1 + - - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 + + 75 col1, - 36 FROM tab1 AS cor0
----
96
-36
96
-36
................................................................................
query II rowsort label-5102
SELECT COUNT( * ) col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5102
SELECT COUNT ( * ) col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-5143
SELECT ALL - + COUNT( * ) col2, + COUNT( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5143
SELECT ALL - + COUNT ( * ) col2, + COUNT ( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
-11
68
-1
96
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5272
SELECT col2 col0, col2 / - col1 AS col1 FROM tab1
----
59
-11
68
-1
................................................................................
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5363
SELECT CAST ( + + col2 AS INTEGER ) col1, + col2 FROM tab1
----
59
59
68
68
................................................................................

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
96
-47
68
................................................................................
query I rowsort
SELECT - col2 * + + ( 68 ) col0 FROM tab1 cor0
----
-4012
-4624
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col0 AS col1 FROM tab2
----
46
46
64
64
................................................................................

skipif mysql # not compatible
query I rowsort label-5875
SELECT - SUM ( ALL - - col2 ) AS col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col1 FROM tab0
----
15
81
87
21
................................................................................
query I rowsort
SELECT ALL + col1 + col1 - + 60 FROM tab1 AS cor0
----
-32
-50
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
................................................................................
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 AS col1 FROM tab0 cor0
----
15
15
87
87
................................................................................
382034880

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 13 * - + col0 col1, col0 * - ( - col0 ) FROM tab1
----
1105
7225
1183
8281
................................................................................
query II rowsort label-6159
SELECT - MAX( - col2 ) col1, + 92 FROM tab2
----
23
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6159
SELECT - MAX ( - col2 ) col1, + 92 FROM tab2
----
23
92

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6276
SELECT MIN ( - 28 ) FROM tab0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 col2, col2 * + col0 - - col0 AS col2 FROM tab2
----
85
1104
85
2624
................................................................................
-87
-1600
-87
-3364
-87
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
................................................................................
query II rowsort label-6445
SELECT + + COUNT( * ) col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6445
SELECT + + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
NULL

query I rowsort
................................................................................
97
22
87
82
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6477
SELECT - + col0 / - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0
----
2
97
22
87
................................................................................
query II rowsort label-6509
SELECT 97 + + + COUNT( * ) col0, COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6509
SELECT 97 + + + COUNT ( * ) col0, COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

query I rowsort
................................................................................
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < - col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32 col0, - col1 AS col0 FROM tab2
----
-32
-51
-32
-67
................................................................................
query II rowsort label-6599
SELECT DISTINCT - SUM( + - 70 ) col1, + COUNT( * ) FROM tab2, tab1 AS cor0
----
630
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6599
SELECT DISTINCT - SUM ( + - 70 ) col1, + COUNT ( * ) FROM tab2, tab1 AS cor0
----
630
9

query I rowsort
................................................................................
NULL
NULL

query I rowsort
SELECT 78 FROM tab2 WHERE - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 FROM tab0
----
10
87
47
15
................................................................................
query II rowsort label-6837
SELECT ALL COUNT( * ) col2, COUNT( * ) * + 90 AS col0 FROM tab2
----
3
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6837
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 90 AS col0 FROM tab2
----
3
270

query I rowsort
................................................................................
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6968
SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
-99
NULL
0
NULL
................................................................................
query II rowsort label-7038
SELECT ALL - + COUNT( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7038
SELECT ALL - + COUNT ( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

query I rowsort
................................................................................
51
42
85
42
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7128
SELECT ALL + 42 col0, col1 / - col0 + ( + ( col0 ) ) FROM tab1 AS cor0
----
42
51
42
85
................................................................................
query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT( * ) AS col1 FROM tab1
----
70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1
----
70
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-7163
SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + ( + col2 ) ) col1, + 23 + - - col1 * - + ( 50 ) AS col1 FROM tab1
----
59
-227
68
-2327
................................................................................
----

query I rowsort
SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 9 ) + - col2 col1, col2 + - col1 * + ( + - col2 ) AS col1 FROM tab2
----
-14
1196
-31
3120
................................................................................
query II rowsort label-7338
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + SUM( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7338
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + SUM ( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 72 + - + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col2 * - col1 AS col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
................................................................................
query I rowsort label-7865
SELECT DISTINCT - col0 / + - 30 + - + 96 col0 FROM tab0
----
-93
-94
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 7 FROM tab0
----
-15
7
-87
7
................................................................................
query I rowsort
SELECT ALL - + col0 - 39 * 65 AS col0 FROM tab0 AS cor0
----
-2550
-2622
-2632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - col0 + - + 47 col0, 3 FROM tab0 AS cor0
----
-221
3
-241
3
................................................................................
query I rowsort
SELECT + ( + - 10 ) FROM tab1
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 33 + col2 col0, + ( - 88 ) AS col0 FROM tab0 WHERE - + col1 - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ( ( MAX( + + col1 ) ) ) FROM tab2
................................................................................
query I rowsort
SELECT DISTINCT - col0 * - col0 * + 15 FROM tab2 AS cor0
----
31740
61440
84375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 + col1 + 33 * + - col1 / 41 * - col0 + col1 col0, col1 FROM tab1 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + 20 * + - 53 AS col2, + 85 AS col0 FROM tab2 AS cor0
----
................................................................................
query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1 cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 FROM tab2
----
-23
51
-40
77
................................................................................
query II rowsort label-8351
SELECT DISTINCT + col1 DIV + col1 col2, 30 AS col1 FROM tab0
----
1
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8351
SELECT DISTINCT + col1 / + col1 col2, 30 AS col1 FROM tab0
----
1
30

query I rowsort
................................................................................
query II rowsort label-8387
SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8387
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

onlyif mysql # aggregate syntax: 
................................................................................
1
96
1
96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8597
SELECT ALL 96 col1, CAST ( + - 36 AS INTEGER ) / - 23 FROM tab0
----
96
1
96
1
................................................................................
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 11 + + + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - 66 col0, col0 + 19 FROM tab0 AS cor0
----
-21
106
-31
116
................................................................................
query I rowsort
SELECT ( + 78 ) FROM tab1 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
................................................................................
query II rowsort label-8736
SELECT + 30 col0, MIN( ALL col1 ) AS col0 FROM tab0
----
30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8736
SELECT + 30 col0, MIN ( ALL col1 ) AS col0 FROM tab0
----
30
1

query III rowsort
................................................................................
104
NULL
11
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) / col1 + + col0 * - + col2 + + 69 col1, + ( + - ( - + col0 ) ) / col1 + 7 FROM tab0 cor0
----
NULL
104
NULL
11
................................................................................
----

skipif mysql # not compatible
query III rowsort label-8883
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col1 + col0 - - 63 AND ( - col2 + - CAST ( + ( col2 ) AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col1 * - 43 * - ( - 13 ) * + 45 + col1 * - col2 * + col0 col1, col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + CAST( NULL AS SIGNED ) + - 7 FROM tab0
................................................................................
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 38 / + - col0 + + + ( + col0 ) * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 62 col0, - col0 AS col2 FROM tab0
----
62
-15
62
-87
................................................................................
query II rowsort label-9194
SELECT COUNT( * ) col1, MIN( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9194
SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-9233
SELECT ALL - COUNT( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9233
SELECT ALL - COUNT ( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

onlyif mysql # aggregate syntax: 
................................................................................
1
18
21
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9307
SELECT CAST ( 18 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
18
1
18
21
................................................................................

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 54 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + ( + col2 ) ) col2, col0 FROM tab1 AS cor0
----
59
85
68
91
................................................................................

skipif mysql # not compatible
query III rowsort label-9516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) * - + col0 * col0 * - col0 * + + col0 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, + col0 FROM tab0 cor0
----
-15
15
-87
87
................................................................................
-99
451
-10
6608
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9610
SELECT ALL col1 * CAST ( col1 AS INTEGER ) + + col2 col2, - col2 AS col0 FROM tab0
----
100
-99
451
-10
................................................................................
query II rowsort label-9706
SELECT ALL MAX( col1 ) * - COUNT( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9706
SELECT ALL MAX ( col1 ) * - COUNT ( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-9930
SELECT - + MAX ( + - 24 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 64 col1, - col1 * + 13 AS col2 FROM tab0
----
64
-1053
64
-13

Changes to test/random/aggregates/slt_good_100.test.

977
978
979
980
981
982
983

984
985
986
987
988
989
990
....
1011
1012
1013
1014
1015
1016
1017

1018
1019
1020
1021
1022
1023
1024
....
1995
1996
1997
1998
1999
2000
2001

2002
2003
2004
2005
2006
2007
2008
....
2271
2272
2273
2274
2275
2276
2277

2278
2279
2280
2281
2282
2283
2284
....
2343
2344
2345
2346
2347
2348
2349

2350
2351
2352
2353
2354
2355
2356
....
2585
2586
2587
2588
2589
2590
2591

2592
2593
2594
2595
2596
2597
2598
....
2614
2615
2616
2617
2618
2619
2620

2621
2622
2623
2624
2625
2626
2627
....
2739
2740
2741
2742
2743
2744
2745

2746
2747
2748
2749
2750
2751
2752
....
2963
2964
2965
2966
2967
2968
2969

2970
2971
2972
2973
2974
2975
2976
....
3252
3253
3254
3255
3256
3257
3258

3259
3260
3261
3262
3263
3264
3265
....
3633
3634
3635
3636
3637
3638
3639

3640
3641
3642
3643
3644
3645
3646
....
6106
6107
6108
6109
6110
6111
6112

6113
6114
6115
6116
6117
6118
6119
....
7393
7394
7395
7396
7397
7398
7399

7400
7401
7402
7403
7404
7405
7406
....
9368
9369
9370
9371
9372
9373
9374

9375
9376
9377
9378
9379
9380
9381
.....
11615
11616
11617
11618
11619
11620
11621

11622
11623
11624
11625
11626
11627
11628
.....
11736
11737
11738
11739
11740
11741
11742

11743
11744
11745
11746
11747
11748
11749
.....
12448
12449
12450
12451
12452
12453
12454

12455
12456
12457
12458
12459
12460
12461
.....
14333
14334
14335
14336
14337
14338
14339

14340
14341
14342
14343
14344
14345
14346
.....
14490
14491
14492
14493
14494
14495
14496

14497
14498
14499
14500
14501
14502
14503
.....
14705
14706
14707
14708
14709
14710
14711

14712
14713
14714
14715
14716
14717
14718
.....
16011
16012
16013
16014
16015
16016
16017

16018
16019
16020
16021
16022
16023
16024
.....
16390
16391
16392
16393
16394
16395
16396

16397
16398
16399
16400
16401
16402
16403
.....
17323
17324
17325
17326
17327
17328
17329

17330
17331
17332
17333
17334
17335
17336
.....
19306
19307
19308
19309
19310
19311
19312

19313
19314
19315
19316
19317
19318
19319
.....
19395
19396
19397
19398
19399
19400
19401

19402
19403
19404
19405
19406
19407
19408
.....
19422
19423
19424
19425
19426
19427
19428

19429
19430
19431
19432
19433
19434
19435
.....
21500
21501
21502
21503
21504
21505
21506

21507
21508
21509
21510
21511
21512
21513
.....
21960
21961
21962
21963
21964
21965
21966

21967
21968
21969
21970
21971
21972
21973
.....
22703
22704
22705
22706
22707
22708
22709

22710
22711
22712
22713
22714
22715
22716
.....
24277
24278
24279
24280
24281
24282
24283

24284
24285
24286
24287
24288
24289
24290
.....
25133
25134
25135
25136
25137
25138
25139

25140
25141
25142
25143
25144
25145
25146
.....
25514
25515
25516
25517
25518
25519
25520

25521
25522
25523
25524
25525
25526
25527
.....
27940
27941
27942
27943
27944
27945
27946

27947
27948
27949
27950
27951
27952
27953
.....
27994
27995
27996
27997
27998
27999
28000

28001
28002
28003
28004
28005
28006
28007
.....
28150
28151
28152
28153
28154
28155
28156

28157
28158
28159
28160
28161
28162
28163
.....
28844
28845
28846
28847
28848
28849
28850

28851
28852
28853
28854
28855
28856
28857
.....
29694
29695
29696
29697
29698
29699
29700

29701
29702
29703
29704
29705
29706
29707
.....
29786
29787
29788
29789
29790
29791
29792

29793
29794
29795
29796
29797
29798
29799
.....
30075
30076
30077
30078
30079
30080
30081

30082
30083
30084
30085
30086
30087
30088
.....
30438
30439
30440
30441
30442
30443
30444

30445
30446
30447
30448
30449
30450
30451
.....
30540
30541
30542
30543
30544
30545
30546

30547
30548
30549
30550
30551
30552
30553
.....
32470
32471
32472
32473
32474
32475
32476

32477
32478
32479
32480
32481
32482
32483
32484
32485
32486

32487
32488
32489
32490
32491
32492
32493
.....
32975
32976
32977
32978
32979
32980
32981

32982
32983
32984
32985
32986
32987
32988
.....
33172
33173
33174
33175
33176
33177
33178

33179
33180
33181
33182
33183
33184
33185
.....
33726
33727
33728
33729
33730
33731
33732

33733
33734
33735
33736
33737
33738
33739
.....
34114
34115
34116
34117
34118
34119
34120

34121
34122
34123
34124
34125
34126
34127
.....
35431
35432
35433
35434
35435
35436
35437

35438
35439
35440
35441
35442
35443
35444
.....
36928
36929
36930
36931
36932
36933
36934

36935
36936
36937
36938
36939
36940
36941
.....
37385
37386
37387
37388
37389
37390
37391

37392
37393
37394
37395
37396
37397
37398
.....
38100
38101
38102
38103
38104
38105
38106

38107
38108
38109
38110
38111
38112
38113
.....
38237
38238
38239
38240
38241
38242
38243

38244
38245
38246
38247
38248
38249
38250
.....
38346
38347
38348
38349
38350
38351
38352

38353
38354
38355
38356
38357
38358
38359
.....
38736
38737
38738
38739
38740
38741
38742

38743
38744
38745
38746
38747
38748
38749
.....
41398
41399
41400
41401
41402
41403
41404

41405
41406
41407
41408
41409
41410
41411
.....
41949
41950
41951
41952
41953
41954
41955

41956
41957
41958
41959
41960
41961
41962
.....
41997
41998
41999
42000
42001
42002
42003

42004
42005
42006
42007
42008
42009
42010
.....
43909
43910
43911
43912
43913
43914
43915

43916
43917
43918
43919
43920
43921
43922
.....
44295
44296
44297
44298
44299
44300
44301

44302
44303
44304
44305
44306
44307
44308
.....
44957
44958
44959
44960
44961
44962
44963

44964
44965
44966
44967
44968
44969
44970
.....
44994
44995
44996
44997
44998
44999
45000

45001
45002
45003
45004
45005
45006
45007
.....
48078
48079
48080
48081
48082
48083
48084

48085
48086
48087
48088
48089
48090
48091
48092
48093
48094

48095
48096
48097
48098
48099
48100
48101
.....
49126
49127
49128
49129
49130
49131
49132

49133
49134
49135
49136
49137
49138
49139
.....
49172
49173
49174
49175
49176
49177
49178

49179
49180
49181
49182
49183
49184
49185
.....
49433
49434
49435
49436
49437
49438
49439

49440
49441
49442
49443
49444
49445
49446
.....
49612
49613
49614
49615
49616
49617
49618

49619
49620
49621
49622
49623
49624
49625
.....
49788
49789
49790
49791
49792
49793
49794

49795
49796
49797
49798
49799
49800
49801
.....
50037
50038
50039
50040
50041
50042
50043

50044
50045
50046
50047
50048
50049
50050
.....
50376
50377
50378
50379
50380
50381
50382

50383
50384
50385
50386
50387
50388
50389
.....
50710
50711
50712
50713
50714
50715
50716

50717
50718
50719
50720
50721
50722
50723
.....
51158
51159
51160
51161
51162
51163
51164

51165
51166
51167
51168
51169
51170
51171
.....
51291
51292
51293
51294
51295
51296
51297

51298
51299
51300
51301
51302
51303
51304
.....
53532
53533
53534
53535
53536
53537
53538

53539
53540
53541
53542
53543
53544
53545
.....
53784
53785
53786
53787
53788
53789
53790

53791
53792
53793
53794
53795
53796
53797
.....
54594
54595
54596
54597
54598
54599
54600

54601
54602
54603
54604
54605
54606
54607
.....
54801
54802
54803
54804
54805
54806
54807

54808
54809
54810
54811
54812
54813
54814
.....
55130
55131
55132
55133
55134
55135
55136

55137
55138
55139
55140
55141
55142
55143
.....
56136
56137
56138
56139
56140
56141
56142

56143
56144
56145
56146
56147
56148
56149
.....
56218
56219
56220
56221
56222
56223
56224

56225
56226
56227
56228
56229
56230
56231
.....
56987
56988
56989
56990
56991
56992
56993

56994
56995
56996
56997
56998
56999
57000
.....
57551
57552
57553
57554
57555
57556
57557

57558
57559
57560
57561
57562
57563
57564
.....
57714
57715
57716
57717
57718
57719
57720

57721
57722
57723
57724
57725
57726
57727
.....
58204
58205
58206
58207
58208
58209
58210

58211
58212
58213
58214
58215
58216
58217
.....
59014
59015
59016
59017
59018
59019
59020

59021
59022
59023
59024
59025
59026
59027
.....
60774
60775
60776
60777
60778
60779
60780

60781
60782
60783
60784
60785
60786
60787
.....
60849
60850
60851
60852
60853
60854
60855

60856
60857
60858
60859
60860
60861
60862
.....
61713
61714
61715
61716
61717
61718
61719

61720
61721
61722
61723
61724
61725
61726
.....
61887
61888
61889
61890
61891
61892
61893

61894
61895
61896
61897
61898
61899
61900
.....
64741
64742
64743
64744
64745
64746
64747

64748
64749
64750
64751
64752
64753
64754
.....
66996
66997
66998
66999
67000
67001
67002

67003
67004
67005
67006
67007
67008
67009
.....
68364
68365
68366
68367
68368
68369
68370

68371
68372
68373
68374
68375
68376
68377
.....
68509
68510
68511
68512
68513
68514
68515

68516
68517
68518
68519
68520
68521
68522
.....
69226
69227
69228
69229
69230
69231
69232

69233
69234
69235
69236
69237
69238
69239
.....
70789
70790
70791
70792
70793
70794
70795

70796
70797
70798
70799
70800
70801
70802
.....
71424
71425
71426
71427
71428
71429
71430

71431
71432
71433
71434
71435
71436
71437
.....
71903
71904
71905
71906
71907
71908
71909

71910
71911
71912
71913
71914
71915
71916
.....
71965
71966
71967
71968
71969
71970
71971

71972
71973
71974
71975
71976
71977
71978
.....
72808
72809
72810
72811
72812
72813
72814

72815
72816
72817
72818
72819
72820
72821
.....
73274
73275
73276
73277
73278
73279
73280

73281
73282
73283
73284
73285
73286
73287
.....
74501
74502
74503
74504
74505
74506
74507

74508
74509
74510
74511
74512
74513
74514
.....
74588
74589
74590
74591
74592
74593
74594

74595
74596
74597
74598
74599
74600
74601
.....
74623
74624
74625
74626
74627
74628
74629

74630
74631
74632
74633
74634
74635
74636
.....
74649
74650
74651
74652
74653
74654
74655

74656
74657
74658
74659
74660
74661
74662
.....
75665
75666
75667
75668
75669
75670
75671

75672
75673
75674
75675
75676
75677
75678
.....
76085
76086
76087
76088
76089
76090
76091

76092
76093
76094
76095
76096
76097
76098
.....
78749
78750
78751
78752
78753
78754
78755

78756
78757
78758
78759
78760
78761
78762
.....
79937
79938
79939
79940
79941
79942
79943

79944
79945
79946
79947
79948
79949
79950
.....
81081
81082
81083
81084
81085
81086
81087

81088
81089
81090
81091
81092
81093
81094
.....
81466
81467
81468
81469
81470
81471
81472

81473
81474
81475
81476
81477
81478
81479
.....
81673
81674
81675
81676
81677
81678
81679

81680
81681
81682
81683
81684
81685
81686
.....
81836
81837
81838
81839
81840
81841
81842

81843
81844
81845
81846
81847
81848
81849
.....
84620
84621
84622
84623
84624
84625
84626

84627
84628
84629
84630
84631
84632
84633
.....
85586
85587
85588
85589
85590
85591
85592

85593
85594
85595
85596
85597
85598
85599
.....
85820
85821
85822
85823
85824
85825
85826

85827
85828
85829
85830
85831
85832
85833
.....
85875
85876
85877
85878
85879
85880
85881

85882
85883
85884
85885
85886
85887
85888
.....
86201
86202
86203
86204
86205
86206
86207

86208
86209
86210
86211
86212
86213
86214
.....
86419
86420
86421
86422
86423
86424
86425

86426
86427
86428
86429
86430
86431
86432
.....
86620
86621
86622
86623
86624
86625
86626

86627
86628
86629
86630
86631
86632
86633
.....
87374
87375
87376
87377
87378
87379
87380

87381
87382
87383
87384
87385
87386
87387
.....
88538
88539
88540
88541
88542
88543
88544

88545
88546
88547
88548
88549
88550
88551
.....
89418
89419
89420
89421
89422
89423
89424

89425
89426
89427
89428
89429
89430
89431
.....
89542
89543
89544
89545
89546
89547
89548

89549
89550
89551
89552
89553
89554
89555
.....
89928
89929
89930
89931
89932
89933
89934

89935
89936
89937
89938
89939
89940
89941
.....
90416
90417
90418
90419
90420
90421
90422

90423
90424
90425
90426
90427
90428
90429
.....
90688
90689
90690
90691
90692
90693
90694

90695
90696
90697
90698
90699
90700
90701
.....
90720
90721
90722
90723
90724
90725
90726

90727
90728
90729
90730
90731
90732
90733
query II rowsort label-99
SELECT ALL - 38 col0, + MIN( ALL + + col1 ) * MAX( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

skipif mysql # not compatible

query II rowsort label-99
SELECT ALL - 38 col0, + MIN ( ALL + + col1 ) * MAX ( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
15
-47
87
-10
97
-99


query II rowsort
SELECT col1 col0, - 64 FROM tab0 AS cor0
----
1
-64
21
-64
................................................................................
54
85
54
85
54
85


query II rowsort
SELECT - + col0 col2, col0 * 68 FROM tab2 cor0
----
-46
3128
-64
4352
................................................................................
1632
94
2839
94
4117

skipif mysql # not compatible

query II rowsort label-252
SELECT DISTINCT 94 col1, col0 / - CAST ( + 42 AS INTEGER ) + - 72 * + - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
94
1632
94
2839
................................................................................
query II rowsort label-259
SELECT DISTINCT COUNT( * ) col0, CAST( + MAX( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible

query II rowsort label-259
SELECT DISTINCT COUNT ( * ) col0, CAST ( + MAX ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
................................................................................
----
185

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 = NULL
----


query II rowsort
SELECT - - col0 col0, col2 FROM tab0 AS cor0
----
15
47
87
10
................................................................................
-51
6410
-85
3871
-91
5245


query II rowsort
SELECT col0 col1, 29 + col0 AS col1 FROM tab2 AS cor0
----
46
75
64
93
................................................................................
query II rowsort label-301
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

skipif mysql # not compatible

query II rowsort label-301
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

onlyif mysql # aggregate syntax: 
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible

query II rowsort label-328
SELECT col0 col0, + col0 * CAST ( NULL AS REAL ) + - col1 FROM tab1
----
51
NULL
85
NULL
................................................................................
-96
47
-68
5
-59

skipif mysql # not compatible

query II rowsort label-359
SELECT + col1 col0, col0 / col0 * - col2 FROM tab1 AS cor0
----
14
-96
47
-68
................................................................................
query II rowsort label-395
SELECT COUNT( * ) col2, MIN( ALL + - col0 ) FROM tab0
----
3
-97

skipif mysql # not compatible

query II rowsort label-395
SELECT COUNT ( * ) col2, MIN ( ALL + - col0 ) FROM tab0
----
3
-97

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL MIN ( - col1 ) * + + 86 / + 65 FROM tab0 AS cor0 WHERE col1 < - + 36
----
NULL


query II rowsort
SELECT - col1 col0, col1 * + col2 FROM tab0 AS cor0
----
-1
99
-21
210
................................................................................
----

skipif mysql # not compatible
query III rowsort label-812
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = + + col0 - col0
----


query II rowsort
SELECT + col1 col2, 63 FROM tab1 AS cor0
----
14
63
47
63
................................................................................
query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT( * ) FROM tab1 AS cor0
----
-65
-48

skipif mysql # not compatible

query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT ( * ) FROM tab1 AS cor0
----
-65
-48

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CAST ( NULL AS INTEGER ) + - - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b


query II rowsort
SELECT DISTINCT col0 col1, - col1 AS col0 FROM tab0
----
15
-81
87
-21
................................................................................
query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

skipif mysql # not compatible

query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT + 43 * col2 AS col2 FROM tab2 AS cor0
----
1720
2494
989


query II rowsort
SELECT + + col2 col1, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
................................................................................
query II rowsort label-1577
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) col1, 49 FROM tab0
----
NULL
49

skipif mysql # not compatible

query II rowsort label-1577
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) col1, 49 FROM tab0
----
NULL
49

query I rowsort
................................................................................
3880
-87
283
-97
172

skipif mysql # not compatible

query II rowsort label-1596
SELECT - + col0 col1, + 73 - - col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
3880
-87
283
................................................................................
----

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) <= 70
----
-51


query II rowsort
SELECT ALL + col0 * - col2 * + + 0 col0, 26 * + col1 FROM tab2
----
0
1326
0
1742
................................................................................
29
46
29
46
29
46


query II rowsort
SELECT - col1 col0, col1 + + 35 AS col1 FROM tab1
----
-14
49
-47
82
................................................................................

skipif mysql # not compatible
query I rowsort label-1801
SELECT 80 + - COUNT ( * ) + 35 AS col0 FROM tab2
----
112


query II rowsort
SELECT ALL - col2 col2, 4 FROM tab0
----
-10
4
-47
4
................................................................................
-1
40
-1
58
-1

skipif mysql # not compatible

query II rowsort label-1902
SELECT DISTINCT col2 col0, + col2 / + - col2 AS col0 FROM tab2
----
23
-1
40
-1
................................................................................
-5385
0
-5385
0
-5385

skipif mysql # not compatible

query II rowsort label-2107
SELECT ALL - col0 / - 95 col2, + ( - 86 ) * 63 - 88 / - ( - col1 ) + - - 34 FROM tab2
----
0
-5385
0
-5385
................................................................................
query II rowsort label-2118
SELECT ALL CAST( NULL AS SIGNED ) + 28 col1, ( + SUM( DISTINCT col2 ) ) FROM tab1
----
NULL
223

skipif mysql # not compatible

query II rowsort label-2118
SELECT ALL CAST ( NULL AS INTEGER ) + 28 col1, ( + SUM ( DISTINCT col2 ) ) FROM tab1
----
NULL
223

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT + ( - - col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281


query II rowsort
SELECT ALL - col1 * 80 col1, - 28 AS col2 FROM tab1 cor0
----
-1120
-28
-3760
-28
................................................................................
query I rowsort
SELECT ALL ( - 83 ) * col0 + + col1 * col0 FROM tab2
----
-1200
-1472
-384


query II rowsort
SELECT DISTINCT 87 col1, - 10 + + col2 AS col1 FROM tab1 AS cor0
----
87
49
87
58
................................................................................
49
2479
49
2849
49

skipif mysql # not compatible

query II rowsort label-2397
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * + + 37 col0, 49 FROM tab2 AS cor0
----
1887
49
2479
49
................................................................................
-1
64
0
75
0

skipif mysql # not compatible

query II rowsort label-2486
SELECT ALL + + col0 col2, ( - 51 ) / col0 FROM tab2 AS cor0
----
46
-1
64
0
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible

query II rowsort label-2647
SELECT col2 col2, CAST ( NULL AS REAL ) AS col2 FROM tab2
----
23
NULL
40
NULL
................................................................................
SELECT + col1 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 76 FROM tab1 WHERE NOT ( NULL ) <> - ( + col0 ) * - col0 - col2
----


query II rowsort
SELECT ALL 35 col0, + 48 FROM tab1 cor0
----
35
48
35
48
................................................................................
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----


query II rowsort
SELECT col1 col0, + col2 * col1 * - - 8 FROM tab0
----
1
792
21
1680
................................................................................
97
59

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 2 ) IN ( col0 )
----


query II rowsort
SELECT ALL 48 col1, - 61 * + col1 + - col2 FROM tab0
----
48
-1291
48
-160
................................................................................
query II rowsort label-3066
SELECT - 45 col1, MAX( + 38 ) FROM tab1
----
-45
38

skipif mysql # not compatible

query II rowsort label-3066
SELECT - 45 col1, MAX ( + 38 ) FROM tab1
----
-45
38

query I rowsort
................................................................................
----

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + 97 FROM tab1 WHERE NOT + - 77 + - col2 >= - col0 * + - col2 * + - CAST ( NULL AS INTEGER ) + + col2 * + + 95 + col1
----


query II rowsort
SELECT col1 col0, 40 + - col1 FROM tab1 AS cor0
----
14
26
47
-7
................................................................................
query I rowsort label-3156
SELECT CAST ( col2 AS INTEGER ) / col0 + - 4 + + col2 + + col0 + - 69 FROM tab1 cor0
----
71
75
86


query II rowsort
SELECT DISTINCT col2 col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
................................................................................
query I rowsort
SELECT DISTINCT + 82 + + + col1 AS col0 FROM tab1
----
129
87
96


query II rowsort
SELECT + col1 col2, col1 FROM tab2
----
51
51
67
67
................................................................................
0
21
8
81
0

skipif mysql # not compatible

query II rowsort label-3259
SELECT DISTINCT col1 col1, + col0 / + + col2 AS col0 FROM tab0 AS cor0
----
1
0
21
8
................................................................................
query II rowsort label-3287
SELECT ALL COUNT( * ) * + 61 + + MAX( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

skipif mysql # not compatible

query II rowsort label-3287
SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT 38 + - col0 * - col2 FROM tab2 AS cor0
----
1096
2598
4388


query II rowsort
SELECT DISTINCT + - col2 col2, - ( - 92 ) FROM tab2 AS cor0
----
-23
92
-40
92
................................................................................
14

query I rowsort
SELECT DISTINCT ( 48 ) * 3 AS col1 FROM tab0
----
144


query II rowsort
SELECT DISTINCT + 56 * - col2 col1, - 2 AS col2 FROM tab0
----
-2632
-2
-5544
-2
................................................................................
query I rowsort
SELECT ALL col2 + - 43 AS col2 FROM tab0
----
-33
4
56


query II rowsort
SELECT - col0 col1, + col1 * col1 FROM tab1
----
-51
196
-85
25
-91
2209


query II rowsort
SELECT DISTINCT - col1 col0, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
................................................................................
skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT 75 AS col0, COUNT ( * ) AS col2 FROM tab0
----
75
3


query II rowsort
SELECT col2 col1, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
................................................................................
query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT( * ) col1, COUNT( * ) FROM tab1 AS cor0
----
-148
3

skipif mysql # not compatible

query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT ( * ) col1, COUNT ( * ) FROM tab1 AS cor0
----
-148
3

onlyif mysql # DIV for integer division: 
................................................................................
query I rowsort
SELECT - col1 - + + col1 FROM tab1 AS cor0
----
-10
-28
-94


query II rowsort
SELECT col1 - + col2 col0, + 4 AS col0 FROM tab1
----
-21
4
-54
4
................................................................................
query II rowsort label-3727
SELECT - CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

skipif mysql # not compatible

query II rowsort label-3727
SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

onlyif mysql # aggregate syntax: 
................................................................................
skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + col2 / 92 * - col1 + 14 FROM tab0
----
13
14


query II rowsort
SELECT + col0 * col0 col1, 46 AS col1 FROM tab2
----
2116
46
4096
46
................................................................................
92
870
92
870
92
870


query II rowsort
SELECT ALL - col2 col1, 18 FROM tab2 AS cor0
----
-23
18
-40
18
................................................................................
query I rowsort label-4084
SELECT DISTINCT col0 + + + 73 + + col2 * + ( + + col0 ) / col0 * + + col1 FROM tab0
----
269
370
3895


query II rowsort
SELECT - 36 col2, + col1 AS col0 FROM tab2
----
-36
51
-36
67
................................................................................
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 ) >= 80
----
51
14
96


query II rowsort
SELECT DISTINCT + col1 col0, 92 FROM tab0 AS cor0
----
1
92
21
92
................................................................................
18
10
18
47
18
99


query II rowsort
SELECT + col1 col1, + ( col1 ) FROM tab0 AS cor0
----
1
1
21
21
................................................................................

skipif mysql # not compatible
query I rowsort label-4191
SELECT - COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
3


query II rowsort
SELECT - col2 * col2 col0, - col2 FROM tab0 AS cor0
----
-100
-10
-2209
-47
................................................................................
query I rowsort
SELECT DISTINCT + col1 * - 37 + + + col0 FROM tab1 AS cor0
----
-100
-1648
-467


query II rowsort
SELECT + + 62 - + 16 * 49 col1, - 46 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-722
-46
-722
-46
................................................................................
query II rowsort label-4523
SELECT DISTINCT + CAST( + 48 AS SIGNED ) col0, 61 DIV 65 * + col1 AS col1 FROM tab0
----
48
0

skipif mysql # not compatible

query II rowsort label-4523
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) col0, 61 / 65 * + col1 AS col1 FROM tab0
----
48
0

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

skipif mysql # not compatible

query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
SELECT ALL col2 * + 7 * - + col0 FROM tab1 AS cor0 WHERE NULL > 35
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 + + 73 + + + col2 + - col0 * 20 / + col2 * - 57 + col1
----


query II rowsort
SELECT - + col0 col0, + col1 + - + 33 AS col0 FROM tab1 AS cor0
----
-51
-19
-85
-28
................................................................................
10
NULL
47
NULL
99

skipif mysql # not compatible

query II rowsort label-4797
SELECT + + 87 * - CAST ( NULL AS INTEGER ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
................................................................................
59
-64
68
-115
96
-110


query II rowsort
SELECT DISTINCT - col0 col1, 4 + - ( - - 58 ) + + - col2 AS col0 FROM tab1
----
-51
-150
-85
-113
................................................................................
SELECT * FROM tab1 WHERE NOT + ( - + col1 ) * - + col2 > 36 + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 - col0 NOT BETWEEN NULL AND col1
----


query II rowsort
SELECT 44 col2, col1 FROM tab2
----
44
51
44
67
................................................................................
-10
-1
-10
-441
-10
-6561


query II rowsort
SELECT ALL - col0 col0, - 83 * + col2 FROM tab1 AS cor0
----
-51
-7968
-85
-4897
................................................................................
-44
14
-44
47
-44
5


query II rowsort
SELECT col2 col0, + 5 FROM tab1 AS cor0
----
59
5
68
5
96
5


query II rowsort
SELECT ALL 53 col1, 96 FROM tab2
----
53
96
53
96
................................................................................
query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif mysql # not compatible

query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN ( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
15
-85
87
-85
97

skipif mysql # not compatible

query II rowsort label-5360
SELECT - CAST ( + 85 AS INTEGER ) col0, col0 FROM tab0 cor0
----
-85
15
-85
87
................................................................................

skipif mysql # not compatible
query I rowsort label-5388
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3


query II rowsort
SELECT + col2 col0, col1 + - 29 FROM tab1 cor0
----
59
-24
68
18
................................................................................

skipif mysql # not compatible
query I rowsort label-5409
SELECT 4 + - + COUNT ( * ) AS col2 FROM tab0
----
1


query II rowsort
SELECT col1 + - - 56 col2, col2 AS col0 FROM tab2
----
107
23
123
58
................................................................................

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( ALL - 43 ) * - 57 * + + 84 FROM tab2
----
617652


query II rowsort
SELECT ALL 43 col2, - col2 + - col1 FROM tab0
----
43
-100
43
-128
................................................................................
query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

skipif mysql # not compatible

query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
SELECT DISTINCT - - 54 col1 FROM tab0 WHERE NOT - ( - col2 ) + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 88 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----


query II rowsort
SELECT ALL + 85 col2, 44 * col0 + + col2 AS col0 FROM tab2
----
85
2047
85
2856
................................................................................
query II rowsort label-5530
SELECT ALL COUNT( * ) * COUNT( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST( NULL AS SIGNED )
----
14
25

skipif mysql # not compatible

query II rowsort label-5530
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST ( NULL AS INTEGER )
----
14
25

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 43 * SUM ( - col2 ) AS col0 FROM tab0
----
-6708


query II rowsort
SELECT + col2 col1, col2 + + col2 + ( + + col0 ) FROM tab2
----
23
92
40
144
................................................................................
query I rowsort
SELECT ALL + col0 + - - col1 + + - col0 * + - col1 col1 FROM tab1
----
4415
515
779


query II rowsort
SELECT ALL col2 col0, + 40 AS col2 FROM tab2
----
23
40
40
40
................................................................................
query II rowsort label-5850
SELECT DISTINCT + 23 + - CAST( NULL AS DECIMAL ) - + + 67 * + + col2 col1, + col1 * + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible

query II rowsort label-5850
SELECT DISTINCT + 23 + - CAST ( NULL AS REAL ) - + + 67 * + + col2 col1, + col1 * + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL

query III rowsort
................................................................................
73
-88
73
-88
73
-88


query II rowsort
SELECT - col1 col1, - col0 * + - col0 AS col1 FROM tab2
----
-51
2116
-67
5625
................................................................................
query II rowsort label-5971
SELECT + 79 * + COUNT( * ) + - 54 col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
183
NULL

skipif mysql # not compatible

query II rowsort label-5971
SELECT + 79 * + COUNT ( * ) + - 54 col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
183
NULL

onlyif mysql # DIV for integer division: 
................................................................................
query I rowsort label-5992
SELECT - + ( col2 ) / col0 AS col0 FROM tab1 AS cor0
----
-1
0
0


query II rowsort
SELECT - + col0 col0, + col0 * col0 AS col0 FROM tab0 AS cor0
----
-15
225
-87
7569
................................................................................

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL MIN ( - col2 ) AS col1 FROM tab2 WHERE + - col1 + col2 IS NULL
----
NULL


query II rowsort
SELECT 93 + - 88 col2, col1 AS col2 FROM tab2
----
5
51
5
67
................................................................................
query II rowsort label-6150
SELECT COUNT( * ) col2, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible

query II rowsort label-6150
SELECT COUNT ( * ) col2, + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6160
SELECT + 35 + - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab1 cor0 WHERE ( NOT NULL = - col0 )
----
55


query II rowsort
SELECT ALL + 31 * - 57 col1, ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-1767
59
-1767
68
................................................................................
query I rowsort
SELECT DISTINCT - col2 * + 10 FROM tab1
----
-590
-680
-960


query II rowsort
SELECT + col1 col1, + col2 FROM tab2
----
51
23
67
58
................................................................................
query I rowsort
SELECT DISTINCT 87 + + col0 AS col1 FROM tab2
----
133
151
162


query II rowsort
SELECT - 74 + - 28 col0, + col1 AS col2 FROM tab1
----
-102
14
-102
47
................................................................................

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab1 cor0
----
66


query II rowsort
SELECT ALL - - 16 col0, - col0 FROM tab1 AS cor0
----
16
-51
16
-85
................................................................................
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 27 * - col2 * - col2 IS NOT NULL
----


query II rowsort
SELECT col0 col1, + col2 AS col2 FROM tab2
----
46
23
64
40
................................................................................
query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

skipif mysql # not compatible

query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-6655
SELECT + COUNT( * ) col0, 2 AS col2 FROM tab2 AS cor0
----
3
2

skipif mysql # not compatible

query II rowsort label-6655
SELECT + COUNT ( * ) col0, 2 AS col2 FROM tab2 AS cor0
----
3
2

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6663
SELECT 33 * - COUNT ( * ) + - - 57 FROM tab0
----
-42


query III rowsort
SELECT - 61 + - + 74 AS col2, col1 col0, + + col1 AS col2 FROM tab1
----
9 values hashing to 6499cc82ab59d0e85b8829ee9435d2ef

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 85 IS NULL
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT + 80 col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

skipif mysql # not compatible

query II rowsort label-6760
SELECT + 80 col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
................................................................................
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 12 IS NULL
----
15
87
97


query II rowsort
SELECT - 23 col0, - col1 FROM tab1
----
-23
-14
-23
-47
................................................................................
-50
40
-77
58
-67

skipif mysql # not compatible

query II rowsort label-7099
SELECT ALL col2 col1, + 32 / + col2 - + col1 FROM tab2
----
23
-50
40
-77
................................................................................

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - SUM ( DISTINCT 3 ) AS col1 FROM tab2 AS cor0
----
-3


query II rowsort
SELECT DISTINCT col2 * - - col1 col0, 91 FROM tab2
----
1173
91
3080
91
................................................................................
query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT( * ) ) FROM tab0 AS cor0
----
81
-3

skipif mysql # not compatible

query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
81
-3

query I rowsort
................................................................................
query II rowsort label-7512
SELECT ALL 18 col2, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible

query II rowsort label-7512
SELECT ALL 18 col2, COUNT ( * ) AS col0 FROM tab1
----
18
3

onlyif mysql # aggregate syntax: 
................................................................................
-1
4486
-1
5926
-1

skipif mysql # not compatible

query II rowsort label-7584
SELECT ALL + col1 * + + col1 + - 55 + + 52 col2, - col1 / col1 AS col1 FROM tab2 AS cor0
----
2598
-1
4486
-1
................................................................................
query II rowsort label-7752
SELECT COUNT( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible

query II rowsort label-7752
SELECT COUNT ( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - - col2 IS NULL
----
0


query II rowsort
SELECT DISTINCT col0 col1, ( - + 83 ) * col1 + - + 1 FROM tab1
----
51
-1163
85
-416
................................................................................
query I rowsort
SELECT ALL + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74


query II rowsort
SELECT ALL - col2 col0, - ( - - 21 ) AS col0 FROM tab1
----
-59
-21
-68
-21
................................................................................
query II rowsort label-7887
SELECT - 74 col1, - COUNT( * ) AS col2 FROM tab2
----
-74
-3

skipif mysql # not compatible

query II rowsort label-7887
SELECT - 74 col1, - COUNT ( * ) AS col2 FROM tab2
----
-74
-3

query I rowsort
................................................................................
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col2 <= + - 6 / - ( - col1 )
----


query II rowsort
SELECT DISTINCT - col0 col1, col0 FROM tab2
----
-46
46
-64
64
................................................................................
query II rowsort label-8039
SELECT ALL - CAST( NULL AS SIGNED ) col1, - MIN( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

skipif mysql # not compatible

query II rowsort label-8039
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - MIN ( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

query II rowsort
................................................................................
query II rowsort label-8179
SELECT ALL - COUNT( - col0 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible

query II rowsort label-8179
SELECT ALL - COUNT ( - col0 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
................................................................................

query II rowsort
SELECT DISTINCT 37 AS col0, 42 FROM tab1
----
37
42


query II rowsort
SELECT + col1 col2, col2 FROM tab1
----
14
96
47
68
................................................................................
skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL - - COUNT ( * ) AS col2, COUNT ( col2 ) FROM tab0 AS cor0
----
3
3


query II rowsort
SELECT - 83 col2, + col0 * - + 72 + + + 90 AS col1 FROM tab1 AS cor0
----
-83
-3582
-83
-6030
................................................................................
query I rowsort label-8193
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96


query II rowsort
SELECT ALL - - col1 col2, col0 FROM tab1 AS cor0
----
14
51
47
91
................................................................................
query I rowsort
SELECT ALL col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929


query III rowsort
SELECT ( - col1 ), ( + - ( - col0 ) ) col0, + + col1 AS col2 FROM tab1
----
9 values hashing to fca5c454bef48c98a9adc51beffe0229

query II rowsort
SELECT DISTINCT + col0 * - - col0, + col2 FROM tab2
................................................................................

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + COUNT ( ALL 8 ) AS col0 FROM tab1
----
3


query III rowsort
SELECT + col0 col0, + 48 AS col2, - col1 FROM tab0
----
9 values hashing to abcfd563ed022a5d3549af0282f57442

query II rowsort
SELECT + col1, 12 FROM tab0
................................................................................
NULL

query I rowsort
SELECT DISTINCT - 47 * + 93 AS col0 FROM tab2
----
-4371


query II rowsort
SELECT + col1 col1, 51 FROM tab0
----
1
51
21
51
................................................................................
0
-85
-1
-91
-1

skipif mysql # not compatible

query II rowsort label-8767
SELECT DISTINCT - col0 col0, col0 / - + 56 FROM tab1 AS cor0
----
-51
0
-85
-1
................................................................................

skipif mysql # not compatible
query I rowsort label-8899
SELECT - COUNT ( * ) * + - 48 * MIN ( ALL + 55 ) FROM tab1
----
7920


query II rowsort
SELECT ALL + col2 * + col2 col1, col1 FROM tab2
----
1600
77
3364
67
................................................................................
7569
9409

query I rowsort
SELECT DISTINCT col2 + - ( 35 ) + - + col1 / + - col1 FROM tab2 WHERE NOT NULL = ( NULL )
----


query II rowsort
SELECT DISTINCT + col2 col1, - 70 FROM tab2 cor0
----
23
-70
40
-70
................................................................................
-49
-15
-98
-87
1
-97


query II rowsort
SELECT DISTINCT - col2 col2, + col1 * + + ( + - col2 ) FROM tab1 AS cor0
----
-59
-295
-68
-3196
................................................................................
query I rowsort
SELECT DISTINCT - ( + 75 ) * + ( ( + col2 ) ) AS col1 FROM tab1
----
-4425
-5100
-7200


query II rowsort
SELECT DISTINCT 77 col2, + ( col1 ) - + ( + - 10 ) - col2 + + col0 * col0 AS col1 FROM tab2
----
77
2154
77
4143
................................................................................

skipif mysql # not compatible
query I rowsort label-9271
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b


query II rowsort
SELECT 96 col2, - 65 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - MAX( DISTINCT - - col1 ) + - ( - 55 ) + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
................................................................................
SELECT - col1 AS col0, + col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 12 IS NULL )
----

query I rowsort
SELECT DISTINCT - 31 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----


query II rowsort
SELECT ALL + col1 col1, + ( - 83 ) FROM tab0
----
1
-83
21
-83
................................................................................
-639
-6718

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - - col2 NOT IN ( + col0 * col2 * - ( - - col0 ) * col1 * 17 )
----


query II rowsort
SELECT DISTINCT col1 col2, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
................................................................................
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 25 FROM tab0 AS cor0 WHERE NOT + 28 IS NOT NULL
----


query II rowsort
SELECT col1 col1, col2 FROM tab0 AS cor0
----
1
99
21
10
................................................................................
35
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----


query II rowsort
SELECT 15 col1, - col1 + + 28 AS col2 FROM tab0
----
15
-53
15
27
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= NULL
----


query II rowsort
SELECT DISTINCT + col1 col0, - 47 * - 43 FROM tab2
----
51
2021
67
2021
................................................................................
48
81147
65
81147
76

skipif mysql # not compatible

query II rowsort label-9494
SELECT - 78 + 95 * + 9 * 95 col2, col0 - - col0 / + col2 FROM tab2 cor0
----
81147
48
81147
65
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT - ( + + 71 ) * 86 + - + MAX ( - col0 ) col0 FROM tab0
----
-6091


query II rowsort
SELECT ALL + col0 col0, col0 AS col1 FROM tab0
----
15
15
87
87
................................................................................

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + col1 + ( - col2 ) + - col1 + - + col1 / + - col2 * - + ( - col0 ) - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL


query II rowsort
SELECT col1 * - - col1 col0, - 66 + 76 AS col2 FROM tab1
----
196
10
2209
10
................................................................................
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + col2 IS NOT NULL
----


query II rowsort
SELECT ALL 5 col2, - col2 * - col0 AS col0 FROM tab2
----
5
1058
5
2560
................................................................................
39
-14
39
-47
39
-5


query II rowsort
SELECT + 56 col1, 40 FROM tab2
----
56
40
56
40
................................................................................

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 36 + + - COUNT ( * ) AS col2 FROM tab2
----
33


query II rowsort
SELECT - col2 col0, + 21 FROM tab1
----
-59
21
-68
21
................................................................................
query II rowsort label-9915
SELECT + + COUNT( * ) + - - COUNT( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

skipif mysql # not compatible

query II rowsort label-9915
SELECT + + COUNT ( * ) + - - COUNT ( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible

query II rowsort label-9944
SELECT + col2 col2, - ( - + 7 ) * CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
10
NULL
47
NULL
................................................................................
84
NULL
84
NULL
84
NULL


query II rowsort
SELECT ALL col2 col0, + 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - COUNT( + - col1 ) FROM tab2 AS cor0







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
....
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
....
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
....
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
....
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
....
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
....
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
....
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
....
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
....
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
....
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
....
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
....
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
....
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
.....
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
.....
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
.....
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
.....
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
.....
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
.....
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
.....
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
.....
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
.....
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
.....
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
.....
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
.....
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
.....
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
.....
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
.....
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
.....
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
.....
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
.....
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
.....
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
.....
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
.....
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
.....
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
.....
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
.....
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
.....
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
.....
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
.....
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
.....
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
.....
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
.....
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
.....
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
.....
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
.....
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
.....
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
.....
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
.....
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
.....
38288
38289
38290
38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
.....
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
.....
38789
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
.....
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
.....
42004
42005
42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
.....
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
.....
43966
43967
43968
43969
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
.....
44353
44354
44355
44356
44357
44358
44359
44360
44361
44362
44363
44364
44365
44366
44367
.....
45016
45017
45018
45019
45020
45021
45022
45023
45024
45025
45026
45027
45028
45029
45030
.....
45054
45055
45056
45057
45058
45059
45060
45061
45062
45063
45064
45065
45066
45067
45068
.....
48139
48140
48141
48142
48143
48144
48145
48146
48147
48148
48149
48150
48151
48152
48153
48154
48155
48156
48157
48158
48159
48160
48161
48162
48163
48164
.....
49189
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
49202
49203
.....
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
.....
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
49509
49510
49511
49512
.....
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690
49691
49692
.....
49855
49856
49857
49858
49859
49860
49861
49862
49863
49864
49865
49866
49867
49868
49869
.....
50105
50106
50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
.....
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
.....
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
50792
50793
50794
.....
51229
51230
51231
51232
51233
51234
51235
51236
51237
51238
51239
51240
51241
51242
51243
.....
51363
51364
51365
51366
51367
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
.....
53605
53606
53607
53608
53609
53610
53611
53612
53613
53614
53615
53616
53617
53618
53619
.....
53858
53859
53860
53861
53862
53863
53864
53865
53866
53867
53868
53869
53870
53871
53872
.....
54669
54670
54671
54672
54673
54674
54675
54676
54677
54678
54679
54680
54681
54682
54683
.....
54877
54878
54879
54880
54881
54882
54883
54884
54885
54886
54887
54888
54889
54890
54891
.....
55207
55208
55209
55210
55211
55212
55213
55214
55215
55216
55217
55218
55219
55220
55221
.....
56214
56215
56216
56217
56218
56219
56220
56221
56222
56223
56224
56225
56226
56227
56228
.....
56297
56298
56299
56300
56301
56302
56303
56304
56305
56306
56307
56308
56309
56310
56311
.....
57067
57068
57069
57070
57071
57072
57073
57074
57075
57076
57077
57078
57079
57080
57081
.....
57632
57633
57634
57635
57636
57637
57638
57639
57640
57641
57642
57643
57644
57645
57646
.....
57796
57797
57798
57799
57800
57801
57802
57803
57804
57805
57806
57807
57808
57809
57810
.....
58287
58288
58289
58290
58291
58292
58293
58294
58295
58296
58297
58298
58299
58300
58301
.....
59098
59099
59100
59101
59102
59103
59104
59105
59106
59107
59108
59109
59110
59111
59112
.....
60859
60860
60861
60862
60863
60864
60865
60866
60867
60868
60869
60870
60871
60872
60873
.....
60935
60936
60937
60938
60939
60940
60941
60942
60943
60944
60945
60946
60947
60948
60949
.....
61800
61801
61802
61803
61804
61805
61806
61807
61808
61809
61810
61811
61812
61813
61814
.....
61975
61976
61977
61978
61979
61980
61981
61982
61983
61984
61985
61986
61987
61988
61989
.....
64830
64831
64832
64833
64834
64835
64836
64837
64838
64839
64840
64841
64842
64843
64844
.....
67086
67087
67088
67089
67090
67091
67092
67093
67094
67095
67096
67097
67098
67099
67100
.....
68455
68456
68457
68458
68459
68460
68461
68462
68463
68464
68465
68466
68467
68468
68469
.....
68601
68602
68603
68604
68605
68606
68607
68608
68609
68610
68611
68612
68613
68614
68615
.....
69319
69320
69321
69322
69323
69324
69325
69326
69327
69328
69329
69330
69331
69332
69333
.....
70883
70884
70885
70886
70887
70888
70889
70890
70891
70892
70893
70894
70895
70896
70897
.....
71519
71520
71521
71522
71523
71524
71525
71526
71527
71528
71529
71530
71531
71532
71533
.....
71999
72000
72001
72002
72003
72004
72005
72006
72007
72008
72009
72010
72011
72012
72013
.....
72062
72063
72064
72065
72066
72067
72068
72069
72070
72071
72072
72073
72074
72075
72076
.....
72906
72907
72908
72909
72910
72911
72912
72913
72914
72915
72916
72917
72918
72919
72920
.....
73373
73374
73375
73376
73377
73378
73379
73380
73381
73382
73383
73384
73385
73386
73387
.....
74601
74602
74603
74604
74605
74606
74607
74608
74609
74610
74611
74612
74613
74614
74615
.....
74689
74690
74691
74692
74693
74694
74695
74696
74697
74698
74699
74700
74701
74702
74703
.....
74725
74726
74727
74728
74729
74730
74731
74732
74733
74734
74735
74736
74737
74738
74739
.....
74752
74753
74754
74755
74756
74757
74758
74759
74760
74761
74762
74763
74764
74765
74766
.....
75769
75770
75771
75772
75773
75774
75775
75776
75777
75778
75779
75780
75781
75782
75783
.....
76190
76191
76192
76193
76194
76195
76196
76197
76198
76199
76200
76201
76202
76203
76204
.....
78855
78856
78857
78858
78859
78860
78861
78862
78863
78864
78865
78866
78867
78868
78869
.....
80044
80045
80046
80047
80048
80049
80050
80051
80052
80053
80054
80055
80056
80057
80058
.....
81189
81190
81191
81192
81193
81194
81195
81196
81197
81198
81199
81200
81201
81202
81203
.....
81575
81576
81577
81578
81579
81580
81581
81582
81583
81584
81585
81586
81587
81588
81589
.....
81783
81784
81785
81786
81787
81788
81789
81790
81791
81792
81793
81794
81795
81796
81797
.....
81947
81948
81949
81950
81951
81952
81953
81954
81955
81956
81957
81958
81959
81960
81961
.....
84732
84733
84734
84735
84736
84737
84738
84739
84740
84741
84742
84743
84744
84745
84746
.....
85699
85700
85701
85702
85703
85704
85705
85706
85707
85708
85709
85710
85711
85712
85713
.....
85934
85935
85936
85937
85938
85939
85940
85941
85942
85943
85944
85945
85946
85947
85948
.....
85990
85991
85992
85993
85994
85995
85996
85997
85998
85999
86000
86001
86002
86003
86004
.....
86317
86318
86319
86320
86321
86322
86323
86324
86325
86326
86327
86328
86329
86330
86331
.....
86536
86537
86538
86539
86540
86541
86542
86543
86544
86545
86546
86547
86548
86549
86550
.....
86738
86739
86740
86741
86742
86743
86744
86745
86746
86747
86748
86749
86750
86751
86752
.....
87493
87494
87495
87496
87497
87498
87499
87500
87501
87502
87503
87504
87505
87506
87507
.....
88658
88659
88660
88661
88662
88663
88664
88665
88666
88667
88668
88669
88670
88671
88672
.....
89539
89540
89541
89542
89543
89544
89545
89546
89547
89548
89549
89550
89551
89552
89553
.....
89664
89665
89666
89667
89668
89669
89670
89671
89672
89673
89674
89675
89676
89677
89678
.....
90051
90052
90053
90054
90055
90056
90057
90058
90059
90060
90061
90062
90063
90064
90065
.....
90540
90541
90542
90543
90544
90545
90546
90547
90548
90549
90550
90551
90552
90553
90554
.....
90813
90814
90815
90816
90817
90818
90819
90820
90821
90822
90823
90824
90825
90826
90827
.....
90846
90847
90848
90849
90850
90851
90852
90853
90854
90855
90856
90857
90858
90859
90860
query II rowsort label-99
SELECT ALL - 38 col0, + MIN( ALL + + col1 ) * MAX( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-99
SELECT ALL - 38 col0, + MIN ( ALL + + col1 ) * MAX ( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 64 FROM tab0 AS cor0
----
1
-64
21
-64
................................................................................
54
85
54
85
54
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, col0 * 68 FROM tab2 cor0
----
-46
3128
-64
4352
................................................................................
1632
94
2839
94
4117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-252
SELECT DISTINCT 94 col1, col0 / - CAST ( + 42 AS INTEGER ) + - 72 * + - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
94
1632
94
2839
................................................................................
query II rowsort label-259
SELECT DISTINCT COUNT( * ) col0, CAST( + MAX( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-259
SELECT DISTINCT COUNT ( * ) col0, CAST ( + MAX ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
................................................................................
----
185

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, col2 FROM tab0 AS cor0
----
15
47
87
10
................................................................................
-51
6410
-85
3871
-91
5245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 29 + col0 AS col1 FROM tab2 AS cor0
----
46
75
64
93
................................................................................
query II rowsort label-301
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-301
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

onlyif mysql # aggregate syntax: 
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-328
SELECT col0 col0, + col0 * CAST ( NULL AS REAL ) + - col1 FROM tab1
----
51
NULL
85
NULL
................................................................................
-96
47
-68
5
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-359
SELECT + col1 col0, col0 / col0 * - col2 FROM tab1 AS cor0
----
14
-96
47
-68
................................................................................
query II rowsort label-395
SELECT COUNT( * ) col2, MIN( ALL + - col0 ) FROM tab0
----
3
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-395
SELECT COUNT ( * ) col2, MIN ( ALL + - col0 ) FROM tab0
----
3
-97

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL MIN ( - col1 ) * + + 86 / + 65 FROM tab0 AS cor0 WHERE col1 < - + 36
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 * + col2 FROM tab0 AS cor0
----
-1
99
-21
210
................................................................................
----

skipif mysql # not compatible
query III rowsort label-812
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = + + col0 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 63 FROM tab1 AS cor0
----
14
63
47
63
................................................................................
query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT( * ) FROM tab1 AS cor0
----
-65
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT ( * ) FROM tab1 AS cor0
----
-65
-48

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CAST ( NULL AS INTEGER ) + - - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col1 AS col0 FROM tab0
----
15
-81
87
-21
................................................................................
query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT + 43 * col2 AS col2 FROM tab2 AS cor0
----
1720
2494
989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
................................................................................
query II rowsort label-1577
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) col1, 49 FROM tab0
----
NULL
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1577
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) col1, 49 FROM tab0
----
NULL
49

query I rowsort
................................................................................
3880
-87
283
-97
172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1596
SELECT - + col0 col1, + 73 - - col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
3880
-87
283
................................................................................
----

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) <= 70
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col2 * + + 0 col0, 26 * + col1 FROM tab2
----
0
1326
0
1742
................................................................................
29
46
29
46
29
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 + + 35 AS col1 FROM tab1
----
-14
49
-47
82
................................................................................

skipif mysql # not compatible
query I rowsort label-1801
SELECT 80 + - COUNT ( * ) + 35 AS col0 FROM tab2
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 4 FROM tab0
----
-10
4
-47
4
................................................................................
-1
40
-1
58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1902
SELECT DISTINCT col2 col0, + col2 / + - col2 AS col0 FROM tab2
----
23
-1
40
-1
................................................................................
-5385
0
-5385
0
-5385

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2107
SELECT ALL - col0 / - 95 col2, + ( - 86 ) * 63 - 88 / - ( - col1 ) + - - 34 FROM tab2
----
0
-5385
0
-5385
................................................................................
query II rowsort label-2118
SELECT ALL CAST( NULL AS SIGNED ) + 28 col1, ( + SUM( DISTINCT col2 ) ) FROM tab1
----
NULL
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2118
SELECT ALL CAST ( NULL AS INTEGER ) + 28 col1, ( + SUM ( DISTINCT col2 ) ) FROM tab1
----
NULL
223

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT + ( - - col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * 80 col1, - 28 AS col2 FROM tab1 cor0
----
-1120
-28
-3760
-28
................................................................................
query I rowsort
SELECT ALL ( - 83 ) * col0 + + col1 * col0 FROM tab2
----
-1200
-1472
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 col1, - 10 + + col2 AS col1 FROM tab1 AS cor0
----
87
49
87
58
................................................................................
49
2479
49
2849
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2397
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * + + 37 col0, 49 FROM tab2 AS cor0
----
1887
49
2479
49
................................................................................
-1
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2486
SELECT ALL + + col0 col2, ( - 51 ) / col0 FROM tab2 AS cor0
----
46
-1
64
0
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2647
SELECT col2 col2, CAST ( NULL AS REAL ) AS col2 FROM tab2
----
23
NULL
40
NULL
................................................................................
SELECT + col1 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 76 FROM tab1 WHERE NOT ( NULL ) <> - ( + col0 ) * - col0 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 35 col0, + 48 FROM tab1 cor0
----
35
48
35
48
................................................................................
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 * col1 * - - 8 FROM tab0
----
1
792
21
1680
................................................................................
97
59

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 2 ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col1, - 61 * + col1 + - col2 FROM tab0
----
48
-1291
48
-160
................................................................................
query II rowsort label-3066
SELECT - 45 col1, MAX( + 38 ) FROM tab1
----
-45
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT - 45 col1, MAX ( + 38 ) FROM tab1
----
-45
38

query I rowsort
................................................................................
----

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + 97 FROM tab1 WHERE NOT + - 77 + - col2 >= - col0 * + - col2 * + - CAST ( NULL AS INTEGER ) + + col2 * + + 95 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 40 + - col1 FROM tab1 AS cor0
----
14
26
47
-7
................................................................................
query I rowsort label-3156
SELECT CAST ( col2 AS INTEGER ) / col0 + - 4 + + col2 + + col0 + - 69 FROM tab1 cor0
----
71
75
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
................................................................................
query I rowsort
SELECT DISTINCT + 82 + + + col1 AS col0 FROM tab1
----
129
87
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col1 FROM tab2
----
51
51
67
67
................................................................................
0
21
8
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3259
SELECT DISTINCT col1 col1, + col0 / + + col2 AS col0 FROM tab0 AS cor0
----
1
0
21
8
................................................................................
query II rowsort label-3287
SELECT ALL COUNT( * ) * + 61 + + MAX( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3287
SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT 38 + - col0 * - col2 FROM tab2 AS cor0
----
1096
2598
4388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col2, - ( - 92 ) FROM tab2 AS cor0
----
-23
92
-40
92
................................................................................
14

query I rowsort
SELECT DISTINCT ( 48 ) * 3 AS col1 FROM tab0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 56 * - col2 col1, - 2 AS col2 FROM tab0
----
-2632
-2
-5544
-2
................................................................................
query I rowsort
SELECT ALL col2 + - 43 AS col2 FROM tab0
----
-33
4
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col1 * col1 FROM tab1
----
-51
196
-85
25
-91
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
................................................................................
skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT 75 AS col0, COUNT ( * ) AS col2 FROM tab0
----
75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
................................................................................
query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT( * ) col1, COUNT( * ) FROM tab1 AS cor0
----
-148
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT ( * ) col1, COUNT ( * ) FROM tab1 AS cor0
----
-148
3

onlyif mysql # DIV for integer division: 
................................................................................
query I rowsort
SELECT - col1 - + + col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + col2 col0, + 4 AS col0 FROM tab1
----
-21
4
-54
4
................................................................................
query II rowsort label-3727
SELECT - CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3727
SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

onlyif mysql # aggregate syntax: 
................................................................................
skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + col2 / 92 * - col1 + 14 FROM tab0
----
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col0 col1, 46 AS col1 FROM tab2
----
2116
46
4096
46
................................................................................
92
870
92
870
92
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, 18 FROM tab2 AS cor0
----
-23
18
-40
18
................................................................................
query I rowsort label-4084
SELECT DISTINCT col0 + + + 73 + + col2 * + ( + + col0 ) / col0 * + + col1 FROM tab0
----
269
370
3895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col2, + col1 AS col0 FROM tab2
----
-36
51
-36
67
................................................................................
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 ) >= 80
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 92 FROM tab0 AS cor0
----
1
92
21
92
................................................................................
18
10
18
47
18
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + ( col1 ) FROM tab0 AS cor0
----
1
1
21
21
................................................................................

skipif mysql # not compatible
query I rowsort label-4191
SELECT - COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col2 col0, - col2 FROM tab0 AS cor0
----
-100
-10
-2209
-47
................................................................................
query I rowsort
SELECT DISTINCT + col1 * - 37 + + + col0 FROM tab1 AS cor0
----
-100
-1648
-467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 62 - + 16 * 49 col1, - 46 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-722
-46
-722
-46
................................................................................
query II rowsort label-4523
SELECT DISTINCT + CAST( + 48 AS SIGNED ) col0, 61 DIV 65 * + col1 AS col1 FROM tab0
----
48
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4523
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) col0, 61 / 65 * + col1 AS col1 FROM tab0
----
48
0

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
SELECT ALL col2 * + 7 * - + col0 FROM tab1 AS cor0 WHERE NULL > 35
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 + + 73 + + + col2 + - col0 * 20 / + col2 * - 57 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, + col1 + - + 33 AS col0 FROM tab1 AS cor0
----
-51
-19
-85
-28
................................................................................
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4797
SELECT + + 87 * - CAST ( NULL AS INTEGER ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
................................................................................
59
-64
68
-115
96
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, 4 + - ( - - 58 ) + + - col2 AS col0 FROM tab1
----
-51
-150
-85
-113
................................................................................
SELECT * FROM tab1 WHERE NOT + ( - + col1 ) * - + col2 > 36 + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 - col0 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col2, col1 FROM tab2
----
44
51
44
67
................................................................................
-10
-1
-10
-441
-10
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 83 * + col2 FROM tab1 AS cor0
----
-51
-7968
-85
-4897
................................................................................
-44
14
-44
47
-44
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + 5 FROM tab1 AS cor0
----
59
5
68
5
96
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 53 col1, 96 FROM tab2
----
53
96
53
96
................................................................................
query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN ( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
15
-85
87
-85
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5360
SELECT - CAST ( + 85 AS INTEGER ) col0, col0 FROM tab0 cor0
----
-85
15
-85
87
................................................................................

skipif mysql # not compatible
query I rowsort label-5388
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col1 + - 29 FROM tab1 cor0
----
59
-24
68
18
................................................................................

skipif mysql # not compatible
query I rowsort label-5409
SELECT 4 + - + COUNT ( * ) AS col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - 56 col2, col2 AS col0 FROM tab2
----
107
23
123
58
................................................................................

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( ALL - 43 ) * - 57 * + + 84 FROM tab2
----
617652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 43 col2, - col2 + - col1 FROM tab0
----
43
-100
43
-128
................................................................................
query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
SELECT DISTINCT - - 54 col1 FROM tab0 WHERE NOT - ( - col2 ) + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 88 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 85 col2, 44 * col0 + + col2 AS col0 FROM tab2
----
85
2047
85
2856
................................................................................
query II rowsort label-5530
SELECT ALL COUNT( * ) * COUNT( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST( NULL AS SIGNED )
----
14
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5530
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST ( NULL AS INTEGER )
----
14
25

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 43 * SUM ( - col2 ) AS col0 FROM tab0
----
-6708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 + + col2 + ( + + col0 ) FROM tab2
----
23
92
40
144
................................................................................
query I rowsort
SELECT ALL + col0 + - - col1 + + - col0 * + - col1 col1 FROM tab1
----
4415
515
779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + 40 AS col2 FROM tab2
----
23
40
40
40
................................................................................
query II rowsort label-5850
SELECT DISTINCT + 23 + - CAST( NULL AS DECIMAL ) - + + 67 * + + col2 col1, + col1 * + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5850
SELECT DISTINCT + 23 + - CAST ( NULL AS REAL ) - + + 67 * + + col2 col1, + col1 * + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL

query III rowsort
................................................................................
73
-88
73
-88
73
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col0 * + - col0 AS col1 FROM tab2
----
-51
2116
-67
5625
................................................................................
query II rowsort label-5971
SELECT + 79 * + COUNT( * ) + - 54 col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
183
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5971
SELECT + 79 * + COUNT ( * ) + - 54 col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
183
NULL

onlyif mysql # DIV for integer division: 
................................................................................
query I rowsort label-5992
SELECT - + ( col2 ) / col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, + col0 * col0 AS col0 FROM tab0 AS cor0
----
-15
225
-87
7569
................................................................................

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL MIN ( - col2 ) AS col1 FROM tab2 WHERE + - col1 + col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 93 + - 88 col2, col1 AS col2 FROM tab2
----
5
51
5
67
................................................................................
query II rowsort label-6150
SELECT COUNT( * ) col2, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6150
SELECT COUNT ( * ) col2, + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6160
SELECT + 35 + - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab1 cor0 WHERE ( NOT NULL = - col0 )
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 31 * - 57 col1, ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-1767
59
-1767
68
................................................................................
query I rowsort
SELECT DISTINCT - col2 * + 10 FROM tab1
----
-590
-680
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col2 FROM tab2
----
51
23
67
58
................................................................................
query I rowsort
SELECT DISTINCT 87 + + col0 AS col1 FROM tab2
----
133
151
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 74 + - 28 col0, + col1 AS col2 FROM tab1
----
-102
14
-102
47
................................................................................

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 16 col0, - col0 FROM tab1 AS cor0
----
16
-51
16
-85
................................................................................
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 27 * - col2 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col2 AS col2 FROM tab2
----
46
23
64
40
................................................................................
query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-6655
SELECT + COUNT( * ) col0, 2 AS col2 FROM tab2 AS cor0
----
3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6655
SELECT + COUNT ( * ) col0, 2 AS col2 FROM tab2 AS cor0
----
3
2

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6663
SELECT 33 * - COUNT ( * ) + - - 57 FROM tab0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 61 + - + 74 AS col2, col1 col0, + + col1 AS col2 FROM tab1
----
9 values hashing to 6499cc82ab59d0e85b8829ee9435d2ef

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 85 IS NULL
................................................................................
onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT + 80 col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6760
SELECT + 80 col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
................................................................................
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 12 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 col0, - col1 FROM tab1
----
-23
-14
-23
-47
................................................................................
-50
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7099
SELECT ALL col2 col1, + 32 / + col2 - + col1 FROM tab2
----
23
-50
40
-77
................................................................................

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - SUM ( DISTINCT 3 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col1 col0, 91 FROM tab2
----
1173
91
3080
91
................................................................................
query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT( * ) ) FROM tab0 AS cor0
----
81
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
81
-3

query I rowsort
................................................................................
query II rowsort label-7512
SELECT ALL 18 col2, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7512
SELECT ALL 18 col2, COUNT ( * ) AS col0 FROM tab1
----
18
3

onlyif mysql # aggregate syntax: 
................................................................................
-1
4486
-1
5926
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7584
SELECT ALL + col1 * + + col1 + - 55 + + 52 col2, - col1 / col1 AS col1 FROM tab2 AS cor0
----
2598
-1
4486
-1
................................................................................
query II rowsort label-7752
SELECT COUNT( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7752
SELECT COUNT ( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - - col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, ( - + 83 ) * col1 + - + 1 FROM tab1
----
51
-1163
85
-416
................................................................................
query I rowsort
SELECT ALL + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - ( - - 21 ) AS col0 FROM tab1
----
-59
-21
-68
-21
................................................................................
query II rowsort label-7887
SELECT - 74 col1, - COUNT( * ) AS col2 FROM tab2
----
-74
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7887
SELECT - 74 col1, - COUNT ( * ) AS col2 FROM tab2
----
-74
-3

query I rowsort
................................................................................
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col2 <= + - 6 / - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col0 FROM tab2
----
-46
46
-64
64
................................................................................
query II rowsort label-8039
SELECT ALL - CAST( NULL AS SIGNED ) col1, - MIN( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8039
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - MIN ( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

query II rowsort
................................................................................
query II rowsort label-8179
SELECT ALL - COUNT( - col0 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8179
SELECT ALL - COUNT ( - col0 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
................................................................................

query II rowsort
SELECT DISTINCT 37 AS col0, 42 FROM tab1
----
37
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 FROM tab1
----
14
96
47
68
................................................................................
skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL - - COUNT ( * ) AS col2, COUNT ( col2 ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 col2, + col0 * - + 72 + + + 90 AS col1 FROM tab1 AS cor0
----
-83
-3582
-83
-6030
................................................................................
query I rowsort label-8193
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col2, col0 FROM tab1 AS cor0
----
14
51
47
91
................................................................................
query I rowsort
SELECT ALL col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( - col1 ), ( + - ( - col0 ) ) col0, + + col1 AS col2 FROM tab1
----
9 values hashing to fca5c454bef48c98a9adc51beffe0229

query II rowsort
SELECT DISTINCT + col0 * - - col0, + col2 FROM tab2
................................................................................

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + COUNT ( ALL 8 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 col0, + 48 AS col2, - col1 FROM tab0
----
9 values hashing to abcfd563ed022a5d3549af0282f57442

query II rowsort
SELECT + col1, 12 FROM tab0
................................................................................
NULL

query I rowsort
SELECT DISTINCT - 47 * + 93 AS col0 FROM tab2
----
-4371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 51 FROM tab0
----
1
51
21
51
................................................................................
0
-85
-1
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8767
SELECT DISTINCT - col0 col0, col0 / - + 56 FROM tab1 AS cor0
----
-51
0
-85
-1
................................................................................

skipif mysql # not compatible
query I rowsort label-8899
SELECT - COUNT ( * ) * + - 48 * MIN ( ALL + 55 ) FROM tab1
----
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col2 col1, col1 FROM tab2
----
1600
77
3364
67
................................................................................
7569
9409

query I rowsort
SELECT DISTINCT col2 + - ( 35 ) + - + col1 / + - col1 FROM tab2 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - 70 FROM tab2 cor0
----
23
-70
40
-70
................................................................................
-49
-15
-98
-87
1
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col1 * + + ( + - col2 ) FROM tab1 AS cor0
----
-59
-295
-68
-3196
................................................................................
query I rowsort
SELECT DISTINCT - ( + 75 ) * + ( ( + col2 ) ) AS col1 FROM tab1
----
-4425
-5100
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 col2, + ( col1 ) - + ( + - 10 ) - col2 + + col0 * col0 AS col1 FROM tab2
----
77
2154
77
4143
................................................................................

skipif mysql # not compatible
query I rowsort label-9271
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 col2, - 65 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - MAX( DISTINCT - - col1 ) + - ( - 55 ) + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
................................................................................
SELECT - col1 AS col0, + col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 12 IS NULL )
----

query I rowsort
SELECT DISTINCT - 31 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + ( - 83 ) FROM tab0
----
1
-83
21
-83
................................................................................
-639
-6718

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - - col2 NOT IN ( + col0 * col2 * - ( - - col0 ) * col1 * 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
................................................................................
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 25 FROM tab0 AS cor0 WHERE NOT + 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 FROM tab0 AS cor0
----
1
99
21
10
................................................................................
35
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 col1, - col1 + + 28 AS col2 FROM tab0
----
15
-53
15
27
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - 47 * - 43 FROM tab2
----
51
2021
67
2021
................................................................................
48
81147
65
81147
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9494
SELECT - 78 + 95 * + 9 * 95 col2, col0 - - col0 / + col2 FROM tab2 cor0
----
81147
48
81147
65
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT - ( + + 71 ) * 86 + - + MAX ( - col0 ) col0 FROM tab0
----
-6091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col0 AS col1 FROM tab0
----
15
15
87
87
................................................................................

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + col1 + ( - col2 ) + - col1 + - + col1 / + - col2 * - + ( - col0 ) - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - - col1 col0, - 66 + 76 AS col2 FROM tab1
----
196
10
2209
10
................................................................................
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 col2, - col2 * - col0 AS col0 FROM tab2
----
5
1058
5
2560
................................................................................
39
-14
39
-47
39
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 56 col1, 40 FROM tab2
----
56
40
56
40
................................................................................

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 36 + + - COUNT ( * ) AS col2 FROM tab2
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 21 FROM tab1
----
-59
21
-68
21
................................................................................
query II rowsort label-9915
SELECT + + COUNT( * ) + - - COUNT( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9915
SELECT + + COUNT ( * ) + - - COUNT ( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9944
SELECT + col2 col2, - ( - + 7 ) * CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
10
NULL
47
NULL
................................................................................
84
NULL
84
NULL
84
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - COUNT( + - col1 ) FROM tab2 AS cor0

Changes to test/random/aggregates/slt_good_101.test.

511
512
513
514
515
516
517

518
519
520
521
522
523
524
...
958
959
960
961
962
963
964

965
966
967
968
969
970
971
....
1409
1410
1411
1412
1413
1414
1415

1416
1417
1418
1419
1420
1421
1422
....
2625
2626
2627
2628
2629
2630
2631

2632
2633
2634
2635
2636
2637
2638
....
2692
2693
2694
2695
2696
2697
2698

2699
2700
2701
2702
2703
2704
2705
....
2738
2739
2740
2741
2742
2743
2744

2745
2746
2747
2748
2749
2750
2751
....
3467
3468
3469
3470
3471
3472
3473

3474
3475
3476
3477
3478
3479
3480
....
4369
4370
4371
4372
4373
4374
4375

4376
4377
4378
4379
4380
4381
4382
....
7832
7833
7834
7835
7836
7837
7838

7839
7840
7841
7842
7843
7844
7845
....
9058
9059
9060
9061
9062
9063
9064

9065
9066
9067
9068
9069
9070
9071
....
9759
9760
9761
9762
9763
9764
9765

9766
9767
9768
9769
9770
9771
9772
....
9919
9920
9921
9922
9923
9924
9925

9926
9927
9928
9929
9930
9931
9932
.....
10027
10028
10029
10030
10031
10032
10033

10034
10035
10036
10037
10038
10039
10040
.....
11607
11608
11609
11610
11611
11612
11613

11614
11615
11616
11617
11618
11619
11620
.....
11753
11754
11755
11756
11757
11758
11759

11760
11761
11762
11763
11764
11765
11766
.....
12211
12212
12213
12214
12215
12216
12217

12218
12219
12220
12221
12222
12223
12224
.....
12339
12340
12341
12342
12343
12344
12345

12346
12347
12348
12349
12350
12351
12352
.....
12372
12373
12374
12375
12376
12377
12378

12379
12380
12381
12382
12383
12384
12385
.....
12394
12395
12396
12397
12398
12399
12400

12401
12402
12403
12404
12405
12406
12407
.....
13438
13439
13440
13441
13442
13443
13444

13445
13446
13447
13448
13449
13450
13451
.....
13874
13875
13876
13877
13878
13879
13880

13881
13882
13883
13884
13885
13886
13887
.....
13961
13962
13963
13964
13965
13966
13967

13968
13969
13970
13971
13972
13973
13974
.....
15842
15843
15844
15845
15846
15847
15848

15849
15850
15851
15852
15853
15854
15855
.....
19028
19029
19030
19031
19032
19033
19034

19035
19036
19037
19038
19039
19040
19041
.....
20413
20414
20415
20416
20417
20418
20419

20420
20421
20422
20423
20424
20425
20426
.....
20894
20895
20896
20897
20898
20899
20900

20901
20902
20903
20904
20905
20906
20907
.....
21199
21200
21201
21202
21203
21204
21205

21206
21207
21208
21209
21210
21211
21212
.....
22139
22140
22141
22142
22143
22144
22145

22146
22147
22148
22149
22150
22151
22152
.....
22945
22946
22947
22948
22949
22950
22951

22952
22953
22954
22955
22956
22957
22958
.....
23366
23367
23368
23369
23370
23371
23372

23373
23374
23375
23376
23377
23378
23379
.....
23846
23847
23848
23849
23850
23851
23852

23853
23854
23855
23856
23857
23858
23859
.....
24422
24423
24424
24425
24426
24427
24428

24429
24430
24431
24432
24433
24434
24435
.....
25163
25164
25165
25166
25167
25168
25169

25170
25171
25172
25173
25174
25175
25176
.....
25355
25356
25357
25358
25359
25360
25361

25362
25363
25364
25365
25366
25367
25368
.....
25646
25647
25648
25649
25650
25651
25652

25653
25654
25655
25656
25657
25658
25659
.....
27744
27745
27746
27747
27748
27749
27750

27751
27752
27753
27754
27755
27756
27757
.....
28296
28297
28298
28299
28300
28301
28302

28303
28304
28305
28306
28307
28308
28309
.....
28936
28937
28938
28939
28940
28941
28942

28943
28944
28945
28946
28947
28948
28949
.....
28963
28964
28965
28966
28967
28968
28969

28970
28971
28972
28973
28974
28975
28976
.....
31860
31861
31862
31863
31864
31865
31866

31867
31868
31869
31870
31871
31872
31873
.....
32595
32596
32597
32598
32599
32600
32601

32602
32603
32604
32605
32606
32607
32608
.....
32768
32769
32770
32771
32772
32773
32774

32775
32776
32777
32778
32779
32780
32781
.....
33599
33600
33601
33602
33603
33604
33605

33606
33607
33608
33609
33610
33611
33612
.....
33745
33746
33747
33748
33749
33750
33751

33752
33753
33754
33755
33756
33757
33758
.....
36982
36983
36984
36985
36986
36987
36988

36989
36990
36991
36992
36993
36994
36995
.....
38124
38125
38126
38127
38128
38129
38130

38131
38132
38133
38134
38135
38136
38137
.....
38316
38317
38318
38319
38320
38321
38322

38323
38324
38325
38326
38327
38328
38329
.....
41549
41550
41551
41552
41553
41554
41555

41556
41557
41558
41559
41560
41561
41562
.....
41746
41747
41748
41749
41750
41751
41752

41753
41754
41755
41756
41757
41758
41759
.....
41879
41880
41881
41882
41883
41884
41885

41886
41887
41888
41889
41890
41891
41892
.....
42211
42212
42213
42214
42215
42216
42217

42218
42219
42220
42221
42222
42223
42224
.....
42758
42759
42760
42761
42762
42763
42764

42765
42766
42767
42768
42769
42770
42771
.....
43757
43758
43759
43760
43761
43762
43763

43764
43765
43766
43767
43768
43769
43770
.....
45548
45549
45550
45551
45552
45553
45554

45555
45556
45557
45558
45559
45560
45561
.....
45665
45666
45667
45668
45669
45670
45671

45672
45673
45674
45675
45676
45677
45678
.....
46305
46306
46307
46308
46309
46310
46311

46312
46313
46314
46315
46316
46317
46318
.....
46360
46361
46362
46363
46364
46365
46366

46367
46368
46369
46370
46371
46372
46373
.....
47793
47794
47795
47796
47797
47798
47799

47800
47801
47802
47803
47804
47805
47806
.....
48692
48693
48694
48695
48696
48697
48698

48699
48700
48701
48702
48703
48704
48705
.....
49048
49049
49050
49051
49052
49053
49054

49055
49056
49057
49058
49059
49060
49061
.....
49503
49504
49505
49506
49507
49508
49509

49510
49511
49512
49513
49514
49515
49516
.....
52741
52742
52743
52744
52745
52746
52747

52748
52749
52750
52751
52752
52753
52754
.....
53348
53349
53350
53351
53352
53353
53354

53355
53356
53357
53358
53359
53360
53361
.....
53939
53940
53941
53942
53943
53944
53945

53946
53947
53948
53949
53950
53951
53952
.....
54232
54233
54234
54235
54236
54237
54238

54239
54240
54241
54242
54243
54244
54245
.....
56263
56264
56265
56266
56267
56268
56269

56270
56271
56272
56273
56274
56275
56276
.....
56353
56354
56355
56356
56357
56358
56359

56360
56361
56362
56363
56364
56365
56366
.....
56435
56436
56437
56438
56439
56440
56441

56442
56443
56444
56445
56446
56447
56448
.....
56852
56853
56854
56855
56856
56857
56858

56859
56860
56861
56862
56863
56864
56865
.....
57505
57506
57507
57508
57509
57510
57511

57512
57513
57514
57515
57516
57517
57518
.....
57840
57841
57842
57843
57844
57845
57846

57847
57848
57849
57850
57851
57852
57853
.....
58530
58531
58532
58533
58534
58535
58536

58537
58538
58539
58540
58541
58542
58543
.....
58586
58587
58588
58589
58590
58591
58592

58593
58594
58595
58596
58597
58598
58599
.....
59322
59323
59324
59325
59326
59327
59328

59329
59330
59331
59332
59333
59334
59335
.....
61792
61793
61794
61795
61796
61797
61798

61799
61800
61801
61802
61803
61804
61805
.....
65405
65406
65407
65408
65409
65410
65411

65412
65413
65414
65415
65416
65417
65418
.....
67063
67064
67065
67066
67067
67068
67069

67070
67071
67072
67073
67074
67075
67076
.....
67525
67526
67527
67528
67529
67530
67531

67532
67533
67534
67535
67536
67537
67538
.....
67687
67688
67689
67690
67691
67692
67693

67694
67695
67696
67697
67698
67699
67700
.....
67861
67862
67863
67864
67865
67866
67867

67868
67869
67870
67871
67872
67873
67874
.....
68015
68016
68017
68018
68019
68020
68021

68022
68023
68024
68025
68026
68027
68028
.....
68222
68223
68224
68225
68226
68227
68228

68229
68230
68231
68232
68233
68234
68235
.....
69056
69057
69058
69059
69060
69061
69062

69063
69064
69065
69066
69067
69068
69069
.....
69242
69243
69244
69245
69246
69247
69248

69249
69250
69251
69252
69253
69254
69255
.....
69587
69588
69589
69590
69591
69592
69593

69594
69595
69596
69597
69598
69599
69600
.....
71089
71090
71091
71092
71093
71094
71095

71096
71097
71098
71099
71100
71101
71102
.....
71214
71215
71216
71217
71218
71219
71220

71221
71222
71223
71224
71225
71226
71227
.....
71308
71309
71310
71311
71312
71313
71314

71315
71316
71317
71318
71319
71320
71321
.....
71646
71647
71648
71649
71650
71651
71652

71653
71654
71655
71656
71657
71658
71659
.....
71686
71687
71688
71689
71690
71691
71692

71693
71694
71695
71696
71697
71698
71699
.....
71990
71991
71992
71993
71994
71995
71996

71997
71998
71999
72000
72001
72002
72003
.....
72392
72393
72394
72395
72396
72397
72398

72399
72400
72401
72402
72403
72404
72405
.....
73897
73898
73899
73900
73901
73902
73903

73904
73905
73906
73907
73908
73909
73910
.....
74869
74870
74871
74872
74873
74874
74875

74876
74877
74878
74879
74880
74881
74882
.....
74924
74925
74926
74927
74928
74929
74930

74931
74932
74933
74934
74935
74936
74937
.....
75056
75057
75058
75059
75060
75061
75062

75063
75064
75065
75066
75067
75068
75069
75070
75071
75072

75073
75074
75075
75076
75077
75078
75079
.....
75090
75091
75092
75093
75094
75095
75096

75097
75098
75099
75100
75101
75102
75103
.....
75937
75938
75939
75940
75941
75942
75943

75944
75945
75946
75947
75948
75949
75950
.....
76385
76386
76387
76388
76389
76390
76391

76392
76393
76394
76395
76396
76397
76398
.....
78262
78263
78264
78265
78266
78267
78268

78269
78270
78271
78272
78273
78274
78275
.....
79268
79269
79270
79271
79272
79273
79274

79275
79276
79277
79278
79279
79280
79281
.....
79327
79328
79329
79330
79331
79332
79333

79334
79335
79336
79337
79338
79339
79340
.....
79655
79656
79657
79658
79659
79660
79661

79662
79663
79664
79665
79666
79667
79668
.....
79965
79966
79967
79968
79969
79970
79971

79972
79973
79974
79975
79976
79977
79978
.....
80152
80153
80154
80155
80156
80157
80158

80159
80160
80161
80162
80163
80164
80165
.....
80279
80280
80281
80282
80283
80284
80285

80286
80287
80288
80289
80290
80291
80292
80293
80294
80295

80296
80297
80298
80299
80300
80301
80302
.....
80851
80852
80853
80854
80855
80856
80857

80858
80859
80860
80861
80862
80863
80864
.....
81467
81468
81469
81470
81471
81472
81473

81474
81475
81476
81477
81478
81479
81480
.....
82583
82584
82585
82586
82587
82588
82589

82590
82591
82592
82593
82594
82595
82596
.....
82711
82712
82713
82714
82715
82716
82717

82718
82719
82720
82721
82722
82723
82724
.....
83045
83046
83047
83048
83049
83050
83051

83052
83053
83054
83055
83056
83057
83058
.....
83815
83816
83817
83818
83819
83820
83821

83822
83823
83824
83825
83826
83827
83828
.....
83895
83896
83897
83898
83899
83900
83901

83902
83903
83904
83905
83906
83907
83908
.....
85280
85281
85282
85283
85284
85285
85286

85287
85288
85289
85290
85291
85292
85293
.....
85647
85648
85649
85650
85651
85652
85653

85654
85655
85656
85657
85658
85659
85660
.....
86700
86701
86702
86703
86704
86705
86706

86707
86708
86709
86710
86711
86712
86713
.....
87537
87538
87539
87540
87541
87542
87543

87544
87545
87546
87547
87548
87549
87550
.....
87952
87953
87954
87955
87956
87957
87958

87959
87960
87961
87962
87963
87964
87965
.....
88414
88415
88416
88417
88418
88419
88420

88421
88422
88423
88424
88425
88426
88427
.....
89858
89859
89860
89861
89862
89863
89864

89865
89866
89867
89868
89869
89870
89871
.....
91259
91260
91261
91262
91263
91264
91265

91266
91267
91268
91269
91270
91271
91272
.....
91442
91443
91444
91445
91446
91447
91448

91449
91450
91451
91452
91453
91454
91455
query II rowsort label-51
SELECT + COUNT( * ) col0, + ( + COUNT( * ) ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible

query II rowsort label-51
SELECT + COUNT ( * ) col0, + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-98
SELECT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-27


query II rowsort
SELECT DISTINCT 6 * + - 73 * 87 col1, + 90 AS col1 FROM tab0
----
-38106
90

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT 48 * - 68 AS col2 FROM tab2 AS cor0
----
-3264
-3264
-3264


query II rowsort
SELECT - + col1 col0, - col2 + - 25 AS col1 FROM tab1 AS cor0
----
-14
-121
-47
-93
................................................................................
NULL
15
NULL
15
NULL

skipif mysql # not compatible

query II rowsort label-276
SELECT 15 col2, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
15
NULL
................................................................................
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----


query II rowsort
SELECT + col1 col2, - col1 AS col2 FROM tab2 cor0
----
51
-51
67
-67
................................................................................
-225
9
-7569
9
-9409
9


query II rowsort
SELECT DISTINCT + col1 + col2 col2, + col2 + + col1 * - 89 AS col2 FROM tab2 AS cor0
----
117
-6813
125
-5905
................................................................................
query II rowsort label-369
SELECT ALL 64 col2, COUNT( * ) FROM tab1
----
64
3

skipif mysql # not compatible

query II rowsort label-369
SELECT ALL 64 col2, COUNT ( * ) FROM tab1
----
64
3

query I rowsort
................................................................................
5
47
1
5
15

skipif mysql # not compatible

query II rowsort label-466
SELECT ALL col1 col2, 78 / col1 FROM tab1 AS cor0
----
14
5
47
1
................................................................................
query II rowsort label-845
SELECT ALL + + 87 + - SUM( - col1 ) col1, CAST( ( + + COUNT( * ) ) AS SIGNED ) * MAX( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

skipif mysql # not compatible

query II rowsort label-845
SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-975
SELECT DISTINCT - COUNT( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

skipif mysql # not compatible

query II rowsort label-975
SELECT DISTINCT - COUNT ( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

query I rowsort
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST( ( + 67 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible

query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST ( ( + 67 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL - SUM( + ( - - 13 ) ) AS col2, - 40 AS col0 FROM tab2
................................................................................
SELECT ALL + - 83 AS col1, COUNT( * ) col0, + + COUNT( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

skipif mysql # not compatible

query III rowsort label-1068
SELECT ALL + - 83 AS col1, COUNT ( * ) col0, + + COUNT ( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

................................................................................
150232
18836

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL <> + col2 * - 77
----


query II rowsort
SELECT DISTINCT col1 col0, - 71 FROM tab1
----
14
-71
47
-71
................................................................................
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON ( - + 52 ) < NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6


query II rowsort
SELECT - col0 col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
................................................................................
query I rowsort
SELECT - 91 + 67 FROM tab0
----
-24
-24
-24


query II rowsort
SELECT DISTINCT + 83 col2, col2 * + col0 AS col1 FROM tab1
----
83
4896
83
5015
................................................................................
skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-3
3


query II rowsort
SELECT - + col1 col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
................................................................................
query I rowsort label-1338
SELECT ALL - + col1 / col0 + + 14 AS col2 FROM tab2 AS cor0
----
13
13
14


query II rowsort
SELECT + 15 col0, + col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
15
198
15
220
................................................................................
-1
-47
-1
-5
-1

skipif mysql # not compatible

query II rowsort label-1342
SELECT - col1 col2, - col0 / col0 AS col2 FROM tab1 AS cor0
----
-14
-1
-47
-1
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible

query II rowsort label-1343
SELECT DISTINCT col0 col2, + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
................................................................................
-1
4096
-2
5625
-2

skipif mysql # not compatible

query II rowsort label-1464
SELECT - + col0 * - col0 col0, col0 / - + ( + + 30 ) FROM tab2 AS cor0
----
2116
-1
4096
-2
................................................................................

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 26 + 0 * - - COUNT ( + + col1 ) FROM tab0 AS cor0
----
26


query II rowsort
SELECT ALL col0 col2, col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL 50 ) FROM tab0
----
150


query II rowsort
SELECT ALL - col1 col2, 38 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT COUNT( ALL + col1 ) * - 73 col0 FROM tab1 AS cor0
................................................................................
query I rowsort
SELECT ( + + ( - col2 ) ) + + col0 FROM tab1
----
-45
23
26


query II rowsort
SELECT ALL - col2 col2, + ( col0 ) FROM tab1
----
-59
85
-68
91
................................................................................
query II rowsort label-2092
SELECT DISTINCT COUNT( * ) col1, - 32 FROM tab0
----
3
-32

skipif mysql # not compatible

query II rowsort label-2092
SELECT DISTINCT COUNT ( * ) col1, - 32 FROM tab0
----
3
-32

query II rowsort
................................................................................
34
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 89 + + col1, - 78 * - + col2, - col2 / - col1 * col2 )
----


query II rowsort
SELECT DISTINCT - col0 col2, col2 + + 4 FROM tab0 AS cor0
----
-15
51
-87
14
................................................................................
0
-85
0
-91
0

skipif mysql # not compatible

query II rowsort label-2296
SELECT - ( col0 ) col2, - 38 / + col0 AS col1 FROM tab1
----
-51
0
-85
0
................................................................................
query II rowsort label-2323
SELECT + COUNT( * ) * MIN( + col2 ) col2, + COUNT( * ) AS col1 FROM tab1
----
177
3

skipif mysql # not compatible

query II rowsort label-2323
SELECT + COUNT ( * ) * MIN ( + col2 ) col2, + COUNT ( * ) AS col1 FROM tab1
----
177
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-2427
SELECT SUM( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

skipif mysql # not compatible

query II rowsort label-2427
SELECT SUM ( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

query I rowsort
................................................................................
query II rowsort label-2519
SELECT DISTINCT COUNT( * ) col0, - SUM( - + 97 ) AS col2 FROM tab2
----
3
291

skipif mysql # not compatible

query II rowsort label-2519
SELECT DISTINCT COUNT ( * ) col0, - SUM ( - + 97 ) AS col2 FROM tab2
----
3
291

query I rowsort
................................................................................
----
24

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----


query II rowsort
SELECT - 71 - + col2 col0, col0 + + col0 AS col2 FROM tab2 WHERE + 25 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 90
----
................................................................................
query II rowsort label-2611
SELECT ALL - + MAX( DISTINCT - + CAST( - + 47 AS SIGNED ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

skipif mysql # not compatible

query II rowsort label-2611
SELECT ALL - + MAX ( DISTINCT - + CAST ( - + 47 AS INTEGER ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

query II rowsort
................................................................................
----

query I rowsort
SELECT DISTINCT - 20 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-20


query II rowsort
SELECT - col0 col0, col0 + + col1 FROM tab1 AS cor0
----
-51
65
-85
90
................................................................................

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + MAX ( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91


query II rowsort
SELECT - col1 * - col1 + 37 + col1 col1, 96 * + col0 * 67 FROM tab2 AS cor0
----
2689
295872
4593
482400
................................................................................

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CAST ( MIN ( + 94 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-94


query II rowsort
SELECT ALL 37 col1, 69 FROM tab2
----
37
69
37
69
................................................................................
-37
-37

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL < - + col1
----


query II rowsort
SELECT ALL 85 col1, + 74 AS col0 FROM tab2
----
85
74
85
74
................................................................................
query II rowsort label-3035
SELECT + + COUNT( * ) col0, + MIN( + col0 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

skipif mysql # not compatible

query II rowsort label-3035
SELECT + + COUNT ( * ) col0, + MIN ( + col0 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
................................................................................
-46
93
-8
93
-99
93


query II rowsort
SELECT DISTINCT - 10 col1, - col1 + + + 22 AS col1 FROM tab2 cor0
----
-10
-29
-10
-45
................................................................................
query I rowsort
SELECT + ( - 81 ) AS col1 FROM tab2
----
-81
-81
-81


query II rowsort
SELECT DISTINCT col2 col2, col1 AS col0 FROM tab1
----
59
5
68
47
................................................................................
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 <= + 98
----


query II rowsort
SELECT + 30 col0, col1 FROM tab2 AS cor0
----
30
51
30
67
................................................................................
query II rowsort label-3486
SELECT 3 - COUNT( * ) col2, - MAX( - col2 ) AS col0 FROM tab1
----
0
59

skipif mysql # not compatible

query II rowsort label-3486
SELECT 3 - COUNT ( * ) col2, - MAX ( - col2 ) AS col0 FROM tab1
----
0
59

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
8

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809


query II rowsort
SELECT ALL + col2 col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST( col2 AS SIGNED ) + col1 + col2 * - + col1 / + col1 IS NULL
----

skipif mysql # not compatible

query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST ( col2 AS INTEGER ) + col1 + col2 * - + col1 / + col1 IS NULL
----

query III rowsort
SELECT ALL - 48 AS col1, col0 * + col1 * - - col0, col0 AS col0 FROM tab1
----
................................................................................
NULL
51
NULL
85
NULL
91


query II rowsort
SELECT DISTINCT col0 col1, col0 FROM tab0
----
15
15
87
87
................................................................................
-59
77
-59
77
-59
77


query II rowsort
SELECT - + col2 * + + 74 - + + col2 * 26 col2, 38 AS col0 FROM tab2 AS cor0
----
-2300
38
-4000
38
................................................................................

skipif mysql # not compatible
query I rowsort label-4038
SELECT - ( - 20 ) * + + ( - MIN ( - + col1 ) ) FROM tab2 AS cor0
----
1540


query II rowsort
SELECT - col1 col2, 68 AS col2 FROM tab0 AS cor0
----
-1
68
-21
68
................................................................................
query II rowsort label-4164
SELECT COUNT( * ) + - - COUNT( * ) * COUNT( * ) col2, + MAX( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

skipif mysql # not compatible

query II rowsort label-4164
SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) col2, + MAX ( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

query III rowsort
................................................................................
-46
NULL
-64
NULL
-75

skipif mysql # not compatible

query II rowsort label-4179
SELECT + CAST ( NULL AS REAL ) * - - col1 col0, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
................................................................................
61
57
109
85
36

skipif mysql # not compatible

query II rowsort label-4539
SELECT - - col2 + - 11 col0, 48 + - 77 + - - CAST ( col0 AS INTEGER ) + - - col1 AS col2 FROM tab1 AS cor0
----
48
61
57
109
................................................................................
query I rowsort
SELECT + + 76 + - 22 FROM tab0 AS cor0
----
54
54
54


query II rowsort
SELECT + + 41 * - col1 + col1 * 52 + + col2 col1, + 97 AS col1 FROM tab2 cor0
----
584
97
795
97
................................................................................
query I rowsort
SELECT ALL - + 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59


query II rowsort
SELECT DISTINCT - - col1 col1, + 98 * - ( - col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col1 <= 34
----
81
69090

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1, tab1 AS cor0
----
81


query II rowsort
SELECT - col2 col2, col2 * - 62 AS col1 FROM tab0
----
-10
-620
-47
-2914
................................................................................
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 3 * + col0 NOT IN ( + 17 * - + col2, + col2 / + ( + - 77 ) - CAST ( NULL AS REAL ), + col1, + 28 )
----


query II rowsort
SELECT + col2 col1, 39 FROM tab0 AS cor0
----
10
39
47
39
................................................................................
query I rowsort label-4779
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 84 AS col1 FROM tab0
----
NULL
NULL
NULL


query II rowsort
SELECT - 39 * 99 col0, + col2 AS col1 FROM tab2
----
-3861
23
-3861
40
................................................................................
query I rowsort
SELECT col1 * - - 32 FROM tab0
----
2592
32
672


query II rowsort
SELECT + col0 col1, - 99 * + col0 FROM tab0
----
15
-1485
87
-8613
................................................................................

skipif mysql # not compatible
query I rowsort label-4989
SELECT MIN ( - - col0 ) * 6 FROM tab1
----
306


query II rowsort
SELECT ALL col0 col0, + 60 FROM tab2
----
46
60
64
60
................................................................................
1
45
21
45
81
45


query II rowsort
SELECT 4 col0, - 94 + - col0 AS col2 FROM tab1 AS cor0
----
4
-145
4
-179
................................................................................
query I rowsort
SELECT ALL - col1 + col2 + col0 + 63 FROM tab2 AS cor0
----
129
81
90


query II rowsort
SELECT ALL - col1 col0, - col1 + - 11 AS col2 FROM tab0
----
-1
-12
-21
-32
................................................................................
-2

query III rowsort
SELECT * FROM tab2 WHERE - 7 + + col1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT DISTINCT + ( - col2 ) col1, - col1 AS col1 FROM tab1
----
-59
-5
-68
-47
................................................................................
query I rowsort label-5325
SELECT + col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL


query II rowsort
SELECT - 85 col2, col1 AS col0 FROM tab2
----
-85
51
-85
67
................................................................................
query II rowsort label-5361
SELECT ALL - MIN( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

skipif mysql # not compatible

query II rowsort label-5361
SELECT ALL - MIN ( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

query III rowsort
................................................................................
query II rowsort label-5405
SELECT ALL COUNT( * ) + - COUNT( * ) col2, 50 + + - COUNT( * ) FROM tab2 AS cor0
----
0
47

skipif mysql # not compatible

query II rowsort label-5405
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2, 50 + + - COUNT ( * ) FROM tab2 AS cor0
----
0
47

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT DISTINCT col0 + + col0 - + col0 AS col2 FROM tab1 AS cor0
----
51
85
91


query II rowsort
SELECT DISTINCT col2 col2, - 55 AS col2 FROM tab2 AS cor0
----
23
-55
40
-55
................................................................................
query I rowsort
SELECT DISTINCT col2 - + - 63 AS col1 FROM tab1
----
122
131
159


query II rowsort
SELECT ALL - ( - + col2 ) col1, - 60 AS col1 FROM tab0
----
10
-60
47
-60
................................................................................
47
0
99
2
10

skipif mysql # not compatible

query II rowsort label-5889
SELECT ALL + 23 / + col2 col2, + col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
................................................................................
----
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL IS NOT NULL
----


query II rowsort
SELECT DISTINCT col0 col0, - 73 * + col1 * - col0 * - col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5925
SELECT - col2 - + col0 DIV - col2, - col2 * col2 - ( col0 ) AS col1 FROM tab0
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6148
SELECT - 0 AS col1, 96 / - MIN ( - col1 ) col0 FROM tab0
----
0
1


query II rowsort
SELECT 43 col2, - 80 FROM tab1
----
43
-80
43
-80
................................................................................
query II rowsort label-6158
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible

query II rowsort label-6158
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
................................................................................
query I rowsort
SELECT 52 * - col0 - 8 FROM tab1 WHERE NULL IS NULL
----
-2660
-4428
-4740


query II rowsort
SELECT DISTINCT 31 col1, + 86 * - 92 AS col2 FROM tab1
----
31
-7912

query I rowsort
................................................................................
query II rowsort label-6212
SELECT - 82 - - - COUNT( * ) col0, ( - MIN( ALL - + CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-85
77

skipif mysql # not compatible

query II rowsort label-6212
SELECT - 82 - - - COUNT ( * ) col0, ( - MIN ( ALL - + CAST ( col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-85
77

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6282
SELECT 16 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5


query II rowsort
SELECT ALL - 52 col1, + col0 FROM tab0 AS cor0
----
-52
15
-52
87
................................................................................
-3807
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----


query II rowsort
SELECT DISTINCT 13 col2, - col1 AS col2 FROM tab1
----
13
-14
13
-47
................................................................................
query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) FROM tab0
----
225
7569
9409


query II rowsort
SELECT ALL + col0 * + col2 col1, + col1 AS col0 FROM tab2
----
1058
51
2560
77
................................................................................
query I rowsort
SELECT ( col2 ) * - - col0 * + col2 AS col0 FROM tab1 cor0
----
295885
420784
470016


query II rowsort
SELECT col2 col0, ( + col1 ) FROM tab0
----
10
21
47
81
................................................................................

skipif mysql # not compatible
query I rowsort label-6479
SELECT - MAX ( ALL - 48 ) FROM tab2
----
48


query II rowsort
SELECT DISTINCT - ( col1 ) col0, 56 AS col0 FROM tab0
----
-1
56
-21
56
................................................................................
query I rowsort
SELECT + col0 * col0 + - 42 FROM tab0
----
183
7527
9367


query III rowsort
SELECT ALL - - col2 AS col1, col2 col1, - - col0 FROM tab2 AS cor0
----
9 values hashing to cab274f6910f0989b8e21ed8f2765415

query I rowsort
SELECT col2 * - - col0 * + col2 + + col2 AS col0 FROM tab2 cor0
................................................................................
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT - col2 col1, col1 + - + col2 FROM tab2 AS cor0
----
-23
28
-40
37
................................................................................
query II rowsort label-7331
SELECT - COUNT( * ) col2, 16 DIV + 36 FROM tab0
----
-3
0

skipif mysql # not compatible

query II rowsort label-7331
SELECT - COUNT ( * ) col2, 16 / + 36 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
................................................................................
NULL
68
NULL
96
NULL

skipif mysql # not compatible

query II rowsort label-7380
SELECT + + col2 col1, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab2 cor0
----
-23


query II rowsort
SELECT ALL + 52 col2, 94 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT DISTINCT 73 DIV - - ( - col0 ) AS col1 FROM tab1 AS cor0
................................................................................
NULL
95
NULL
95
NULL

skipif mysql # not compatible

query II rowsort label-7416
SELECT + 95 col2, col1 * - + col2 * CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
95
NULL
95
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-7433
SELECT - COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
-3


query II rowsort
SELECT col1 col0, 48 FROM tab2 AS cor0
----
51
48
67
48
................................................................................
query I rowsort
SELECT 64 * 95 AS col1 FROM tab0
----
6080
6080
6080


query II rowsort
SELECT DISTINCT col2 col0, col1 AS col0 FROM tab0
----
10
21
47
81
................................................................................
query I rowsort label-7549
SELECT + - CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL


query II rowsort
SELECT + + 73 col2, col0 * - ( - 34 ) FROM tab0 AS cor0
----
73
2958
73
3298
................................................................................
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT ALL + col1 col0, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
................................................................................
query I rowsort
SELECT ALL 23 * + col1 FROM tab0
----
1863
23
483


query II rowsort
SELECT ALL col2 col2, col1 FROM tab2
----
23
51
40
77
................................................................................
NULL
0
NULL
0
NULL

skipif mysql # not compatible

query II rowsort label-7772
SELECT - - 48 / + 57 * col2 col2, + col0 + ( - ( col0 ) ) - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
0
NULL
0
NULL
................................................................................
97
47
157
99
77

skipif mysql # not compatible

query II rowsort label-7785
SELECT ALL + + col2 col2, + col1 + - - 83 / 42 + - - 75 AS col0 FROM tab0 AS cor0
----
10
97
47
157
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7795
SELECT col2 + - col0 col1, CAST( - 96 AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

skipif mysql # not compatible

query II rowsort label-7795
SELECT col2 + - col0 col1, CAST ( - 96 AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 78 ) - - 60 AS col2 FROM tab2 AS cor0
----
................................................................................
95
NULL
95
NULL
95

skipif mysql # not compatible

query II rowsort label-7828
SELECT ALL CAST ( NULL AS REAL ) col2, + 95 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL
95
NULL
95
................................................................................
query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96


query II rowsort
SELECT + col1 * + col0 col1, + 69 * - - col0 + + col1 + + + 92 + col0 * 29 * + col2 * + col1 + col0 FROM tab2
----
2346
1568145
4928
5721129
................................................................................
query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST( + - 42 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

skipif mysql # not compatible

query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

query I rowsort
................................................................................
query I rowsort
SELECT + 98 col0 FROM tab1
----
98
98
98


query II rowsort
SELECT DISTINCT - 92 * + 20 col1, col2 + - col2 FROM tab0
----
-1840
0

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 DIV - col1 FROM tab2
----
98
0

skipif mysql # not compatible

query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 / - col1 FROM tab2
----
98
0

query II rowsort
................................................................................
-394914
85
-394914
91
-394914

skipif mysql # not compatible

query II rowsort label-8181
SELECT col0 col2, 61 * CAST ( + - 83 AS INTEGER ) * 78 FROM tab1
----
51
-394914
85
-394914
................................................................................
102
8
170
8
182

skipif mysql # not compatible

query II rowsort label-8186
SELECT col0 / 47 - - 7 col1, col0 + + col0 FROM tab1
----
8
102
8
170
................................................................................
query I rowsort label-8198
SELECT - 38 / + - col1 - - 85 AS col2 FROM tab1 AS cor0
----
85
87
92


query II rowsort
SELECT 85 * col1 col2, - col2 FROM tab0 AS cor0
----
1785
-10
6885
-47
85
-99


query II rowsort
SELECT DISTINCT col1 * col2 col0, col1 AS col0 FROM tab0
----
210
21
3807
81
................................................................................
skipif mysql # not compatible
query II rowsort label-8201
SELECT MIN ( + col2 ) AS col0, - COUNT ( * ) FROM tab2
----
23
-3


query II rowsort
SELECT ALL - col1 col1, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 91 + + col1 + col0 * - 36 * col1 FROM tab2 AS cor0
----
................................................................................
NULL
64
NULL
75
NULL

skipif mysql # not compatible

query II rowsort label-8288
SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8340
SELECT + + CAST( + 5 AS SIGNED ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

skipif mysql # not compatible

query II rowsort label-8340
SELECT + + CAST ( + 5 AS INTEGER ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - 19 + + + col0 NOT IN ( - 97, - col0 * + col2 + 42, 68 * col2 )
----
................................................................................
SELECT * FROM tab2 WHERE NULL IN ( - col2, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col0 AND NULL )
----


query II rowsort
SELECT col2 * - col0 * + - col2 * - col1 col1, ( - - col2 ) AS col1 FROM tab0
----
-182700
10
-2683935
47
................................................................................
36
NULL
36
NULL
36

skipif mysql # not compatible

query II rowsort label-8655
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) / + + col1 col2, + 36 FROM tab0
----
NULL
36
NULL
36
................................................................................
query I rowsort
SELECT ALL - 48 - - + 62 FROM tab2 AS cor0
----
14
14
14


query II rowsort
SELECT - col2 col0, - col0 * col0 * - col2 * + 0 FROM tab2 AS cor0
----
-23
0
-40
0
................................................................................
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 * + 83 <> 50 + - - ( + col0 )
----
23
40
58


query II rowsort
SELECT + col0 col1, 55 AS col2 FROM tab1
----
51
55
85
55
................................................................................
query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible

query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT ( * ) AS col1 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-8752
SELECT COUNT( * ) col0, + 47 FROM tab2
----
3
47

skipif mysql # not compatible

query II rowsort label-8752
SELECT COUNT ( * ) col0, + 47 FROM tab2
----
3
47

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-8767
SELECT MIN ( - 28 ) FROM tab1
----
-28


query II rowsort
SELECT ALL col0 col1, - 54 FROM tab2
----
46
-54
64
-54
75
-54


query III rowsort
SELECT col1 col1, ( + ( + col1 ) ) AS col0, - 27 FROM tab2 AS cor0
----
9 values hashing to 624809d65edc7e8d5f51920ecd5615c8

query II rowsort
SELECT DISTINCT - 92, + col0 FROM tab0 cor0
................................................................................
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT DISTINCT + col1 * - 45 * - col1 col1, col2 + + 66 AS col2 FROM tab0
----
19845
76
295245
113
................................................................................
NULL
870
NULL
9603
NULL

skipif mysql # not compatible

query II rowsort label-8884
SELECT DISTINCT + + col0 * + + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
705
NULL
870
NULL
................................................................................
1187
NULL
3794
NULL
476

skipif mysql # not compatible

query II rowsort label-9010
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col0 + 18 col1, + 31 + + 50 + + col1 * 79 FROM tab1 AS cor0
----
NULL
1187
NULL
3794
................................................................................
query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT( * ) FROM tab2
----
14
3

skipif mysql # not compatible

query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT ( * ) FROM tab2
----
14
3

query I rowsort
................................................................................
237

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 93 + + 46 >= 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT + col1 col0, 95 AS col1 FROM tab0 AS cor0
----
1
95
21
95
................................................................................
skipif mysql # not compatible
query II rowsort label-9141
SELECT + - SUM ( + + col0 ) / - - ( 79 ), 48 AS col2 FROM tab2 cor0
----
-2
48


query II rowsort
SELECT - - 3 col1, 80 FROM tab2 AS cor0
----
3
80
3
80
................................................................................
query II rowsort label-9149
SELECT DISTINCT + - COUNT( DISTINCT - + 69 ) col2, - 30 * + COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

skipif mysql # not compatible

query II rowsort label-9149
SELECT DISTINCT + - COUNT ( DISTINCT - + 69 ) col2, - 30 * + COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

query I rowsort
................................................................................
----
-15

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----


query II rowsort
SELECT + col2 col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
................................................................................
query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST( NULL AS DECIMAL ) col2, - 38 + CAST( + AVG ( ALL + 75 ) AS SIGNED ) FROM tab0 cor0
----
NULL
37

skipif mysql # not compatible

query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST ( NULL AS REAL ) col2, - 38 + CAST ( + AVG ( ALL + 75 ) AS INTEGER ) FROM tab0 cor0
----
NULL
37

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT - ( - 35 ) * + + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
2065
2380
3360


query II rowsort
SELECT ALL + + col2 col2, - col2 * - 48 FROM tab2 cor0
----
23
1104
40
1920
................................................................................
----

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 64 + 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 63 + col2 + 66 BETWEEN NULL AND - 71
----


query II rowsort
SELECT + - col2 col1, 16 FROM tab1 AS cor0
----
-59
16
-68
16
................................................................................
-950600
21
-182613
81
-2683920

skipif mysql # not compatible

query II rowsort label-9579
SELECT - CAST ( - col1 AS INTEGER ) col0, + col0 + col2 * - col0 * + col1 * col2 FROM tab0 AS cor0
----
1
-950600
21
-182613
................................................................................
query II rowsort label-9626
SELECT - + 81 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible

query II rowsort label-9626
SELECT - + 81 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT DISTINCT + col1 + 86 AS col2 FROM tab0 AS cor0
----
107
167
87


query II rowsort
SELECT DISTINCT + - col1 * + col0 + - 89 col0, + col2 * + col1 FROM tab1 AS cor0
----
-4366
3196
-514
295
................................................................................
query I rowsort
SELECT 35 * ( - col2 ) AS col1 FROM tab1
----
-2065
-2380
-3360


query II rowsort
SELECT - col0 col2, - 10 FROM tab0
----
-15
-10
-87
-10
................................................................................
query II rowsort label-9948
SELECT ALL + COUNT( * ) col1, - ( SUM( - col0 ) ) AS col2 FROM tab1
----
3
227

skipif mysql # not compatible

query II rowsort label-9948
SELECT ALL + COUNT ( * ) col1, - ( SUM ( - col0 ) ) AS col2 FROM tab1
----
3
227

query II rowsort







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
...
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
....
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
....
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
....
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
....
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
....
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
....
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
....
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
....
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
....
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
....
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
.....
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
.....
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
.....
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
.....
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
.....
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
.....
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
.....
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
.....
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
.....
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
.....
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
.....
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
.....
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
.....
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
.....
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
.....
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
.....
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
.....
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
.....
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
.....
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
.....
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
.....
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
.....
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
.....
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
.....
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
.....
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
.....
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
.....
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
.....
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
.....
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
.....
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
.....
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
.....
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
.....
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
.....
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
.....
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
.....
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
.....
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
.....
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
.....
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
.....
42809
42810
42811
42812
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
42823
.....
43809
43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
.....
45601
45602
45603
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
.....
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
.....
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
.....
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
.....
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862
47863
47864
.....
48750
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
.....
49107
49108
49109
49110
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
.....
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576
49577
.....
52802
52803
52804
52805
52806
52807
52808
52809
52810
52811
52812
52813
52814
52815
52816
.....
53410
53411
53412
53413
53414
53415
53416
53417
53418
53419
53420
53421
53422
53423
53424
.....
54002
54003
54004
54005
54006
54007
54008
54009
54010
54011
54012
54013
54014
54015
54016
.....
54296
54297
54298
54299
54300
54301
54302
54303
54304
54305
54306
54307
54308
54309
54310
.....
56328
56329
56330
56331
56332
56333
56334
56335
56336
56337
56338
56339
56340
56341
56342
.....
56419
56420
56421
56422
56423
56424
56425
56426
56427
56428
56429
56430
56431
56432
56433
.....
56502
56503
56504
56505
56506
56507
56508
56509
56510
56511
56512
56513
56514
56515
56516
.....
56920
56921
56922
56923
56924
56925
56926
56927
56928
56929
56930
56931
56932
56933
56934
.....
57574
57575
57576
57577
57578
57579
57580
57581
57582
57583
57584
57585
57586
57587
57588
.....
57910
57911
57912
57913
57914
57915
57916
57917
57918
57919
57920
57921
57922
57923
57924
.....
58601
58602
58603
58604
58605
58606
58607
58608
58609
58610
58611
58612
58613
58614
58615
.....
58658
58659
58660
58661
58662
58663
58664
58665
58666
58667
58668
58669
58670
58671
58672
.....
59395
59396
59397
59398
59399
59400
59401
59402
59403
59404
59405
59406
59407
59408
59409
.....
61866
61867
61868
61869
61870
61871
61872
61873
61874
61875
61876
61877
61878
61879
61880
.....
65480
65481
65482
65483
65484
65485
65486
65487
65488
65489
65490
65491
65492
65493
65494
.....
67139
67140
67141
67142
67143
67144
67145
67146
67147
67148
67149
67150
67151
67152
67153
.....
67602
67603
67604
67605
67606
67607
67608
67609
67610
67611
67612
67613
67614
67615
67616
.....
67765
67766
67767
67768
67769
67770
67771
67772
67773
67774
67775
67776
67777
67778
67779
.....
67940
67941
67942
67943
67944
67945
67946
67947
67948
67949
67950
67951
67952
67953
67954
.....
68095
68096
68097
68098
68099
68100
68101
68102
68103
68104
68105
68106
68107
68108
68109
.....
68303
68304
68305
68306
68307
68308
68309
68310
68311
68312
68313
68314
68315
68316
68317
.....
69138
69139
69140
69141
69142
69143
69144
69145
69146
69147
69148
69149
69150
69151
69152
.....
69325
69326
69327
69328
69329
69330
69331
69332
69333
69334
69335
69336
69337
69338
69339
.....
69671
69672
69673
69674
69675
69676
69677
69678
69679
69680
69681
69682
69683
69684
69685
.....
71174
71175
71176
71177
71178
71179
71180
71181
71182
71183
71184
71185
71186
71187
71188
.....
71300
71301
71302
71303
71304
71305
71306
71307
71308
71309
71310
71311
71312
71313
71314
.....
71395
71396
71397
71398
71399
71400
71401
71402
71403
71404
71405
71406
71407
71408
71409
.....
71734
71735
71736
71737
71738
71739
71740
71741
71742
71743
71744
71745
71746
71747
71748
.....
71775
71776
71777
71778
71779
71780
71781
71782
71783
71784
71785
71786
71787
71788
71789
.....
72080
72081
72082
72083
72084
72085
72086
72087
72088
72089
72090
72091
72092
72093
72094
.....
72483
72484
72485
72486
72487
72488
72489
72490
72491
72492
72493
72494
72495
72496
72497
.....
73989
73990
73991
73992
73993
73994
73995
73996
73997
73998
73999
74000
74001
74002
74003
.....
74962
74963
74964
74965
74966
74967
74968
74969
74970
74971
74972
74973
74974
74975
74976
.....
75018
75019
75020
75021
75022
75023
75024
75025
75026
75027
75028
75029
75030
75031
75032
.....
75151
75152
75153
75154
75155
75156
75157
75158
75159
75160
75161
75162
75163
75164
75165
75166
75167
75168
75169
75170
75171
75172
75173
75174
75175
75176
.....
75187
75188
75189
75190
75191
75192
75193
75194
75195
75196
75197
75198
75199
75200
75201
.....
76035
76036
76037
76038
76039
76040
76041
76042
76043
76044
76045
76046
76047
76048
76049
.....
76484
76485
76486
76487
76488
76489
76490
76491
76492
76493
76494
76495
76496
76497
76498
.....
78362
78363
78364
78365
78366
78367
78368
78369
78370
78371
78372
78373
78374
78375
78376
.....
79369
79370
79371
79372
79373
79374
79375
79376
79377
79378
79379
79380
79381
79382
79383
.....
79429
79430
79431
79432
79433
79434
79435
79436
79437
79438
79439
79440
79441
79442
79443
.....
79758
79759
79760
79761
79762
79763
79764
79765
79766
79767
79768
79769
79770
79771
79772
.....
80069
80070
80071
80072
80073
80074
80075
80076
80077
80078
80079
80080
80081
80082
80083
.....
80257
80258
80259
80260
80261
80262
80263
80264
80265
80266
80267
80268
80269
80270
80271
.....
80385
80386
80387
80388
80389
80390
80391
80392
80393
80394
80395
80396
80397
80398
80399
80400
80401
80402
80403
80404
80405
80406
80407
80408
80409
80410
.....
80959
80960
80961
80962
80963
80964
80965
80966
80967
80968
80969
80970
80971
80972
80973
.....
81576
81577
81578
81579
81580
81581
81582
81583
81584
81585
81586
81587
81588
81589
81590
.....
82693
82694
82695
82696
82697
82698
82699
82700
82701
82702
82703
82704
82705
82706
82707
.....
82822
82823
82824
82825
82826
82827
82828
82829
82830
82831
82832
82833
82834
82835
82836
.....
83157
83158
83159
83160
83161
83162
83163
83164
83165
83166
83167
83168
83169
83170
83171
.....
83928
83929
83930
83931
83932
83933
83934
83935
83936
83937
83938
83939
83940
83941
83942
.....
84009
84010
84011
84012
84013
84014
84015
84016
84017
84018
84019
84020
84021
84022
84023
.....
85395
85396
85397
85398
85399
85400
85401
85402
85403
85404
85405
85406
85407
85408
85409
.....
85763
85764
85765
85766
85767
85768
85769
85770
85771
85772
85773
85774
85775
85776
85777
.....
86817
86818
86819
86820
86821
86822
86823
86824
86825
86826
86827
86828
86829
86830
86831
.....
87655
87656
87657
87658
87659
87660
87661
87662
87663
87664
87665
87666
87667
87668
87669
.....
88071
88072
88073
88074
88075
88076
88077
88078
88079
88080
88081
88082
88083
88084
88085
.....
88534
88535
88536
88537
88538
88539
88540
88541
88542
88543
88544
88545
88546
88547
88548
.....
89979
89980
89981
89982
89983
89984
89985
89986
89987
89988
89989
89990
89991
89992
89993
.....
91381
91382
91383
91384
91385
91386
91387
91388
91389
91390
91391
91392
91393
91394
91395
.....
91565
91566
91567
91568
91569
91570
91571
91572
91573
91574
91575
91576
91577
91578
91579
query II rowsort label-51
SELECT + COUNT( * ) col0, + ( + COUNT( * ) ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-51
SELECT + COUNT ( * ) col0, + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-98
SELECT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 6 * + - 73 * 87 col1, + 90 AS col1 FROM tab0
----
-38106
90

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT 48 * - 68 AS col2 FROM tab2 AS cor0
----
-3264
-3264
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, - col2 + - 25 AS col1 FROM tab1 AS cor0
----
-14
-121
-47
-93
................................................................................
NULL
15
NULL
15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-276
SELECT 15 col2, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
15
NULL
................................................................................
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col1 AS col2 FROM tab2 cor0
----
51
-51
67
-67
................................................................................
-225
9
-7569
9
-9409
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + col2 col2, + col2 + + col1 * - 89 AS col2 FROM tab2 AS cor0
----
117
-6813
125
-5905
................................................................................
query II rowsort label-369
SELECT ALL 64 col2, COUNT( * ) FROM tab1
----
64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-369
SELECT ALL 64 col2, COUNT ( * ) FROM tab1
----
64
3

query I rowsort
................................................................................
5
47
1
5
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-466
SELECT ALL col1 col2, 78 / col1 FROM tab1 AS cor0
----
14
5
47
1
................................................................................
query II rowsort label-845
SELECT ALL + + 87 + - SUM( - col1 ) col1, CAST( ( + + COUNT( * ) ) AS SIGNED ) * MAX( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-845
SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0
----
282
36

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-975
SELECT DISTINCT - COUNT( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-975
SELECT DISTINCT - COUNT ( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
----
88
80

query I rowsort
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST( ( + 67 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1050
SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST ( ( + 67 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL - SUM( + ( - - 13 ) ) AS col2, - 40 AS col0 FROM tab2
................................................................................
SELECT ALL + - 83 AS col1, COUNT( * ) col0, + + COUNT( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1068
SELECT ALL + - 83 AS col1, COUNT ( * ) col0, + + COUNT ( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
----
-83
0
0

................................................................................
150232
18836

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL <> + col2 * - 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - 71 FROM tab1
----
14
-71
47
-71
................................................................................
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON ( - + 52 ) < NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
................................................................................
query I rowsort
SELECT - 91 + 67 FROM tab0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col2, col2 * + col0 AS col1 FROM tab1
----
83
4896
83
5015
................................................................................
skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
................................................................................
query I rowsort label-1338
SELECT ALL - + col1 / col0 + + 14 AS col2 FROM tab2 AS cor0
----
13
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col0, + col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
15
198
15
220
................................................................................
-1
-47
-1
-5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT - col1 col2, - col0 / col0 AS col2 FROM tab1 AS cor0
----
-14
-1
-47
-1
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1343
SELECT DISTINCT col0 col2, + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
................................................................................
-1
4096
-2
5625
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1464
SELECT - + col0 * - col0 col0, col0 / - + ( + + 30 ) FROM tab2 AS cor0
----
2116
-1
4096
-2
................................................................................

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 26 + 0 * - - COUNT ( + + col1 ) FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL 50 ) FROM tab0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, 38 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT COUNT( ALL + col1 ) * - 73 col0 FROM tab1 AS cor0
................................................................................
query I rowsort
SELECT ( + + ( - col2 ) ) + + col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + ( col0 ) FROM tab1
----
-59
85
-68
91
................................................................................
query II rowsort label-2092
SELECT DISTINCT COUNT( * ) col1, - 32 FROM tab0
----
3
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2092
SELECT DISTINCT COUNT ( * ) col1, - 32 FROM tab0
----
3
-32

query II rowsort
................................................................................
34
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 89 + + col1, - 78 * - + col2, - col2 / - col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col2 + + 4 FROM tab0 AS cor0
----
-15
51
-87
14
................................................................................
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2296
SELECT - ( col0 ) col2, - 38 / + col0 AS col1 FROM tab1
----
-51
0
-85
0
................................................................................
query II rowsort label-2323
SELECT + COUNT( * ) * MIN( + col2 ) col2, + COUNT( * ) AS col1 FROM tab1
----
177
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2323
SELECT + COUNT ( * ) * MIN ( + col2 ) col2, + COUNT ( * ) AS col1 FROM tab1
----
177
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-2427
SELECT SUM( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2427
SELECT SUM ( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
----
122100
26

query I rowsort
................................................................................
query II rowsort label-2519
SELECT DISTINCT COUNT( * ) col0, - SUM( - + 97 ) AS col2 FROM tab2
----
3
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2519
SELECT DISTINCT COUNT ( * ) col0, - SUM ( - + 97 ) AS col2 FROM tab2
----
3
291

query I rowsort
................................................................................
----
24

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 - + col2 col0, col0 + + col0 AS col2 FROM tab2 WHERE + 25 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 90
----
................................................................................
query II rowsort label-2611
SELECT ALL - + MAX( DISTINCT - + CAST( - + 47 AS SIGNED ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2611
SELECT ALL - + MAX ( DISTINCT - + CAST ( - + 47 AS INTEGER ) ) col1, + 60 FROM tab1 AS cor0
----
-47
60

query II rowsort
................................................................................
----

query I rowsort
SELECT DISTINCT - 20 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 + + col1 FROM tab1 AS cor0
----
-51
65
-85
90
................................................................................

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + MAX ( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col1 + 37 + col1 col1, 96 * + col0 * 67 FROM tab2 AS cor0
----
2689
295872
4593
482400
................................................................................

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CAST ( MIN ( + 94 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 37 col1, 69 FROM tab2
----
37
69
37
69
................................................................................
-37
-37

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL < - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 col1, + 74 AS col0 FROM tab2
----
85
74
85
74
................................................................................
query II rowsort label-3035
SELECT + + COUNT( * ) col0, + MIN( + col0 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3035
SELECT + + COUNT ( * ) col0, + MIN ( + col0 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
................................................................................
-46
93
-8
93
-99
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 10 col1, - col1 + + + 22 AS col1 FROM tab2 cor0
----
-10
-29
-10
-45
................................................................................
query I rowsort
SELECT + ( - 81 ) AS col1 FROM tab2
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col1 AS col0 FROM tab1
----
59
5
68
47
................................................................................
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 <= + 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30 col0, col1 FROM tab2 AS cor0
----
30
51
30
67
................................................................................
query II rowsort label-3486
SELECT 3 - COUNT( * ) col2, - MAX( - col2 ) AS col0 FROM tab1
----
0
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3486
SELECT 3 - COUNT ( * ) col2, - MAX ( - col2 ) AS col0 FROM tab1
----
0
59

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
8

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST( col2 AS SIGNED ) + col1 + col2 * - + col1 / + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3586
SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST ( col2 AS INTEGER ) + col1 + col2 * - + col1 / + col1 IS NULL
----

query III rowsort
SELECT ALL - 48 AS col1, col0 * + col1 * - - col0, col0 AS col0 FROM tab1
----
................................................................................
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col0 FROM tab0
----
15
15
87
87
................................................................................
-59
77
-59
77
-59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + + 74 - + + col2 * 26 col2, 38 AS col0 FROM tab2 AS cor0
----
-2300
38
-4000
38
................................................................................

skipif mysql # not compatible
query I rowsort label-4038
SELECT - ( - 20 ) * + + ( - MIN ( - + col1 ) ) FROM tab2 AS cor0
----
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 68 AS col2 FROM tab0 AS cor0
----
-1
68
-21
68
................................................................................
query II rowsort label-4164
SELECT COUNT( * ) + - - COUNT( * ) * COUNT( * ) col2, + MAX( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4164
SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) col2, + MAX ( DISTINCT - 86 ) AS col1 FROM tab1
----
12
-86

query III rowsort
................................................................................
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4179
SELECT + CAST ( NULL AS REAL ) * - - col1 col0, - col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
................................................................................
61
57
109
85
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4539
SELECT - - col2 + - 11 col0, 48 + - 77 + - - CAST ( col0 AS INTEGER ) + - - col1 AS col2 FROM tab1 AS cor0
----
48
61
57
109
................................................................................
query I rowsort
SELECT + + 76 + - 22 FROM tab0 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 41 * - col1 + col1 * 52 + + col2 col1, + 97 AS col1 FROM tab2 cor0
----
584
97
795
97
................................................................................
query I rowsort
SELECT ALL - + 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col1, + 98 * - ( - col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col1 <= 34
----
81
69090

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1, tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col2 * - 62 AS col1 FROM tab0
----
-10
-620
-47
-2914
................................................................................
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 3 * + col0 NOT IN ( + 17 * - + col2, + col2 / + ( + - 77 ) - CAST ( NULL AS REAL ), + col1, + 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 39 FROM tab0 AS cor0
----
10
39
47
39
................................................................................
query I rowsort label-4779
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 84 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 * 99 col0, + col2 AS col1 FROM tab2
----
-3861
23
-3861
40
................................................................................
query I rowsort
SELECT col1 * - - 32 FROM tab0
----
2592
32
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 99 * + col0 FROM tab0
----
15
-1485
87
-8613
................................................................................

skipif mysql # not compatible
query I rowsort label-4989
SELECT MIN ( - - col0 ) * 6 FROM tab1
----
306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 60 FROM tab2
----
46
60
64
60
................................................................................
1
45
21
45
81
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col0, - 94 + - col0 AS col2 FROM tab1 AS cor0
----
4
-145
4
-179
................................................................................
query I rowsort
SELECT ALL - col1 + col2 + col0 + 63 FROM tab2 AS cor0
----
129
81
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, - col1 + - 11 AS col2 FROM tab0
----
-1
-12
-21
-32
................................................................................
-2

query III rowsort
SELECT * FROM tab2 WHERE - 7 + + col1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) col1, - col1 AS col1 FROM tab1
----
-59
-5
-68
-47
................................................................................
query I rowsort label-5325
SELECT + col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 col2, col1 AS col0 FROM tab2
----
-85
51
-85
67
................................................................................
query II rowsort label-5361
SELECT ALL - MIN( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5361
SELECT ALL - MIN ( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
----
-46
-2

query III rowsort
................................................................................
query II rowsort label-5405
SELECT ALL COUNT( * ) + - COUNT( * ) col2, 50 + + - COUNT( * ) FROM tab2 AS cor0
----
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5405
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2, 50 + + - COUNT ( * ) FROM tab2 AS cor0
----
0
47

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query I rowsort
SELECT DISTINCT col0 + + col0 - + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 55 AS col2 FROM tab2 AS cor0
----
23
-55
40
-55
................................................................................
query I rowsort
SELECT DISTINCT col2 - + - 63 AS col1 FROM tab1
----
122
131
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + col2 ) col1, - 60 AS col1 FROM tab0
----
10
-60
47
-60
................................................................................
47
0
99
2
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5889
SELECT ALL + 23 / + col2 col2, + col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
................................................................................
----
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 73 * + col1 * - col0 * - col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5925
SELECT - col2 - + col0 DIV - col2, - col2 * col2 - ( col0 ) AS col1 FROM tab0
................................................................................
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6148
SELECT - 0 AS col1, 96 / - MIN ( - col1 ) col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 col2, - 80 FROM tab1
----
43
-80
43
-80
................................................................................
query II rowsort label-6158
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6158
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2, - 3 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
................................................................................
query I rowsort
SELECT 52 * - col0 - 8 FROM tab1 WHERE NULL IS NULL
----
-2660
-4428
-4740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 col1, + 86 * - 92 AS col2 FROM tab1
----
31
-7912

query I rowsort
................................................................................
query II rowsort label-6212
SELECT - 82 - - - COUNT( * ) col0, ( - MIN( ALL - + CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-85
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6212
SELECT - 82 - - - COUNT ( * ) col0, ( - MIN ( ALL - + CAST ( col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-85
77

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-6282
SELECT 16 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 col1, + col0 FROM tab0 AS cor0
----
-52
15
-52
87
................................................................................
-3807
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 col2, - col1 AS col2 FROM tab1
----
13
-14
13
-47
................................................................................
query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col2 col1, + col1 AS col0 FROM tab2
----
1058
51
2560
77
................................................................................
query I rowsort
SELECT ( col2 ) * - - col0 * + col2 AS col0 FROM tab1 cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, ( + col1 ) FROM tab0
----
10
21
47
81
................................................................................

skipif mysql # not compatible
query I rowsort label-6479
SELECT - MAX ( ALL - 48 ) FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) col0, 56 AS col0 FROM tab0
----
-1
56
-21
56
................................................................................
query I rowsort
SELECT + col0 * col0 + - 42 FROM tab0
----
183
7527
9367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - - col2 AS col1, col2 col1, - - col0 FROM tab2 AS cor0
----
9 values hashing to cab274f6910f0989b8e21ed8f2765415

query I rowsort
SELECT col2 * - - col0 * + col2 + + col2 AS col0 FROM tab2 cor0
................................................................................
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col1 + - + col2 FROM tab2 AS cor0
----
-23
28
-40
37
................................................................................
query II rowsort label-7331
SELECT - COUNT( * ) col2, 16 DIV + 36 FROM tab0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7331
SELECT - COUNT ( * ) col2, 16 / + 36 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
................................................................................
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7380
SELECT + + col2 col1, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 52 col2, 94 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT DISTINCT 73 DIV - - ( - col0 ) AS col1 FROM tab1 AS cor0
................................................................................
NULL
95
NULL
95
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7416
SELECT + 95 col2, col1 * - + col2 * CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
95
NULL
95
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-7433
SELECT - COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 48 FROM tab2 AS cor0
----
51
48
67
48
................................................................................
query I rowsort
SELECT 64 * 95 AS col1 FROM tab0
----
6080
6080
6080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col0 FROM tab0
----
10
21
47
81
................................................................................
query I rowsort label-7549
SELECT + - CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 73 col2, col0 * - ( - 34 ) FROM tab0 AS cor0
----
73
2958
73
3298
................................................................................
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
................................................................................
query I rowsort
SELECT ALL 23 * + col1 FROM tab0
----
1863
23
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 FROM tab2
----
23
51
40
77
................................................................................
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7772
SELECT - - 48 / + 57 * col2 col2, + col0 + ( - ( col0 ) ) - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
0
NULL
0
NULL
................................................................................
97
47
157
99
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7785
SELECT ALL + + col2 col2, + col1 + - - 83 / 42 + - - 75 AS col0 FROM tab0 AS cor0
----
10
97
47
157
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7795
SELECT col2 + - col0 col1, CAST( - 96 AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7795
SELECT col2 + - col0 col1, CAST ( - 96 AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 78 ) - - 60 AS col2 FROM tab2 AS cor0
----
................................................................................
95
NULL
95
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7828
SELECT ALL CAST ( NULL AS REAL ) col2, + 95 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL
95
NULL
95
................................................................................
query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col0 col1, + 69 * - - col0 + + col1 + + + 92 + col0 * 29 * + col2 * + col1 + col0 FROM tab2
----
2346
1568145
4928
5721129
................................................................................
query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST( + - 42 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7865
SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL
-42

query I rowsort
................................................................................
query I rowsort
SELECT + 98 col0 FROM tab1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 92 * + 20 col1, col2 + - col2 FROM tab0
----
-1840
0

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 DIV - col1 FROM tab2
----
98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8072
SELECT DISTINCT 98 col0, col2 / - col1 FROM tab2
----
98
0

query II rowsort
................................................................................
-394914
85
-394914
91
-394914

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8181
SELECT col0 col2, 61 * CAST ( + - 83 AS INTEGER ) * 78 FROM tab1
----
51
-394914
85
-394914
................................................................................
102
8
170
8
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8186
SELECT col0 / 47 - - 7 col1, col0 + + col0 FROM tab1
----
8
102
8
170
................................................................................
query I rowsort label-8198
SELECT - 38 / + - col1 - - 85 AS col2 FROM tab1 AS cor0
----
85
87
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 * col1 col2, - col2 FROM tab0 AS cor0
----
1785
-10
6885
-47
85
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col2 col0, col1 AS col0 FROM tab0
----
210
21
3807
81
................................................................................
skipif mysql # not compatible
query II rowsort label-8201
SELECT MIN ( + col2 ) AS col0, - COUNT ( * ) FROM tab2
----
23
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 91 + + col1 + col0 * - 36 * col1 FROM tab2 AS cor0
----
................................................................................
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8288
SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8340
SELECT + + CAST( + 5 AS SIGNED ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8340
SELECT + + CAST ( + 5 AS INTEGER ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - 19 + + + col0 NOT IN ( - 97, - col0 * + col2 + 42, 68 * col2 )
----
................................................................................
SELECT * FROM tab2 WHERE NULL IN ( - col2, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col0 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 * + - col2 * - col1 col1, ( - - col2 ) AS col1 FROM tab0
----
-182700
10
-2683935
47
................................................................................
36
NULL
36
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8655
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) / + + col1 col2, + 36 FROM tab0
----
NULL
36
NULL
36
................................................................................
query I rowsort
SELECT ALL - 48 - - + 62 FROM tab2 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col0 * col0 * - col2 * + 0 FROM tab2 AS cor0
----
-23
0
-40
0
................................................................................
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 * + 83 <> 50 + - - ( + col0 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 55 AS col2 FROM tab1
----
51
55
85
55
................................................................................
query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8732
SELECT ALL + 48 col2, + COUNT ( * ) AS col1 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-8752
SELECT COUNT( * ) col0, + 47 FROM tab2
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8752
SELECT COUNT ( * ) col0, + 47 FROM tab2
----
3
47

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-8767
SELECT MIN ( - 28 ) FROM tab1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - 54 FROM tab2
----
46
-54
64
-54
75
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col1, ( + ( + col1 ) ) AS col0, - 27 FROM tab2 AS cor0
----
9 values hashing to 624809d65edc7e8d5f51920ecd5615c8

query II rowsort
SELECT DISTINCT - 92, + col0 FROM tab0 cor0
................................................................................
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 45 * - col1 col1, col2 + + 66 AS col2 FROM tab0
----
19845
76
295245
113
................................................................................
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8884
SELECT DISTINCT + + col0 * + + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
705
NULL
870
NULL
................................................................................
1187
NULL
3794
NULL
476

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9010
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col0 + 18 col1, + 31 + + 50 + + col1 * 79 FROM tab1 AS cor0
----
NULL
1187
NULL
3794
................................................................................
query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT( * ) FROM tab2
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9024
SELECT + ( - - 14 ) col2, COUNT ( * ) FROM tab2
----
14
3

query I rowsort
................................................................................
237

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 93 + + 46 >= 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 95 AS col1 FROM tab0 AS cor0
----
1
95
21
95
................................................................................
skipif mysql # not compatible
query II rowsort label-9141
SELECT + - SUM ( + + col0 ) / - - ( 79 ), 48 AS col2 FROM tab2 cor0
----
-2
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 3 col1, 80 FROM tab2 AS cor0
----
3
80
3
80
................................................................................
query II rowsort label-9149
SELECT DISTINCT + - COUNT( DISTINCT - + 69 ) col2, - 30 * + COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9149
SELECT DISTINCT + - COUNT ( DISTINCT - + 69 ) col2, - 30 * + COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
-1
-90

query I rowsort
................................................................................
----
-15

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
................................................................................
query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST( NULL AS DECIMAL ) col2, - 38 + CAST( + AVG ( ALL + 75 ) AS SIGNED ) FROM tab0 cor0
----
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9328
SELECT DISTINCT - 15 + - - 90 * + + CAST ( NULL AS REAL ) col2, - 38 + CAST ( + AVG ( ALL + 75 ) AS INTEGER ) FROM tab0 cor0
----
NULL
37

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT - ( - 35 ) * + + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
2065
2380
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, - col2 * - 48 FROM tab2 cor0
----
23
1104
40
1920
................................................................................
----

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 64 + 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 63 + col2 + 66 BETWEEN NULL AND - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, 16 FROM tab1 AS cor0
----
-59
16
-68
16
................................................................................
-950600
21
-182613
81
-2683920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9579
SELECT - CAST ( - col1 AS INTEGER ) col0, + col0 + col2 * - col0 * + col1 * col2 FROM tab0 AS cor0
----
1
-950600
21
-182613
................................................................................
query II rowsort label-9626
SELECT - + 81 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9626
SELECT - + 81 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT DISTINCT + col1 + 86 AS col2 FROM tab0 AS cor0
----
107
167
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 * + col0 + - 89 col0, + col2 * + col1 FROM tab1 AS cor0
----
-4366
3196
-514
295
................................................................................
query I rowsort
SELECT 35 * ( - col2 ) AS col1 FROM tab1
----
-2065
-2380
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 10 FROM tab0
----
-15
-10
-87
-10
................................................................................
query II rowsort label-9948
SELECT ALL + COUNT( * ) col1, - ( SUM( - col0 ) ) AS col2 FROM tab1
----
3
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9948
SELECT ALL + COUNT ( * ) col1, - ( SUM ( - col0 ) ) AS col2 FROM tab1
----
3
227

query II rowsort

Changes to test/random/aggregates/slt_good_102.test.

1722
1723
1724
1725
1726
1727
1728

1729
1730
1731
1732
1733
1734
1735
....
2774
2775
2776
2777
2778
2779
2780

2781
2782
2783
2784
2785
2786
2787
....
3394
3395
3396
3397
3398
3399
3400

3401
3402
3403
3404
3405
3406
3407
....
3997
3998
3999
4000
4001
4002
4003

4004
4005
4006
4007
4008
4009
4010
....
5088
5089
5090
5091
5092
5093
5094

5095
5096
5097
5098
5099
5100
5101
....
5337
5338
5339
5340
5341
5342
5343

5344
5345
5346
5347
5348
5349
5350
....
7890
7891
7892
7893
7894
7895
7896

7897
7898
7899
7900
7901
7902
7903
7904
7905
7906

7907
7908
7909
7910
7911
7912
7913
....
9178
9179
9180
9181
9182
9183
9184

9185
9186
9187
9188
9189
9190
9191
....
9958
9959
9960
9961
9962
9963
9964

9965
9966
9967
9968
9969
9970
9971
.....
10597
10598
10599
10600
10601
10602
10603

10604
10605
10606
10607
10608
10609
10610
.....
10995
10996
10997
10998
10999
11000
11001

11002
11003
11004
11005
11006
11007
11008
.....
11304
11305
11306
11307
11308
11309
11310

11311
11312
11313
11314
11315
11316
11317
.....
13979
13980
13981
13982
13983
13984
13985

13986
13987
13988
13989
13990
13991
13992
.....
14153
14154
14155
14156
14157
14158
14159

14160
14161
14162
14163
14164
14165
14166
.....
14495
14496
14497
14498
14499
14500
14501

14502
14503
14504
14505
14506
14507
14508
.....
15253
15254
15255
15256
15257
15258
15259

15260
15261
15262
15263
15264
15265
15266
.....
16200
16201
16202
16203
16204
16205
16206

16207
16208
16209
16210
16211
16212
16213
.....
16425
16426
16427
16428
16429
16430
16431

16432
16433
16434
16435
16436
16437
16438
.....
16678
16679
16680
16681
16682
16683
16684

16685
16686
16687
16688
16689
16690
16691
.....
16788
16789
16790
16791
16792
16793
16794

16795
16796
16797
16798
16799
16800
16801
.....
19099
19100
19101
19102
19103
19104
19105

19106
19107
19108
19109
19110
19111
19112
.....
19210
19211
19212
19213
19214
19215
19216

19217
19218
19219
19220
19221
19222
19223
.....
21452
21453
21454
21455
21456
21457
21458

21459
21460
21461
21462
21463
21464
21465
.....
21622
21623
21624
21625
21626
21627
21628

21629
21630
21631
21632
21633
21634
21635
.....
22587
22588
22589
22590
22591
22592
22593

22594
22595
22596
22597
22598
22599
22600
.....
24901
24902
24903
24904
24905
24906
24907

24908
24909
24910
24911
24912
24913
24914
.....
25241
25242
25243
25244
25245
25246
25247

25248
25249
25250
25251
25252
25253
25254
.....
26015
26016
26017
26018
26019
26020
26021

26022
26023
26024
26025
26026
26027
26028
.....
27337
27338
27339
27340
27341
27342
27343

27344
27345
27346
27347
27348
27349
27350
.....
27398
27399
27400
27401
27402
27403
27404

27405
27406
27407
27408
27409
27410
27411
.....
29007
29008
29009
29010
29011
29012
29013

29014
29015
29016
29017
29018
29019
29020
.....
29255
29256
29257
29258
29259
29260
29261

29262
29263
29264
29265
29266
29267
29268
29269
29270
29271

29272
29273
29274
29275
29276
29277
29278
.....
29320
29321
29322
29323
29324
29325
29326

29327
29328
29329
29330
29331
29332
29333
.....
29807
29808
29809
29810
29811
29812
29813

29814
29815
29816
29817
29818
29819
29820
.....
30630
30631
30632
30633
30634
30635
30636

30637
30638
30639
30640
30641
30642
30643
.....
31820
31821
31822
31823
31824
31825
31826

31827
31828
31829
31830
31831
31832
31833
.....
32030
32031
32032
32033
32034
32035
32036

32037
32038
32039
32040
32041
32042
32043
.....
32154
32155
32156
32157
32158
32159
32160

32161
32162
32163
32164
32165
32166
32167
.....
33254
33255
33256
33257
33258
33259
33260

33261
33262
33263
33264
33265
33266
33267
.....
34247
34248
34249
34250
34251
34252
34253

34254
34255
34256
34257
34258
34259
34260
.....
34681
34682
34683
34684
34685
34686
34687

34688
34689
34690
34691
34692
34693
34694
.....
36068
36069
36070
36071
36072
36073
36074

36075
36076
36077
36078
36079
36080
36081
.....
38776
38777
38778
38779
38780
38781
38782

38783
38784
38785
38786
38787
38788
38789
.....
38983
38984
38985
38986
38987
38988
38989

38990
38991
38992
38993
38994
38995
38996
.....
39107
39108
39109
39110
39111
39112
39113

39114
39115
39116
39117
39118
39119
39120
.....
39298
39299
39300
39301
39302
39303
39304

39305
39306
39307
39308
39309
39310
39311
.....
39352
39353
39354
39355
39356
39357
39358

39359
39360
39361
39362
39363
39364
39365
.....
39452
39453
39454
39455
39456
39457
39458

39459
39460
39461
39462
39463
39464
39465
.....
39638
39639
39640
39641
39642
39643
39644

39645
39646
39647
39648
39649
39650
39651
.....
41776
41777
41778
41779
41780
41781
41782

41783
41784
41785
41786
41787
41788
41789
.....
42130
42131
42132
42133
42134
42135
42136

42137
42138
42139
42140
42141
42142
42143
.....
42240
42241
42242
42243
42244
42245
42246

42247
42248
42249
42250
42251
42252
42253
.....
43287
43288
43289
43290
43291
43292
43293

43294
43295
43296
43297
43298
43299
43300
.....
43341
43342
43343
43344
43345
43346
43347

43348
43349
43350
43351
43352
43353
43354
.....
45031
45032
45033
45034
45035
45036
45037

45038
45039
45040
45041
45042
45043
45044
.....
47193
47194
47195
47196
47197
47198
47199

47200
47201
47202
47203
47204
47205
47206
.....
47862
47863
47864
47865
47866
47867
47868

47869
47870
47871
47872
47873
47874
47875
.....
49358
49359
49360
49361
49362
49363
49364

49365
49366
49367
49368
49369
49370
49371
.....
50345
50346
50347
50348
50349
50350
50351

50352
50353
50354
50355
50356
50357
50358
.....
50941
50942
50943
50944
50945
50946
50947

50948
50949
50950
50951
50952
50953
50954
.....
51534
51535
51536
51537
51538
51539
51540

51541
51542
51543
51544
51545
51546
51547
.....
52710
52711
52712
52713
52714
52715
52716

52717
52718
52719
52720
52721
52722
52723
.....
52788
52789
52790
52791
52792
52793
52794

52795
52796
52797
52798
52799
52800
52801
.....
54936
54937
54938
54939
54940
54941
54942

54943
54944
54945
54946
54947
54948
54949
.....
55852
55853
55854
55855
55856
55857
55858

55859
55860
55861
55862
55863
55864
55865
.....
59266
59267
59268
59269
59270
59271
59272

59273
59274
59275
59276
59277
59278
59279
.....
59387
59388
59389
59390
59391
59392
59393

59394
59395
59396
59397
59398
59399
59400
.....
60780
60781
60782
60783
60784
60785
60786

60787
60788
60789
60790
60791
60792
60793
.....
63377
63378
63379
63380
63381
63382
63383

63384
63385
63386
63387
63388
63389
63390
.....
63596
63597
63598
63599
63600
63601
63602

63603
63604
63605
63606
63607
63608
63609
.....
63766
63767
63768
63769
63770
63771
63772

63773
63774
63775
63776
63777
63778
63779
.....
65305
65306
65307
65308
65309
65310
65311

65312
65313
65314
65315
65316
65317
65318
.....
65370
65371
65372
65373
65374
65375
65376

65377
65378
65379
65380
65381
65382
65383
.....
65815
65816
65817
65818
65819
65820
65821

65822
65823
65824
65825
65826
65827
65828
.....
66983
66984
66985
66986
66987
66988
66989

66990
66991
66992
66993
66994
66995
66996
.....
67297
67298
67299
67300
67301
67302
67303

67304
67305
67306
67307
67308
67309
67310
67311
67312
67313

67314
67315
67316
67317
67318
67319
67320
.....
67797
67798
67799
67800
67801
67802
67803

67804
67805
67806
67807
67808
67809
67810
.....
68507
68508
68509
68510
68511
68512
68513

68514
68515
68516
68517
68518
68519
68520
.....
68683
68684
68685
68686
68687
68688
68689

68690
68691
68692
68693
68694
68695
68696
.....
68791
68792
68793
68794
68795
68796
68797

68798
68799
68800
68801
68802
68803
68804
.....
69378
69379
69380
69381
69382
69383
69384

69385
69386
69387
69388
69389
69390
69391
.....
70908
70909
70910
70911
70912
70913
70914

70915
70916
70917
70918
70919
70920
70921
.....
71446
71447
71448
71449
71450
71451
71452

71453
71454
71455
71456
71457
71458
71459
.....
71464
71465
71466
71467
71468
71469
71470

71471
71472
71473
71474
71475
71476
71477
.....
72043
72044
72045
72046
72047
72048
72049

72050
72051
72052
72053
72054
72055
72056
.....
72149
72150
72151
72152
72153
72154
72155

72156
72157
72158
72159
72160
72161
72162
.....
72391
72392
72393
72394
72395
72396
72397

72398
72399
72400
72401
72402
72403
72404
.....
73013
73014
73015
73016
73017
73018
73019

73020
73021
73022
73023
73024
73025
73026
.....
76691
76692
76693
76694
76695
76696
76697

76698
76699
76700
76701
76702
76703
76704
.....
76783
76784
76785
76786
76787
76788
76789

76790
76791
76792
76793
76794
76795
76796
.....
77781
77782
77783
77784
77785
77786
77787

77788
77789
77790
77791
77792
77793
77794
.....
78249
78250
78251
78252
78253
78254
78255

78256
78257
78258
78259
78260
78261
78262
.....
79338
79339
79340
79341
79342
79343
79344

79345
79346
79347
79348
79349
79350
79351
.....
80394
80395
80396
80397
80398
80399
80400

80401
80402
80403
80404
80405
80406
80407
.....
82131
82132
82133
82134
82135
82136
82137

82138
82139
82140
82141
82142
82143
82144
.....
89050
89051
89052
89053
89054
89055
89056

89057
89058
89059
89060
89061
89062
89063
.....
89624
89625
89626
89627
89628
89629
89630

89631
89632
89633
89634
89635
89636
89637
.....
90271
90272
90273
90274
90275
90276
90277

90278
90279
90280
90281
90282
90283
90284
.....
90701
90702
90703
90704
90705
90706
90707

90708
90709
90710
90711
90712
90713
90714

skipif mysql # not compatible
query I rowsort label-186
SELECT COUNT ( + + col1 ) FROM tab1 AS cor0
----
3


query II rowsort
SELECT col1 col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
................................................................................
72
54
72
54
72

skipif mysql # not compatible

query II rowsort label-291
SELECT + 54 col1, + CAST ( + 72 AS INTEGER ) AS col0 FROM tab2
----
54
72
54
72
................................................................................
query I rowsort
SELECT - col2 * + 92 AS col1 FROM tab0
----
-4324
-9108
-920


query II rowsort
SELECT DISTINCT - col2 * - - col0 col1, - col2 + + 58 FROM tab2
----
-1058
35
-2560
18
................................................................................

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NULL
----
0


query II rowsort
SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0
----
-68
-205379
-68
-314432
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < ( NULL )
----


query II rowsort
SELECT + col1 col0, - col2 * + + col0 AS col1 FROM tab0 AS cor0
----
1
-9603
21
-870
................................................................................

skipif mysql # not compatible
query I rowsort label-580
SELECT - SUM ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-195


query II rowsort
SELECT 59 col1, + col2 FROM tab1 AS cor0
----
59
59
59
68
................................................................................

skipif mysql # not compatible
query I rowsort label-856
SELECT + COUNT ( * ) * - - MAX ( - col2 ) AS col2 FROM tab0
----
-30


query II rowsort
SELECT DISTINCT col2 * - + 86 col0, - 54 - 11 * + col2 FROM tab0
----
-4042
-571
-8514
-1143
-860
-164


query II rowsort
SELECT + col1 col1, - 29 FROM tab2
----
51
-29
67
-29
................................................................................
query II rowsort label-994
SELECT COUNT( * ) col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible

query II rowsort label-994
SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

query I rowsort
................................................................................
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible

query II rowsort label-1076
SELECT + col1 + + ( - col0 ) col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37
NULL
-44
NULL
................................................................................
query I rowsort label-1140
SELECT - CAST ( - col1 AS INTEGER ) * - col0 - + col2 AS col2 FROM tab2
----
-2369
-4968
-5083


query II rowsort
SELECT ALL - col2 col0, + col1 + col2 FROM tab0
----
-10
31
-47
128
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT - SUM ( + - col0 ) * + 75 col1 FROM tab2
----
13875


query II rowsort
SELECT ALL col2 + - col0 col2, col0 * 51 AS col0 FROM tab2
----
-17
3825
-23
2346
................................................................................
query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0 AS cor0
----
-3306
-3686
-570


query III rowsort
SELECT 45 - + col2, - col1 * - + col2 col1, col1 + + col2 AS col2 FROM tab1
----
9 values hashing to 1b92f2a7bf19cb8deff0fe40cdcc21b2

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
................................................................................
13
147
9
153
10

skipif mysql # not compatible

query II rowsort label-1519
SELECT col0 + + CAST ( + 62 AS INTEGER ) col0, - CAST ( - 3 AS INTEGER ) + - + col2 / - 9 FROM tab1
----
113
13
147
9
................................................................................
query II rowsort label-1539
SELECT + - COUNT( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

skipif mysql # not compatible

query II rowsort label-1539
SELECT + - COUNT ( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

query I rowsort
................................................................................
-83
-1125
-83
-690
-83
-960


query II rowsort
SELECT + col0 col0, - 1 * + col0 * col0 FROM tab2
----
46
-2116
64
-4096
................................................................................

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
1


query II rowsort
SELECT + + ( - col0 ) + 21 - - col1 col2, + col2 * + 1 AS col1 FROM tab2 AS cor0
----
13
58
26
23
................................................................................
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col1 IS NULL
----
-23
-40
-58


query II rowsort
SELECT ALL 87 col1, - col1 FROM tab1
----
87
-14
87
-47
................................................................................
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----


query II rowsort
SELECT DISTINCT col0 - + 37 col2, 49 FROM tab0 AS cor0
----
-22
49
50
49
................................................................................

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + MAX ( - + 75 ) AS col0 FROM tab2 AS cor0
----
-75


query II rowsort
SELECT ALL + 33 col0, + col2 + + col0 FROM tab2 AS cor0
----
33
104
33
133
................................................................................
query II rowsort label-1832
SELECT DISTINCT - 96 col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-96
3

skipif mysql # not compatible

query II rowsort label-1832
SELECT DISTINCT - 96 col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-96
3

query I rowsort
................................................................................
query I rowsort label-2073
SELECT ALL - ( - col2 ) / - - 97 * col0 col0 FROM tab1 AS cor0
----
0
0
0


query II rowsort
SELECT DISTINCT - col0 col0, 85 + + 86 FROM tab2 AS cor0
----
-46
171
-64
171
................................................................................
46
NULL
64
NULL
75

skipif mysql # not compatible

query II rowsort label-2083
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, col0 FROM tab2
----
NULL
46
NULL
64
................................................................................
query III rowsort
SELECT * FROM tab2 WHERE 70 <= + col0
----
75
67
58


query II rowsort
SELECT - 22 col1, + col2 * ( 63 ) + + + col1 AS col0 FROM tab0
----
-22
3042
-22
6238
................................................................................

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE NOT - col1 < NULL
----
0


query II rowsort
SELECT DISTINCT - 17 col0, col0 FROM tab1
----
-17
51
-17
85
................................................................................
query I rowsort label-2456
SELECT ALL + 57 / - 14 col2 FROM tab1 AS cor0
----
-4
-4
-4


query II rowsort
SELECT DISTINCT 60 col1, col2 - - 96 * 39 AS col1 FROM tab0 AS cor0
----
60
3754
60
3791
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2710
SELECT + - SUM ( ( col0 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-202


query II rowsort
SELECT col2 - + col1 col1, col1 AS col2 FROM tab2
----
-28
51
-37
77
................................................................................

skipif mysql # not compatible
query I rowsort label-2746
SELECT 59 * + COUNT ( * ) FROM tab2 AS cor0
----
177


query II rowsort
SELECT + 9 col0, + ( col2 ) FROM tab1 cor0
----
9
59
9
68
................................................................................
query II rowsort label-2826
SELECT DISTINCT + COUNT( * ) col2, MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible

query II rowsort label-2826
SELECT DISTINCT + COUNT ( * ) col2, MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

query III rowsort
................................................................................
-2346
-46
-4928
-64
-5025
-75


query II rowsort
SELECT DISTINCT col2 * col1 col1, 19 * - - col1 - - 14 AS col1 FROM tab1
----
1344
280
295
109
................................................................................
SELECT DISTINCT - 46 col1 FROM tab1 AS cor0 WHERE col1 * + 89 / + ( - + col1 ) + col0 IS NULL
----

query I rowsort
SELECT ALL 80 - - + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----


query II rowsort
SELECT - 1 col2, - col2 * - + 91 FROM tab0 AS cor0
----
-1
4277
-1
9009
................................................................................

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - 61 / 82 AS col0 FROM tab0 AS cor0
----
0


query II rowsort
SELECT - 41 col0, + 45 FROM tab2 AS cor0
----
-41
45
-41
45
................................................................................
23

query I rowsort
SELECT DISTINCT + ( + 79 ) FROM tab0 AS cor0
----
79


query II rowsort
SELECT ALL + col0 col0, + 33 * + col1 FROM tab1 AS cor0
----
51
462
85
165
91
1551


query II rowsort
SELECT DISTINCT 69 col2, col1 AS col1 FROM tab1 AS cor0
----
69
14
69
47
................................................................................
query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

skipif mysql # not compatible

query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT ALL col1 * 32 AS col0 FROM tab1 cor0
----
1504
160
448


query II rowsort
SELECT DISTINCT ( 2 ) col1, + 76 AS col2 FROM tab0 AS cor0
----
2
76

query I rowsort
................................................................................
query I rowsort label-3328
SELECT + col0 + + - col1 / + + col1 AS col1 FROM tab1 AS cor0
----
50
84
90


query II rowsort
SELECT ALL + 32 col0, 65 + col0 FROM tab2
----
32
111
32
129
................................................................................
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible

query II rowsort label-3460
SELECT ALL + ( + col2 ) * - col1 col1, + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-3


query II rowsort
SELECT DISTINCT col1 col1, 54 FROM tab1
----
14
54
47
54
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST( - col1 AS SIGNED ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

skipif mysql # not compatible

query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST ( - col1 AS INTEGER ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col1 + - - col1 * + 14
----
................................................................................
-182
-192

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----


query II rowsort
SELECT ALL - col2 col2, - 8 + col2 FROM tab0
----
-10
2
-47
39
................................................................................

skipif mysql # not compatible
query I rowsort label-3728
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * SUM ( - col1 ) - - 77 AS col1 FROM tab2 AS cor0
----
NULL


query II rowsort
SELECT - col0 col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
................................................................................
51
51
85
85
91
91


query II rowsort
SELECT col1 col1, - col2 FROM tab2
----
51
-23
67
-58
................................................................................
query I rowsort label-3919
SELECT + CAST ( - - 45 AS INTEGER ) AS col1 FROM tab0
----
45
45
45


query II rowsort
SELECT - col1 col1, 27 + + 24 FROM tab2
----
-51
51
-67
51
................................................................................
-1
-47
-1
-99
-1

skipif mysql # not compatible

query II rowsort label-4212
SELECT DISTINCT - col2 col0, + col2 / - col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-10
-1
-47
-1
................................................................................

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1


query II rowsort
SELECT ALL + col0 col0, 86 * 92 * - + col2 FROM tab2 AS cor0
----
46
-181976
64
-316480
................................................................................
51
64
77
75
67

skipif mysql # not compatible

query II rowsort label-4247
SELECT col0 col1, CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
46
51
64
77
................................................................................
query II rowsort label-4270
SELECT COUNT( * ) col2, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible

query II rowsort label-4270
SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4275
SELECT col2 col1, col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible

query II rowsort label-4275
SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 68 + + col1 + + + col0 + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
................................................................................
query I rowsort
SELECT ALL col2 * col1 + + col0 FROM tab0
----
196
297
3822


query II rowsort
SELECT ALL - 78 + col2 col1, col0 AS col1 FROM tab2
----
-20
75
-38
64
................................................................................
870
-47
705
-99
9603

skipif mysql # not compatible

query II rowsort label-4307
SELECT - col2 col0, CAST ( - col2 AS INTEGER ) * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-10
870
-47
705
................................................................................

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - 30 + + COUNT ( * ) AS col0 FROM tab0
----
-27


query II rowsort
SELECT ALL col0 col2, + 77 FROM tab2
----
46
77
64
77
................................................................................
-2944
-64
-4096
-75
-4800

skipif mysql # not compatible

query II rowsort label-4578
SELECT DISTINCT + col2 / - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2
----
-46
-2944
-64
-4096
................................................................................
query I rowsort
SELECT - col2 * - col0 - + ( + col2 ) AS col2 FROM tab1 cor0
----
4800
4956
6120


query II rowsort
SELECT DISTINCT + 43 col0, + col2 FROM tab1 cor0
----
43
59
43
68
................................................................................
query I rowsort
SELECT ALL - 91 * - ( - col2 ) FROM tab0 AS cor0
----
-4277
-9009
-910


query II rowsort
SELECT ALL - - col0 + + col0 col1, col2 AS col2 FROM tab0 AS cor0
----
174
10
194
99
................................................................................
query I rowsort
SELECT DISTINCT - ( - + col2 ) - - 87 * + + 69 - col2 + + col0 + + 95 FROM tab0 AS cor0
----
6113
6185
6195


query II rowsort
SELECT ALL col0 col2, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
................................................................................
query I rowsort label-4890
SELECT ALL - col0 / + - col1 FROM tab2 AS cor0
----
0
0
1


query II rowsort
SELECT ( - ( + 97 ) ) col1, col0 * + col0 AS col1 FROM tab1
----
-97
2601
-97
7225
................................................................................
query I rowsort label-5144
SELECT 94 / - - 6 + + col2 * - col2 FROM tab1 AS cor0
----
-3466
-4609
-9201


query II rowsort
SELECT - 81 col1, col0 * - 27 + - ( - 73 ) AS col2 FROM tab2 AS cor0
----
-81
-1169
-81
-1655
................................................................................

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5221
SELECT ALL col0 + - ( CAST( + 55 AS DECIMAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

skipif mysql # not compatible

query II rowsort label-5221
SELECT ALL col0 + - ( CAST ( + 55 AS REAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + - 72 + col2 FROM tab0
................................................................................
query I rowsort
SELECT ALL + col2 + col2 + + + col0 * col2 FROM tab1
----
5088
5133
6324


query II rowsort
SELECT col0 col0, + ( + + col1 ) FROM tab2
----
46
51
64
77
................................................................................
----
-9250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( + - col2 - - col1 )
----


query II rowsort
SELECT ALL - 22 col1, col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-22
59
-22
68
................................................................................

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible

query II rowsort label-5570
SELECT ALL - CAST ( NULL AS REAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 18 IS NOT NULL )
----
................................................................................

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 8 + + SUM ( ALL + col2 ) AS col1 FROM tab2
----
129


query II rowsort
SELECT col2 + - - 79 col0, 76 * + 12 AS col0 FROM tab1
----
138
912
147
912
................................................................................
query II rowsort label-5758
SELECT - COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible

query II rowsort label-5758
SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1
----
-3
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-5765
SELECT + + CAST ( 67 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c


query II rowsort
SELECT DISTINCT + col0 col2, 21 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT MIN( col2 ) * COUNT( * ) FROM tab1
................................................................................
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col2 + + + col0 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT ALL 3 col0, 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f829e9eb95fb45ccaa031943e7fbdae9

query I rowsort
SELECT 44 * - 11 FROM tab0
................................................................................
46
NULL
64
NULL
75
NULL


query II rowsort
SELECT ALL 54 col2, + col1 AS col0 FROM tab0 AS cor0
----
54
1
54
21
................................................................................
10
630
47
2961
99
6237


query II rowsort
SELECT DISTINCT col1 col1, - 24 * + - col0 FROM tab1
----
14
1224
47
2184
................................................................................
query I rowsort
SELECT - 72 * - 36 * + 40 + col2 FROM tab2 AS cor0
----
103703
103720
103738


query II rowsort
SELECT 65 * - + 50 col2, + 60 FROM tab1 AS cor0
----
-3250
60
-3250
60
................................................................................
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----


query II rowsort
SELECT ALL - - col0 col0, + 6 * col1 FROM tab1 AS cor0
----
51
84
85
30
................................................................................
1
96
21
96
81
96


query II rowsort
SELECT DISTINCT + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
................................................................................
47
-87
10
-97
99

skipif mysql # not compatible

query II rowsort label-6967
SELECT ALL - col0 col1, + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
-15
47
-87
10
................................................................................

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 10 + - - 70 + + - COUNT ( * ) FROM tab2
----
77


query II rowsort
SELECT - col0 col0, col0 FROM tab1
----
-51
51
-85
85
................................................................................
14
89
47
61
5
52


query II rowsort
SELECT ALL + col2 col1, - 48 * + col1 FROM tab0 WHERE - + col0 * + + col1 - + col0 IS NOT NULL
----
10
-1008
47
-3888
................................................................................
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col0 NOT BETWEEN - ( col2 ) AND - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT - 8 * col0 col0, col0 FROM tab0
----
-120
15
-696
87
................................................................................
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > col0 * + + 21 ) OR NOT col1 * + 64 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT ALL 60 col1, col2 FROM tab1
----
60
59
60
68
................................................................................
query I rowsort label-7344
SELECT col2 * 6 / - + 22 AS col1 FROM tab2
----
-10
-15
-6


query II rowsort
SELECT ALL - col0 col0, col0 FROM tab0
----
-15
15
-87
87
................................................................................
47
0
10
0
99

skipif mysql # not compatible

query II rowsort label-7380
SELECT - col1 / + col0 col1, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99


query II rowsort
SELECT ALL + - col1 * + + 89 + + col0 * + - col0 col2, + col2 AS col0 FROM tab2 AS cor0
----
-10949
40
-11588
58
................................................................................
query I rowsort
SELECT - col2 + + 13 AS col0 FROM tab1 AS cor0
----
-46
-55
-83


query II rowsort
SELECT 1 + + col2 col2, + ( - - col0 ) FROM tab0 AS cor0
----
100
97
11
87
................................................................................

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - 48 + - COUNT ( * ) AS col0 FROM tab2
----
-51


query II rowsort
SELECT ALL col1 col0, + 42 * 83 FROM tab2
----
51
3486
67
3486
................................................................................
96
85
59
91
68

skipif mysql # not compatible

query II rowsort label-7538
SELECT + + CAST ( col0 AS INTEGER ) col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) + MIN ( DISTINCT - ( 66 ) ) + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-254


query II rowsort
SELECT DISTINCT ( - + col1 ) col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL


query II rowsort
SELECT DISTINCT - col2 + + 6 * col2 col1, - 62 AS col0 FROM tab0
----
235
-62
495
-62
................................................................................
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - 41 IS NULL
----


query II rowsort
SELECT DISTINCT + + col0 col2, - 42 AS col0 FROM tab2 AS cor0
----
46
-42
64
-42
................................................................................

skipif mysql # not compatible
query I rowsort label-7853
SELECT ( - + MIN ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77


query II rowsort
SELECT DISTINCT - col1 col1, 20 FROM tab1 AS cor0
----
-14
20
-47
20
................................................................................
query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT( * ) FROM tab0
----
75
-3

skipif mysql # not compatible

query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT ( * ) FROM tab0
----
75
-3

query I rowsort
................................................................................
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 IN ( - col0 / - - col2, - 9 )
----
10
47
99


query II rowsort
SELECT DISTINCT - col0 col2, - col0 * + + 15 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab0
----
................................................................................
1215
0
1827
0
97

skipif mysql # not compatible

query II rowsort label-7932
SELECT - - 6 / - + col2 col0, + col1 * col0 FROM tab0 AS cor0
----
0
1215
0
1827
................................................................................
46
-40
64
-58
75

skipif mysql # not compatible

query II rowsort label-7958
SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
................................................................................
query I rowsort
SELECT 90 * - col2 FROM tab0 AS cor0
----
-4230
-8910
-900


query II rowsort
SELECT DISTINCT - 26 col2, - ( + col2 ) * - + 42 + + col0 AS col1 FROM tab0 AS cor0
----
-26
1989
-26
4255
................................................................................

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-9


query II rowsort
SELECT DISTINCT - - col2 col1, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
................................................................................
51
7
67
7
77
7


query III rowsort
SELECT ALL - col0 col2, + col2 AS col1, + 17 FROM tab2
----
9 values hashing to 091a6fc4172f1ae94e0046f807f829a3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
................................................................................
3589

query I rowsort
SELECT DISTINCT + ( + + 23 ) AS col2 FROM tab0
----
23


query III rowsort
SELECT DISTINCT 26 col0, - col0 * + 84, + 70 AS col1 FROM tab1 AS cor0
----
9 values hashing to 4094978db01d4c322bb0afa0b1ddb963

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
................................................................................

skipif mysql # not compatible
query III rowsort label-8584
SELECT * FROM tab0 WHERE ( - + 60 * - col0 + + 6 * + + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT - 49 col2, col0 AS col1 FROM tab2
----
-49
46
-49
64
................................................................................

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + SUM ( ALL - 13 ) + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38


query II rowsort
SELECT + col0 col1, 15 * + 60 * col0 * col1 AS col2 FROM tab0 AS cor0
----
15
1093500
87
1644300
................................................................................
query II rowsort label-8832
SELECT DISTINCT + COUNT( * ) col2, 78 + 40 FROM tab2
----
3
118

skipif mysql # not compatible

query II rowsort label-8832
SELECT DISTINCT + COUNT ( * ) col2, 78 + 40 FROM tab2
----
3
118

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
query I rowsort
SELECT 90 * + ( + 91 ) FROM tab1
----
8190
8190
8190


query II rowsort
SELECT 23 + - 68 * - 84 col1, col2 FROM tab0
----
5735
10
5735
47
................................................................................
35
139
329
71
98

skipif mysql # not compatible

query II rowsort label-9791
SELECT DISTINCT + col0 + - col2 / - col1 + + + col1 col1, ( + col1 ) * CAST ( + 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
101
35
139
329
................................................................................
-46
61640
-64
77778
-75

skipif mysql # not compatible

query II rowsort label-9856
SELECT DISTINCT - 20 * + - col1 * col2 + col2 col2, - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23483
-46
61640
-64
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3


query II rowsort
SELECT + 24 col1, 28 AS col0 FROM tab1 AS cor0
----
24
28
24
28
................................................................................
query II rowsort label-9972
SELECT 58 col1, SUM( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

skipif mysql # not compatible

query II rowsort label-9972
SELECT 58 col1, SUM ( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

query I rowsort







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
....
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
....
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
....
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
....
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
....
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
....
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
....
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
....
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
.....
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
.....
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
.....
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
.....
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
.....
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
.....
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
.....
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
.....
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
.....
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
.....
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
.....
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
.....
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
.....
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
.....
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
.....
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
.....
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
.....
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
.....
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
.....
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
.....
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
.....
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
.....
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
.....
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
.....
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
.....
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
.....
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
.....
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
.....
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
.....
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
.....
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
.....
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
.....
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
.....
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
.....
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832
38833
38834
.....
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
.....
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
.....
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356
39357
39358
39359
.....
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
.....
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
.....
39688
39689
39690
39691
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
.....
41827
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
.....
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
.....
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
.....
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
.....
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
.....
45087
45088
45089
45090
45091
45092
45093
45094
45095
45096
45097
45098
45099
45100
45101
.....
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
.....
47920
47921
47922
47923
47924
47925
47926
47927
47928
47929
47930
47931
47932
47933
47934
.....
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
.....
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
.....
51002
51003
51004
51005
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015
51016
.....
51596
51597
51598
51599
51600
51601
51602
51603
51604
51605
51606
51607
51608
51609
51610
.....
52773
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785
52786
52787
.....
52852
52853
52854
52855
52856
52857
52858
52859
52860
52861
52862
52863
52864
52865
52866
.....
55001
55002
55003
55004
55005
55006
55007
55008
55009
55010
55011
55012
55013
55014
55015
.....
55918
55919
55920
55921
55922
55923
55924
55925
55926
55927
55928
55929
55930
55931
55932
.....
59333
59334
59335
59336
59337
59338
59339
59340
59341
59342
59343
59344
59345
59346
59347
.....
59455
59456
59457
59458
59459
59460
59461
59462
59463
59464
59465
59466
59467
59468
59469
.....
60849
60850
60851
60852
60853
60854
60855
60856
60857
60858
60859
60860
60861
60862
60863
.....
63447
63448
63449
63450
63451
63452
63453
63454
63455
63456
63457
63458
63459
63460
63461
.....
63667
63668
63669
63670
63671
63672
63673
63674
63675
63676
63677
63678
63679
63680
63681
.....
63838
63839
63840
63841
63842
63843
63844
63845
63846
63847
63848
63849
63850
63851
63852
.....
65378
65379
65380
65381
65382
65383
65384
65385
65386
65387
65388
65389
65390
65391
65392
.....
65444
65445
65446
65447
65448
65449
65450
65451
65452
65453
65454
65455
65456
65457
65458
.....
65890
65891
65892
65893
65894
65895
65896
65897
65898
65899
65900
65901
65902
65903
65904
.....
67059
67060
67061
67062
67063
67064
67065
67066
67067
67068
67069
67070
67071
67072
67073
.....
67374
67375
67376
67377
67378
67379
67380
67381
67382
67383
67384
67385
67386
67387
67388
67389
67390
67391
67392
67393
67394
67395
67396
67397
67398
67399
.....
67876
67877
67878
67879
67880
67881
67882
67883
67884
67885
67886
67887
67888
67889
67890
.....
68587
68588
68589
68590
68591
68592
68593
68594
68595
68596
68597
68598
68599
68600
68601
.....
68764
68765
68766
68767
68768
68769
68770
68771
68772
68773
68774
68775
68776
68777
68778
.....
68873
68874
68875
68876
68877
68878
68879
68880
68881
68882
68883
68884
68885
68886
68887
.....
69461
69462
69463
69464
69465
69466
69467
69468
69469
69470
69471
69472
69473
69474
69475
.....
70992
70993
70994
70995
70996
70997
70998
70999
71000
71001
71002
71003
71004
71005
71006
.....
71531
71532
71533
71534
71535
71536
71537
71538
71539
71540
71541
71542
71543
71544
71545
.....
71550
71551
71552
71553
71554
71555
71556
71557
71558
71559
71560
71561
71562
71563
71564
.....
72130
72131
72132
72133
72134
72135
72136
72137
72138
72139
72140
72141
72142
72143
72144
.....
72237
72238
72239
72240
72241
72242
72243
72244
72245
72246
72247
72248
72249
72250
72251
.....
72480
72481
72482
72483
72484
72485
72486
72487
72488
72489
72490
72491
72492
72493
72494
.....
73103
73104
73105
73106
73107
73108
73109
73110
73111
73112
73113
73114
73115
73116
73117
.....
76782
76783
76784
76785
76786
76787
76788
76789
76790
76791
76792
76793
76794
76795
76796
.....
76875
76876
76877
76878
76879
76880
76881
76882
76883
76884
76885
76886
76887
76888
76889
.....
77874
77875
77876
77877
77878
77879
77880
77881
77882
77883
77884
77885
77886
77887
77888
.....
78343
78344
78345
78346
78347
78348
78349
78350
78351
78352
78353
78354
78355
78356
78357
.....
79433
79434
79435
79436
79437
79438
79439
79440
79441
79442
79443
79444
79445
79446
79447
.....
80490
80491
80492
80493
80494
80495
80496
80497
80498
80499
80500
80501
80502
80503
80504
.....
82228
82229
82230
82231
82232
82233
82234
82235
82236
82237
82238
82239
82240
82241
82242
.....
89148
89149
89150
89151
89152
89153
89154
89155
89156
89157
89158
89159
89160
89161
89162
.....
89723
89724
89725
89726
89727
89728
89729
89730
89731
89732
89733
89734
89735
89736
89737
.....
90371
90372
90373
90374
90375
90376
90377
90378
90379
90380
90381
90382
90383
90384
90385
.....
90802
90803
90804
90805
90806
90807
90808
90809
90810
90811
90812
90813
90814
90815
90816

skipif mysql # not compatible
query I rowsort label-186
SELECT COUNT ( + + col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
................................................................................
72
54
72
54
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-291
SELECT + 54 col1, + CAST ( + 72 AS INTEGER ) AS col0 FROM tab2
----
54
72
54
72
................................................................................
query I rowsort
SELECT - col2 * + 92 AS col1 FROM tab0
----
-4324
-9108
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - - col0 col1, - col2 + + 58 FROM tab2
----
-1058
35
-2560
18
................................................................................

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0
----
-68
-205379
-68
-314432
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - col2 * + + col0 AS col1 FROM tab0 AS cor0
----
1
-9603
21
-870
................................................................................

skipif mysql # not compatible
query I rowsort label-580
SELECT - SUM ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, + col2 FROM tab1 AS cor0
----
59
59
59
68
................................................................................

skipif mysql # not compatible
query I rowsort label-856
SELECT + COUNT ( * ) * - - MAX ( - col2 ) AS col2 FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + 86 col0, - 54 - 11 * + col2 FROM tab0
----
-4042
-571
-8514
-1143
-860
-164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - 29 FROM tab2
----
51
-29
67
-29
................................................................................
query II rowsort label-994
SELECT COUNT( * ) col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-994
SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

query I rowsort
................................................................................
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1076
SELECT + col1 + + ( - col0 ) col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37
NULL
-44
NULL
................................................................................
query I rowsort label-1140
SELECT - CAST ( - col1 AS INTEGER ) * - col0 - + col2 AS col2 FROM tab2
----
-2369
-4968
-5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 + col2 FROM tab0
----
-10
31
-47
128
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT - SUM ( + - col0 ) * + 75 col1 FROM tab2
----
13875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col0 col2, col0 * 51 AS col0 FROM tab2
----
-17
3825
-23
2346
................................................................................
query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0 AS cor0
----
-3306
-3686
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 45 - + col2, - col1 * - + col2 col1, col1 + + col2 AS col2 FROM tab1
----
9 values hashing to 1b92f2a7bf19cb8deff0fe40cdcc21b2

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
................................................................................
13
147
9
153
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1519
SELECT col0 + + CAST ( + 62 AS INTEGER ) col0, - CAST ( - 3 AS INTEGER ) + - + col2 / - 9 FROM tab1
----
113
13
147
9
................................................................................
query II rowsort label-1539
SELECT + - COUNT( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1539
SELECT + - COUNT ( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

query I rowsort
................................................................................
-83
-1125
-83
-690
-83
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 1 * + col0 * col0 FROM tab2
----
46
-2116
64
-4096
................................................................................

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col0 ) + 21 - - col1 col2, + col2 * + 1 AS col1 FROM tab2 AS cor0
----
13
58
26
23
................................................................................
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col1 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 col1, - col1 FROM tab1
----
87
-14
87
-47
................................................................................
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + 37 col2, 49 FROM tab0 AS cor0
----
-22
49
50
49
................................................................................

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + MAX ( - + 75 ) AS col0 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 col0, + col2 + + col0 FROM tab2 AS cor0
----
33
104
33
133
................................................................................
query II rowsort label-1832
SELECT DISTINCT - 96 col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1832
SELECT DISTINCT - 96 col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-96
3

query I rowsort
................................................................................
query I rowsort label-2073
SELECT ALL - ( - col2 ) / - - 97 * col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 85 + + 86 FROM tab2 AS cor0
----
-46
171
-64
171
................................................................................
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2083
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, col0 FROM tab2
----
NULL
46
NULL
64
................................................................................
query III rowsort
SELECT * FROM tab2 WHERE 70 <= + col0
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col1, + col2 * ( 63 ) + + + col1 AS col0 FROM tab0
----
-22
3042
-22
6238
................................................................................

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE NOT - col1 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 17 col0, col0 FROM tab1
----
-17
51
-17
85
................................................................................
query I rowsort label-2456
SELECT ALL + 57 / - 14 col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 col1, col2 - - 96 * 39 AS col1 FROM tab0 AS cor0
----
60
3754
60
3791
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2710
SELECT + - SUM ( ( col0 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col1 col1, col1 AS col2 FROM tab2
----
-28
51
-37
77
................................................................................

skipif mysql # not compatible
query I rowsort label-2746
SELECT 59 * + COUNT ( * ) FROM tab2 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 col0, + ( col2 ) FROM tab1 cor0
----
9
59
9
68
................................................................................
query II rowsort label-2826
SELECT DISTINCT + COUNT( * ) col2, MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2826
SELECT DISTINCT + COUNT ( * ) col2, MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

query III rowsort
................................................................................
-2346
-46
-4928
-64
-5025
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col1 col1, 19 * - - col1 - - 14 AS col1 FROM tab1
----
1344
280
295
109
................................................................................
SELECT DISTINCT - 46 col1 FROM tab1 AS cor0 WHERE col1 * + 89 / + ( - + col1 ) + col0 IS NULL
----

query I rowsort
SELECT ALL 80 - - + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col2, - col2 * - + 91 FROM tab0 AS cor0
----
-1
4277
-1
9009
................................................................................

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - 61 / 82 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 41 col0, + 45 FROM tab2 AS cor0
----
-41
45
-41
45
................................................................................
23

query I rowsort
SELECT DISTINCT + ( + 79 ) FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 33 * + col1 FROM tab1 AS cor0
----
51
462
85
165
91
1551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69 col2, col1 AS col1 FROM tab1 AS cor0
----
69
14
69
47
................................................................................
query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort
SELECT ALL col1 * 32 AS col0 FROM tab1 cor0
----
1504
160
448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 2 ) col1, + 76 AS col2 FROM tab0 AS cor0
----
2
76

query I rowsort
................................................................................
query I rowsort label-3328
SELECT + col0 + + - col1 / + + col1 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32 col0, 65 + col0 FROM tab2
----
32
111
32
129
................................................................................
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3460
SELECT ALL + ( + col2 ) * - col1 col1, + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 54 FROM tab1
----
14
54
47
54
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST( - col1 AS SIGNED ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST ( - col1 AS INTEGER ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col1 + - - col1 * + 14
----
................................................................................
-182
-192

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - 8 + col2 FROM tab0
----
-10
2
-47
39
................................................................................

skipif mysql # not compatible
query I rowsort label-3728
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * SUM ( - col1 ) - - 77 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
................................................................................
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 FROM tab2
----
51
-23
67
-58
................................................................................
query I rowsort label-3919
SELECT + CAST ( - - 45 AS INTEGER ) AS col1 FROM tab0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 27 + + 24 FROM tab2
----
-51
51
-67
51
................................................................................
-1
-47
-1
-99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4212
SELECT DISTINCT - col2 col0, + col2 / - col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-10
-1
-47
-1
................................................................................

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 86 * 92 * - + col2 FROM tab2 AS cor0
----
46
-181976
64
-316480
................................................................................
51
64
77
75
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4247
SELECT col0 col1, CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
46
51
64
77
................................................................................
query II rowsort label-4270
SELECT COUNT( * ) col2, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4270
SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4275
SELECT col2 col1, col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4275
SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 68 + + col1 + + + col0 + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
................................................................................
query I rowsort
SELECT ALL col2 * col1 + + col0 FROM tab0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 + col2 col1, col0 AS col1 FROM tab2
----
-20
75
-38
64
................................................................................
870
-47
705
-99
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4307
SELECT - col2 col0, CAST ( - col2 AS INTEGER ) * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-10
870
-47
705
................................................................................

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - 30 + + COUNT ( * ) AS col0 FROM tab0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + 77 FROM tab2
----
46
77
64
77
................................................................................
-2944
-64
-4096
-75
-4800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4578
SELECT DISTINCT + col2 / - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2
----
-46
-2944
-64
-4096
................................................................................
query I rowsort
SELECT - col2 * - col0 - + ( + col2 ) AS col2 FROM tab1 cor0
----
4800
4956
6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43 col0, + col2 FROM tab1 cor0
----
43
59
43
68
................................................................................
query I rowsort
SELECT ALL - 91 * - ( - col2 ) FROM tab0 AS cor0
----
-4277
-9009
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + + col0 col1, col2 AS col2 FROM tab0 AS cor0
----
174
10
194
99
................................................................................
query I rowsort
SELECT DISTINCT - ( - + col2 ) - - 87 * + + 69 - col2 + + col0 + + 95 FROM tab0 AS cor0
----
6113
6185
6195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
................................................................................
query I rowsort label-4890
SELECT ALL - col0 / + - col1 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - ( + 97 ) ) col1, col0 * + col0 AS col1 FROM tab1
----
-97
2601
-97
7225
................................................................................
query I rowsort label-5144
SELECT 94 / - - 6 + + col2 * - col2 FROM tab1 AS cor0
----
-3466
-4609
-9201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 col1, col0 * - 27 + - ( - 73 ) AS col2 FROM tab2 AS cor0
----
-81
-1169
-81
-1655
................................................................................

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5221
SELECT ALL col0 + - ( CAST( + 55 AS DECIMAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5221
SELECT ALL col0 + - ( CAST ( + 55 AS REAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + - 72 + col2 FROM tab0
................................................................................
query I rowsort
SELECT ALL + col2 + col2 + + + col0 * col2 FROM tab1
----
5088
5133
6324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + ( + + col1 ) FROM tab2
----
46
51
64
77
................................................................................
----
-9250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( + - col2 - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 col1, col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-22
59
-22
68
................................................................................

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5570
SELECT ALL - CAST ( NULL AS REAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 18 IS NOT NULL )
----
................................................................................

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 8 + + SUM ( ALL + col2 ) AS col1 FROM tab2
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - 79 col0, 76 * + 12 AS col0 FROM tab1
----
138
912
147
912
................................................................................
query II rowsort label-5758
SELECT - COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5758
SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1
----
-3
3

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-5765
SELECT + + CAST ( 67 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, 21 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT MIN( col2 ) * COUNT( * ) FROM tab1
................................................................................
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col2 + + + col0 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 col0, 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f829e9eb95fb45ccaa031943e7fbdae9

query I rowsort
SELECT 44 * - 11 FROM tab0
................................................................................
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 col2, + col1 AS col0 FROM tab0 AS cor0
----
54
1
54
21
................................................................................
10
630
47
2961
99
6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 24 * + - col0 FROM tab1
----
14
1224
47
2184
................................................................................
query I rowsort
SELECT - 72 * - 36 * + 40 + col2 FROM tab2 AS cor0
----
103703
103720
103738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 * - + 50 col2, + 60 FROM tab1 AS cor0
----
-3250
60
-3250
60
................................................................................
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col0, + 6 * col1 FROM tab1 AS cor0
----
51
84
85
30
................................................................................
1
96
21
96
81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
................................................................................
47
-87
10
-97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6967
SELECT ALL - col0 col1, + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
-15
47
-87
10
................................................................................

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 10 + - - 70 + + - COUNT ( * ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 FROM tab1
----
-51
51
-85
85
................................................................................
14
89
47
61
5
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - 48 * + col1 FROM tab0 WHERE - + col0 * + + col1 - + col0 IS NOT NULL
----
10
-1008
47
-3888
................................................................................
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col0 NOT BETWEEN - ( col2 ) AND - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 * col0 col0, col0 FROM tab0
----
-120
15
-696
87
................................................................................
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > col0 * + + 21 ) OR NOT col1 * + 64 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col1, col2 FROM tab1
----
60
59
60
68
................................................................................
query I rowsort label-7344
SELECT col2 * 6 / - + 22 AS col1 FROM tab2
----
-10
-15
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col0 FROM tab0
----
-15
15
-87
87
................................................................................
47
0
10
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7380
SELECT - col1 / + col0 col1, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + + 89 + + col0 * + - col0 col2, + col2 AS col0 FROM tab2 AS cor0
----
-10949
40
-11588
58
................................................................................
query I rowsort
SELECT - col2 + + 13 AS col0 FROM tab1 AS cor0
----
-46
-55
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 + + col2 col2, + ( - - col0 ) FROM tab0 AS cor0
----
100
97
11
87
................................................................................

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - 48 + - COUNT ( * ) AS col0 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 42 * 83 FROM tab2
----
51
3486
67
3486
................................................................................
96
85
59
91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7538
SELECT + + CAST ( col0 AS INTEGER ) col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
................................................................................

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) + MIN ( DISTINCT - ( 66 ) ) + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + col1 ) col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + 6 * col2 col1, - 62 AS col0 FROM tab0
----
235
-62
495
-62
................................................................................
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - 42 AS col0 FROM tab2 AS cor0
----
46
-42
64
-42
................................................................................

skipif mysql # not compatible
query I rowsort label-7853
SELECT ( - + MIN ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, 20 FROM tab1 AS cor0
----
-14
20
-47
20
................................................................................
query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT( * ) FROM tab0
----
75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT ( * ) FROM tab0
----
75
-3

query I rowsort
................................................................................
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 IN ( - col0 / - - col2, - 9 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - col0 * + + 15 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab0
----
................................................................................
1215
0
1827
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7932
SELECT - - 6 / - + col2 col0, + col1 * col0 FROM tab0 AS cor0
----
0
1215
0
1827
................................................................................
46
-40
64
-58
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7958
SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
................................................................................
query I rowsort
SELECT 90 * - col2 FROM tab0 AS cor0
----
-4230
-8910
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col2, - ( + col2 ) * - + 42 + + col0 AS col1 FROM tab0 AS cor0
----
-26
1989
-26
4255
................................................................................

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col1, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
................................................................................
51
7
67
7
77
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col0 col2, + col2 AS col1, + 17 FROM tab2
----
9 values hashing to 091a6fc4172f1ae94e0046f807f829a3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
................................................................................
3589

query I rowsort
SELECT DISTINCT + ( + + 23 ) AS col2 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 26 col0, - col0 * + 84, + 70 AS col1 FROM tab1 AS cor0
----
9 values hashing to 4094978db01d4c322bb0afa0b1ddb963

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
................................................................................

skipif mysql # not compatible
query III rowsort label-8584
SELECT * FROM tab0 WHERE ( - + 60 * - col0 + + 6 * + + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 col2, col0 AS col1 FROM tab2
----
-49
46
-49
64
................................................................................

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + SUM ( ALL - 13 ) + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 15 * + 60 * col0 * col1 AS col2 FROM tab0 AS cor0
----
15
1093500
87
1644300
................................................................................
query II rowsort label-8832
SELECT DISTINCT + COUNT( * ) col2, 78 + 40 FROM tab2
----
3
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8832
SELECT DISTINCT + COUNT ( * ) col2, 78 + 40 FROM tab2
----
3
118

onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
query I rowsort
SELECT 90 * + ( + 91 ) FROM tab1
----
8190
8190
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 + - 68 * - 84 col1, col2 FROM tab0
----
5735
10
5735
47
................................................................................
35
139
329
71
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9791
SELECT DISTINCT + col0 + - col2 / - col1 + + + col1 col1, ( + col1 ) * CAST ( + 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
101
35
139
329
................................................................................
-46
61640
-64
77778
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9856
SELECT DISTINCT - 20 * + - col1 * col2 + col2 col2, - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23483
-46
61640
-64
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 col1, 28 AS col0 FROM tab1 AS cor0
----
24
28
24
28
................................................................................
query II rowsort label-9972
SELECT 58 col1, SUM( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9972
SELECT 58 col1, SUM ( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

query I rowsort

Changes to test/random/aggregates/slt_good_103.test.

741
742
743
744
745
746
747

748
749
750
751
752
753
754
....
1148
1149
1150
1151
1152
1153
1154

1155
1156
1157
1158
1159
1160
1161
....
2933
2934
2935
2936
2937
2938
2939

2940
2941
2942
2943
2944
2945
2946
....
5733
5734
5735
5736
5737
5738
5739

5740
5741
5742
5743
5744
5745
5746
....
7548
7549
7550
7551
7552
7553
7554

7555
7556
7557
7558
7559
7560
7561
....
8187
8188
8189
8190
8191
8192
8193

8194
8195
8196
8197
8198
8199
8200
....
8818
8819
8820
8821
8822
8823
8824

8825
8826
8827
8828
8829
8830
8831
....
9734
9735
9736
9737
9738
9739
9740

9741
9742
9743
9744
9745
9746
9747
.....
10826
10827
10828
10829
10830
10831
10832

10833
10834
10835
10836
10837
10838
10839
.....
11311
11312
11313
11314
11315
11316
11317

11318
11319
11320
11321
11322
11323
11324
.....
11678
11679
11680
11681
11682
11683
11684

11685
11686
11687
11688
11689
11690
11691
.....
14412
14413
14414
14415
14416
14417
14418

14419
14420
14421
14422
14423
14424
14425
.....
15100
15101
15102
15103
15104
15105
15106

15107
15108
15109
15110
15111
15112
15113
.....
15122
15123
15124
15125
15126
15127
15128

15129
15130
15131
15132
15133
15134
15135
.....
15250
15251
15252
15253
15254
15255
15256

15257
15258
15259
15260
15261
15262
15263
.....
15612
15613
15614
15615
15616
15617
15618

15619
15620
15621
15622
15623
15624
15625
.....
15871
15872
15873
15874
15875
15876
15877

15878
15879
15880
15881
15882
15883
15884
.....
16152
16153
16154
16155
16156
16157
16158

16159
16160
16161
16162
16163
16164
16165
.....
21825
21826
21827
21828
21829
21830
21831

21832
21833
21834
21835
21836
21837
21838
.....
22116
22117
22118
22119
22120
22121
22122

22123
22124
22125
22126
22127
22128
22129
.....
22579
22580
22581
22582
22583
22584
22585

22586
22587
22588
22589
22590
22591
22592
.....
22756
22757
22758
22759
22760
22761
22762

22763
22764
22765
22766
22767
22768
22769
.....
24034
24035
24036
24037
24038
24039
24040

24041
24042
24043
24044
24045
24046
24047
.....
26686
26687
26688
26689
26690
26691
26692

26693
26694
26695
26696
26697
26698
26699
.....
27649
27650
27651
27652
27653
27654
27655

27656
27657
27658
27659
27660
27661
27662
.....
27734
27735
27736
27737
27738
27739
27740

27741
27742
27743
27744
27745
27746
27747
.....
31640
31641
31642
31643
31644
31645
31646

31647
31648
31649
31650
31651
31652
31653
.....
34293
34294
34295
34296
34297
34298
34299

34300
34301
34302
34303
34304
34305
34306
.....
34422
34423
34424
34425
34426
34427
34428

34429
34430
34431
34432
34433
34434
34435
.....
35306
35307
35308
35309
35310
35311
35312

35313
35314
35315
35316
35317
35318
35319
.....
37145
37146
37147
37148
37149
37150
37151

37152
37153
37154
37155
37156
37157
37158
.....
37473
37474
37475
37476
37477
37478
37479

37480
37481
37482
37483
37484
37485
37486
.....
38320
38321
38322
38323
38324
38325
38326

38327
38328
38329
38330
38331
38332
38333
38334
38335
38336

38337
38338
38339
38340
38341
38342
38343
.....
38872
38873
38874
38875
38876
38877
38878

38879
38880
38881
38882
38883
38884
38885
.....
40507
40508
40509
40510
40511
40512
40513

40514
40515
40516
40517
40518
40519
40520
.....
41746
41747
41748
41749
41750
41751
41752

41753
41754
41755
41756
41757
41758
41759
.....
41896
41897
41898
41899
41900
41901
41902

41903
41904
41905
41906
41907
41908
41909
.....
43077
43078
43079
43080
43081
43082
43083

43084
43085
43086
43087
43088
43089
43090
.....
44762
44763
44764
44765
44766
44767
44768

44769
44770
44771
44772
44773
44774
44775
.....
46805
46806
46807
46808
46809
46810
46811

46812
46813
46814
46815
46816
46817
46818
.....
47013
47014
47015
47016
47017
47018
47019

47020
47021
47022
47023
47024
47025
47026
.....
48247
48248
48249
48250
48251
48252
48253

48254
48255
48256
48257
48258
48259
48260
.....
49047
49048
49049
49050
49051
49052
49053

49054
49055
49056
49057
49058
49059
49060
.....
49158
49159
49160
49161
49162
49163
49164

49165
49166
49167
49168
49169
49170
49171
.....
49525
49526
49527
49528
49529
49530
49531

49532
49533
49534
49535
49536
49537
49538
.....
50890
50891
50892
50893
50894
50895
50896

50897
50898
50899
50900
50901
50902
50903
.....
51729
51730
51731
51732
51733
51734
51735

51736
51737
51738
51739
51740
51741
51742
.....
52261
52262
52263
52264
52265
52266
52267

52268
52269
52270
52271
52272
52273
52274
.....
54956
54957
54958
54959
54960
54961
54962

54963
54964
54965
54966
54967
54968
54969
.....
55697
55698
55699
55700
55701
55702
55703

55704
55705
55706
55707
55708
55709
55710
.....
55887
55888
55889
55890
55891
55892
55893

55894
55895
55896
55897
55898
55899
55900
.....
56029
56030
56031
56032
56033
56034
56035

56036
56037
56038
56039
56040
56041
56042
.....
56925
56926
56927
56928
56929
56930
56931

56932
56933
56934
56935
56936
56937
56938
.....
59382
59383
59384
59385
59386
59387
59388

59389
59390
59391
59392
59393
59394
59395
.....
60307
60308
60309
60310
60311
60312
60313

60314
60315
60316
60317
60318
60319
60320
.....
61576
61577
61578
61579
61580
61581
61582

61583
61584
61585
61586
61587
61588
61589
.....
61808
61809
61810
61811
61812
61813
61814

61815
61816
61817
61818
61819
61820
61821
.....
62663
62664
62665
62666
62667
62668
62669

62670
62671
62672
62673
62674
62675
62676
.....
62993
62994
62995
62996
62997
62998
62999

63000
63001
63002
63003
63004
63005
63006
.....
63380
63381
63382
63383
63384
63385
63386

63387
63388
63389
63390
63391
63392
63393
.....
64622
64623
64624
64625
64626
64627
64628

64629
64630
64631
64632
64633
64634
64635
.....
65067
65068
65069
65070
65071
65072
65073

65074
65075
65076
65077
65078
65079
65080
.....
65799
65800
65801
65802
65803
65804
65805

65806
65807
65808
65809
65810
65811
65812
.....
66183
66184
66185
66186
66187
66188
66189

66190
66191
66192
66193
66194
66195
66196
.....
68110
68111
68112
68113
68114
68115
68116

68117
68118
68119
68120
68121
68122
68123
.....
68362
68363
68364
68365
68366
68367
68368

68369
68370
68371
68372
68373
68374
68375
.....
68400
68401
68402
68403
68404
68405
68406

68407
68408
68409
68410
68411
68412
68413
.....
69085
69086
69087
69088
69089
69090
69091

69092
69093
69094
69095
69096
69097
69098
.....
69103
69104
69105
69106
69107
69108
69109

69110
69111
69112
69113
69114
69115
69116
.....
70328
70329
70330
70331
70332
70333
70334

70335
70336
70337
70338
70339
70340
70341
.....
70855
70856
70857
70858
70859
70860
70861

70862
70863
70864
70865
70866
70867
70868
.....
71882
71883
71884
71885
71886
71887
71888

71889
71890
71891
71892
71893
71894
71895
.....
72691
72692
72693
72694
72695
72696
72697

72698
72699
72700
72701
72702
72703
72704
.....
72764
72765
72766
72767
72768
72769
72770

72771
72772
72773
72774
72775
72776
72777
.....
73071
73072
73073
73074
73075
73076
73077

73078
73079
73080
73081
73082
73083
73084
.....
73649
73650
73651
73652
73653
73654
73655

73656
73657
73658
73659
73660
73661
73662
.....
74275
74276
74277
74278
74279
74280
74281

74282
74283
74284
74285
74286
74287
74288
.....
74304
74305
74306
74307
74308
74309
74310

74311
74312
74313
74314
74315
74316
74317
.....
75236
75237
75238
75239
75240
75241
75242

75243
75244
75245
75246
75247
75248
75249
.....
76218
76219
76220
76221
76222
76223
76224

76225
76226
76227
76228
76229
76230
76231
.....
78764
78765
78766
78767
78768
78769
78770

78771
78772
78773
78774
78775
78776
78777
.....
79505
79506
79507
79508
79509
79510
79511

79512
79513
79514
79515
79516
79517
79518
.....
79561
79562
79563
79564
79565
79566
79567

79568
79569
79570
79571
79572
79573
79574
.....
80067
80068
80069
80070
80071
80072
80073

80074
80075
80076
80077
80078
80079
80080
.....
80636
80637
80638
80639
80640
80641
80642

80643
80644
80645
80646
80647
80648
80649
.....
81340
81341
81342
81343
81344
81345
81346

81347
81348
81349
81350
81351
81352
81353
.....
82647
82648
82649
82650
82651
82652
82653

82654
82655
82656
82657
82658
82659
82660
.....
82683
82684
82685
82686
82687
82688
82689

82690
82691
82692
82693
82694
82695
82696
.....
82900
82901
82902
82903
82904
82905
82906

82907
82908
82909
82910
82911
82912
82913
.....
83166
83167
83168
83169
83170
83171
83172

83173
83174
83175
83176
83177
83178
83179
.....
84946
84947
84948
84949
84950
84951
84952

84953
84954
84955
84956
84957
84958
84959
.....
86309
86310
86311
86312
86313
86314
86315

86316
86317
86318
86319
86320
86321
86322
.....
86471
86472
86473
86474
86475
86476
86477

86478
86479
86480
86481
86482
86483
86484
.....
87627
87628
87629
87630
87631
87632
87633

87634
87635
87636
87637
87638
87639
87640
.....
88769
88770
88771
88772
88773
88774
88775

88776
88777
88778
88779
88780
88781
88782
.....
89040
89041
89042
89043
89044
89045
89046

89047
89048
89049
89050
89051
89052
89053
query I rowsort
SELECT + 77 * - - 47 AS col1 FROM tab0 AS cor0
----
3619
3619
3619


query II rowsort
SELECT DISTINCT - col1 * + 72 col0, col2 * - 16 + - + 46 + ( + 10 ) * + 67 FROM tab2 AS cor0
----
-3672
256
-4824
-304
................................................................................
query I rowsort
SELECT ALL 90 + - 58 FROM tab2
----
32
32
32


query II rowsort
SELECT col2 col0, col2 AS col2 FROM tab0 WHERE NOT ( ( NOT - 19 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 1 * col0
----
................................................................................
4019
5558

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----


query II rowsort
SELECT ALL + - col1 * - + col2 col0, col0 + col0 AS col0 FROM tab2 AS cor0
----
1173
92
3080
128
................................................................................
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible

query II rowsort label-624
SELECT DISTINCT - col0 col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
-46
NULL
-64
NULL
................................................................................
query I rowsort label-814
SELECT ALL + + 41 / - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0


query II rowsort
SELECT col1 col0, 30 + ( + ( + 14 ) ) FROM tab0 cor0
----
1
44
21
44
................................................................................

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + - MAX ( + + ( CAST ( - ( + 7 ) AS INTEGER ) ) ) / + MIN ( - 70 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0


query II rowsort
SELECT ALL - 78 col2, - col2 AS col0 FROM tab2 AS cor0
----
-78
-23
-78
-40
................................................................................
64
-10575
64
-75690
64
-931491


query II rowsort
SELECT + + col2 col2, col0 + 92 AS col0 FROM tab0 AS cor0
----
10
179
47
107
................................................................................
skipif mysql # not compatible
query II rowsort label-1056
SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0
----
-3
-3


query II rowsort
SELECT ALL 94 col2, 56 + + ( - col2 ) + - - col0 * ( 1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL - 10 * + MAX( DISTINCT - ( + 22 ) ) FROM tab2
................................................................................

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 26 / MAX ( + 33 ) FROM tab2 AS cor0
----
0


query II rowsort
SELECT DISTINCT - 71 col1, col0 FROM tab2 AS cor0
----
-71
46
-71
64
................................................................................
47

query III rowsort
SELECT ALL * FROM tab1 WHERE + 1 NOT BETWEEN NULL AND + - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT col0 col1, + col0 - col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
................................................................................
query I rowsort
SELECT - col0 * - + col2 col1 FROM tab2
----
1058
2560
4350


query II rowsort
SELECT ALL col1 col0, 86 AS col0 FROM tab2
----
51
86
67
86
................................................................................
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 58 ) + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT 37 col2, - col2 AS col2 FROM tab0 AS cor0
----
37
-10
37
-47
................................................................................
query I rowsort label-1653
SELECT 6 / - 83 FROM tab2
----
0
0
0


query II rowsort
SELECT DISTINCT col2 * + col2 col2, col0 FROM tab0
----
100
87
2209
15
................................................................................
2
40
1
58
1

skipif mysql # not compatible

query II rowsort label-1655
SELECT + col2 col1, + col0 / + col2 FROM tab2 AS cor0
----
23
2
40
1
................................................................................
query I rowsort
SELECT DISTINCT col2 * + 5 AS col0 FROM tab1
----
295
340
480


query II rowsort
SELECT 96 col1, col1 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 * 2 AND col2
----
................................................................................
----

skipif mysql # not compatible
query III rowsort label-1705
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NOT NULL
----


query II rowsort
SELECT - col2 col1, - col1 * + - col0 FROM tab1 AS cor0
----
-59
425
-68
4277
................................................................................
----
92
-1
92
0

skipif mysql # not compatible

query II rowsort label-1736
SELECT DISTINCT 92 col0, 68 / + - col2 FROM tab1
----
92
-1
92
0
................................................................................
51
-196
85
-25
91
-2209


query II rowsort
SELECT + 80 col2, col1 FROM tab2 AS cor0
----
80
51
80
67
................................................................................
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT + + col0 col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
................................................................................

skipif mysql # not compatible
query I rowsort label-2435
SELECT 98 * + COUNT ( * ) FROM tab0
----
294


query II rowsort
SELECT DISTINCT - ( - col1 ) col1, col2 FROM tab2
----
51
23
67
58
................................................................................
query I rowsort label-2484
SELECT - 81 + - + CAST ( NULL AS INTEGER ) - col2 / + - 31 * - 33 FROM tab0 AS cor0
----
NULL
NULL
NULL


query II rowsort
SELECT ALL col1 * + col0 col1, + 67 * + col1 FROM tab0 AS cor0
----
1215
5427
1827
1407
................................................................................

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT CAST ( - 12 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
-12


query II rowsort
SELECT DISTINCT + col0 col1, col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - 68 / + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-7


query II rowsort
SELECT DISTINCT - col0 col1, col1 AS col1 FROM tab0
----
-15
81
-87
21
................................................................................
-59823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2, - col0, col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT + 15 * 30 col0, + 6 AS col2 FROM tab1
----
450
6
450
6
................................................................................
query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-21
3

skipif mysql # not compatible

query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CAST ( + - 83 AS INTEGER ) AS col0 FROM tab0
----
-83


query II rowsort
SELECT col2 col0, col0 AS col1 FROM tab0
----
10
87
47
15
................................................................................
----

query III rowsort
SELECT * FROM tab1 WHERE + 62 <> + - col1 + + col2 * - col0 / + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT + col0 col0, + col1 FROM tab2
----
46
51
64
77
................................................................................
SELECT 27 * + ( - 19 ) FROM tab1 cor0 WHERE ( + CAST ( + col0 AS INTEGER ) ) BETWEEN NULL AND ( col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----


query II rowsort
SELECT ALL 0 col1, ( - - 97 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
0
97
0
97
................................................................................
query I rowsort
SELECT DISTINCT - 22 * 11 + - + col0 FROM tab0 AS cor0
----
-257
-329
-339


query II rowsort
SELECT col1 * + - 22 col2, + col0 AS col2 FROM tab0 AS cor0
----
-1782
15
-22
97
................................................................................
query II rowsort label-3876
SELECT - 94 col1, - COUNT( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

skipif mysql # not compatible

query II rowsort label-3876
SELECT - 94 col1, - COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

onlyif mysql # aggregate syntax: 
................................................................................
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80


query II rowsort
SELECT - col0 col0, + 28 AS col0 FROM tab2
----
-46
28
-64
28
................................................................................
query I rowsort label-4115
SELECT ALL + ( - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2
----
-51
-67
-77


query II rowsort
SELECT + 13 col0, 18 AS col1 FROM tab0
----
13
18
13
18
................................................................................
query I rowsort
SELECT + col2 * + 23 col0 FROM tab1 cor0
----
1357
1564
2208


query II rowsort
SELECT 57 col0, 23 AS col0 FROM tab2 AS cor0
----
57
23
57
23
57
23


query II rowsort
SELECT ALL + col0 col1, 20 - - col2 FROM tab1 AS cor0
----
51
116
85
79
................................................................................
query II rowsort label-4279
SELECT ( + COUNT( * ) ) + + SUM( ALL + col1 ) col2, MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

skipif mysql # not compatible

query II rowsort label-4279
SELECT ( + COUNT ( * ) ) + + SUM ( ALL + col1 ) col2, MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

query I rowsort
................................................................................
51
-1173
67
-3886
77
-3080


query II rowsort
SELECT - - 73 col2, col2 + - col1 AS col0 FROM tab2 AS cor0
----
73
-28
73
-37
................................................................................
query I rowsort
SELECT DISTINCT + col1 - + 75 FROM tab2
----
-24
-8
2


query II rowsort
SELECT DISTINCT col0 col0, + col0 AS col0 FROM tab1
----
51
51
85
85
................................................................................
-769761
NULL
-769761
NULL
-769761

skipif mysql # not compatible

query II rowsort label-4609
SELECT - CAST ( NULL AS INTEGER ) col2, - 89 * + + 93 * + 93 AS col0 FROM tab1
----
NULL
-769761
NULL
-769761
................................................................................
query I rowsort label-4739
SELECT DISTINCT + col0 - + col0 + + col1 / col2 FROM tab0
----
0
1
2


query II rowsort
SELECT + 29 col2, 43 AS col0 FROM tab0
----
29
43
29
43
................................................................................
query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) FROM tab2
----
46
64
75


query II rowsort
SELECT col0 * + col2 col0, + col1 FROM tab0
----
705
81
870
21
................................................................................
----

skipif mysql # not compatible
query III rowsort label-5150
SELECT * FROM tab0 WHERE ( + + col1 ) < CAST ( col1 AS REAL )
----


query II rowsort
SELECT + col0 + - col2 col0, col1 FROM tab1
----
-45
14
23
47
................................................................................
----
0
-36
5
-36

skipif mysql # not compatible

query II rowsort label-5174
SELECT DISTINCT + col1 + - col1 / - col0 + - col1 col2, - 36 FROM tab0
----
0
-36
5
-36
................................................................................
NULL
73
NULL
73
NULL

skipif mysql # not compatible

query II rowsort label-5302
SELECT col0 - - 73 - + + col0 col1, + CAST ( NULL AS REAL ) + 54 - + - 69 FROM tab2 AS cor0
----
73
NULL
73
NULL
................................................................................
70
NULL
70
NULL
70

skipif mysql # not compatible

query II rowsort label-5386
SELECT - col0 * + CAST ( NULL AS INTEGER ) col0, 70 FROM tab0
----
NULL
70
NULL
70
................................................................................
74
14
74
14
74
14


query II rowsort
SELECT + col0 col0, - col1 FROM tab2
----
46
-51
64
-77
................................................................................
query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

skipif mysql # not compatible

query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

onlyif mysql # aggregate syntax: 
................................................................................
120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - ( col1 ) + col2 NOT BETWEEN NULL AND - 23 + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT - - col2 col0, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
................................................................................
133
69

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NULL <> - + col0 * - - col2
----


query II rowsort
SELECT ALL col0 col1, + col2 AS col1 FROM tab0
----
15
47
87
10
................................................................................
query II rowsort label-5757
SELECT ALL - COUNT( * ) col0, + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-3
3

skipif mysql # not compatible

query II rowsort label-5757
SELECT ALL - COUNT ( * ) col0, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3
3

query I rowsort
................................................................................
skipif mysql # not compatible
query II rowsort label-6051
SELECT 26, - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
26
51


query II rowsort
SELECT + 98 col0, col0 AS col2 FROM tab0 AS cor0
----
98
15
98
87
................................................................................
----
38

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----


query II rowsort
SELECT + col1 * 45 * + col0 col1, - col0 AS col0 FROM tab2
----
105570
-46
221760
-64
................................................................................
query II rowsort label-6155
SELECT ALL + CAST( NULL AS DECIMAL ) * MAX( + + 8 ) + 45 col2, - COUNT( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST( col1 AS SIGNED ), + col1, - 52 )
----
NULL
-3

skipif mysql # not compatible

query II rowsort label-6155
SELECT ALL + CAST ( NULL AS REAL ) * MAX ( + + 8 ) + 45 col2, - COUNT ( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST ( col1 AS INTEGER ), + col1, - 52 )
----
NULL
-3

query I rowsort
................................................................................
-2284
-64
-3506
-75
-3036

skipif mysql # not compatible

query II rowsort label-6167
SELECT - col0 col1, 83 + + + 69 - 39 - col1 * CAST ( 47 AS INTEGER ) AS col0 FROM tab2
----
-46
-2284
-64
-3506
................................................................................
10

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT 50 col0, col0 FROM tab0 AS cor0
----
50
15
50
87
................................................................................
query I rowsort
SELECT DISTINCT 81 * + ( - - col0 ) FROM tab2
----
3726
5184
6075


query II rowsort
SELECT DISTINCT col1 * - col1 col0, col1 FROM tab1
----
-196
14
-2209
47
................................................................................
query II rowsort label-6653
SELECT DISTINCT - COUNT( * ) col1, SUM( ALL + col0 ) * 40 FROM tab0
----
-3
7960

skipif mysql # not compatible

query II rowsort label-6653
SELECT DISTINCT - COUNT ( * ) col1, SUM ( ALL + col0 ) * 40 FROM tab0
----
-3
7960

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
skipif mysql # not compatible
query II rowsort label-6790
SELECT 13, 16 / + - MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
13
0


query II rowsort
SELECT 7 * + 0 col1, - col2 AS col2 FROM tab0
----
0
-10
0
-47
................................................................................
query II rowsort label-6814
SELECT DISTINCT COUNT( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

skipif mysql # not compatible

query II rowsort label-6814
SELECT DISTINCT COUNT ( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

query I rowsort
................................................................................
query II rowsort label-6911
SELECT + - COUNT( * ) col0, 34 FROM tab2 AS cor0
----
-3
34

skipif mysql # not compatible

query II rowsort label-6911
SELECT + - COUNT ( * ) col0, 34 FROM tab2 AS cor0
----
-3
34

query III rowsort
................................................................................
15
-1
87
-1
97

skipif mysql # not compatible

query II rowsort label-6954
SELECT + col1 / + - col1 col1, + ( col0 ) FROM tab0
----
-1
15
-1
87
................................................................................
-46
64
-64
75
-75

skipif mysql # not compatible

query II rowsort label-6992
SELECT col0 col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
46
-46
64
-64
................................................................................
NULL
46
NULL
46
NULL

skipif mysql # not compatible

query II rowsort label-7138
SELECT + 46 col2, + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
46
NULL
46
NULL
................................................................................
query II rowsort label-7187
SELECT - 60 col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60
3

skipif mysql # not compatible

query II rowsort label-7187
SELECT - 60 col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
query II rowsort label-7262
SELECT ALL 56 col0, COUNT( * ) AS col1 FROM tab2
----
56
3

skipif mysql # not compatible

query II rowsort label-7262
SELECT ALL 56 col0, COUNT ( * ) AS col1 FROM tab2
----
56
3

onlyif mysql # aggregate syntax: 
................................................................................
0
125
0
74
-1

skipif mysql # not compatible

query II rowsort label-7301
SELECT ALL + col1 - - col2 col1, + 47 / - col0 AS col0 FROM tab2
----
117
0
125
0
................................................................................
query II rowsort label-7513
SELECT ALL COUNT( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

skipif mysql # not compatible

query II rowsort label-7513
SELECT ALL COUNT ( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

onlyif mysql # aggregate syntax: 
................................................................................
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 * col0 )
----


query II rowsort
SELECT DISTINCT + + ( + - col1 ) col2, col0 * + col1 * + 19 AS col2 FROM tab1 AS cor0
----
-14
13566
-47
81263
................................................................................
query II rowsort label-7547
SELECT ALL - - MIN( DISTINCT col0 ) col0, + MAX( - 50 ) DIV - + 4 FROM tab2 AS cor0
----
46
12

skipif mysql # not compatible

query II rowsort label-7547
SELECT ALL - - MIN ( DISTINCT col0 ) col0, + MAX ( - 50 ) / - + 4 FROM tab2 AS cor0
----
46
12

query I rowsort
................................................................................
query I rowsort label-7623
SELECT + col2 * col1 * CAST ( + 7 AS INTEGER ) * 98 FROM tab2 cor0
----
2112880
2665796
804678


query II rowsort
SELECT ALL + 78 col0, + col1 + + + 74 FROM tab1 AS cor0
----
78
121
78
79
................................................................................
query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT( * ) FROM tab1 AS cor0
----
13
3

skipif mysql # not compatible

query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT ( * ) FROM tab1 AS cor0
----
13
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
................................................................................
77
141

query I rowsort
SELECT - ( - 89 ) FROM tab1 WHERE NOT NULL IS NULL
----


query II rowsort
SELECT col0 * + - 37 * col2 col2, + 94 FROM tab1
----
-181152
94
-185555
94
................................................................................
query II rowsort label-7799
SELECT - ( SUM( - - col2 ) ) col0, SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible

query II rowsort label-7799
SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

query I rowsort
................................................................................
-49
45
-49
45
-49

skipif mysql # not compatible

query II rowsort label-7915
SELECT 45 col2, - ( - col0 ) / 43 / col0 + - 49 AS col0 FROM tab2
----
45
-49
45
-49
................................................................................
query I rowsort
SELECT 95 + + - 62 - + 32 AS col0 FROM tab1 AS cor0
----
1
1
1


query II rowsort
SELECT DISTINCT + col0 + - col0 col1, col1 FROM tab2 AS cor0
----
0
51
0
67
................................................................................
21
-2209
81
-9801
1

skipif mysql # not compatible

query II rowsort label-8005
SELECT - col2 * col2 col1, ( - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
................................................................................
0
-20
0
-20
0

skipif mysql # not compatible

query II rowsort label-8035
SELECT ALL + col1 / + col0 - + 20 col0, - col0 + col0 FROM tab0
----
-15
0
-20
0
................................................................................
2
NULL
2
NULL
2
NULL


query II rowsort
SELECT col1 col1, 52 AS col2 FROM tab1
----
14
52
47
52
................................................................................
query I rowsort label-8162
SELECT - + 25 / - col2 + - 50 * - 61 AS col1 FROM tab0 cor0
----
3050
3050
3052


query II rowsort
SELECT - col0 col1, + 67 AS col0 FROM tab2
----
-46
67
-64
67
................................................................................
query I rowsort
SELECT 36 * - col0 AS col2 FROM tab0
----
-3132
-3492
-540


query II rowsort
SELECT - col2 col0, 83 * + + 70 FROM tab2
----
-23
5810
-40
5810
................................................................................

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL


query II rowsort
SELECT DISTINCT - 49 col1, - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab1 cor0
................................................................................
query I rowsort
SELECT ALL 51 + + ( - col2 ) FROM tab0 cor0
----
-48
4
41


query II rowsort
SELECT - + col0 * - - col2 col0, - 29 AS col1 FROM tab0 AS cor0
----
-705
-29
-870
-29
................................................................................
75
1
64
2
46

skipif mysql # not compatible

query II rowsort label-8649
SELECT + + 57 / col2 col1, + col0 AS col1 FROM tab2 AS cor0
----
0
75
1
64
................................................................................

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - ( - ( + - 19 ) ) * + - ( + AVG ( DISTINCT + col0 ) ) + + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL


query II rowsort
SELECT col2 - + - 95 * + + col2 col2, - col2 + - col0 FROM tab0
----
4512
-62
9504
-196
................................................................................
query II rowsort label-8739
SELECT ALL + + COUNT( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

skipif mysql # not compatible

query II rowsort label-8739
SELECT ALL + + COUNT ( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-8801
SELECT - COUNT( * ) col1, - 16 DIV + 59 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible

query II rowsort label-8801
SELECT - COUNT ( * ) col1, - 16 / + 59 FROM tab2 cor0
----
-3
0

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM( + - col2 ) FROM tab0
----
87
-156

skipif mysql # not compatible

query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM ( + - col2 ) FROM tab0
----
87
-156

query III rowsort
................................................................................
25
159
25
188
25

skipif mysql # not compatible

query II rowsort label-8945
SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 / - col1 col0, 25 AS col0 FROM tab2
----
124
25
159
25
................................................................................
1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL
----


query II rowsort
SELECT DISTINCT col1 col0, col2 AS col2 FROM tab1
----
14
96
47
68
................................................................................

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - COUNT ( * ) * 76 FROM tab2 AS cor0
----
-228


query II rowsort
SELECT 88 col2, ( - - col1 ) FROM tab1 AS cor0
----
88
14
88
47
................................................................................
query II rowsort label-9123
SELECT + ( + MAX( + - col0 ) ) col0, COUNT( * ) + + COUNT( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

skipif mysql # not compatible

query II rowsort label-9123
SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

onlyif mysql # DIV for integer division: 
................................................................................
174
NULL
194
NULL
30
NULL


query II rowsort
SELECT DISTINCT + - col0 + + 99 col1, ( + col0 ) AS col0 FROM tab0 cor0
----
12
87
2
97
................................................................................
query II rowsort label-9351
SELECT + - COUNT( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

skipif mysql # not compatible

query II rowsort label-9351
SELECT + - COUNT ( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

query I rowsort
................................................................................
query II rowsort label-9501
SELECT - 19 - + - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

skipif mysql # not compatible

query II rowsort label-9501
SELECT - 19 - + - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

query II rowsort
................................................................................
-104
NULL
-121
NULL
-139

skipif mysql # not compatible

query II rowsort label-9514
SELECT + + CAST ( NULL AS REAL ) col0, - ( + 81 ) + + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-104
NULL
-121
................................................................................
----
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - ( - - col1 ) + - + 52 + - col1 / - col0
----


query II rowsort
SELECT DISTINCT + col1 * + 26 col2, - col0 * - + col2 + - col1 FROM tab2
----
1326
1007
1742
4283
................................................................................
query II rowsort label-9769
SELECT DISTINCT - COUNT( * ) col1, + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

skipif mysql # not compatible

query II rowsort label-9769
SELECT DISTINCT - COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

query II rowsort
................................................................................
query II rowsort label-9800
SELECT - 6 col0, + COUNT( * ) FROM tab0
----
-6
3

skipif mysql # not compatible

query II rowsort label-9800
SELECT - 6 col0, + COUNT ( * ) FROM tab0
----
-6
3

query I rowsort







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
....
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
....
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
....
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
....
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
....
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
....
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
....
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
.....
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
.....
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
.....
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
.....
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
.....
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
.....
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
.....
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
.....
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
.....
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
.....
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
.....
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
.....
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
.....
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
.....
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
.....
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
.....
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
.....
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
.....
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
.....
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
.....
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
.....
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
.....
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
.....
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
.....
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
.....
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
.....
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
.....
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
.....
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
.....
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
.....
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
.....
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
.....
46845
46846
46847
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859
.....
47054
47055
47056
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
.....
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
.....
49090
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100
49101
49102
49103
49104
.....
49202
49203
49204
49205
49206
49207
49208
49209
49210
49211
49212
49213
49214
49215
49216
.....
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
49581
49582
49583
49584
.....
50936
50937
50938
50939
50940
50941
50942
50943
50944
50945
50946
50947
50948
50949
50950
.....
51776
51777
51778
51779
51780
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
.....
52309
52310
52311
52312
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
.....
55005
55006
55007
55008
55009
55010
55011
55012
55013
55014
55015
55016
55017
55018
55019
.....
55747
55748
55749
55750
55751
55752
55753
55754
55755
55756
55757
55758
55759
55760
55761
.....
55938
55939
55940
55941
55942
55943
55944
55945
55946
55947
55948
55949
55950
55951
55952
.....
56081
56082
56083
56084
56085
56086
56087
56088
56089
56090
56091
56092
56093
56094
56095
.....
56978
56979
56980
56981
56982
56983
56984
56985
56986
56987
56988
56989
56990
56991
56992
.....
59436
59437
59438
59439
59440
59441
59442
59443
59444
59445
59446
59447
59448
59449
59450
.....
60362
60363
60364
60365
60366
60367
60368
60369
60370
60371
60372
60373
60374
60375
60376
.....
61632
61633
61634
61635
61636
61637
61638
61639
61640
61641
61642
61643
61644
61645
61646
.....
61865
61866
61867
61868
61869
61870
61871
61872
61873
61874
61875
61876
61877
61878
61879
.....
62721
62722
62723
62724
62725
62726
62727
62728
62729
62730
62731
62732
62733
62734
62735
.....
63052
63053
63054
63055
63056
63057
63058
63059
63060
63061
63062
63063
63064
63065
63066
.....
63440
63441
63442
63443
63444
63445
63446
63447
63448
63449
63450
63451
63452
63453
63454
.....
64683
64684
64685
64686
64687
64688
64689
64690
64691
64692
64693
64694
64695
64696
64697
.....
65129
65130
65131
65132
65133
65134
65135
65136
65137
65138
65139
65140
65141
65142
65143
.....
65862
65863
65864
65865
65866
65867
65868
65869
65870
65871
65872
65873
65874
65875
65876
.....
66247
66248
66249
66250
66251
66252
66253
66254
66255
66256
66257
66258
66259
66260
66261
.....
68175
68176
68177
68178
68179
68180
68181
68182
68183
68184
68185
68186
68187
68188
68189
.....
68428
68429
68430
68431
68432
68433
68434
68435
68436
68437
68438
68439
68440
68441
68442
.....
68467
68468
68469
68470
68471
68472
68473
68474
68475
68476
68477
68478
68479
68480
68481
.....
69153
69154
69155
69156
69157
69158
69159
69160
69161
69162
69163
69164
69165
69166
69167
.....
69172
69173
69174
69175
69176
69177
69178
69179
69180
69181
69182
69183
69184
69185
69186
.....
70398
70399
70400
70401
70402
70403
70404
70405
70406
70407
70408
70409
70410
70411
70412
.....
70926
70927
70928
70929
70930
70931
70932
70933
70934
70935
70936
70937
70938
70939
70940
.....
71954
71955
71956
71957
71958
71959
71960
71961
71962
71963
71964
71965
71966
71967
71968
.....
72764
72765
72766
72767
72768
72769
72770
72771
72772
72773
72774
72775
72776
72777
72778
.....
72838
72839
72840
72841
72842
72843
72844
72845
72846
72847
72848
72849
72850
72851
72852
.....
73146
73147
73148
73149
73150
73151
73152
73153
73154
73155
73156
73157
73158
73159
73160
.....
73725
73726
73727
73728
73729
73730
73731
73732
73733
73734
73735
73736
73737
73738
73739
.....
74352
74353
74354
74355
74356
74357
74358
74359
74360
74361
74362
74363
74364
74365
74366
.....
74382
74383
74384
74385
74386
74387
74388
74389
74390
74391
74392
74393
74394
74395
74396
.....
75315
75316
75317
75318
75319
75320
75321
75322
75323
75324
75325
75326
75327
75328
75329
.....
76298
76299
76300
76301
76302
76303
76304
76305
76306
76307
76308
76309
76310
76311
76312
.....
78845
78846
78847
78848
78849
78850
78851
78852
78853
78854
78855
78856
78857
78858
78859
.....
79587
79588
79589
79590
79591
79592
79593
79594
79595
79596
79597
79598
79599
79600
79601
.....
79644
79645
79646
79647
79648
79649
79650
79651
79652
79653
79654
79655
79656
79657
79658
.....
80151
80152
80153
80154
80155
80156
80157
80158
80159
80160
80161
80162
80163
80164
80165
.....
80721
80722
80723
80724
80725
80726
80727
80728
80729
80730
80731
80732
80733
80734
80735
.....
81426
81427
81428
81429
81430
81431
81432
81433
81434
81435
81436
81437
81438
81439
81440
.....
82734
82735
82736
82737
82738
82739
82740
82741
82742
82743
82744
82745
82746
82747
82748
.....
82771
82772
82773
82774
82775
82776
82777
82778
82779
82780
82781
82782
82783
82784
82785
.....
82989
82990
82991
82992
82993
82994
82995
82996
82997
82998
82999
83000
83001
83002
83003
.....
83256
83257
83258
83259
83260
83261
83262
83263
83264
83265
83266
83267
83268
83269
83270
.....
85037
85038
85039
85040
85041
85042
85043
85044
85045
85046
85047
85048
85049
85050
85051
.....
86401
86402
86403
86404
86405
86406
86407
86408
86409
86410
86411
86412
86413
86414
86415
.....
86564
86565
86566
86567
86568
86569
86570
86571
86572
86573
86574
86575
86576
86577
86578
.....
87721
87722
87723
87724
87725
87726
87727
87728
87729
87730
87731
87732
87733
87734
87735
.....
88864
88865
88866
88867
88868
88869
88870
88871
88872
88873
88874
88875
88876
88877
88878
.....
89136
89137
89138
89139
89140
89141
89142
89143
89144
89145
89146
89147
89148
89149
89150
query I rowsort
SELECT + 77 * - - 47 AS col1 FROM tab0 AS cor0
----
3619
3619
3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + 72 col0, col2 * - 16 + - + 46 + ( + 10 ) * + 67 FROM tab2 AS cor0
----
-3672
256
-4824
-304
................................................................................
query I rowsort
SELECT ALL 90 + - 58 FROM tab2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col2 FROM tab0 WHERE NOT ( ( NOT - 19 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 1 * col0
----
................................................................................
4019
5558

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * - + col2 col0, col0 + col0 AS col0 FROM tab2 AS cor0
----
1173
92
3080
128
................................................................................
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-624
SELECT DISTINCT - col0 col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
-46
NULL
-64
NULL
................................................................................
query I rowsort label-814
SELECT ALL + + 41 / - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 30 + ( + ( + 14 ) ) FROM tab0 cor0
----
1
44
21
44
................................................................................

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + - MAX ( + + ( CAST ( - ( + 7 ) AS INTEGER ) ) ) / + MIN ( - 70 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 col2, - col2 AS col0 FROM tab2 AS cor0
----
-78
-23
-78
-40
................................................................................
64
-10575
64
-75690
64
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, col0 + 92 AS col0 FROM tab0 AS cor0
----
10
179
47
107
................................................................................
skipif mysql # not compatible
query II rowsort label-1056
SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col2, 56 + + ( - col2 ) + - - col0 * ( 1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL - 10 * + MAX( DISTINCT - ( + 22 ) ) FROM tab2
................................................................................

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 26 / MAX ( + 33 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 71 col1, col0 FROM tab2 AS cor0
----
-71
46
-71
64
................................................................................
47

query III rowsort
SELECT ALL * FROM tab1 WHERE + 1 NOT BETWEEN NULL AND + - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col0 - col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
................................................................................
query I rowsort
SELECT - col0 * - + col2 col1 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 86 AS col0 FROM tab2
----
51
86
67
86
................................................................................
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 58 ) + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col2, - col2 AS col2 FROM tab0 AS cor0
----
37
-10
37
-47
................................................................................
query I rowsort label-1653
SELECT 6 / - 83 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col2 col2, col0 FROM tab0
----
100
87
2209
15
................................................................................
2
40
1
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1655
SELECT + col2 col1, + col0 / + col2 FROM tab2 AS cor0
----
23
2
40
1
................................................................................
query I rowsort
SELECT DISTINCT col2 * + 5 AS col0 FROM tab1
----
295
340
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 col1, col1 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 * 2 AND col2
----
................................................................................
----

skipif mysql # not compatible
query III rowsort label-1705
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col1 * + - col0 FROM tab1 AS cor0
----
-59
425
-68
4277
................................................................................
----
92
-1
92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1736
SELECT DISTINCT 92 col0, 68 / + - col2 FROM tab1
----
92
-1
92
0
................................................................................
51
-196
85
-25
91
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 col2, col1 FROM tab2 AS cor0
----
80
51
80
67
................................................................................
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
................................................................................

skipif mysql # not compatible
query I rowsort label-2435
SELECT 98 * + COUNT ( * ) FROM tab0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ) col1, col2 FROM tab2
----
51
23
67
58
................................................................................
query I rowsort label-2484
SELECT - 81 + - + CAST ( NULL AS INTEGER ) - col2 / + - 31 * - 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col0 col1, + 67 * + col1 FROM tab0 AS cor0
----
1215
5427
1827
1407
................................................................................

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT CAST ( - 12 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - 68 / + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 AS col1 FROM tab0
----
-15
81
-87
21
................................................................................
-59823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2, - col0, col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 * 30 col0, + 6 AS col2 FROM tab1
----
450
6
450
6
................................................................................
query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
................................................................................

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CAST ( + - 83 AS INTEGER ) AS col0 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 AS col1 FROM tab0
----
10
87
47
15
................................................................................
----

query III rowsort
SELECT * FROM tab1 WHERE + 62 <> + - col1 + + col2 * - col0 / + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col1 FROM tab2
----
46
51
64
77
................................................................................
SELECT 27 * + ( - 19 ) FROM tab1 cor0 WHERE ( + CAST ( + col0 AS INTEGER ) ) BETWEEN NULL AND ( col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 col1, ( - - 97 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
0
97
0
97
................................................................................
query I rowsort
SELECT DISTINCT - 22 * 11 + - + col0 FROM tab0 AS cor0
----
-257
-329
-339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - 22 col2, + col0 AS col2 FROM tab0 AS cor0
----
-1782
15
-22
97
................................................................................
query II rowsort label-3876
SELECT - 94 col1, - COUNT( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3876
SELECT - 94 col1, - COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

onlyif mysql # aggregate syntax: 
................................................................................
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + 28 AS col0 FROM tab2
----
-46
28
-64
28
................................................................................
query I rowsort label-4115
SELECT ALL + ( - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 col0, 18 AS col1 FROM tab0
----
13
18
13
18
................................................................................
query I rowsort
SELECT + col2 * + 23 col0 FROM tab1 cor0
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col0, 23 AS col0 FROM tab2 AS cor0
----
57
23
57
23
57
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 20 - - col2 FROM tab1 AS cor0
----
51
116
85
79
................................................................................
query II rowsort label-4279
SELECT ( + COUNT( * ) ) + + SUM( ALL + col1 ) col2, MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4279
SELECT ( + COUNT ( * ) ) + + SUM ( ALL + col1 ) col2, MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

query I rowsort
................................................................................
51
-1173
67
-3886
77
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 73 col2, col2 + - col1 AS col0 FROM tab2 AS cor0
----
73
-28
73
-37
................................................................................
query I rowsort
SELECT DISTINCT + col1 - + 75 FROM tab2
----
-24
-8
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + col0 AS col0 FROM tab1
----
51
51
85
85
................................................................................
-769761
NULL
-769761
NULL
-769761

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4609
SELECT - CAST ( NULL AS INTEGER ) col2, - 89 * + + 93 * + 93 AS col0 FROM tab1
----
NULL
-769761
NULL
-769761
................................................................................
query I rowsort label-4739
SELECT DISTINCT + col0 - + col0 + + col1 / col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 col2, 43 AS col0 FROM tab0
----
29
43
29
43
................................................................................
query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col2 col0, + col1 FROM tab0
----
705
81
870
21
................................................................................
----

skipif mysql # not compatible
query III rowsort label-5150
SELECT * FROM tab0 WHERE ( + + col1 ) < CAST ( col1 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col2 col0, col1 FROM tab1
----
-45
14
23
47
................................................................................
----
0
-36
5
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5174
SELECT DISTINCT + col1 + - col1 / - col0 + - col1 col2, - 36 FROM tab0
----
0
-36
5
-36
................................................................................
NULL
73
NULL
73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5302
SELECT col0 - - 73 - + + col0 col1, + CAST ( NULL AS REAL ) + 54 - + - 69 FROM tab2 AS cor0
----
73
NULL
73
NULL
................................................................................
70
NULL
70
NULL
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5386
SELECT - col0 * + CAST ( NULL AS INTEGER ) col0, 70 FROM tab0
----
NULL
70
NULL
70
................................................................................
74
14
74
14
74
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col1 FROM tab2
----
46
-51
64
-77
................................................................................
query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

onlyif mysql # aggregate syntax: 
................................................................................
120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - ( col1 ) + col2 NOT BETWEEN NULL AND - 23 + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
................................................................................
133
69

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NULL <> - + col0 * - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col2 AS col1 FROM tab0
----
15
47
87
10
................................................................................
query II rowsort label-5757
SELECT ALL - COUNT( * ) col0, + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5757
SELECT ALL - COUNT ( * ) col0, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3
3

query I rowsort
................................................................................
skipif mysql # not compatible
query II rowsort label-6051
SELECT 26, - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
26
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 98 col0, col0 AS col2 FROM tab0 AS cor0
----
98
15
98
87
................................................................................
----
38

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 45 * + col0 col1, - col0 AS col0 FROM tab2
----
105570
-46
221760
-64
................................................................................
query II rowsort label-6155
SELECT ALL + CAST( NULL AS DECIMAL ) * MAX( + + 8 ) + 45 col2, - COUNT( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST( col1 AS SIGNED ), + col1, - 52 )
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6155
SELECT ALL + CAST ( NULL AS REAL ) * MAX ( + + 8 ) + 45 col2, - COUNT ( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST ( col1 AS INTEGER ), + col1, - 52 )
----
NULL
-3

query I rowsort
................................................................................
-2284
-64
-3506
-75
-3036

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6167
SELECT - col0 col1, 83 + + + 69 - 39 - col1 * CAST ( 47 AS INTEGER ) AS col0 FROM tab2
----
-46
-2284
-64
-3506
................................................................................
10

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col0, col0 FROM tab0 AS cor0
----
50
15
50
87
................................................................................
query I rowsort
SELECT DISTINCT 81 * + ( - - col0 ) FROM tab2
----
3726
5184
6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1 col0, col1 FROM tab1
----
-196
14
-2209
47
................................................................................
query II rowsort label-6653
SELECT DISTINCT - COUNT( * ) col1, SUM( ALL + col0 ) * 40 FROM tab0
----
-3
7960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6653
SELECT DISTINCT - COUNT ( * ) col1, SUM ( ALL + col0 ) * 40 FROM tab0
----
-3
7960

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
skipif mysql # not compatible
query II rowsort label-6790
SELECT 13, 16 / + - MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
13
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 * + 0 col1, - col2 AS col2 FROM tab0
----
0
-10
0
-47
................................................................................
query II rowsort label-6814
SELECT DISTINCT COUNT( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6814
SELECT DISTINCT COUNT ( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

query I rowsort
................................................................................
query II rowsort label-6911
SELECT + - COUNT( * ) col0, 34 FROM tab2 AS cor0
----
-3
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6911
SELECT + - COUNT ( * ) col0, 34 FROM tab2 AS cor0
----
-3
34

query III rowsort
................................................................................
15
-1
87
-1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6954
SELECT + col1 / + - col1 col1, + ( col0 ) FROM tab0
----
-1
15
-1
87
................................................................................
-46
64
-64
75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6992
SELECT col0 col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
46
-46
64
-64
................................................................................
NULL
46
NULL
46
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7138
SELECT + 46 col2, + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
46
NULL
46
NULL
................................................................................
query II rowsort label-7187
SELECT - 60 col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7187
SELECT - 60 col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
query II rowsort label-7262
SELECT ALL 56 col0, COUNT( * ) AS col1 FROM tab2
----
56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7262
SELECT ALL 56 col0, COUNT ( * ) AS col1 FROM tab2
----
56
3

onlyif mysql # aggregate syntax: 
................................................................................
0
125
0
74
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7301
SELECT ALL + col1 - - col2 col1, + 47 / - col0 AS col0 FROM tab2
----
117
0
125
0
................................................................................
query II rowsort label-7513
SELECT ALL COUNT( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7513
SELECT ALL COUNT ( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

onlyif mysql # aggregate syntax: 
................................................................................
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + - col1 ) col2, col0 * + col1 * + 19 AS col2 FROM tab1 AS cor0
----
-14
13566
-47
81263
................................................................................
query II rowsort label-7547
SELECT ALL - - MIN( DISTINCT col0 ) col0, + MAX( - 50 ) DIV - + 4 FROM tab2 AS cor0
----
46
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7547
SELECT ALL - - MIN ( DISTINCT col0 ) col0, + MAX ( - 50 ) / - + 4 FROM tab2 AS cor0
----
46
12

query I rowsort
................................................................................
query I rowsort label-7623
SELECT + col2 * col1 * CAST ( + 7 AS INTEGER ) * 98 FROM tab2 cor0
----
2112880
2665796
804678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 78 col0, + col1 + + + 74 FROM tab1 AS cor0
----
78
121
78
79
................................................................................
query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT( * ) FROM tab1 AS cor0
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT ( * ) FROM tab1 AS cor0
----
13
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
................................................................................
77
141

query I rowsort
SELECT - ( - 89 ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - 37 * col2 col2, + 94 FROM tab1
----
-181152
94
-185555
94
................................................................................
query II rowsort label-7799
SELECT - ( SUM( - - col2 ) ) col0, SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7799
SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

query I rowsort
................................................................................
-49
45
-49
45
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7915
SELECT 45 col2, - ( - col0 ) / 43 / col0 + - 49 AS col0 FROM tab2
----
45
-49
45
-49
................................................................................
query I rowsort
SELECT 95 + + - 62 - + 32 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col0 col1, col1 FROM tab2 AS cor0
----
0
51
0
67
................................................................................
21
-2209
81
-9801
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8005
SELECT - col2 * col2 col1, ( - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
................................................................................
0
-20
0
-20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8035
SELECT ALL + col1 / + col0 - + 20 col0, - col0 + col0 FROM tab0
----
-15
0
-20
0
................................................................................
2
NULL
2
NULL
2
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 52 AS col2 FROM tab1
----
14
52
47
52
................................................................................
query I rowsort label-8162
SELECT - + 25 / - col2 + - 50 * - 61 AS col1 FROM tab0 cor0
----
3050
3050
3052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 67 AS col0 FROM tab2
----
-46
67
-64
67
................................................................................
query I rowsort
SELECT 36 * - col0 AS col2 FROM tab0
----
-3132
-3492
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 83 * + + 70 FROM tab2
----
-23
5810
-40
5810
................................................................................

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 col1, - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab1 cor0
................................................................................
query I rowsort
SELECT ALL 51 + + ( - col2 ) FROM tab0 cor0
----
-48
4
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * - - col2 col0, - 29 AS col1 FROM tab0 AS cor0
----
-705
-29
-870
-29
................................................................................
75
1
64
2
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8649
SELECT + + 57 / col2 col1, + col0 AS col1 FROM tab2 AS cor0
----
0
75
1
64
................................................................................

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - ( - ( + - 19 ) ) * + - ( + AVG ( DISTINCT + col0 ) ) + + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + - 95 * + + col2 col2, - col2 + - col0 FROM tab0
----
4512
-62
9504
-196
................................................................................
query II rowsort label-8739
SELECT ALL + + COUNT( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8739
SELECT ALL + + COUNT ( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-8801
SELECT - COUNT( * ) col1, - 16 DIV + 59 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8801
SELECT - COUNT ( * ) col1, - 16 / + 59 FROM tab2 cor0
----
-3
0

onlyif mysql # aggregate syntax: 
................................................................................
query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM( + - col2 ) FROM tab0
----
87
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM ( + - col2 ) FROM tab0
----
87
-156

query III rowsort
................................................................................
25
159
25
188
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8945
SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 / - col1 col0, 25 AS col0 FROM tab2
----
124
25
159
25
................................................................................
1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 AS col2 FROM tab1
----
14
96
47
68
................................................................................

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - COUNT ( * ) * 76 FROM tab2 AS cor0
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col2, ( - - col1 ) FROM tab1 AS cor0
----
88
14
88
47
................................................................................
query II rowsort label-9123
SELECT + ( + MAX( + - col0 ) ) col0, COUNT( * ) + + COUNT( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9123
SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

onlyif mysql # DIV for integer division: 
................................................................................
174
NULL
194
NULL
30
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 + + 99 col1, ( + col0 ) AS col0 FROM tab0 cor0
----
12
87
2
97
................................................................................
query II rowsort label-9351
SELECT + - COUNT( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9351
SELECT + - COUNT ( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

query I rowsort
................................................................................
query II rowsort label-9501
SELECT - 19 - + - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9501
SELECT - 19 - + - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

query II rowsort
................................................................................
-104
NULL
-121
NULL
-139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9514
SELECT + + CAST ( NULL AS REAL ) col0, - ( + 81 ) + + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-104
NULL
-121
................................................................................
----
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - ( - - col1 ) + - + 52 + - col1 / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + 26 col2, - col0 * - + col2 + - col1 FROM tab2
----
1326
1007
1742
4283
................................................................................
query II rowsort label-9769
SELECT DISTINCT - COUNT( * ) col1, + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9769
SELECT DISTINCT - COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

query II rowsort
................................................................................
query II rowsort label-9800
SELECT - 6 col0, + COUNT( * ) FROM tab0
----
-6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9800
SELECT - 6 col0, + COUNT ( * ) FROM tab0
----
-6
3

query I rowsort

Changes to test/random/aggregates/slt_good_104.test.

161
162
163
164
165
166
167

168
169
170
171
172
173
174
....
3246
3247
3248
3249
3250
3251
3252

3253
3254
3255
3256
3257
3258
3259
....
3322
3323
3324
3325
3326
3327
3328

3329
3330
3331
3332
3333
3334
3335
....
4800
4801
4802
4803
4804
4805
4806

4807
4808
4809
4810
4811
4812
4813
....
9112
9113
9114
9115
9116
9117
9118

9119
9120
9121
9122
9123
9124
9125
....
9710
9711
9712
9713
9714
9715
9716

9717
9718
9719
9720
9721
9722
9723
.....
11378
11379
11380
11381
11382
11383
11384

11385
11386
11387
11388
11389
11390
11391
11392
11393
11394

11395
11396
11397
11398
11399
11400
11401
.....
12128
12129
12130
12131
12132
12133
12134

12135
12136
12137
12138
12139
12140
12141
.....
13267
13268
13269
13270
13271
13272
13273

13274
13275
13276
13277
13278
13279
13280
.....
13556
13557
13558
13559
13560
13561
13562

13563
13564
13565
13566
13567
13568
13569
.....
13609
13610
13611
13612
13613
13614
13615

13616
13617
13618
13619
13620
13621
13622
.....
13703
13704
13705
13706
13707
13708
13709

13710
13711
13712
13713
13714
13715
13716
.....
14861
14862
14863
14864
14865
14866
14867

14868
14869
14870
14871
14872
14873
14874
.....
15440
15441
15442
15443
15444
15445
15446

15447
15448
15449
15450
15451
15452
15453
.....
15630
15631
15632
15633
15634
15635
15636

15637
15638
15639
15640
15641
15642
15643
.....
15929
15930
15931
15932
15933
15934
15935

15936
15937
15938
15939
15940
15941
15942
.....
16229
16230
16231
16232
16233
16234
16235

16236
16237
16238
16239
16240
16241
16242
.....
17145
17146
17147
17148
17149
17150
17151

17152
17153
17154
17155
17156
17157
17158
.....
17259
17260
17261
17262
17263
17264
17265

17266
17267
17268
17269
17270
17271
17272
.....
17374
17375
17376
17377
17378
17379
17380

17381
17382
17383
17384
17385
17386
17387
.....
19163
19164
19165
19166
19167
19168
19169

19170
19171
19172
19173
19174
19175
19176
.....
19241
19242
19243
19244
19245
19246
19247

19248
19249
19250
19251
19252
19253
19254
.....
20054
20055
20056
20057
20058
20059
20060

20061
20062
20063
20064
20065
20066
20067
.....
20158
20159
20160
20161
20162
20163
20164

20165
20166
20167
20168
20169
20170
20171
.....
21299
21300
21301
21302
21303
21304
21305

21306
21307
21308
21309
21310
21311
21312
.....
21371
21372
21373
21374
21375
21376
21377

21378
21379
21380
21381
21382
21383
21384
.....
22130
22131
22132
22133
22134
22135
22136

22137
22138
22139
22140
22141
22142
22143
.....
22193
22194
22195
22196
22197
22198
22199

22200
22201
22202
22203
22204
22205
22206
.....
23764
23765
23766
23767
23768
23769
23770

23771
23772
23773
23774
23775
23776
23777
.....
24337
24338
24339
24340
24341
24342
24343

24344
24345
24346
24347
24348
24349
24350
.....
24928
24929
24930
24931
24932
24933
24934

24935
24936
24937
24938
24939
24940
24941
.....
25866
25867
25868
25869
25870
25871
25872

25873
25874
25875
25876
25877
25878
25879
.....
26969
26970
26971
26972
26973
26974
26975

26976
26977
26978
26979
26980
26981
26982
.....
27291
27292
27293
27294
27295
27296
27297

27298
27299
27300
27301
27302
27303
27304
.....
27747
27748
27749
27750
27751
27752
27753

27754
27755
27756
27757
27758
27759
27760
.....
27927
27928
27929
27930
27931
27932
27933

27934
27935
27936
27937
27938
27939
27940
.....
28371
28372
28373
28374
28375
28376
28377

28378
28379
28380
28381
28382
28383
28384
.....
28952
28953
28954
28955
28956
28957
28958

28959
28960
28961
28962
28963
28964
28965
.....
29399
29400
29401
29402
29403
29404
29405

29406
29407
29408
29409
29410
29411
29412
.....
29589
29590
29591
29592
29593
29594
29595

29596
29597
29598
29599
29600
29601
29602
.....
29825
29826
29827
29828
29829
29830
29831

29832
29833
29834
29835
29836
29837
29838
.....
32075
32076
32077
32078
32079
32080
32081

32082
32083
32084
32085
32086
32087
32088
.....
32775
32776
32777
32778
32779
32780
32781

32782
32783
32784
32785
32786
32787
32788
.....
33646
33647
33648
33649
33650
33651
33652

33653
33654
33655
33656
33657
33658
33659
.....
34355
34356
34357
34358
34359
34360
34361

34362
34363
34364
34365
34366
34367
34368
.....
35901
35902
35903
35904
35905
35906
35907

35908
35909
35910
35911
35912
35913
35914
.....
35948
35949
35950
35951
35952
35953
35954

35955
35956
35957
35958
35959
35960
35961
.....
36477
36478
36479
36480
36481
36482
36483

36484
36485
36486
36487
36488
36489
36490
.....
37003
37004
37005
37006
37007
37008
37009

37010
37011
37012
37013
37014
37015
37016
.....
37048
37049
37050
37051
37052
37053
37054

37055
37056
37057
37058
37059
37060
37061
.....
38011
38012
38013
38014
38015
38016
38017

38018
38019
38020
38021
38022
38023
38024
.....
38490
38491
38492
38493
38494
38495
38496

38497
38498
38499
38500
38501
38502
38503
.....
38879
38880
38881
38882
38883
38884
38885

38886
38887
38888
38889
38890
38891
38892
.....
39417
39418
39419
39420
39421
39422
39423

39424
39425
39426
39427
39428
39429
39430
.....
39581
39582
39583
39584
39585
39586
39587

39588
39589
39590
39591
39592
39593
39594
.....
40664
40665
40666
40667
40668
40669
40670

40671
40672
40673
40674
40675
40676
40677
.....
40905
40906
40907
40908
40909
40910
40911

40912
40913
40914
40915
40916
40917
40918
.....
41208
41209
41210
41211
41212
41213
41214

41215
41216
41217
41218
41219
41220
41221
.....
42540
42541
42542
42543
42544
42545
42546

42547
42548
42549
42550
42551
42552
42553
.....
42898
42899
42900
42901
42902
42903
42904

42905
42906
42907
42908
42909
42910
42911
.....
43484
43485
43486
43487
43488
43489
43490

43491
43492
43493
43494
43495
43496
43497
.....
43998
43999
44000
44001
44002
44003
44004

44005
44006
44007
44008
44009
44010
44011
.....
45578
45579
45580
45581
45582
45583
45584

45585
45586
45587
45588
45589
45590
45591
.....
45800
45801
45802
45803
45804
45805
45806

45807
45808
45809
45810
45811
45812
45813
.....
46327
46328
46329
46330
46331
46332
46333

46334
46335
46336
46337
46338
46339
46340
.....
46587
46588
46589
46590
46591
46592
46593

46594
46595
46596
46597
46598
46599
46600
.....
47925
47926
47927
47928
47929
47930
47931

47932
47933
47934
47935
47936
47937
47938
.....
48149
48150
48151
48152
48153
48154
48155

48156
48157
48158
48159
48160
48161
48162
.....
48296
48297
48298
48299
48300
48301
48302

48303
48304
48305
48306
48307
48308
48309
.....
48621
48622
48623
48624
48625
48626
48627

48628
48629
48630
48631
48632
48633
48634
.....
48916
48917
48918
48919
48920
48921
48922

48923
48924
48925
48926
48927
48928
48929
.....
49098
49099
49100
49101
49102
49103
49104

49105
49106
49107
49108
49109
49110
49111
.....
50069
50070
50071
50072
50073
50074
50075

50076
50077
50078
50079
50080
50081
50082
.....
50322
50323
50324
50325
50326
50327
50328

50329
50330
50331
50332
50333
50334
50335
.....
50805
50806
50807
50808
50809
50810
50811

50812
50813
50814
50815
50816
50817
50818
.....
53025
53026
53027
53028
53029
53030
53031

53032
53033
53034
53035
53036
53037
53038
.....
53402
53403
53404
53405
53406
53407
53408

53409
53410
53411
53412
53413
53414
53415
.....
53830
53831
53832
53833
53834
53835
53836

53837
53838
53839
53840
53841
53842
53843
.....
53888
53889
53890
53891
53892
53893
53894

53895
53896
53897
53898
53899
53900
53901
.....
55726
55727
55728
55729
55730
55731
55732

55733
55734
55735
55736
55737
55738
55739
.....
57748
57749
57750
57751
57752
57753
57754

57755
57756
57757
57758
57759
57760
57761
.....
58694
58695
58696
58697
58698
58699
58700

58701
58702
58703
58704
58705
58706
58707
.....
59676
59677
59678
59679
59680
59681
59682

59683
59684
59685
59686
59687
59688
59689
.....
60337
60338
60339
60340
60341
60342
60343

60344
60345
60346
60347
60348
60349
60350
.....
62367
62368
62369
62370
62371
62372
62373

62374
62375
62376
62377
62378
62379
62380
.....
63906
63907
63908
63909
63910
63911
63912

63913
63914
63915
63916
63917
63918
63919
.....
66657
66658
66659
66660
66661
66662
66663

66664
66665
66666
66667
66668
66669
66670
.....
71203
71204
71205
71206
71207
71208
71209

71210
71211
71212
71213
71214
71215
71216
.....
71788
71789
71790
71791
71792
71793
71794

71795
71796
71797
71798
71799
71800
71801
.....
72367
72368
72369
72370
72371
72372
72373

72374
72375
72376
72377
72378
72379
72380
.....
74374
74375
74376
74377
74378
74379
74380

74381
74382
74383
74384
74385
74386
74387
74388
74389
74390

74391
74392
74393
74394
74395
74396
74397
.....
75023
75024
75025
75026
75027
75028
75029

75030
75031
75032
75033
75034
75035
75036
.....
75142
75143
75144
75145
75146
75147
75148

75149
75150
75151
75152
75153
75154
75155
.....
75261
75262
75263
75264
75265
75266
75267

75268
75269
75270
75271
75272
75273
75274
.....
75287
75288
75289
75290
75291
75292
75293

75294
75295
75296
75297
75298
75299
75300
.....
76015
76016
76017
76018
76019
76020
76021

76022
76023
76024
76025
76026
76027
76028
.....
76762
76763
76764
76765
76766
76767
76768

76769
76770
76771
76772
76773
76774
76775
.....
78386
78387
78388
78389
78390
78391
78392

78393
78394
78395
78396
78397
78398
78399
78400
78401
78402

78403
78404
78405
78406
78407
78408
78409
.....
78411
78412
78413
78414
78415
78416
78417

78418
78419
78420
78421
78422
78423
78424
.....
78740
78741
78742
78743
78744
78745
78746

78747
78748
78749
78750
78751
78752
78753
.....
78889
78890
78891
78892
78893
78894
78895

78896
78897
78898
78899
78900
78901
78902
.....
79150
79151
79152
79153
79154
79155
79156

79157
79158
79159
79160
79161
79162
79163
.....
79297
79298
79299
79300
79301
79302
79303

79304
79305
79306
79307
79308
79309
79310
.....
80131
80132
80133
80134
80135
80136
80137

80138
80139
80140
80141
80142
80143
80144
.....
80270
80271
80272
80273
80274
80275
80276

80277
80278
80279
80280
80281
80282
80283
.....
80312
80313
80314
80315
80316
80317
80318

80319
80320
80321
80322
80323
80324
80325
.....
82282
82283
82284
82285
82286
82287
82288

82289
82290
82291
82292
82293
82294
82295
.....
83049
83050
83051
83052
83053
83054
83055

83056
83057
83058
83059
83060
83061
83062
.....
83107
83108
83109
83110
83111
83112
83113

83114
83115
83116
83117
83118
83119
83120
.....
86481
86482
86483
86484
86485
86486
86487

86488
86489
86490
86491
86492
86493
86494
.....
86736
86737
86738
86739
86740
86741
86742

86743
86744
86745
86746
86747
86748
86749
.....
86990
86991
86992
86993
86994
86995
86996

86997
86998
86999
87000
87001
87002
87003
.....
87355
87356
87357
87358
87359
87360
87361

87362
87363
87364
87365
87366
87367
87368
.....
90935
90936
90937
90938
90939
90940
90941

90942
90943
90944
90945
90946
90947
90948
-27
59
-27
68
-27
96


query II rowsort
SELECT 30 col2, - 38 FROM tab1
----
30
-38
30
-38
................................................................................
----
5727

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE - col2 > NULL
----


query II rowsort
SELECT ALL col0 col0, + col1 * col0 FROM tab2
----
46
2346
64
4928
................................................................................
query II rowsort label-365
SELECT COUNT( ALL col1 ) col1, 81 FROM tab1
----
3
81

skipif mysql # not compatible

query II rowsort label-365
SELECT COUNT ( ALL col1 ) col1, 81 FROM tab1
----
3
81

query III rowsort
................................................................................
query II rowsort label-527
SELECT + COUNT( * ) col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

skipif mysql # not compatible

query II rowsort label-527
SELECT + COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

query III rowsort
................................................................................
query II rowsort label-991
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif mysql # not compatible

query II rowsort label-991
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
----
-79

query I rowsort
SELECT + - col2 AS col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----


query II rowsort
SELECT DISTINCT - + col1 + + 20 col0, + 1 AS col2 FROM tab0 AS cor0
----
-1
1
-61
1
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 30 IS NULL
----


query II rowsort
SELECT ALL col2 col2, + col2 + + col0 FROM tab1 AS cor0
----
59
144
68
159
96
147


query II rowsort
SELECT DISTINCT + ( - col1 ) col0, + col0 * + - 12 AS col2 FROM tab1 AS cor0
----
-14
-612
-47
-1092
................................................................................
query I rowsort
SELECT ALL ( - 2 ) * col1 + - col1 * ( - - 97 ) + + + col1 + - col2 AS col2 FROM tab2
----
-5021
-6624
-7586


query II rowsort
SELECT col0 col0, 2 FROM tab0
----
15
2
87
2
................................................................................
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT ALL - col0 * - 56 col1, - 71 - col1 AS col1 FROM tab1
----
2856
-85
4760
-76
................................................................................
15
81
47
97
1
99


query II rowsort
SELECT DISTINCT 44 col0, col2 AS col2 FROM tab0 AS cor0
----
44
10
44
47
................................................................................
query I rowsort
SELECT - ( - 92 ) col1 FROM tab0
----
92
92
92


query II rowsort
SELECT ALL + - col1 * + col2 + + col0 + + 26 - - + col2 + - - col1 col2, - col1 FROM tab2 AS cor0
----
-1027
-51
-2873
-77
................................................................................
query I rowsort
SELECT + col1 - - ( ( 46 ) ) FROM tab0
----
127
47
67


query II rowsort
SELECT DISTINCT col2 col0, 67 AS col2 FROM tab0
----
10
67
47
67
................................................................................
query II rowsort label-1634
SELECT DISTINCT 47 col0, - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2
----
47
NULL

skipif mysql # not compatible

query II rowsort label-1634
SELECT DISTINCT 47 col0, - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2
----
47
NULL

query I rowsort
................................................................................
NULL
4081
NULL
4081
NULL

skipif mysql # not compatible

query II rowsort label-1696
SELECT + 53 * + 77 col1, - CAST ( NULL AS INTEGER ) * col0 FROM tab1 WHERE NULL IS NULL
----
4081
NULL
4081
NULL
................................................................................
51
94
85
94
91
94


query II rowsort
SELECT col2 col0, 7 FROM tab1
----
59
7
68
7
................................................................................
1
-12
1
-30
1

skipif mysql # not compatible

query II rowsort label-1747
SELECT - 76 + col0 col1, - col0 / - + col0 FROM tab2 AS cor0
----
-1
1
-12
1
................................................................................

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL COUNT ( * ) / - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + 81 + - - col1 / col2 + - col0 - - 51 )
----
0


query II rowsort
SELECT DISTINCT col2 * + col0 col2, col0 AS col2 FROM tab2
----
1058
46
2560
64
................................................................................
9660

query I rowsort
SELECT 24 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef


query II rowsort
SELECT 36 col0, 35 AS col0 FROM tab0
----
36
35
36
35
................................................................................
1
NULL
21
NULL
81

skipif mysql # not compatible

query II rowsort label-1884
SELECT ALL - col1 + col2 + + ( + - col2 ) * CAST ( NULL AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
................................................................................
query I rowsort
SELECT ALL + + col2 + 92 * + 45 AS col1 FROM tab0 AS cor0
----
4150
4187
4239


query II rowsort
SELECT + - col1 col0, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................
query II rowsort label-2092
SELECT ALL + COUNT( * ) DIV + - MAX( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

skipif mysql # not compatible

query II rowsort label-2092
SELECT ALL + COUNT ( * ) / + - MAX ( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

onlyif mysql # DIV for integer division: 
................................................................................
-177

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7


query II rowsort
SELECT DISTINCT + col2 col2, col1 AS col1 FROM tab0
----
10
21
47
81
................................................................................
query II rowsort label-2186
SELECT COUNT( * ) col0, + 84 AS col2 FROM tab0
----
3
84

skipif mysql # not compatible

query II rowsort label-2186
SELECT COUNT ( * ) col0, + 84 AS col2 FROM tab0
----
3
84

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-2194
SELECT ALL + 60 col2, COUNT( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

skipif mysql # not compatible

query II rowsort label-2194
SELECT ALL + 60 col2, COUNT ( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

onlyif mysql # aggregate syntax: 
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST( NULL AS SIGNED ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible

query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
................................................................................

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - + COUNT ( + col0 ) FROM tab1 AS cor0
----
-3


query II rowsort
SELECT DISTINCT + col2 col0, + col1 * + - col0 FROM tab0
----
10
-1827
47
-1215
................................................................................

skipif mysql # not compatible
query I rowsort label-2402
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL


query II rowsort
SELECT ALL - 16 col1, col2 AS col0 FROM tab0
----
-16
10
-16
47
................................................................................

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - 27 * + 85 * + COUNT ( * ) AS col2 FROM tab2
----
-6885


query II rowsort
SELECT col1 col2, col2 AS col0 FROM tab0
----
1
99
21
10
................................................................................
9463

query I rowsort
SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE ( NOT - 73 <> NULL )
----
NULL


query II rowsort
SELECT DISTINCT col0 * + + 8 col1, col1 + - col2 AS col1 FROM tab1
----
408
-82
680
-54
................................................................................
query I rowsort label-2656
SELECT ALL + 33 / - 54 FROM tab1
----
0
0
0


query II rowsort
SELECT DISTINCT 96 col2, col2 AS col2 FROM tab0
----
96
10
96
47
................................................................................
query II rowsort label-2721
SELECT MAX( - - col0 ) col1, + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

skipif mysql # not compatible

query II rowsort label-2721
SELECT MAX ( - - col0 ) col1, + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

query I rowsort
................................................................................
0
NULL
0
NULL
0

skipif mysql # not compatible

query II rowsort label-2821
SELECT - CAST ( NULL AS INTEGER ) col1, col0 + - col0 FROM tab0
----
NULL
0
NULL
0
................................................................................

skipif mysql # not compatible
query I rowsort label-2944
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL


query II rowsort
SELECT ALL - col0 + - col2 col0, col0 AS col1 FROM tab2
----
-104
64
-133
75
................................................................................
-43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT 81 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1


query II rowsort
SELECT - 15 + col1 col2, 89 FROM tab0 AS cor0
----
-14
89
6
89
................................................................................
query I rowsort
SELECT ALL col1 * + 83 FROM tab2
----
4233
5561
6391


query II rowsort
SELECT - col1 col0, 52 FROM tab0 AS cor0
----
-1
52
-21
52
................................................................................
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 72
----


query II rowsort
SELECT + + col2 col1, 75 FROM tab2 AS cor0
----
23
75
40
75
................................................................................

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL


query II rowsort
SELECT ALL 72 col0, col0 + - - col2 FROM tab1
----
72
144
72
147
................................................................................

skipif mysql # not compatible
query I rowsort label-3164
SELECT COUNT ( * ) / - 85 FROM tab1
----
0


query II rowsort
SELECT - 43 col0, - col0 - + col0 FROM tab1
----
-43
-102
-43
-170
................................................................................
query I rowsort
SELECT ( + col1 ) + + col2 * col0 * - - 95 FROM tab2
----
100561
243277
413317


query II rowsort
SELECT DISTINCT + 51 * col0 col0, - 25 AS col2 FROM tab2
----
2346
-25
3264
-25
................................................................................
query I rowsort label-3239
SELECT - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL
NULL
NULL


query II rowsort
SELECT ALL + col0 col0, + 23 FROM tab0
----
15
23
87
23
................................................................................
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * ( ( + col1 ) ) = 88
----


query II rowsort
SELECT 1 col1, 67 AS col2 FROM tab0
----
1
67
1
67
................................................................................
query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25


query II rowsort
SELECT ALL ( + + ( - + col0 ) ) col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
................................................................................
query I rowsort label-3593
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL


query II rowsort
SELECT DISTINCT - 89 col1, - col2 AS col2 FROM tab1 AS cor0
----
-89
-59
-89
-68
................................................................................

skipif mysql # not compatible
query I rowsort label-3683
SELECT + MIN ( DISTINCT 10 ) AS col1 FROM tab0 WHERE NULL < NULL
----
NULL


query II rowsort
SELECT - 24 col2, + 37 - - col2 + + col2 FROM tab1
----
-24
155
-24
173
................................................................................
97
32
15
55
87

skipif mysql # not compatible

query II rowsort label-3752
SELECT DISTINCT col2 - + - CAST ( - + col1 AS INTEGER ) + + 66 col2, ( col0 ) FROM tab0
----
164
97
32
15
................................................................................
47
5

query I rowsort
SELECT - + col0 + 66 FROM tab0 AS cor0 WHERE NOT 3 / + 34 <= NULL
----


query II rowsort
SELECT DISTINCT - col1 + col2 col1, + col0 * + col2 + + + 14 AS col1 FROM tab0 cor0
----
-11
884
-34
719
................................................................................
query I rowsort
SELECT 66 + - col2 * + + col1 AS col2 FROM tab1
----
-1278
-229
-3130


query II rowsort
SELECT DISTINCT + + col1 col2, col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + + 17 + + - col2 AS col1, - col0 + 74 - col1 FROM tab0 AS cor0
----
................................................................................
-961
40
-2437
58
-4237

skipif mysql # not compatible

query II rowsort label-4003
SELECT + col2 col0, + 46 + - - col1 + CAST ( - - col0 AS INTEGER ) * - col2 FROM tab2
----
23
-961
40
-2437
................................................................................
0
10
0
10
0
10


query II rowsort
SELECT - col0 col1, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
................................................................................
NULL
-2400
NULL
-3480
NULL

skipif mysql # not compatible

query II rowsort label-4065
SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1380
NULL
-2400
NULL
................................................................................
22
23
22
40
22
58


query II rowsort
SELECT DISTINCT col2 col2, + 4 FROM tab2
----
23
4
40
4
................................................................................
query II rowsort label-4216
SELECT + + COUNT( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

skipif mysql # not compatible

query II rowsort label-4216
SELECT + + COUNT ( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

query I rowsort
................................................................................
359

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col1 < + col2
----
-97


query II rowsort
SELECT - - 0 + - col1 col0, - col1 + col0 + + col0 * + 68 + - - col2 AS col1 FROM tab2 AS cor0
----
-51
3146
-67
5166
................................................................................
query I rowsort label-4320
SELECT ALL - 67 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL


query II rowsort
SELECT 75 col2, + col0 * + 89 FROM tab1 AS cor0
----
75
4539
75
7565
................................................................................
query II rowsort label-4337
SELECT MIN( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

skipif mysql # not compatible

query II rowsort label-4337
SELECT MIN ( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

query III rowsort
................................................................................
0
150
0
92
0

skipif mysql # not compatible

query II rowsort label-4456
SELECT ALL + col0 + col0 col2, col2 / - col0 AS col2 FROM tab2
----
128
0
150
0
................................................................................
SELECT - - CAST ( - col0 AS REAL ) AS col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----


query II rowsort
SELECT DISTINCT ( - col1 ) col2, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
................................................................................
query I rowsort
SELECT ALL - col1 * + - ( 12 ) - - 41 * - col1 * - col1 FROM tab0 AS cor0
----
18333
269973
53


query II rowsort
SELECT + 85 col2, - ( + col1 ) FROM tab2 cor0
----
85
-51
85
-67
................................................................................

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + - COUNT ( * ) * - 44 FROM tab0 WHERE + 23 <> + 87 + col2 * 38
----
132


query II rowsort
SELECT col1 + col1 - col0 + - - ( + + col1 ) col0, 59 * - 79 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NOT - col0 IS NULL
----
................................................................................
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----


query II rowsort
SELECT + col2 * - 59 col2, + 48 FROM tab0 AS cor0
----
-2773
48
-5841
48
................................................................................
1
78
2
78
3

skipif mysql # not compatible

query II rowsort label-4757
SELECT 78 col0, ( + 88 ) / col2 FROM tab2 AS cor0
----
78
1
78
2
................................................................................
-1
-34
-2
-34
0

skipif mysql # not compatible

query II rowsort label-4816
SELECT + - 34 col2, 46 / - col2 FROM tab2 AS cor0
----
-34
-1
-34
-2
................................................................................

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( MAX ( DISTINCT - - ( - col0 ) ) ) FROM tab1
----
-51


query II rowsort
SELECT + col1 col1, + col0 + - 13 FROM tab2
----
51
33
67
62
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible

query II rowsort label-5003
SELECT DISTINCT col2 col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT ( - 47 ) * COUNT ( * ) AS col2 FROM tab0
----
-141


query II rowsort
SELECT ALL + 0 * + col0 * + - col0 col0, + col2 FROM tab0
----
0
10
0
47
................................................................................
19
NULL
19
NULL
19

skipif mysql # not compatible

query II rowsort label-5089
SELECT + - CAST ( NULL AS INTEGER ) col1, - 33 + 52 FROM tab0 AS cor0
----
NULL
19
NULL
19
................................................................................
31
67
31
77
31

skipif mysql # not compatible

query II rowsort label-5233
SELECT + col1 col1, CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
----
51
31
67
31
................................................................................

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + AVG ( - 82 ) * - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / 47 FROM tab1 WHERE col0 IS NULL
----
NULL


query II rowsort
SELECT 99 col2, - col0 * + 51 * col1 FROM tab2 WHERE NOT + 65 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5258
SELECT DISTINCT - CAST( - 75 AS SIGNED ), COUNT( * ) + + - ( - COUNT( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2
................................................................................
NULL
24
NULL
24
NULL
24


query II rowsort
SELECT col1 col0, col2 AS col2 FROM tab0
----
1
99
21
10
................................................................................
-1469
-5225
-2774
-5225
-4283

skipif mysql # not compatible

query II rowsort label-5305
SELECT 95 * - 55 col2, CAST ( - CAST ( + + 42 AS INTEGER ) AS INTEGER ) * - col1 + + + 25 + col2 * - 51 FROM tab1
----
-5225
-1469
-5225
-2774
................................................................................
query II rowsort label-5341
SELECT ALL COUNT( * ) col0, 87 FROM tab0
----
3
87

skipif mysql # not compatible

query II rowsort label-5341
SELECT ALL COUNT ( * ) col0, 87 FROM tab0
----
3
87

onlyif mysql # aggregate syntax: 
................................................................................
----
0
40
1
40

skipif mysql # not compatible

query II rowsort label-5361
SELECT DISTINCT 28 / + col2 col0, + 40 AS col1 FROM tab2
----
0
40
1
40
................................................................................

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL


query II rowsort
SELECT 22 + 24 col2, col1 + + 21 FROM tab1 AS cor0
----
46
26
46
35
................................................................................
query I rowsort label-5491
SELECT ALL - col2 * + - col0 + - ( - CAST ( NULL AS INTEGER ) ) + - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL


query II rowsort
SELECT DISTINCT + ( + col2 ) col2, - col2 * - + col2 + - 21 FROM tab0 AS cor0 WHERE NOT col1 / + + 15 * col0 IN ( + - col2, + col0 * + + col1 + - + col2 * + col2 * col2 * + col1 + + - 48 )
----
10
79
47
2188
................................................................................
query I rowsort
SELECT 90 FROM tab0 WHERE NOT + 64 IS NULL
----
90
90
90


query II rowsort
SELECT + 84 col0, col1 AS col2 FROM tab2
----
84
51
84
67
................................................................................

skipif mysql # not compatible
query I rowsort label-5790
SELECT - 9 * - - COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-27


query II rowsort
SELECT ALL col1 col1, col0 FROM tab2 cor0
----
51
46
67
75
................................................................................
query I rowsort
SELECT ALL - + col2 * - + col0 + - - col2 AS col1 FROM tab2 cor0
----
1081
2600
4408


query II rowsort
SELECT ( col2 ) col2, col1 + - col0 FROM tab1 AS cor0
----
59
-80
68
-44
................................................................................
0
NULL
1
NULL
3

skipif mysql # not compatible

query II rowsort label-5878
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + 47 * CAST ( NULL AS INTEGER ) col1, col2 / + col0 FROM tab0 AS cor0
----
NULL
0
NULL
1
................................................................................
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 AS col1 FROM tab1
----
295885
420784
470016


query II rowsort
SELECT DISTINCT col0 * 39 col1, 84 FROM tab0
----
3393
84
3783
84
................................................................................
-51
48
-67
48
-77
48


query II rowsort
SELECT DISTINCT + col2 col2, - 84 + + 20 FROM tab0
----
10
-64
47
-64
................................................................................
-15
1
-24
1
-52

skipif mysql # not compatible

query II rowsort label-6311
SELECT DISTINCT 72 / + 48 col2, - col2 + + 44 FROM tab1
----
1
-15
1
-24
................................................................................
-14
47
-47
5
-5

skipif mysql # not compatible

query II rowsort label-6411
SELECT ALL + col1 col0, + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
-14
47
-47
................................................................................
query II rowsort label-6515
SELECT ALL - COUNT( * ) col1, 94 AS col2 FROM tab0
----
-3
94

skipif mysql # not compatible

query II rowsort label-6515
SELECT ALL - COUNT ( * ) col1, 94 AS col2 FROM tab0
----
-3
94

query IIIIII rowsort
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible

query II rowsort label-6588
SELECT ALL col0 col0, 22 * - ( + - ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
................................................................................
query I rowsort
SELECT + 81 * + col0 col0 FROM tab1
----
4131
6885
7371


query II rowsort
SELECT col0 col1, col0 AS col1 FROM tab2
----
46
46
64
64
................................................................................
query I rowsort
SELECT ALL + - 4 * + + 97 + + + col1 col0 FROM tab0 AS cor0
----
-307
-367
-387


query II rowsort
SELECT DISTINCT 75 col1, - col0 FROM tab2 AS cor0
----
75
-46
75
-64
................................................................................

query II rowsort
SELECT DISTINCT - 95, + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-95
0


query II rowsort
SELECT + col0 col1, col2 FROM tab2 AS cor0
----
46
23
64
40
................................................................................
query II rowsort label-7817
SELECT ALL - 72 + + - SUM( ALL - col0 ) col0, + COUNT( - ( + col1 ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
127
9

skipif mysql # not compatible

query II rowsort label-7817
SELECT ALL - 72 + + - SUM ( ALL - col0 ) col0, + COUNT ( - ( + col1 ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
127
9

query I rowsort
................................................................................
query II rowsort label-7883
SELECT ( + COUNT( * ) ) col0, COUNT( * ) * + - 45 AS col2 FROM tab0
----
3
-135

skipif mysql # not compatible

query II rowsort label-7883
SELECT ( + COUNT ( * ) ) col0, COUNT ( * ) * + - 45 AS col2 FROM tab0
----
3
-135

onlyif mysql # aggregate syntax: 
................................................................................
-3539
21
-3949
1
-587
81


query II rowsort
SELECT DISTINCT + + 29 col2, ( - 80 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + 83 FROM tab1, tab1 cor0
----
................................................................................
query II rowsort label-8177
SELECT ALL 22 * COUNT( * ) + - + COUNT( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

skipif mysql # not compatible

query II rowsort label-8177
SELECT ALL 22 * COUNT ( * ) + - + COUNT ( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col2 + 43
----


query II rowsort
SELECT DISTINCT col0 - + col2 * + 49 + - - 79 col0, col2 FROM tab2
----
-1002
23
-1817
40
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 13 ) col0 FROM tab0
----
13


query II rowsort
SELECT col0 * + - 69 col2, col2 FROM tab2
----
-3174
23
-4416
40
................................................................................
query II rowsort label-8261
SELECT + COUNT( + ( + 8 ) ) col0, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible

query II rowsort label-8261
SELECT + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT - + 89 * col2 FROM tab2 AS cor0
----
-2047
-3560
-5162


query II rowsort
SELECT DISTINCT - col1 col1, col1 * col0 * + - col0 FROM tab2
----
-51
-107916
-67
-376875
................................................................................
-2574
-260

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * col0, col0 * + col2 )
----


query II rowsort
SELECT - - 37 col0, - 10 FROM tab0 cor0
----
37
-10
37
-10
................................................................................
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 35 = NULL
----


query II rowsort
SELECT DISTINCT 6 col0, + col1 AS col0 FROM tab1
----
6
14
6
47
................................................................................
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT * FROM tab0 cor0 WHERE NOT + col2 / - + 36 + - 49 NOT IN ( + CAST ( NULL AS INTEGER ), 22, - col1 )
----


query II rowsort
SELECT DISTINCT + - col1 col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
................................................................................
1615
-61
1729
-61
969
-61


query II rowsort
SELECT DISTINCT + col0 col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99


query II rowsort
SELECT DISTINCT + col1 col1, col1 * - + col1 * col0 AS col1 FROM tab2 AS cor0
----
51
-119646
67
-336675
................................................................................
-379456

query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757


query II rowsort
SELECT DISTINCT - 74 col2, - ( col1 ) * - + 57 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 95 * col2 + + - col0 + - - 29 + - - col1 AND col1
----
................................................................................
SELECT col1 FROM tab0 AS cor0 WHERE col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + + col0 IS NULL
----


query II rowsort
SELECT - col2 col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
................................................................................
query I rowsort
SELECT + + 64 * + - col0 FROM tab0 AS cor0
----
-5568
-6208
-960


query II rowsort
SELECT - 70 / + col2 col2, + col1 / col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - col2 - + + col1 AND 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25
................................................................................
23
NULL
40
NULL
58
NULL


query II rowsort
SELECT DISTINCT + 32 col1, 24 * - col1 + col0 AS col2 FROM tab2
----
32
-1178
32
-1533
................................................................................
query I rowsort
SELECT ALL - 29 * + - 53 FROM tab1
----
1537
1537
1537


query II rowsort
SELECT ALL - col0 col2, col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab1
................................................................................

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - + COUNT ( * ) / 2 FROM tab0 cor0
----
-1


query II rowsort
SELECT + col0 + - col0 + 65 * + 71 col0, - col0 FROM tab0 AS cor0
----
4615
-15
4615
-87
................................................................................
query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97


query II rowsort
SELECT 27 col2, + col1 FROM tab1 cor0
----
27
14
27
47
................................................................................

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab0
----
3


query II rowsort
SELECT DISTINCT + ( - col2 ) col2, - 25 FROM tab1
----
-59
-25
-68
-25
................................................................................
0
-4277
0
-714
0

skipif mysql # not compatible

query II rowsort label-9056
SELECT ALL + col1 * - col0 col1, col1 / + - 71 * + 32 FROM tab1
----
-425
0
-4277
0
................................................................................
32
65

query I rowsort
SELECT ALL + col0 * - - col0 + col1 FROM tab1 AS cor0 WHERE NULL >= col0
----


query II rowsort
SELECT DISTINCT ( - - col1 ) col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9142
SELECT SUM ( - col1 ) col0 FROM tab2 AS cor0
----
-195


query II rowsort
SELECT + 16 * - 21 col0, col1 AS col1 FROM tab0
----
-336
1
-336
21
................................................................................
----
-150

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( - - 54 ) ) IS NOT NULL
----


query II rowsort
SELECT + 92 col1, col0 AS col2 FROM tab0
----
92
15
92
87
................................................................................
query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible

query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-9557
SELECT 32 * - SUM ( + + ( + col2 ) ) FROM tab0
----
-4992


query II rowsort
SELECT 51 col1, col2 AS col1 FROM tab2
----
51
23
51
40
................................................................................
0
40
0
58
0

skipif mysql # not compatible

query II rowsort label-9596
SELECT col2 col1, col2 / col0 FROM tab2 WHERE NOT col0 IS NULL
----
23
0
40
0
................................................................................
----
-185

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL >= + 70 + - - 61 * - - 83 * + ( col1 )
----


query II rowsort
SELECT col0 col0, 96 AS col2 FROM tab0 AS cor0
----
15
96
87
96







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>










>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
....
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
....
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
....
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
....
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
....
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
.....
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
.....
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
.....
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
.....
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
.....
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
.....
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
.....
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
.....
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
.....
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
.....
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
.....
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
.....
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
.....
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
.....
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
.....
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
.....
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
.....
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
.....
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
.....
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
.....
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
.....
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
.....
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
.....
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
.....
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
.....
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
.....
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
.....
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
.....
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
.....
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
.....
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
.....
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
.....
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
.....
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
.....
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
.....
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
.....
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
.....
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
.....
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
.....
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
.....
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
.....
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
.....
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
.....
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
.....
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
.....
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
38075
38076
.....
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
.....
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
.....
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
.....
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
.....
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
.....
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
.....
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
.....
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
.....
42958
42959
42960
42961
42962
42963
42964
42965
42966
42967
42968
42969
42970
42971
42972
.....
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
.....
44060
44061
44062
44063
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073
44074
.....
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
.....
45864
45865
45866
45867
45868
45869
45870
45871
45872
45873
45874
45875
45876
45877
45878
.....
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
.....
46653
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
.....
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
.....
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
.....
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
.....
48691
48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703
48704
48705
.....
48987
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997
48998
48999
49000
49001
.....
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
.....
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
.....
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410
.....
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
.....
53101
53102
53103
53104
53105
53106
53107
53108
53109
53110
53111
53112
53113
53114
53115
.....
53479
53480
53481
53482
53483
53484
53485
53486
53487
53488
53489
53490
53491
53492
53493
.....
53908
53909
53910
53911
53912
53913
53914
53915
53916
53917
53918
53919
53920
53921
53922
.....
53967
53968
53969
53970
53971
53972
53973
53974
53975
53976
53977
53978
53979
53980
53981
.....
55806
55807
55808
55809
55810
55811
55812
55813
55814
55815
55816
55817
55818
55819
55820
.....
57829
57830
57831
57832
57833
57834
57835
57836
57837
57838
57839
57840
57841
57842
57843
.....
58776
58777
58778
58779
58780
58781
58782
58783
58784
58785
58786
58787
58788
58789
58790
.....
59759
59760
59761
59762
59763
59764
59765
59766
59767
59768
59769
59770
59771
59772
59773
.....
60421
60422
60423
60424
60425
60426
60427
60428
60429
60430
60431
60432
60433
60434
60435
.....
62452
62453
62454
62455
62456
62457
62458
62459
62460
62461
62462
62463
62464
62465
62466
.....
63992
63993
63994
63995
63996
63997
63998
63999
64000
64001
64002
64003
64004
64005
64006
.....
66744
66745
66746
66747
66748
66749
66750
66751
66752
66753
66754
66755
66756
66757
66758
.....
71291
71292
71293
71294
71295
71296
71297
71298
71299
71300
71301
71302
71303
71304
71305
.....
71877
71878
71879
71880
71881
71882
71883
71884
71885
71886
71887
71888
71889
71890
71891
.....
72457
72458
72459
72460
72461
72462
72463
72464
72465
72466
72467
72468
72469
72470
72471
.....
74465
74466
74467
74468
74469
74470
74471
74472
74473
74474
74475
74476
74477
74478
74479
74480
74481
74482
74483
74484
74485
74486
74487
74488
74489
74490
.....
75116
75117
75118
75119
75120
75121
75122
75123
75124
75125
75126
75127
75128
75129
75130
.....
75236
75237
75238
75239
75240
75241
75242
75243
75244
75245
75246
75247
75248
75249
75250
.....
75356
75357
75358
75359
75360
75361
75362
75363
75364
75365
75366
75367
75368
75369
75370
.....
75383
75384
75385
75386
75387
75388
75389
75390
75391
75392
75393
75394
75395
75396
75397
.....
76112
76113
76114
76115
76116
76117
76118
76119
76120
76121
76122
76123
76124
76125
76126
.....
76860
76861
76862
76863
76864
76865
76866
76867
76868
76869
76870
76871
76872
76873
76874
.....
78485
78486
78487
78488
78489
78490
78491
78492
78493
78494
78495
78496
78497
78498
78499
78500
78501
78502
78503
78504
78505
78506
78507
78508
78509
78510
.....
78512
78513
78514
78515
78516
78517
78518
78519
78520
78521
78522
78523
78524
78525
78526
.....
78842
78843
78844
78845
78846
78847
78848
78849
78850
78851
78852
78853
78854
78855
78856
.....
78992
78993
78994
78995
78996
78997
78998
78999
79000
79001
79002
79003
79004
79005
79006
.....
79254
79255
79256
79257
79258
79259
79260
79261
79262
79263
79264
79265
79266
79267
79268
.....
79402
79403
79404
79405
79406
79407
79408
79409
79410
79411
79412
79413
79414
79415
79416
.....
80237
80238
80239
80240
80241
80242
80243
80244
80245
80246
80247
80248
80249
80250
80251
.....
80377
80378
80379
80380
80381
80382
80383
80384
80385
80386
80387
80388
80389
80390
80391
.....
80420
80421
80422
80423
80424
80425
80426
80427
80428
80429
80430
80431
80432
80433
80434
.....
82391
82392
82393
82394
82395
82396
82397
82398
82399
82400
82401
82402
82403
82404
82405
.....
83159
83160
83161
83162
83163
83164
83165
83166
83167
83168
83169
83170
83171
83172
83173
.....
83218
83219
83220
83221
83222
83223
83224
83225
83226
83227
83228
83229
83230
83231
83232
.....
86593
86594
86595
86596
86597
86598
86599
86600
86601
86602
86603
86604
86605
86606
86607
.....
86849
86850
86851
86852
86853
86854
86855
86856
86857
86858
86859
86860
86861
86862
86863
.....
87104
87105
87106
87107
87108
87109
87110
87111
87112
87113
87114
87115
87116
87117
87118
.....
87470
87471
87472
87473
87474
87475
87476
87477
87478
87479
87480
87481
87482
87483
87484
.....
91051
91052
91053
91054
91055
91056
91057
91058
91059
91060
91061
91062
91063
91064
91065
-27
59
-27
68
-27
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 col2, - 38 FROM tab1
----
30
-38
30
-38
................................................................................
----
5727

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col1 * col0 FROM tab2
----
46
2346
64
4928
................................................................................
query II rowsort label-365
SELECT COUNT( ALL col1 ) col1, 81 FROM tab1
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-365
SELECT COUNT ( ALL col1 ) col1, 81 FROM tab1
----
3
81

query III rowsort
................................................................................
query II rowsort label-527
SELECT + COUNT( * ) col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-527
SELECT + COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

query III rowsort
................................................................................
query II rowsort label-991
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-991
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
----
-79

query I rowsort
SELECT + - col2 AS col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 + + 20 col0, + 1 AS col2 FROM tab0 AS cor0
----
-1
1
-61
1
................................................................................
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 30 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col2 + + col0 FROM tab1 AS cor0
----
59
144
68
159
96
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) col0, + col0 * + - 12 AS col2 FROM tab1 AS cor0
----
-14
-612
-47
-1092
................................................................................
query I rowsort
SELECT ALL ( - 2 ) * col1 + - col1 * ( - - 97 ) + + + col1 + - col2 AS col2 FROM tab2
----
-5021
-6624
-7586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 2 FROM tab0
----
15
2
87
2
................................................................................
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - 56 col1, - 71 - col1 AS col1 FROM tab1
----
2856
-85
4760
-76
................................................................................
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 44 col0, col2 AS col2 FROM tab0 AS cor0
----
44
10
44
47
................................................................................
query I rowsort
SELECT - ( - 92 ) col1 FROM tab0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + col2 + + col0 + + 26 - - + col2 + - - col1 col2, - col1 FROM tab2 AS cor0
----
-1027
-51
-2873
-77
................................................................................
query I rowsort
SELECT + col1 - - ( ( 46 ) ) FROM tab0
----
127
47
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 67 AS col2 FROM tab0
----
10
67
47
67
................................................................................
query II rowsort label-1634
SELECT DISTINCT 47 col0, - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2
----
47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1634
SELECT DISTINCT 47 col0, - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2
----
47
NULL

query I rowsort
................................................................................
NULL
4081
NULL
4081
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1696
SELECT + 53 * + 77 col1, - CAST ( NULL AS INTEGER ) * col0 FROM tab1 WHERE NULL IS NULL
----
4081
NULL
4081
NULL
................................................................................
51
94
85
94
91
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 7 FROM tab1
----
59
7
68
7
................................................................................
1
-12
1
-30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1747
SELECT - 76 + col0 col1, - col0 / - + col0 FROM tab2 AS cor0
----
-1
1
-12
1
................................................................................

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL COUNT ( * ) / - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + 81 + - - col1 / col2 + - col0 - - 51 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 col2, col0 AS col2 FROM tab2
----
1058
46
2560
64
................................................................................
9660

query I rowsort
SELECT 24 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36 col0, 35 AS col0 FROM tab0
----
36
35
36
35
................................................................................
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1884
SELECT ALL - col1 + col2 + + ( + - col2 ) * CAST ( NULL AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
................................................................................
query I rowsort
SELECT ALL + + col2 + 92 * + 45 AS col1 FROM tab0 AS cor0
----
4150
4187
4239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
................................................................................
query II rowsort label-2092
SELECT ALL + COUNT( * ) DIV + - MAX( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2092
SELECT ALL + COUNT ( * ) / + - MAX ( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

onlyif mysql # DIV for integer division: 
................................................................................
-177

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col1 AS col1 FROM tab0
----
10
21
47
81
................................................................................
query II rowsort label-2186
SELECT COUNT( * ) col0, + 84 AS col2 FROM tab0
----
3
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2186
SELECT COUNT ( * ) col0, + 84 AS col2 FROM tab0
----
3
84

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
query II rowsort label-2194
SELECT ALL + 60 col2, COUNT( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2194
SELECT ALL + 60 col2, COUNT ( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

onlyif mysql # aggregate syntax: 
................................................................................

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST( NULL AS SIGNED ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
................................................................................

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - + COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col1 * + - col0 FROM tab0
----
10
-1827
47
-1215
................................................................................

skipif mysql # not compatible
query I rowsort label-2402
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 16 col1, col2 AS col0 FROM tab0
----
-16
10
-16
47
................................................................................

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - 27 * + 85 * + COUNT ( * ) AS col2 FROM tab2
----
-6885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col0 FROM tab0
----
1
99
21
10
................................................................................
9463

query I rowsort
SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE ( NOT - 73 <> NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + 8 col1, col1 + - col2 AS col1 FROM tab1
----
408
-82
680
-54
................................................................................
query I rowsort label-2656
SELECT ALL + 33 / - 54 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96 col2, col2 AS col2 FROM tab0
----
96
10
96
47
................................................................................
query II rowsort label-2721
SELECT MAX( - - col0 ) col1, + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2721
SELECT MAX ( - - col0 ) col1, + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

query I rowsort
................................................................................
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2821
SELECT - CAST ( NULL AS INTEGER ) col1, col0 + - col0 FROM tab0
----
NULL
0
NULL
0
................................................................................

skipif mysql # not compatible
query I rowsort label-2944
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col2 col0, col0 AS col1 FROM tab2
----
-104
64
-133
75
................................................................................
-43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT 81 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 + col1 col2, 89 FROM tab0 AS cor0
----
-14
89
6
89
................................................................................
query I rowsort
SELECT ALL col1 * + 83 FROM tab2
----
4233
5561
6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 52 FROM tab0 AS cor0
----
-1
52
-21
52
................................................................................
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, 75 FROM tab2 AS cor0
----
23
75
40
75
................................................................................

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 col0, col0 + - - col2 FROM tab1
----
72
144
72
147
................................................................................

skipif mysql # not compatible
query I rowsort label-3164
SELECT COUNT ( * ) / - 85 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, - col0 - + col0 FROM tab1
----
-43
-102
-43
-170
................................................................................
query I rowsort
SELECT ( + col1 ) + + col2 * col0 * - - 95 FROM tab2
----
100561
243277
413317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 * col0 col0, - 25 AS col2 FROM tab2
----
2346
-25
3264
-25
................................................................................
query I rowsort label-3239
SELECT - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 23 FROM tab0
----
15
23
87
23
................................................................................
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * ( ( + col1 ) ) = 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 col1, 67 AS col2 FROM tab0
----
1
67
1
67
................................................................................
query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + ( - + col0 ) ) col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
................................................................................
query I rowsort label-3593
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 89 col1, - col2 AS col2 FROM tab1 AS cor0
----
-89
-59
-89
-68
................................................................................

skipif mysql # not compatible
query I rowsort label-3683
SELECT + MIN ( DISTINCT 10 ) AS col1 FROM tab0 WHERE NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col2, + 37 - - col2 + + col2 FROM tab1
----
-24
155
-24
173
................................................................................
97
32
15
55
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3752
SELECT DISTINCT col2 - + - CAST ( - + col1 AS INTEGER ) + + 66 col2, ( col0 ) FROM tab0
----
164
97
32
15
................................................................................
47
5

query I rowsort
SELECT - + col0 + 66 FROM tab0 AS cor0 WHERE NOT 3 / + 34 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col2 col1, + col0 * + col2 + + + 14 AS col1 FROM tab0 cor0
----
-11
884
-34
719
................................................................................
query I rowsort
SELECT 66 + - col2 * + + col1 AS col2 FROM tab1
----
-1278
-229
-3130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + + 17 + + - col2 AS col1, - col0 + 74 - col1 FROM tab0 AS cor0
----
................................................................................
-961
40
-2437
58
-4237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4003
SELECT + col2 col0, + 46 + - - col1 + CAST ( - - col0 AS INTEGER ) * - col2 FROM tab2
----
23
-961
40
-2437
................................................................................
0
10
0
10
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
................................................................................
NULL
-2400
NULL
-3480
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4065
SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1380
NULL
-2400
NULL
................................................................................
22
23
22
40
22
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + 4 FROM tab2
----
23
4
40
4
................................................................................
query II rowsort label-4216
SELECT + + COUNT( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4216
SELECT + + COUNT ( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

query I rowsort
................................................................................
359

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col1 < + col2
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 0 + - col1 col0, - col1 + col0 + + col0 * + 68 + - - col2 AS col1 FROM tab2 AS cor0
----
-51
3146
-67
5166
................................................................................
query I rowsort label-4320
SELECT ALL - 67 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 col2, + col0 * + 89 FROM tab1 AS cor0
----
75
4539
75
7565
................................................................................
query II rowsort label-4337
SELECT MIN( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4337
SELECT MIN ( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

query III rowsort
................................................................................
0
150
0
92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4456
SELECT ALL + col0 + col0 col2, col2 / - col0 AS col2 FROM tab2
----
128
0
150
0
................................................................................
SELECT - - CAST ( - col0 AS REAL ) AS col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col1 ) col2, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
................................................................................
query I rowsort
SELECT ALL - col1 * + - ( 12 ) - - 41 * - col1 * - col1 FROM tab0 AS cor0
----
18333
269973
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col2, - ( + col1 ) FROM tab2 cor0
----
85
-51
85
-67
................................................................................

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + - COUNT ( * ) * - 44 FROM tab0 WHERE + 23 <> + 87 + col2 * 38
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 - col0 + - - ( + + col1 ) col0, 59 * - 79 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NOT - col0 IS NULL
----
................................................................................
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 59 col2, + 48 FROM tab0 AS cor0
----
-2773
48
-5841
48
................................................................................
1
78
2
78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4757
SELECT 78 col0, ( + 88 ) / col2 FROM tab2 AS cor0
----
78
1
78
2
................................................................................
-1
-34
-2
-34
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4816
SELECT + - 34 col2, 46 / - col2 FROM tab2 AS cor0
----
-34
-1
-34
-2
................................................................................

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( MAX ( DISTINCT - - ( - col0 ) ) ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col0 + - 13 FROM tab2
----
51
33
67
62
................................................................................
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5003
SELECT DISTINCT col2 col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
................................................................................

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT ( - 47 ) * COUNT ( * ) AS col2 FROM tab0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 * + col0 * + - col0 col0, + col2 FROM tab0
----
0
10
0
47
................................................................................
19
NULL
19
NULL
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5089
SELECT + - CAST ( NULL AS INTEGER ) col1, - 33 + 52 FROM tab0 AS cor0
----
NULL
19
NULL
19
................................................................................
31
67
31
77
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5233
SELECT + col1 col1, CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
----
51
31
67
31
................................................................................

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + AVG ( - 82 ) * - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / 47 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 col2, - col0 * + 51 * col1 FROM tab2 WHERE NOT + 65 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5258
SELECT DISTINCT - CAST( - 75 AS SIGNED ), COUNT( * ) + + - ( - COUNT( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2
................................................................................
NULL
24
NULL
24
NULL
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 AS col2 FROM tab0
----
1
99
21
10
................................................................................
-1469
-5225
-2774
-5225
-4283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5305
SELECT 95 * - 55 col2, CAST ( - CAST ( + + 42 AS INTEGER ) AS INTEGER ) * - col1 + + + 25 + col2 * - 51 FROM tab1
----
-5225
-1469
-5225
-2774
................................................................................
query II rowsort label-5341
SELECT ALL COUNT( * ) col0, 87 FROM tab0
----
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5341
SELECT ALL COUNT ( * ) col0, 87 FROM tab0
----
3
87

onlyif mysql # aggregate syntax: 
................................................................................
----
0
40
1
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5361
SELECT DISTINCT 28 / + col2 col0, + 40 AS col1 FROM tab2
----
0
40
1
40
................................................................................

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 + 24 col2, col1 + + 21 FROM tab1 AS cor0
----
46
26
46
35
................................................................................
query I rowsort label-5491
SELECT ALL - col2 * + - col0 + - ( - CAST ( NULL AS INTEGER ) ) + - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col2 ) col2, - col2 * - + col2 + - 21 FROM tab0 AS cor0 WHERE NOT col1 / + + 15 * col0 IN ( + - col2, + col0 * + + col1 + - + col2 * + col2 * col2 * + col1 + + - 48 )
----
10
79
47
2188
................................................................................
query I rowsort
SELECT 90 FROM tab0 WHERE NOT + 64 IS NULL
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 col0, col1 AS col2 FROM tab2
----
84
51
84
67
................................................................................

skipif mysql # not compatible
query I rowsort label-5790
SELECT - 9 * - - COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col0 FROM tab2 cor0
----
51
46
67
75
................................................................................
query I rowsort
SELECT ALL - + col2 * - + col0 + - - col2 AS col1 FROM tab2 cor0
----
1081
2600
4408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) col2, col1 + - col0 FROM tab1 AS cor0
----
59
-80
68
-44
................................................................................
0
NULL
1
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5878
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + 47 * CAST ( NULL AS INTEGER ) col1, col2 / + col0 FROM tab0 AS cor0
----
NULL
0
NULL
1
................................................................................
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 AS col1 FROM tab1
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 39 col1, 84 FROM tab0
----
3393
84
3783
84
................................................................................
-51
48
-67
48
-77
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - 84 + + 20 FROM tab0
----
10
-64
47
-64
................................................................................
-15
1
-24
1
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6311
SELECT DISTINCT 72 / + 48 col2, - col2 + + 44 FROM tab1
----
1
-15
1
-24
................................................................................
-14
47
-47
5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6411
SELECT ALL + col1 col0, + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
-14
47
-47
................................................................................
query II rowsort label-6515
SELECT ALL - COUNT( * ) col1, 94 AS col2 FROM tab0
----
-3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6515
SELECT ALL - COUNT ( * ) col1, 94 AS col2 FROM tab0
----
-3
94

query IIIIII rowsort
................................................................................
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6588
SELECT ALL col0 col0, 22 * - ( + - ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
................................................................................
query I rowsort
SELECT + 81 * + col0 col0 FROM tab1
----
4131
6885
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 AS col1 FROM tab2
----
46
46
64
64
................................................................................
query I rowsort
SELECT ALL + - 4 * + + 97 + + + col1 col0 FROM tab0 AS cor0
----
-307
-367
-387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 col1, - col0 FROM tab2 AS cor0
----
75
-46
75
-64
................................................................................

query II rowsort
SELECT DISTINCT - 95, + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-95
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col2 FROM tab2 AS cor0
----
46
23
64
40
................................................................................
query II rowsort label-7817
SELECT ALL - 72 + + - SUM( ALL - col0 ) col0, + COUNT( - ( + col1 ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
127
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7817
SELECT ALL - 72 + + - SUM ( ALL - col0 ) col0, + COUNT ( - ( + col1 ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
127
9

query I rowsort
................................................................................
query II rowsort label-7883
SELECT ( + COUNT( * ) ) col0, COUNT( * ) * + - 45 AS col2 FROM tab0
----
3
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7883
SELECT ( + COUNT ( * ) ) col0, COUNT ( * ) * + - 45 AS col2 FROM tab0
----
3
-135

onlyif mysql # aggregate syntax: 
................................................................................
-3539
21
-3949
1
-587
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 29 col2, ( - 80 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + 83 FROM tab1, tab1 cor0
----
................................................................................
query II rowsort label-8177
SELECT ALL 22 * COUNT( * ) + - + COUNT( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8177
SELECT ALL 22 * COUNT ( * ) + - + COUNT ( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col2 + 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + col2 * + 49 + - - 79 col0, col2 FROM tab2
----
-1002
23
-1817
40
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 13 ) col0 FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - 69 col2, col2 FROM tab2
----
-3174
23
-4416
40
................................................................................
query II rowsort label-8261
SELECT + COUNT( + ( + 8 ) ) col0, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

query I rowsort
................................................................................
query I rowsort
SELECT DISTINCT - + 89 * col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col1 * col0 * + - col0 FROM tab2
----
-51
-107916
-67
-376875
................................................................................
-2574
-260

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * col0, col0 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 37 col0, - 10 FROM tab0 cor0
----
37
-10
37
-10
................................................................................
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 35 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 6 col0, + col1 AS col0 FROM tab1
----
6
14
6
47
................................................................................
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT * FROM tab0 cor0 WHERE NOT + col2 / - + 36 + - 49 NOT IN ( + CAST ( NULL AS INTEGER ), 22, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
................................................................................
1615
-61
1729
-61
969
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col1 * - + col1 * col0 AS col1 FROM tab2 AS cor0
----
51
-119646
67
-336675
................................................................................
-379456

query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 col2, - ( col1 ) * - + 57 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 95 * col2 + + - col0 + - - 29 + - - col1 AND col1
----
................................................................................
SELECT col1 FROM tab0 AS cor0 WHERE col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
................................................................................
query I rowsort
SELECT + + 64 * + - col0 FROM tab0 AS cor0
----
-5568
-6208
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 / + col2 col2, + col1 / col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - col2 - + + col1 AND 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25
................................................................................
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 col1, 24 * - col1 + col0 AS col2 FROM tab2
----
32
-1178
32
-1533
................................................................................
query I rowsort
SELECT ALL - 29 * + - 53 FROM tab1
----
1537
1537
1537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab1
................................................................................

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - + COUNT ( * ) / 2 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col0 + 65 * + 71 col0, - col0 FROM tab0 AS cor0
----
4615
-15
4615
-87
................................................................................
query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, + col1 FROM tab1 cor0
----
27
14
27
47
................................................................................

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) col2, - 25 FROM tab1
----
-59
-25
-68
-25
................................................................................
0
-4277
0
-714
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9056
SELECT ALL + col1 * - col0 col1, col1 / + - 71 * + 32 FROM tab1
----
-425
0
-4277
0
................................................................................
32
65

query I rowsort
SELECT ALL + col0 * - - col0 + col1 FROM tab1 AS cor0 WHERE NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - col1 ) col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9142
SELECT SUM ( - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 * - 21 col0, col1 AS col1 FROM tab0
----
-336
1
-336
21
................................................................................
----
-150

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( - - 54 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 col1, col0 AS col2 FROM tab0
----
92
15
92
87
................................................................................
query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................

skipif mysql # not compatible
query I rowsort label-9557
SELECT 32 * - SUM ( + + ( + col2 ) ) FROM tab0
----
-4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51 col1, col2 AS col1 FROM tab2
----
51
23
51
40
................................................................................
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9596
SELECT col2 col1, col2 / col0 FROM tab2 WHERE NOT col0 IS NULL
----
23
0
40
0
................................................................................
----
-185

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL >= + 70 + - - 61 * - - 83 * + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 96 AS col2 FROM tab0 AS cor0
----
15
96
87
96

Changes to test/random/aggregates/slt_good_105.test.

160
161
162
163
164
165
166

167
168
169
170
171
172
173
...
343
344
345
346
347
348
349

350
351
352
353
354
355
356
...
532
533
534
535
536
537
538

539
540
541
542
543
544
545
...
974
975
976
977
978
979
980

981
982
983
984
985
986
987
....
1034
1035
1036
1037
1038
1039
1040

1041
1042
1043
1044
1045
1046
1047
....
1736
1737
1738
1739
1740
1741
1742

1743
1744
1745
1746
1747
1748
1749
....
4864
4865
4866
4867
4868
4869
4870

4871
4872
4873
4874
4875
4876
4877
....
5085
5086
5087
5088
5089
5090
5091

5092
5093
5094
5095
5096
5097
5098
....
5379
5380
5381
5382
5383
5384
5385

5386
5387
5388
5389
5390
5391
5392
....
8084
8085
8086
8087
8088
8089
8090

8091
8092
8093
8094
8095
8096
8097
....
8570
8571
8572
8573
8574
8575
8576

8577
8578
8579
8580
8581
8582
8583
....
9867
9868
9869
9870
9871
9872
9873

9874
9875
9876
9877
9878
9879
9880
.....
10121
10122
10123
10124
10125
10126
10127

10128
10129
10130
10131
10132
10133
10134
.....
13577
13578
13579
13580
13581
13582
13583

13584
13585
13586
13587
13588
13589
13590
.....
14197
14198
14199
14200
14201
14202
14203

14204
14205
14206
14207
14208
14209
14210
.....
15112
15113
15114
15115
15116
15117
15118

15119
15120
15121
15122
15123
15124
15125
.....
16152
16153
16154
16155
16156
16157
16158

16159
16160
16161
16162
16163
16164
16165
.....
16862
16863
16864
16865
16866
16867
16868

16869
16870
16871
16872
16873
16874
16875
.....
17959
17960
17961
17962
17963
17964
17965

17966
17967
17968
17969
17970
17971
17972
.....
20022
20023
20024
20025
20026
20027
20028

20029
20030
20031
20032
20033
20034
20035
.....
20272
20273
20274
20275
20276
20277
20278

20279
20280
20281
20282
20283
20284
20285
.....
21407
21408
21409
21410
21411
21412
21413

21414
21415
21416
21417
21418
21419
21420
.....
22146
22147
22148
22149
22150
22151
22152

22153
22154
22155
22156
22157
22158
22159
.....
22376
22377
22378
22379
22380
22381
22382

22383
22384
22385
22386
22387
22388
22389
.....
24420
24421
24422
24423
24424
24425
24426

24427
24428
24429
24430
24431
24432
24433
.....
25249
25250
25251
25252
25253
25254
25255

25256
25257
25258
25259
25260
25261
25262
.....
26201
26202
26203
26204
26205
26206
26207

26208
26209
26210
26211
26212
26213
26214
.....
27503
27504
27505
27506
27507
27508
27509

27510
27511
27512
27513
27514
27515
27516
.....
27537
27538
27539
27540
27541
27542
27543

27544
27545
27546
27547
27548
27549
27550
.....
27595
27596
27597
27598
27599
27600
27601

27602
27603
27604
27605
27606
27607
27608
.....
28403
28404
28405
28406
28407
28408
28409

28410
28411
28412
28413
28414
28415
28416
.....
28646
28647
28648
28649
28650
28651
28652

28653
28654
28655
28656
28657
28658
28659
.....
28678
28679
28680
28681
28682
28683
28684

28685
28686
28687
28688
28689
28690
28691
.....
30696
30697
30698
30699
30700
30701
30702

30703
30704
30705
30706
30707
30708
30709
.....
30914
30915
30916
30917
30918
30919
30920

30921
30922
30923
30924
30925
30926
30927
.....
35524
35525
35526
35527
35528
35529
35530

35531
35532
35533
35534
35535
35536
35537
.....
38335
38336
38337
38338
38339
38340
38341

38342
38343
38344
38345
38346
38347
38348
.....
38701
38702
38703
38704
38705
38706
38707

38708
38709
38710
38711
38712
38713
38714
.....
39389
39390
39391
39392
39393
39394
39395

39396
39397
39398
39399
39400
39401
39402
.....
40348
40349
40350
40351
40352
40353
40354

40355
40356
40357
40358
40359
40360
40361
.....
41567
41568
41569
41570
41571
41572
41573

41574
41575
41576
41577
41578
41579
41580
.....
41589
41590
41591
41592
41593
41594
41595

41596
41597
41598
41599
41600
41601
41602
.....
41915
41916
41917
41918
41919
41920
41921

41922
41923
41924
41925
41926
41927
41928
.....
42239
42240
42241
42242
42243
42244
42245

42246
42247
42248
42249
42250
42251
42252
.....
42848
42849
42850
42851
42852
42853
42854

42855
42856
42857
42858
42859
42860
42861
.....
43850
43851
43852
43853
43854
43855
43856

43857
43858
43859
43860
43861
43862
43863
.....
44565
44566
44567
44568
44569
44570
44571

44572
44573
44574
44575
44576
44577
44578
.....
46027
46028
46029
46030
46031
46032
46033

46034
46035
46036
46037
46038
46039
46040
.....
46182
46183
46184
46185
46186
46187
46188

46189
46190
46191
46192
46193
46194
46195
.....
46209
46210
46211
46212
46213
46214
46215

46216
46217
46218
46219
46220
46221
46222
.....
46676
46677
46678
46679
46680
46681
46682

46683
46684
46685
46686
46687
46688
46689
.....
46800
46801
46802
46803
46804
46805
46806

46807
46808
46809
46810
46811
46812
46813
.....
47121
47122
47123
47124
47125
47126
47127

47128
47129
47130
47131
47132
47133
47134
.....
47156
47157
47158
47159
47160
47161
47162

47163
47164
47165
47166
47167
47168
47169
.....
47824
47825
47826
47827
47828
47829
47830

47831
47832
47833
47834
47835
47836
47837
.....
48377
48378
48379
48380
48381
48382
48383

48384
48385
48386
48387
48388
48389
48390
.....
49449
49450
49451
49452
49453
49454
49455

49456
49457
49458
49459
49460
49461
49462
.....
49694
49695
49696
49697
49698
49699
49700

49701
49702
49703
49704
49705
49706
49707
.....
49830
49831
49832
49833
49834
49835
49836

49837
49838
49839
49840
49841
49842
49843
.....
52162
52163
52164
52165
52166
52167
52168

52169
52170
52171
52172
52173
52174
52175
.....
53998
53999
54000
54001
54002
54003
54004

54005
54006
54007
54008
54009
54010
54011
.....
55194
55195
55196
55197
55198
55199
55200

55201
55202
55203
55204
55205
55206
55207
.....
56497
56498
56499
56500
56501
56502
56503

56504
56505
56506
56507
56508
56509
56510
.....
56887
56888
56889
56890
56891
56892
56893

56894
56895
56896
56897
56898
56899
56900
.....
57624
57625
57626
57627
57628
57629
57630

57631
57632
57633
57634
57635
57636
57637
.....
58131
58132
58133
58134
58135
58136
58137

58138
58139
58140
58141
58142
58143
58144
.....
58521
58522
58523
58524
58525
58526
58527

58528
58529
58530
58531
58532
58533
58534
.....
60802
60803
60804
60805
60806
60807
60808

60809
60810
60811
60812
60813
60814
60815
.....
61304
61305
61306
61307
61308
61309
61310

61311
61312
61313
61314
61315
61316
61317
.....
61666
61667
61668
61669
61670
61671
61672

61673
61674
61675
61676
61677
61678
61679
.....
61704
61705
61706
61707
61708
61709
61710

61711
61712
61713
61714
61715
61716
61717
.....
63270
63271
63272
63273
63274
63275
63276

63277
63278
63279
63280
63281
63282
63283
.....
63313
63314
63315
63316
63317
63318
63319

63320
63321
63322
63323
63324
63325
63326
.....
64515
64516
64517
64518
64519
64520
64521

64522
64523
64524
64525
64526
64527
64528
.....
64750
64751
64752
64753
64754
64755
64756

64757
64758
64759
64760
64761
64762
64763
.....
64813
64814
64815
64816
64817
64818
64819

64820
64821
64822
64823
64824
64825
64826
.....
64996
64997
64998
64999
65000
65001
65002

65003
65004
65005
65006
65007
65008
65009
.....
66927
66928
66929
66930
66931
66932
66933

66934
66935
66936
66937
66938
66939
66940
.....
67859
67860
67861
67862
67863
67864
67865

67866
67867
67868
67869
67870
67871
67872
.....
68865
68866
68867
68868
68869
68870
68871

68872
68873
68874
68875
68876
68877
68878
.....
69145
69146
69147
69148
69149
69150
69151

69152
69153
69154
69155
69156
69157
69158
.....
69328
69329
69330
69331
69332
69333
69334

69335
69336
69337
69338
69339
69340
69341
.....
69713
69714
69715
69716
69717
69718
69719

69720
69721
69722
69723
69724
69725
69726
.....
69736
69737
69738
69739
69740
69741
69742

69743
69744
69745
69746
69747
69748
69749
.....
69970
69971
69972
69973
69974
69975
69976

69977
69978
69979
69980
69981
69982
69983
.....
71319
71320
71321
71322
71323
71324
71325

71326
71327
71328
71329
71330
71331
71332
.....
75698
75699
75700
75701
75702
75703
75704

75705
75706
75707
75708
75709
75710
75711
.....
76022
76023
76024
76025
76026
76027
76028

76029
76030
76031
76032
76033
76034
76035
.....
77153
77154
77155
77156
77157
77158
77159

77160
77161
77162
77163
77164
77165
77166
.....
77689
77690
77691
77692
77693
77694
77695

77696
77697
77698
77699
77700
77701
77702
.....
78236
78237
78238
78239
78240
78241
78242

78243
78244
78245
78246
78247
78248
78249
.....
78403
78404
78405
78406
78407
78408
78409

78410
78411
78412
78413
78414
78415
78416
.....
79803
79804
79805
79806
79807
79808
79809

79810
79811
79812
79813
79814
79815
79816
.....
80515
80516
80517
80518
80519
80520
80521

80522
80523
80524
80525
80526
80527
80528
.....
80540
80541
80542
80543
80544
80545
80546

80547
80548
80549
80550
80551
80552
80553
.....
81023
81024
81025
81026
81027
81028
81029

81030
81031
81032
81033
81034
81035
81036
.....
81785
81786
81787
81788
81789
81790
81791

81792
81793
81794
81795
81796
81797
81798
.....
82426
82427
82428
82429
82430
82431
82432

82433
82434
82435
82436
82437
82438
82439
.....
82872
82873
82874
82875
82876
82877
82878

82879
82880
82881
82882
82883
82884
82885
.....
84258
84259
84260
84261
84262
84263
84264

84265
84266
84267
84268
84269
84270
84271
.....
87750
87751
87752
87753
87754
87755
87756

87757
87758
87759
87760
87761
87762
87763
.....
87852
87853
87854
87855
87856
87857
87858

87859
87860
87861
87862
87863
87864
87865
.....
87898
87899
87900
87901
87902
87903
87904

87905
87906
87907
87908
87909
87910
87911
.....
90400
90401
90402
90403
90404
90405
90406

90407
90408
90409
90410
90411
90412
90413
.....
90424
90425
90426
90427
90428
90429
90430

90431
90432
90433
90434
90435
90436
90437
.....
90975
90976
90977
90978
90979
90980
90981

90982
90983
90984
90985
90986
90987
90988
query I rowsort label-14
SELECT DISTINCT ( + + col2 ) / - col0 col2 FROM tab0
----
-1
-3
0


query II rowsort
SELECT ALL - col0 col0, col1 FROM tab0
----
-15
81
-87
21
................................................................................

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL CAST ( NULL AS INTEGER ) * ( COUNT ( - - col0 ) ) + 65 AS col2 FROM tab2 AS cor0
----
NULL


query II rowsort
SELECT DISTINCT - + col0 - - + col2 col0, + col0 AS col1 FROM tab0 AS cor0
----
-77
87
2
97
................................................................................
query I rowsort
SELECT + ( + 35 ) AS col1 FROM tab1 AS cor0
----
35
35
35


query II rowsort
SELECT ALL 12 col1, ( - ( + - 32 ) ) FROM tab0 AS cor0
----
12
32
12
32
................................................................................
51
2
67
2
77
2


query II rowsort
SELECT ALL 60 col0, ( - 19 ) AS col0 FROM tab1
----
60
-19
60
-19
................................................................................
1
67
1
77
1

skipif mysql # not compatible

query II rowsort label-104
SELECT ALL col1 col1, col0 / col0 AS col1 FROM tab2
----
51
1
67
1
................................................................................
542
95
7018
23
794
105


query II rowsort
SELECT + col0 * - ( 26 ) + + - ( + col0 ) col1, col2 * + - col1 FROM tab0 AS cor0
----
-2349
-210
-2619
-99
................................................................................
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 88 / col1 IS NULL )
----
59
68
96


query II rowsort
SELECT ALL col1 * col2 col2, + 54 * - + col0 AS col1 FROM tab0
----
210
-4698
3807
-810
................................................................................
query I rowsort
SELECT ALL + col0 * - 93 * 72 AS col1 FROM tab0 AS cor0
----
-100440
-582552
-649512


query II rowsort
SELECT - 83 * - col2 col1, col1 * - + col1 * + col0 AS col1 FROM tab0
----
3901
-98415
8217
-97
................................................................................
query II rowsort label-582
SELECT ALL + - COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible

query II rowsort label-582
SELECT ALL + - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

query II rowsort
................................................................................
query I rowsort
SELECT ALL - - 51 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
51
51


query II rowsort
SELECT ALL + col2 col0, - col0 AS col1 FROM tab1 cor0
----
59
-85
68
-91
................................................................................
1
28
1
94
1

skipif mysql # not compatible

query II rowsort label-927
SELECT col1 + - - col1 col2, - 61 / - + 42 FROM tab1 AS cor0
----
10
1
28
1
................................................................................
-77
0
2
4
32

skipif mysql # not compatible

query II rowsort label-1062
SELECT + 71 / + + col0 + 0 * + col0 * 52 col0, col2 + - col0 AS col1 FROM tab0
----
0
-77
0
2
................................................................................
63
61
63
61
63

skipif mysql # not compatible

query II rowsort label-1091
SELECT + CAST ( 61 AS INTEGER ) col0, + ( 63 ) AS col1 FROM tab2 AS cor0
----
61
63
61
63
................................................................................
28
59
28
68
28
96


query II rowsort
SELECT ALL + col1 col1, + 20 AS col1 FROM tab1
----
14
20
47
20
................................................................................
query I rowsort
SELECT ALL - 86 + col0 col0 FROM tab1
----
-1
-35
5


query II rowsort
SELECT + col2 col2, 19 FROM tab2
----
23
19
40
19
................................................................................
skipif mysql # not compatible
query II rowsort label-1641
SELECT - + COUNT ( * ), 6 AS col0 FROM tab2 AS cor0
----
-3
6


query II rowsort
SELECT DISTINCT + 42 col2, + ( col2 ) AS col1 FROM tab1 AS cor0
----
42
59
42
68
................................................................................
1
-44
3
-7
17

skipif mysql # not compatible

query II rowsort label-1748
SELECT DISTINCT - + col2 + + 52 col0, - col0 / - col1 AS col2 FROM tab1 AS cor0
----
-16
1
-44
3
................................................................................
skipif mysql # not compatible
query II rowsort label-1824
SELECT ALL + 55 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
55
3


query II rowsort
SELECT col0 col0, - 43 FROM tab0
----
15
-43
87
-43
................................................................................
SELECT ALL + 7 AS col0 FROM tab1 WHERE NOT 65 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < - col2
----


query III rowsort
SELECT ALL 78 AS col2, + col0 + 0 col2, + col2 AS col0 FROM tab0
----
9 values hashing to b02dffe5176ae8a19de8a147af89d9a6

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> + + 99
................................................................................
NULL
1
NULL
1
NULL

skipif mysql # not compatible

query II rowsort label-2176
SELECT ALL - col0 / - + 50 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
1
NULL
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL - MIN ( col2 ) col0 FROM tab2
----
-23


query II rowsort
SELECT DISTINCT - col1 col1, - col1 + - - col0 AS col0 FROM tab2 cor0
----
-51
-5
-67
8
................................................................................
191
-21
181
-81
155629

skipif mysql # not compatible

query II rowsort label-2318
SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
191
-21
181
................................................................................
51
NULL
67
NULL
77

skipif mysql # not compatible

query II rowsort label-2390
SELECT - CAST ( NULL AS INTEGER ) col1, col1 FROM tab2
----
NULL
51
NULL
67
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9


query III rowsort
SELECT ALL col2 col1, col1 + 8 - + col2, - + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 508d9e4f017cbfed235b4ff483db387f

query I rowsort
SELECT DISTINCT + - col1 * col2 * - - 7 * + 81 AS col2 FROM tab0 AS cor0
................................................................................
query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT( * ) ) FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible

query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT ( * ) ) FROM tab1 AS cor0
----
50
3

query I rowsort
................................................................................
-3984
-65
-767
-65
-8322

skipif mysql # not compatible

query II rowsort label-2731
SELECT - 65 col2, + CAST ( col2 AS INTEGER ) * + ( - 85 ) - + 4 + + col0 FROM tab0 AS cor0
----
-65
-3984
-65
-767
................................................................................
1827
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
----


query II rowsort
SELECT ALL col2 col1, + col1 AS col0 FROM tab1
----
59
5
68
47
................................................................................

skipif mysql # not compatible
query I rowsort label-2970
SELECT + COUNT ( * ) * - 35 FROM tab1 AS cor0
----
-105


query II rowsort
SELECT - col2 col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
................................................................................
64
-3
46
-38
75

skipif mysql # not compatible

query II rowsort label-2975
SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST ( NULL AS REAL ) * 53 IS NULL )
----
-20
64
-3
46
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col2 FROM tab1
----
-92


query II rowsort
SELECT - 26 col2, - col0 - - - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + - col0 ) + col0 - + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
................................................................................
6279

query I rowsort
SELECT + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc


query II rowsort
SELECT DISTINCT col1 col0, - col0 AS col1 FROM tab0
----
1
-97
21
-87
................................................................................
query II rowsort label-3106
SELECT 11 col1, + COUNT( * ) FROM tab0
----
11
3

skipif mysql # not compatible

query II rowsort label-3106
SELECT 11 col1, + COUNT ( * ) FROM tab0
----
11
3

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-3109
SELECT + + ( 2 ) + - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( 7 ) AND ( NULL ) )
----
2


query II rowsort
SELECT + col1 * col1 col0, - col0 FROM tab0
----
1
-97
441
-87
................................................................................
query II rowsort label-3326
SELECT COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible

query II rowsort label-3326
SELECT COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 + - ( - col1 ) - - - col2 IS NOT NULL
----


query II rowsort
SELECT ALL col2 col1, 4 AS col0 FROM tab1
----
59
4
68
4
................................................................................
query I rowsort
SELECT ALL - 15 + - 31 FROM tab0 AS cor0
----
-46
-46
-46


query II rowsort
SELECT + col2 col1, + 91 FROM tab2
----
23
91
40
91
................................................................................
120533
56253

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 25 IS NOT NULL
----


query II rowsort
SELECT ALL col2 col0, + col2 AS col2 FROM tab1
----
59
59
68
68
................................................................................
-3016
-3811

query I rowsort
SELECT 70 * - - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----


query II rowsort
SELECT col0 + - col2 col2, + col2 AS col0 FROM tab2 AS cor0
----
17
58
23
23
................................................................................
-23
0
-40
0
-58

skipif mysql # not compatible

query II rowsort label-4274
SELECT col2 / - ( + col1 ) col2, - col2 AS col1 FROM tab2
----
0
-23
0
-40
................................................................................
-64
125
-75
74
-46

skipif mysql # not compatible

query II rowsort label-4367
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + col2 col2, - col0 FROM tab2
----
117
-64
125
-75
................................................................................
14
NULL
47
NULL
5

skipif mysql # not compatible

query II rowsort label-4502
SELECT ALL CAST ( NULL AS INTEGER ) col2, col1 FROM tab1
----
NULL
14
NULL
47
................................................................................

skipif mysql # not compatible
query I rowsort label-4503
SELECT 40 * SUM ( 95 ) FROM tab0
----
11400


query II rowsort
SELECT + 0 col1, col0 FROM tab1
----
0
51
0
85
................................................................................
-51
0
-67
0
-77
0


query II rowsort
SELECT - 43 col0, + col0 + 82 FROM tab1 AS cor0
----
-43
133
-43
167
................................................................................
query I rowsort
SELECT ALL col0 * - 69 AS col2 FROM tab1
----
-3519
-5865
-6279


query II rowsort
SELECT col0 col0, + col2 AS col1 FROM tab0
----
15
47
87
10
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4633
SELECT DISTINCT SUM ( + + col1 ) col2 FROM tab2
----
195


query II rowsort
SELECT ALL col1 + - ( + col1 ) col1, col2 / col0 AS col0 FROM tab1 cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT MAX( ALL + col2 ) AS col0 FROM tab0
................................................................................
query I rowsort
SELECT ALL col0 + + 31 + col0 + - col1 AS col1 FROM tab1
----
119
166
196


query II rowsort
SELECT + col0 col0, col1 FROM tab1
----
51
14
85
5
................................................................................
query II rowsort label-4827
SELECT ALL - 53 col0, + SUM( DISTINCT - 54 ) FROM tab2
----
-53
-54

skipif mysql # not compatible

query II rowsort label-4827
SELECT ALL - 53 col0, + SUM ( DISTINCT - 54 ) FROM tab2
----
-53
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
23
67
58
77
40

skipif mysql # not compatible

query II rowsort label-4987
SELECT ALL col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2
----
51
23
67
58
................................................................................
query II rowsort label-5004
SELECT ALL + 84 col1, COUNT( * ) FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible

query II rowsort label-5004
SELECT ALL + 84 col1, COUNT ( * ) FROM tab2 AS cor0
----
84
3

query I rowsort
................................................................................
-61
14
-61
47
-61
5


query II rowsort
SELECT + + col0 col0, col0 AS col1 FROM tab1 cor0
----
51
51
85
85
................................................................................
query I rowsort
SELECT ALL 84 - - col0 FROM tab1
----
135
169
175


query II rowsort
SELECT ( + 57 ) col1, col1 AS col0 FROM tab2
----
57
51
57
67
................................................................................

skipif mysql # not compatible
query I rowsort label-5067
SELECT - ( SUM ( col0 ) ) FROM tab2
----
-185


query II rowsort
SELECT col0 col1, + col1 * - 37 FROM tab1
----
51
-518
85
-185
................................................................................
query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col1 * + + col1 + - 71 IS NULL
----
26
3

skipif mysql # not compatible

query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col1 * + + col1 + - 71 IS NULL
----
26
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
-14
5888
-31
4232
4
6900


query II rowsort
SELECT - + ( col0 ) col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
................................................................................
----
124

query I rowsort
SELECT DISTINCT - 89 + + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----


query II rowsort
SELECT - col0 col1, - 33 AS col1 FROM tab2 AS cor0
----
-46
-33
-64
-33
................................................................................
SELECT * FROM tab1 WHERE NOT - + 48 <> col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND col1 IS NULL
----


query II rowsort
SELECT ALL - 63 col2, 57 FROM tab2
----
-63
57
-63
57
................................................................................

skipif mysql # not compatible
query I rowsort label-5359
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL


query II rowsort
SELECT ALL - col1 col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
................................................................................

skipif mysql # not compatible
query I rowsort label-5386
SELECT - COUNT ( * ) * + + 46 AS col1 FROM tab0 WHERE + + 20 IN ( + col2 )
----
0


query II rowsort
SELECT + col0 col1, - col2 FROM tab2
----
46
-23
64
-40
................................................................................
87
11
97
5
15

skipif mysql # not compatible

query II rowsort label-5401
SELECT ALL + col2 / + 9 col1, + col0 FROM tab0 AS cor0
----
1
87
11
97
................................................................................
query I rowsort
SELECT col2 + + ( + 5 ) * + col1 FROM tab0
----
104
115
452


query II rowsort
SELECT - col2 + - ( - col0 ) col0, col0 FROM tab2
----
17
75
23
46
................................................................................
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 23 > - 52 )
----


query II rowsort
SELECT DISTINCT col0 col0, 65 AS col1 FROM tab2
----
46
65
64
65
................................................................................
skipif mysql # not compatible
query II rowsort label-5958
SELECT + COUNT ( * ), 47 AS col1 FROM tab0
----
3
47


query II rowsort
SELECT ALL + col0 col2, col0 * - + col2 FROM tab1
----
51
-4896
85
-5015
................................................................................
query I rowsort label-6096
SELECT ALL - col0 / - - col1 * + + col2 / col2 FROM tab2 AS cor0
----
-1
0
0


query II rowsort
SELECT col1 - - 30 col2, - col2 + - col0 FROM tab1 AS cor0
----
35
-144
44
-147
................................................................................
77
153
51
79
67

skipif mysql # not compatible

query II rowsort label-6142
SELECT DISTINCT + col1 * 69 / col2 col2, col1 AS col2 FROM tab2
----
132
77
153
51
................................................................................
23
64
40
75
58

skipif mysql # not compatible

query II rowsort label-6218
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) col2, + col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................

skipif mysql # not compatible
query I rowsort label-6279
SELECT + COUNT ( * ) / - - 31 AS col2 FROM tab0
----
0


query II rowsort
SELECT col1 col0, + col2 + - + 69 FROM tab0
----
1
30
21
-59
................................................................................
query I rowsort label-6319
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL


query II rowsort
SELECT col0 + - - col0 col2, + ( + + col2 ) - - col2 FROM tab1
----
102
192
170
118
................................................................................
query II rowsort label-6555
SELECT ALL CAST( NULL AS SIGNED ) col2, + COUNT( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

skipif mysql # not compatible

query II rowsort label-6555
SELECT ALL CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

query I rowsort
................................................................................
query II rowsort label-6612
SELECT ALL - MIN( + 27 ) col2, + COUNT( * ) * 49 FROM tab2
----
-27
147

skipif mysql # not compatible

query II rowsort label-6612
SELECT ALL - MIN ( + 27 ) col2, + COUNT ( * ) * 49 FROM tab2
----
-27
147

query I rowsort
................................................................................
5

query I rowsort
SELECT DISTINCT - + 49 + + 63 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14


query II rowsort
SELECT ALL + col2 col0, 30 AS col2 FROM tab2 AS cor0
----
23
30
40
30
................................................................................
51
-38
77
-56
67

skipif mysql # not compatible

query II rowsort label-6652
SELECT ALL - col2 - 47 / - 17 col1, col1 FROM tab2 AS cor0
----
-21
51
-38
77
................................................................................
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( col1 ) NOT IN ( 60, col1, + 33 + - col0 )
----


query II rowsort
SELECT + 41 col1, col1 AS col2 FROM tab1 AS cor0
----
41
14
41
47
................................................................................
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( + col2 AS REAL ) * col1 * - 97 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 * + col1 = NULL
----


query II rowsort
SELECT DISTINCT + col2 col1, - 16 * - - 77 * + col1 FROM tab1 cor0
----
59
-6160
68
-57904
................................................................................
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 23 > - col1
----


query II rowsort
SELECT col0 col2, col1 AS col2 FROM tab1
----
51
14
85
5
................................................................................
query II rowsort label-6989
SELECT - + COUNT( * ) col0, MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible

query II rowsort label-6989
SELECT - + COUNT ( * ) col0, MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

query II rowsort
................................................................................
query I rowsort
SELECT + 45 * - + 10 AS col0 FROM tab1
----
-450
-450
-450


query II rowsort
SELECT + 37 col0, + 92 AS col0 FROM tab0
----
37
92
37
92
................................................................................
query II rowsort label-7016
SELECT DISTINCT - + CAST( + - MAX( ALL + col2 ) AS SIGNED ) * - COUNT( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

skipif mysql # not compatible

query II rowsort label-7016
SELECT DISTINCT - + CAST ( + - MAX ( ALL + col2 ) AS INTEGER ) * - COUNT ( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

query III rowsort
................................................................................
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - 75 * - 75 * + + col2 + col1 + + + 85 / + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT DISTINCT col1 * + col0 + - - col1 col2, + col0 - - col0 FROM tab0
----
1296
30
1848
174
................................................................................
query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT( * ) FROM tab1
----
21
3

skipif mysql # not compatible

query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT ( * ) FROM tab1
----
21
3

onlyif mysql # DIV for integer division: 
................................................................................
2
1
1
1
1

skipif mysql # not compatible

query II rowsort label-7435
SELECT col1 + - col1 - col2 / - 32 col1, - 44 / col1 + col1 / + col2 FROM tab2
----
0
2
1
1
................................................................................
query II rowsort label-7470
SELECT ALL + MIN( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

skipif mysql # not compatible

query II rowsort label-7470
SELECT ALL + MIN ( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
204
1
268
1
308

skipif mysql # not compatible

query II rowsort label-7487
SELECT col0 / 53 col0, 4 * + col1 AS col0 FROM tab2
----
0
204
1
268
................................................................................
39
-3218
-1
-3227
5

skipif mysql # not compatible

query II rowsort label-7525
SELECT ALL col2 + + CAST ( - 53 AS INTEGER ) * 62 col0, - col0 + + + 90 AS col2 FROM tab1
----
-3190
39
-3218
-1
................................................................................
query I rowsort
SELECT DISTINCT col0 * + + col1 * col1 FROM tab2
----
119646
336675
379456


query II rowsort
SELECT DISTINCT - 33 * - 92 col0, - 77 - + col1 * - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3036
1096
3036
3003
................................................................................
1201
-40
3117
-58
3895

skipif mysql # not compatible

query II rowsort label-7549
SELECT DISTINCT - col2 col0, + CAST ( + col2 AS INTEGER ) * - - col1 + - - col1 - + col2 FROM tab2 AS cor0
----
-23
1201
-40
3117
................................................................................
-59
-1
-68
-1
-96
0


query II rowsort
SELECT ( 46 ) col0, - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
-15
46
-87
................................................................................
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 13 * + + col0 * - + col0 * - - col2 IN ( + 0 + ( 67 ), 10 )
----


query II rowsort
SELECT + 86 col2, col2 FROM tab2 AS cor0
----
86
23
86
40
................................................................................
query I rowsort
SELECT + 57 * + 62 col0 FROM tab1
----
3534
3534
3534


query II rowsort
SELECT ALL - col0 col2, col1 + + col0 AS col2 FROM tab0 AS cor0
----
-15
96
-87
108
................................................................................
query I rowsort
SELECT ALL ( + + col1 ) + + col2 FROM tab1
----
110
115
64


query II rowsort
SELECT ALL + col2 + + + col1 col0, - 28 FROM tab0 AS cor0
----
100
-28
128
-28
................................................................................

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3


query II rowsort
SELECT - col2 col2, - ( + 6 ) AS col0 FROM tab1 AS cor0
----
-59
-6
-68
-6
................................................................................
query II rowsort label-8439
SELECT DISTINCT COUNT( * ) col2, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible

query II rowsort label-8439
SELECT DISTINCT COUNT ( * ) col2, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort label-8456
SELECT + + 42 / - 57 + 17 FROM tab1 AS cor0
----
17
17
17


query II rowsort
SELECT + col2 * + - col2 col1, - col2 FROM tab2 cor0
----
-1600
-40
-3364
-58
................................................................................
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 93 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49


query II rowsort
SELECT ALL 94 col1, - 66 AS col2 FROM tab2
----
94
-66
94
-66
................................................................................
111
40
137
58
127

skipif mysql # not compatible

query II rowsort label-8691
SELECT ALL + - ( - col2 ) col1, col1 - CAST ( ( - 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
111
40
137
................................................................................
query II rowsort label-8693
SELECT DISTINCT + - MAX( DISTINCT + col2 ) col2, COUNT( * ) FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible

query II rowsort label-8693
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) col2, COUNT ( * ) FROM tab0 AS cor0
----
-99
3

query III rowsort
................................................................................
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad


query II rowsort
SELECT + 37 col0, + col0 - + + col1 FROM tab0 AS cor0
----
37
-66
37
66
................................................................................
query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-513
3

skipif mysql # not compatible

query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-513
3

query III rowsort
................................................................................
query I rowsort
SELECT ( - 22 ) FROM tab2 AS cor0
----
-22
-22
-22


query II rowsort
SELECT ALL - 30 * col0 col0, col0 AS col0 FROM tab0 AS cor0
----
-2610
87
-2910
97
................................................................................
4
14
4
47
4
5


query II rowsort
SELECT ALL - + 68 col1, - col2 FROM tab0 AS cor0
----
-68
-10
-68
-47
................................................................................
29
-44
29
-44
30

skipif mysql # not compatible

query II rowsort label-9091
SELECT - + 44 col2, 30 + - 82 / - - col2 FROM tab1 AS cor0
----
-44
29
-44
29
................................................................................
query II rowsort label-9476
SELECT 45 col2, COUNT( * ) DIV + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

skipif mysql # not compatible

query II rowsort label-9476
SELECT 45 col2, COUNT ( * ) / + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( + 47 ) - - COUNT ( * ) FROM tab0 AS cor0
----
50


query II rowsort
SELECT ALL col1 col0, - col0 + - 19 AS col2 FROM tab1 AS cor0
----
14
-70
47
-110
................................................................................
SELECT * FROM tab0 WHERE NOT ( + - col2 ) BETWEEN NULL AND + col0 * col0 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col0
----


query II rowsort
SELECT + col2 col0, + 11 AS col2 FROM tab0 AS cor0
----
10
11
47
11
................................................................................
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7


query II rowsort
SELECT DISTINCT + col1 col0, - ( + 73 ) AS col2 FROM tab0
----
1
-73
21
-73
................................................................................
query I rowsort
SELECT col2 * ( + col0 ) * - + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697


query II rowsort
SELECT - col2 col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
................................................................................
23
98
40
98
58
98


query II rowsort
SELECT - col0 col0, - col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-51
-85
-85







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







 







>







160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
...
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
...
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
...
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
....
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
....
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
....
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
....
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
....
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
....
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
....
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
....
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
.....
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
.....
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
.....
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
.....
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
.....
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
.....
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
.....
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
.....
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
.....
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
.....
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
.....
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
.....
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
.....
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
.....
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
.....
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
.....
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
.....
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
.....
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
.....
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
.....
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
.....
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
.....
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
.....
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
.....
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
.....
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
.....
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
.....
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
.....
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
.....
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
.....
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
.....
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
.....
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
.....
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904
42905
42906
.....
43895
43896
43897
43898
43899
43900
43901
43902
43903
43904
43905
43906
43907
43908
43909
.....
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
.....
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
.....
46230
46231
46232
46233
46234
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244
.....
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
.....
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740
.....
46851
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
.....
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
.....
47209
47210
47211
47212
47213
47214
47215
47216
47217
47218
47219
47220
47221
47222
47223
.....
47878
47879
47880
47881
47882
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
.....
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
.....
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
.....
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
.....
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
.....
52221
52222
52223
52224
52225
52226
52227
52228
52229
52230
52231
52232
52233
52234
52235
.....
54058
54059
54060
54061
54062
54063
54064
54065
54066
54067
54068
54069
54070
54071
54072
.....
55255
55256
55257
55258
55259
55260
55261
55262
55263
55264
55265
55266
55267
55268
55269
.....
56559
56560
56561
56562
56563
56564
56565
56566
56567
56568
56569
56570
56571
56572
56573
.....
56950
56951
56952
56953
56954
56955
56956
56957
56958
56959
56960
56961
56962
56963
56964
.....
57688
57689
57690
57691
57692
57693
57694
57695
57696
57697
57698
57699
57700
57701
57702
.....
58196
58197
58198
58199
58200
58201
58202
58203
58204
58205
58206
58207
58208
58209
58210
.....
58587
58588
58589
58590
58591
58592
58593
58594
58595
58596
58597
58598
58599
58600
58601
.....
60869
60870
60871
60872
60873
60874
60875
60876
60877
60878
60879
60880
60881
60882
60883
.....
61372
61373
61374
61375
61376
61377
61378
61379
61380
61381
61382
61383
61384
61385
61386
.....
61735
61736
61737
61738
61739
61740
61741
61742
61743
61744
61745
61746
61747
61748
61749
.....
61774
61775
61776
61777
61778
61779
61780
61781
61782
61783
61784
61785
61786
61787
61788
.....
63341
63342
63343
63344
63345
63346
63347
63348
63349
63350
63351
63352
63353
63354
63355
.....
63385
63386
63387
63388
63389
63390
63391
63392
63393
63394
63395
63396
63397
63398
63399
.....
64588
64589
64590
64591
64592
64593
64594
64595
64596
64597
64598
64599
64600
64601
64602
.....
64824
64825
64826
64827
64828
64829
64830
64831
64832
64833
64834
64835
64836
64837
64838
.....
64888
64889
64890
64891
64892
64893
64894
64895
64896
64897
64898
64899
64900
64901
64902
.....
65072
65073
65074
65075
65076
65077
65078
65079
65080
65081
65082
65083
65084
65085
65086
.....
67004
67005
67006
67007
67008
67009
67010
67011
67012
67013
67014
67015
67016
67017
67018
.....
67937
67938
67939
67940
67941
67942
67943
67944
67945
67946
67947
67948
67949
67950
67951
.....
68944
68945
68946
68947
68948
68949
68950
68951
68952
68953
68954
68955
68956
68957
68958
.....
69225
69226
69227
69228
69229
69230
69231
69232
69233
69234
69235
69236
69237
69238
69239
.....
69409
69410
69411
69412
69413
69414
69415
69416
69417
69418
69419
69420
69421
69422
69423
.....
69795
69796
69797
69798
69799
69800
69801
69802
69803
69804
69805
69806
69807
69808
69809
.....
69819
69820
69821
69822
69823
69824
69825
69826
69827
69828
69829
69830
69831
69832
69833
.....
70054
70055
70056
70057
70058
70059
70060
70061
70062
70063
70064
70065
70066
70067
70068
.....
71404
71405
71406
71407
71408
71409
71410
71411
71412
71413
71414
71415
71416
71417
71418
.....
75784
75785
75786
75787
75788
75789
75790
75791
75792
75793
75794
75795
75796
75797
75798
.....
76109
76110
76111
76112
76113
76114
76115
76116
76117
76118
76119
76120
76121
76122
76123
.....
77241
77242
77243
77244
77245
77246
77247
77248
77249
77250
77251
77252
77253
77254
77255
.....
77778
77779
77780
77781
77782
77783
77784
77785
77786
77787
77788
77789
77790
77791
77792
.....
78326
78327
78328
78329
78330
78331
78332
78333
78334
78335
78336
78337
78338
78339
78340
.....
78494
78495
78496
78497
78498
78499
78500
78501
78502
78503
78504
78505
78506
78507
78508
.....
79895
79896
79897
79898
79899
79900
79901
79902
79903
79904
79905
79906
79907
79908
79909
.....
80608
80609
80610
80611
80612
80613
80614
80615
80616
80617
80618
80619
80620
80621
80622
.....
80634
80635
80636
80637
80638
80639
80640
80641
80642
80643
80644
80645
80646
80647
80648
.....
81118
81119
81120
81121
81122
81123
81124
81125
81126
81127
81128
81129
81130
81131
81132
.....
81881
81882
81883
81884
81885
81886
81887
81888
81889
81890
81891
81892
81893
81894
81895
.....
82523
82524
82525
82526
82527
82528
82529
82530
82531
82532
82533
82534
82535
82536
82537
.....
82970
82971
82972
82973
82974
82975
82976
82977
82978
82979
82980
82981
82982
82983
82984
.....
84357
84358
84359
84360
84361
84362
84363
84364
84365
84366
84367
84368
84369
84370
84371
.....
87850
87851
87852
87853
87854
87855
87856
87857
87858
87859
87860
87861
87862
87863
87864
.....
87953
87954
87955
87956
87957
87958
87959
87960
87961
87962
87963
87964
87965
87966
87967
.....
88000
88001
88002
88003
88004
88005
88006
88007
88008
88009
88010
88011
88012
88013
88014
.....
90503
90504
90505
90506
90507
90508
90509
90510
90511
90512
90513
90514
90515
90516
90517
.....
90528
90529
90530
90531
90532
90533
90534
90535
90536
90537
90538
90539
90540
90541
90542
.....
91080
91081
91082
91083
91084
91085
91086
91087
91088
91089
91090
91091
91092
91093
91094
query I rowsort label-14
SELECT DISTINCT ( + + col2 ) / - col0 col2 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col1 FROM tab0
----
-15
81
-87
21
................................................................................

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL CAST ( NULL AS INTEGER ) * ( COUNT ( - - col0 ) ) + 65 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 - - + col2 col0, + col0 AS col1 FROM tab0 AS cor0
----
-77
87
2
97
................................................................................
query I rowsort
SELECT + ( + 35 ) AS col1 FROM tab1 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 col1, ( - ( + - 32 ) ) FROM tab0 AS cor0
----
12
32
12
32
................................................................................
51
2
67
2
77
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col0, ( - 19 ) AS col0 FROM tab1
----
60
-19
60
-19
................................................................................
1
67
1
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-104
SELECT ALL col1 col1, col0 / col0 AS col1 FROM tab2
----
51
1
67
1
................................................................................
542
95
7018
23
794
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - ( 26 ) + + - ( + col0 ) col1, col2 * + - col1 FROM tab0 AS cor0
----
-2349
-210
-2619
-99
................................................................................
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 88 / col1 IS NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col2 col2, + 54 * - + col0 AS col1 FROM tab0
----
210
-4698
3807
-810
................................................................................
query I rowsort
SELECT ALL + col0 * - 93 * 72 AS col1 FROM tab0 AS cor0
----
-100440
-582552
-649512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 * - col2 col1, col1 * - + col1 * + col0 AS col1 FROM tab0
----
3901
-98415
8217
-97
................................................................................
query II rowsort label-582
SELECT ALL + - COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-582
SELECT ALL + - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

query II rowsort
................................................................................
query I rowsort
SELECT ALL - - 51 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - col0 AS col1 FROM tab1 cor0
----
59
-85
68
-91
................................................................................
1
28
1
94
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-927
SELECT col1 + - - col1 col2, - 61 / - + 42 FROM tab1 AS cor0
----
10
1
28
1
................................................................................
-77
0
2
4
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1062
SELECT + 71 / + + col0 + 0 * + col0 * 52 col0, col2 + - col0 AS col1 FROM tab0
----
0
-77
0
2
................................................................................
63
61
63
61
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1091
SELECT + CAST ( 61 AS INTEGER ) col0, + ( 63 ) AS col1 FROM tab2 AS cor0
----
61
63
61
63
................................................................................
28
59
28
68
28
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + 20 AS col1 FROM tab1
----
14
20
47
20
................................................................................
query I rowsort
SELECT ALL - 86 + col0 col0 FROM tab1
----
-1
-35
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, 19 FROM tab2
----
23
19
40
19
................................................................................
skipif mysql # not compatible
query II rowsort label-1641
SELECT - + COUNT ( * ), 6 AS col0 FROM tab2 AS cor0
----
-3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 42 col2, + ( col2 ) AS col1 FROM tab1 AS cor0
----
42
59
42
68
................................................................................
1
-44
3
-7
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1748
SELECT DISTINCT - + col2 + + 52 col0, - col0 / - col1 AS col2 FROM tab1 AS cor0
----
-16
1
-44
3
................................................................................
skipif mysql # not compatible
query II rowsort label-1824
SELECT ALL + 55 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
55
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - 43 FROM tab0
----
15
-43
87
-43
................................................................................
SELECT ALL + 7 AS col0 FROM tab1 WHERE NOT 65 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 78 AS col2, + col0 + 0 col2, + col2 AS col0 FROM tab0
----
9 values hashing to b02dffe5176ae8a19de8a147af89d9a6

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> + + 99
................................................................................
NULL
1
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2176
SELECT ALL - col0 / - + 50 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
1
NULL
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL - MIN ( col2 ) col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col1 + - - col0 AS col0 FROM tab2 cor0
----
-51
-5
-67
8
................................................................................
191
-21
181
-81
155629

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2318
SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
191
-21
181
................................................................................
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2390
SELECT - CAST ( NULL AS INTEGER ) col1, col1 FROM tab2
----
NULL
51
NULL
67
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 col1, col1 + 8 - + col2, - + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 508d9e4f017cbfed235b4ff483db387f

query I rowsort
SELECT DISTINCT + - col1 * col2 * - - 7 * + 81 AS col2 FROM tab0 AS cor0
................................................................................
query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT( * ) ) FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2638
SELECT DISTINCT 50 col1, ( COUNT ( * ) ) FROM tab1 AS cor0
----
50
3

query I rowsort
................................................................................
-3984
-65
-767
-65
-8322

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2731
SELECT - 65 col2, + CAST ( col2 AS INTEGER ) * + ( - 85 ) - + 4 + + col0 FROM tab0 AS cor0
----
-65
-3984
-65
-767
................................................................................
1827
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col1 AS col0 FROM tab1
----
59
5
68
47
................................................................................

skipif mysql # not compatible
query I rowsort label-2970
SELECT + COUNT ( * ) * - 35 FROM tab1 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
................................................................................
64
-3
46
-38
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2975
SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST ( NULL AS REAL ) * 53 IS NULL )
----
-20
64
-3
46
................................................................................

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col2 FROM tab1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col2, - col0 - - - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + - col0 ) + col0 - + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
................................................................................
6279

query I rowsort
SELECT + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col0 AS col1 FROM tab0
----
1
-97
21
-87
................................................................................
query II rowsort label-3106
SELECT 11 col1, + COUNT( * ) FROM tab0
----
11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3106
SELECT 11 col1, + COUNT ( * ) FROM tab0
----
11
3

query III rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-3109
SELECT + + ( 2 ) + - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( 7 ) AND ( NULL ) )
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col1 col0, - col0 FROM tab0
----
1
-97
441
-87
................................................................................
query II rowsort label-3326
SELECT COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3326
SELECT COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 + - ( - col1 ) - - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 4 AS col0 FROM tab1
----
59
4
68
4
................................................................................
query I rowsort
SELECT ALL - 15 + - 31 FROM tab0 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 91 FROM tab2
----
23
91
40
91
................................................................................
120533
56253

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + col2 AS col2 FROM tab1
----
59
59
68
68
................................................................................
-3016
-3811

query I rowsort
SELECT 70 * - - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col2 col2, + col2 AS col0 FROM tab2 AS cor0
----
17
58
23
23
................................................................................
-23
0
-40
0
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4274
SELECT col2 / - ( + col1 ) col2, - col2 AS col1 FROM tab2
----
0
-23
0
-40
................................................................................
-64
125
-75
74
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4367
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + col2 col2, - col0 FROM tab2
----
117
-64
125
-75
................................................................................
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4502
SELECT ALL CAST ( NULL AS INTEGER ) col2, col1 FROM tab1
----
NULL
14
NULL
47
................................................................................

skipif mysql # not compatible
query I rowsort label-4503
SELECT 40 * SUM ( 95 ) FROM tab0
----
11400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 col1, col0 FROM tab1
----
0
51
0
85
................................................................................
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, + col0 + 82 FROM tab1 AS cor0
----
-43
133
-43
167
................................................................................
query I rowsort
SELECT ALL col0 * - 69 AS col2 FROM tab1
----
-3519
-5865
-6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col2 AS col1 FROM tab0
----
15
47
87
10
................................................................................
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4633
SELECT DISTINCT SUM ( + + col1 ) col2 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - ( + col1 ) col1, col2 / col0 AS col0 FROM tab1 cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT MAX( ALL + col2 ) AS col0 FROM tab0
................................................................................
query I rowsort
SELECT ALL col0 + + 31 + col0 + - col1 AS col1 FROM tab1
----
119
166
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 FROM tab1
----
51
14
85
5
................................................................................
query II rowsort label-4827
SELECT ALL - 53 col0, + SUM( DISTINCT - 54 ) FROM tab2
----
-53
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4827
SELECT ALL - 53 col0, + SUM ( DISTINCT - 54 ) FROM tab2
----
-53
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
23
67
58
77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT ALL col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2
----
51
23
67
58
................................................................................
query II rowsort label-5004
SELECT ALL + 84 col1, COUNT( * ) FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5004
SELECT ALL + 84 col1, COUNT ( * ) FROM tab2 AS cor0
----
84
3

query I rowsort
................................................................................
-61
14
-61
47
-61
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, col0 AS col1 FROM tab1 cor0
----
51
51
85
85
................................................................................
query I rowsort
SELECT ALL 84 - - col0 FROM tab1
----
135
169
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 57 ) col1, col1 AS col0 FROM tab2
----
57
51
57
67
................................................................................

skipif mysql # not compatible
query I rowsort label-5067
SELECT - ( SUM ( col0 ) ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col1 * - 37 FROM tab1
----
51
-518
85
-185
................................................................................
query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col1 * + + col1 + - 71 IS NULL
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5103
SELECT ALL ( + 41 ) - 18 + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col1 * + + col1 + - 71 IS NULL
----
26
3

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
-14
5888
-31
4232
4
6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( col0 ) col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
................................................................................
----
124

query I rowsort
SELECT DISTINCT - 89 + + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 33 AS col1 FROM tab2 AS cor0
----
-46
-33
-64
-33
................................................................................
SELECT * FROM tab1 WHERE NOT - + 48 <> col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 63 col2, 57 FROM tab2
----
-63
57
-63
57
................................................................................

skipif mysql # not compatible
query I rowsort label-5359
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
................................................................................

skipif mysql # not compatible
query I rowsort label-5386
SELECT - COUNT ( * ) * + + 46 AS col1 FROM tab0 WHERE + + 20 IN ( + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 FROM tab2
----
46
-23
64
-40
................................................................................
87
11
97
5
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5401
SELECT ALL + col2 / + 9 col1, + col0 FROM tab0 AS cor0
----
1
87
11
97
................................................................................
query I rowsort
SELECT col2 + + ( + 5 ) * + col1 FROM tab0
----
104
115
452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - ( - col0 ) col0, col0 FROM tab2
----
17
75
23
46
................................................................................
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 23 > - 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 65 AS col1 FROM tab2
----
46
65
64
65
................................................................................
skipif mysql # not compatible
query II rowsort label-5958
SELECT + COUNT ( * ), 47 AS col1 FROM tab0
----
3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 * - + col2 FROM tab1
----
51
-4896
85
-5015
................................................................................
query I rowsort label-6096
SELECT ALL - col0 / - - col1 * + + col2 / col2 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - 30 col2, - col2 + - col0 FROM tab1 AS cor0
----
35
-144
44
-147
................................................................................
77
153
51
79
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6142
SELECT DISTINCT + col1 * 69 / col2 col2, col1 AS col2 FROM tab2
----
132
77
153
51
................................................................................
23
64
40
75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6218
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) col2, + col2 AS col0 FROM tab2
----
46
23
64
40
................................................................................

skipif mysql # not compatible
query I rowsort label-6279
SELECT + COUNT ( * ) / - - 31 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 + - + 69 FROM tab0
----
1
30
21
-59
................................................................................
query I rowsort label-6319
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - col0 col2, + ( + + col2 ) - - col2 FROM tab1
----
102
192
170
118
................................................................................
query II rowsort label-6555
SELECT ALL CAST( NULL AS SIGNED ) col2, + COUNT( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6555
SELECT ALL CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) FROM tab1 WHERE 7 < + col2
----
NULL
3

query I rowsort
................................................................................
query II rowsort label-6612
SELECT ALL - MIN( + 27 ) col2, + COUNT( * ) * 49 FROM tab2
----
-27
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6612
SELECT ALL - MIN ( + 27 ) col2, + COUNT ( * ) * 49 FROM tab2
----
-27
147

query I rowsort
................................................................................
5

query I rowsort
SELECT DISTINCT - + 49 + + 63 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 30 AS col2 FROM tab2 AS cor0
----
23
30
40
30
................................................................................
51
-38
77
-56
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6652
SELECT ALL - col2 - 47 / - 17 col1, col1 FROM tab2 AS cor0
----
-21
51
-38
77
................................................................................
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( col1 ) NOT IN ( 60, col1, + 33 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 col1, col1 AS col2 FROM tab1 AS cor0
----
41
14
41
47
................................................................................
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( + col2 AS REAL ) * col1 * - 97 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 * + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - 16 * - - 77 * + col1 FROM tab1 cor0
----
59
-6160
68
-57904
................................................................................
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 23 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 AS col2 FROM tab1
----
51
14
85
5
................................................................................
query II rowsort label-6989
SELECT - + COUNT( * ) col0, MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6989
SELECT - + COUNT ( * ) col0, MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3
-1

query II rowsort
................................................................................
query I rowsort
SELECT + 45 * - + 10 AS col0 FROM tab1
----
-450
-450
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col0, + 92 AS col0 FROM tab0
----
37
92
37
92
................................................................................
query II rowsort label-7016
SELECT DISTINCT - + CAST( + - MAX( ALL + col2 ) AS SIGNED ) * - COUNT( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT DISTINCT - + CAST ( + - MAX ( ALL + col2 ) AS INTEGER ) * - COUNT ( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
----
9048
-54

query III rowsort
................................................................................
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - 75 * - 75 * + + col2 + col1 + + + 85 / + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col0 + - - col1 col2, + col0 - - col0 FROM tab0
----
1296
30
1848
174
................................................................................
query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT( * ) FROM tab1
----
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7334
SELECT DISTINCT 21 col2, COUNT ( * ) FROM tab1
----
21
3

onlyif mysql # DIV for integer division: 
................................................................................
2
1
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7435
SELECT col1 + - col1 - col2 / - 32 col1, - 44 / col1 + col1 / + col2 FROM tab2
----
0
2
1
1
................................................................................
query II rowsort label-7470
SELECT ALL + MIN( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7470
SELECT ALL + MIN ( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0
----
5
28

onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
204
1
268
1
308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7487
SELECT col0 / 53 col0, 4 * + col1 AS col0 FROM tab2
----
0
204
1
268
................................................................................
39
-3218
-1
-3227
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7525
SELECT ALL col2 + + CAST ( - 53 AS INTEGER ) * 62 col0, - col0 + + + 90 AS col2 FROM tab1
----
-3190
39
-3218
-1
................................................................................
query I rowsort
SELECT DISTINCT col0 * + + col1 * col1 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 33 * - 92 col0, - 77 - + col1 * - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3036
1096
3036
3003
................................................................................
1201
-40
3117
-58
3895

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7549
SELECT DISTINCT - col2 col0, + CAST ( + col2 AS INTEGER ) * - - col1 + - - col1 - + col2 FROM tab2 AS cor0
----
-23
1201
-40
3117
................................................................................
-59
-1
-68
-1
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 46 ) col0, - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
-15
46
-87
................................................................................
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 13 * + + col0 * - + col0 * - - col2 IN ( + 0 + ( 67 ), 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 col2, col2 FROM tab2 AS cor0
----
86
23
86
40
................................................................................
query I rowsort
SELECT + 57 * + 62 col0 FROM tab1
----
3534
3534
3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 + + col0 AS col2 FROM tab0 AS cor0
----
-15
96
-87
108
................................................................................
query I rowsort
SELECT ALL ( + + col1 ) + + col2 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + + col1 col0, - 28 FROM tab0 AS cor0
----
100
-28
128
-28
................................................................................

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - ( + 6 ) AS col0 FROM tab1 AS cor0
----
-59
-6
-68
-6
................................................................................
query II rowsort label-8439
SELECT DISTINCT COUNT( * ) col2, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8439
SELECT DISTINCT COUNT ( * ) col2, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
................................................................................
query I rowsort label-8456
SELECT + + 42 / - 57 + 17 FROM tab1 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + - col2 col1, - col2 FROM tab2 cor0
----
-1600
-40
-3364
-58
................................................................................
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 93 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col1, - 66 AS col2 FROM tab2
----
94
-66
94
-66
................................................................................
111
40
137
58
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8691
SELECT ALL + - ( - col2 ) col1, col1 - CAST ( ( - 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
111
40
137
................................................................................
query II rowsort label-8693
SELECT DISTINCT + - MAX( DISTINCT + col2 ) col2, COUNT( * ) FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8693
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) col2, COUNT ( * ) FROM tab0 AS cor0
----
-99
3

query III rowsort
................................................................................
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col0, + col0 - + + col1 FROM tab0 AS cor0
----
37
-66
37
66
................................................................................
query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-513
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8829
SELECT DISTINCT - 7 * - - 86 + 89 col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-513
3

query III rowsort
................................................................................
query I rowsort
SELECT ( - 22 ) FROM tab2 AS cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 30 * col0 col0, col0 AS col0 FROM tab0 AS cor0
----
-2610
87
-2910
97
................................................................................
4
14
4
47
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 68 col1, - col2 FROM tab0 AS cor0
----
-68
-10
-68
-47
................................................................................
29
-44
29
-44
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9091
SELECT - + 44 col2, 30 + - 82 / - - col2 FROM tab1 AS cor0
----
-44
29
-44
29
................................................................................
query II rowsort label-9476
SELECT 45 col2, COUNT( * ) DIV + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9476
SELECT 45 col2, COUNT ( * ) / + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
45
0

query I rowsort
................................................................................

skipif mysql # not compatible
query I rowsort label-9487
SELECT + ( + 47 ) - - COUNT ( * ) FROM tab0 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 + - 19 AS col2 FROM tab1 AS cor0
----
14
-70
47
-110
................................................................................
SELECT * FROM tab0 WHERE NOT ( + - col2 ) BETWEEN NULL AND + col0 * col0 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + 11 AS col2 FROM tab0 AS cor0
----
10
11
47
11
................................................................................
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - ( + 73 ) AS col2 FROM tab0
----
1
-73
21
-73
................................................................................
query I rowsort
SELECT col2 * ( + col0 ) * - + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
................................................................................
23
98
40
98
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-51
-85
-85

Changes to test/random/aggregates/slt_good_106.test.

831
832
833
834
835
836
837

838
839
840
841
842
843
844
....
2134
2135
2136
2137
2138
2139
2140

2141
2142
2143
2144
2145
2146
2147
....
2505
2506
2507
2508
2509
2510
2511

2512
2513
2514
2515
2516
2517
2518
....
2826
2827
2828
2829
2830
2831
2832

2833
2834
2835
2836
2837
2838
2839
....
3479
3480
3481
3482
3483
3484
3485

3486
3487
3488
3489
3490
3491
3492
....
4286
4287
4288
4289
4290
4291
4292

4293
4294
4295
4296
4297
4298
4299
....
4859
4860
4861
4862
4863
4864
4865

4866
4867
4868
4869
4870
4871
4872
....
5834
5835
5836
5837
5838
5839
5840

5841
5842
5843
5844
5845
5846
5847
....
6649
6650
6651
6652
6653
6654
6655

6656
6657
6658
6659
6660
6661
6662
....
8452
8453
8454
8455
8456
8457
8458

8459
8460
8461
8462
8463
8464
8465
....
8477
8478
8479
8480
8481
8482
8483

8484
8485
8486
8487
8488
8489
8490
....
9104
9105
9106
9107
9108
9109
9110

9111
9112
9113
9114
9115
9116
9117
....
9555
9556
9557
9558
9559
9560
9561

9562
9563
9564
9565
9566
9567
9568
....
9940
9941
9942
9943
9944
9945
9946

9947
9948
9949
9950
9951
9952
9953
.....
11570
11571
11572
11573
11574
11575
11576

11577
11578
11579
11580
11581
11582
11583
.....
11643
11644
11645
11646
11647
11648
11649

11650
11651
11652
11653
11654
11655
11656
.....
12082
12083
12084
12085
12086
12087
12088

12089
12090
12091
12092
12093
12094
12095
.....
12329
12330
12331
12332
12333
12334
12335

12336
12337
12338
12339
12340
12341
12342
.....
12528
12529
12530
12531
12532
12533
12534

12535
12536
12537
12538
12539
12540
12541
.....
12806
12807
12808
12809
12810
12811
12812

12813
12814
12815
12816
12817
12818
12819
.....
13762
13763
13764
13765
13766
13767
13768

13769
13770
13771
13772
13773
13774
13775
.....
13947
13948
13949
13950
13951
13952
13953

13954
13955
13956
13957
13958
13959
13960
.....
14474
14475
14476
14477
14478
14479
14480

14481
14482
14483
14484
14485
14486
14487
.....
14952
14953
14954
14955
14956
14957
14958

14959
14960
14961
14962
14963
14964
14965
.....
16941
16942
16943
16944
16945
16946
16947

16948
16949
16950
16951
16952
16953
16954
.....
17828
17829
17830
17831
17832
17833
17834

17835
17836
17837
17838
17839
17840
17841
.....
18047
18048
18049
18050
18051
18052
18053

18054
18055
18056
18057
18058
18059
18060
.....
18298
18299
18300
18301
18302
18303
18304

18305
18306
18307
18308
18309
18310
18311
.....
18360
18361
18362
18363
18364
18365
18366

18367
18368
18369
18370
18371
18372
18373
.....
18423
18424
18425
18426
18427
18428
18429

18430
18431
18432
18433
18434
18435
18436
.....
19020
19021
19022
19023
19024
19025
19026

19027
19028
19029
19030
19031
19032
19033
.....
20885
20886
20887
20888
20889
20890
20891

20892
20893
20894
20895

20896
20897
20898
20899
20900
20901
20902
.....
21064
21065
21066
21067
21068
21069
21070

21071
21072
21073
21074
21075
21076
21077
.....
21177
21178
21179
21180
21181
21182
21183

21184
21185
21186
21187
21188
21189
21190
.....
23031
23032
23033
23034
23035
23036
23037

23038
23039
23040
23041
23042
23043
23044
.....
23117
23118
23119
23120
23121
23122
23123

23124
23125
23126
23127
23128
23129
23130
.....
24462
24463
24464
24465
24466
24467
24468

24469
24470
24471
24472
24473
24474
24475
.....
25092
25093
25094
25095
25096
25097
25098

25099
25100
25101
25102
25103
25104
25105
.....
25911
25912
25913
25914
25915
25916
25917

25918
25919
25920
25921
25922
25923
25924
.....
28826
28827
28828
28829
28830
28831
28832

28833
28834
28835
28836
28837
28838
28839
.....
28966
28967
28968
28969
28970
28971
28972

28973
28974
28975
28976
28977
28978
28979
.....
29242
29243
29244
29245
29246
29247
29248

29249
29250
29251
29252
29253
29254
29255
.....
30540
30541
30542
30543
30544
30545
30546

30547
30548
30549
30550
30551
30552
30553
.....
30969
30970
30971
30972
30973
30974
30975

30976
30977
30978
30979
30980
30981
30982
.....
33145
33146
33147
33148
33149
33150
33151

33152
33153
33154
33155
33156
33157
33158
.....
34898
34899
34900
34901
34902
34903
34904

34905
34906
34907
34908
34909
34910
34911
.....
35001
35002
35003
35004
35005
35006
35007

35008
35009
35010
35011
35012
35013
35014
.....
37639
37640
37641
37642
37643
37644
37645

37646
37647
37648
37649
37650
37651
37652
.....
38330
38331
38332
38333
38334
38335
38336

38337
38338
38339
38340
38341
38342
38343
.....
38831
38832
38833
38834
38835
38836
38837

38838
38839
38840
38841
38842
38843
38844
.....
39355
39356
39357
39358
39359
39360
39361

39362
39363
39364
39365
39366
39367
39368
.....
41384
41385
41386
41387
41388
41389
41390

41391
41392
41393
41394
41395
41396
41397
.....
42229
42230
42231
42232
42233
42234
42235

42236
42237
42238
42239
42240
42241
42242
.....
43406
43407
43408
43409
43410
43411
43412

43413
43414
43415
43416
43417
43418
43419
.....
45528
45529
45530
45531
45532
45533
45534

45535
45536
45537
45538
45539
45540
45541
.....
50296
50297
50298
50299
50300
50301
50302

50303
50304
50305
50306
50307
50308
50309
.....
51464
51465
51466
51467
51468
51469
51470

51471
51472
51473
51474
51475
51476
51477
.....
51806
51807
51808
51809
51810
51811
51812

51813
51814
51815
51816
51817
51818
51819
.....
52041
52042
52043
52044
52045
52046
52047

52048
52049
52050
52051
52052
52053
52054
.....
53245
53246
53247
53248
53249
53250
53251

53252
53253
53254
53255
53256
53257
53258
.....
53441
53442
53443
53444
53445
53446
53447

53448
53449
53450
53451
53452
53453
53454
.....
53538
53539
53540
53541
53542
53543
53544

53545
53546
53547
53548
53549
53550
53551
.....
53588
53589
53590
53591
53592
53593
53594

53595
53596
53597
53598
53599
53600
53601
.....
54875
54876
54877
54878
54879
54880
54881

54882
54883
54884
54885
54886
54887
54888
.....
55383
55384
55385
55386
55387
55388
55389

55390
55391
55392
55393
55394
55395
55396
.....
55977
55978
55979
55980
55981
55982
55983

55984
55985
55986
55987
55988
55989
55990
.....
57944
57945
57946
57947
57948
57949
57950

57951
57952
57953
57954
57955
57956
57957
.....
58127
58128
58129
58130
58131
58132
58133

58134
58135
58136
58137
58138
58139
58140
.....
58284
58285
58286
58287
58288
58289
58290

58291
58292
58293
58294
58295
58296
58297
.....
58844
58845
58846
58847
58848
58849
58850

58851
58852
58853
58854
58855
58856
58857
.....
60644
60645
60646
60647
60648
60649
60650

60651
60652
60653
60654
60655
60656
60657
.....
63169
63170
63171
63172
63173
63174
63175

63176
63177
63178
63179
63180
63181
63182
.....
63880
63881
63882
63883
63884
63885
63886

63887
63888
63889
63890
63891
63892
63893
.....
64873
64874
64875
64876
64877
64878
64879

64880
64881
64882
64883
64884
64885
64886
.....
67715
67716
67717
67718
67719
67720
67721

67722
67723
67724
67725
67726
67727
67728
.....
67806
67807
67808
67809
67810
67811
67812

67813
67814
67815
67816
67817
67818
67819
.....
68963
68964
68965
68966
68967
68968
68969

68970
68971
68972
68973
68974
68975
68976
.....
69001
69002
69003
69004
69005
69006
69007

69008
69009
69010
69011
69012
69013
69014
.....
70722
70723
70724
70725
70726
70727
70728

70729
70730
70731
70732
70733
70734
70735
.....
70905
70906
70907
70908
70909
70910
70911

70912
70913
70914
70915
70916
70917
70918
.....
71670
71671
71672
71673
71674
71675
71676

71677
71678
71679
71680
71681
71682
71683
.....
72256
72257
72258
72259
72260
72261
72262

72263
72264
72265
72266
72267
72268
7