hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT DISTINCT - - col0 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + cor0.col1 + 26 AS col0 FROM tab2 AS cor0
----
43
57
85
query I rowsort
SELECT DISTINCT - + col1 * 12 FROM tab0 AS cor0
----
-1032
-1092
-1164
query I rowsort
SELECT col1 * + cor0.col2 + col2 * - col2 FROM tab2 AS cor0
----
-798
108
858
query I rowsort
SELECT - col1 * + col1 + 43 + col0 FROM tab2 AS cor0
----
-167
-3360
-911
query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + col0 col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + col0 * 31 FROM tab2
----
217
2418
2449
query I rowsort
SELECT ALL 29 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL - - cor0.col1 * + col2 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * col1 col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT col1 + col1 * - 8 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT + - 71 - - col2 AS col0 FROM tab1 AS cor0
----
-14
-17
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-13
SELECT - + 36 * col0 - + CAST( NULL AS DECIMAL ) * 65 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-13
SELECT - + 36 * col0 - + CAST ( NULL AS REAL ) * 65 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 90 * col2 - + col0 FROM tab0
----
-125
-2994
-7469
query I rowsort
SELECT 65 * + 78 * + col0 - + ( + col0 ) AS col0 FROM tab1
----
15207
324416
405520
onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT cor0.col1 DIV + 34 + 84 DIV + cor0.col0 FROM tab0 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-16
SELECT cor0.col1 / + 34 + 84 / + cor0.col0 FROM tab0 AS cor0
----
2
4
5
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 44 * cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT DISTINCT + + cor0.col1 - + cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col2 * col1 * col1 - col1 * + col1 FROM tab2 AS cor0
----
-11271
-26908
-93987
query I rowsort
SELECT - - col1 + col2 * 80 FROM tab0 AS cor0
----
177
2726
6651
query I rowsort
SELECT DISTINCT col2 * - col2 + + 97 FROM tab2 AS cor0
----
-1347
-579
-632
query I rowsort
SELECT col1 * col1 * col0 + - 91 AS col0 FROM tab0
----
177413
329224
736918
query I rowsort
SELECT DISTINCT col1 + + col0 + - col2 * col2 FROM tab1
----
-2887
-3175
-9123
onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT 29 DIV + tab2.col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-25
SELECT 29 / + tab2.col1 FROM tab2
----
0
0
1
query I rowsort
SELECT 85 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT DISTINCT 49 + - col2 AS col1 FROM tab1 AS cor0
----
-47
-5
-8
query I rowsort
SELECT - 3 + + 75 FROM tab1 AS cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT DISTINCT + cor0.col1 + - col2 + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-21
1
33
skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + cor0.col1 + - col2 + col2 / - col0 AS col1 FROM tab2 AS cor0
----
-21
1
33
query I rowsort
SELECT + - 65 * col1 + col1 - col2 FROM tab0 AS cor0
----
-5537
-5906
-6209
query I rowsort
SELECT + + col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 + col0 * 72 AS col0 FROM tab2 AS cor0
----
535
5675
5705
query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 * + col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + ( + col2 ) - col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-36
SELECT + col1 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-36
SELECT + col1 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - col0 + - 35 * + col2 AS col2 FROM tab0 AS cor0
----
-1179
-2959
-70
query I rowsort
SELECT col2 + 34 * cor0.col1 FROM tab1 AS cor0
----
397
538
938
query I rowsort
SELECT + col1 * + 58 + cor0.col0 AS col0 FROM tab0 AS cor0
----
5012
5367
5661
query I rowsort
SELECT DISTINCT col1 + 77 * + col1 AS col1 FROM tab1
----
1014
2028
780
query I rowsort
SELECT ALL col0 * ( + col2 ) * + col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col1 * ( 93 ) FROM tab1
----
1209
2418
930
query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab1 cor0
----
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-46
SELECT DISTINCT CAST( 57 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1767
3363
969
skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT CAST ( 57 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1767
3363
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT ALL col1 DIV tab2.col1 + col2 + col0 AS col2 FROM tab2
----
105
118
35
skipif mysql # not compatible
query I rowsort label-47
SELECT ALL col1 / tab2.col1 + col2 + col0 AS col2 FROM tab2
----
105
118
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-48
SELECT ALL + CAST( - col2 + + col1 AS SIGNED ) * col0 FROM tab0
----
1272
3360
801
skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + CAST ( - col2 + + col1 AS INTEGER ) * col0 FROM tab0
----
1272
3360
801
query I rowsort
SELECT + col0 + 83 AS col0 FROM tab0
----
107
118
172
query I rowsort
SELECT 25 * 37 + col2 FROM tab0
----
1007
926
958
query I rowsort
SELECT + - 56 * ( cor0.col0 * - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
204288
430080
9072
query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + col1 * ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab0
----
23
23
23
query I rowsort
SELECT ALL 41 * col1 FROM tab1
----
1066
410
533
query I rowsort
SELECT ALL 59 - tab2.col0 FROM tab2
----
-19
-20
52
query I rowsort
SELECT ALL tab0.col2 * + col1 + - col1 - - 31 FROM tab0
----
2783
31
7402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + + 68 + + col0 AS col1 FROM tab1 AS cor0
----
132
148
71
query I rowsort
SELECT ALL - col1 + - tab2.col1 * ( ( col1 ) ) * - col1 FROM tab2
----
205320
29760
4896
query I rowsort
SELECT - + cor0.col1 * + ( col0 ) + + col2 * col1 FROM tab0 cor0
----
-3298
-637
774
query I rowsort
SELECT DISTINCT col1 + - ( ( col2 ) ) FROM tab1 cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 36 * 88 * col0 col1 FROM tab2 AS cor0
----
22183
247182
250351
query I rowsort
SELECT DISTINCT + col1 + + 6 FROM tab0 cor0
----
103
92
97
query I rowsort
SELECT 96 * col1 AS col1 FROM tab2
----
1632
2976
5664
query I rowsort
SELECT ALL col0 * col0 + col2 * col2 * cor0.col1 FROM tab2 AS cor0
----
22648
30789
45968
query I rowsort
SELECT DISTINCT + - col0 + 6 AS col2 FROM tab2 AS cor0
----
-1
-72
-73
query I rowsort
SELECT ALL + col2 + ( - col0 + col1 ) FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT 86 * col1 AS col1 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT ALL col2 * col1 + - col2 - + 24 AS col2 FROM tab1 AS cor0
----
1128
1326
489
query I rowsort
SELECT - 40 + - col1 AS col0 FROM tab2 AS cor0
----
-57
-71
-99
query I rowsort
SELECT DISTINCT + - 13 * + col2 + 9 FROM tab0 AS cor0
----
-1057
-4
-420
query I rowsort
SELECT - 75 * col1 + 21 * col2 FROM tab2 AS cor0
----
-1758
-3879
-477
onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT ALL col1 * col1 * col2 + - col1 DIV col1 AS col0 FROM tab2
----
10981
25946
90505
skipif mysql # not compatible
query I rowsort label-78
SELECT ALL col1 * col1 * col2 + - col1 / col1 AS col0 FROM tab2
----
10981
25946
90505
query I rowsort
SELECT + ( + col0 ) + tab1.col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - col1 + + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ( + col1 ) + col0 + 78 AS col2 FROM tab2 AS cor0
----
116
174
215
query I rowsort
SELECT ALL 69 AS col1 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT col0 * - 18 AS col0 FROM tab0 AS cor0
----
-1602
-432
-630
query I rowsort
SELECT - col0 - - col2 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-85
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 22 AS col2 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL cor0.col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - 88 * + col0 * col1 FROM tab0 AS cor0
----
-181632
-298760
-712712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-89
SELECT + CAST( - col2 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-89
SELECT + CAST ( - col2 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - cor0.col2 * - col0 + col0 * + 67 FROM tab0 cor0
----
13261
2380
2400
query I rowsort
SELECT ALL + col1 * tab2.col2 * tab2.col2 + col0 AS col2 FROM tab2
----
22606
24627
39962
query I rowsort
SELECT ALL col1 + - col2 * col0 - col0 FROM tab0
----
-7296
-730
27
query I rowsort
SELECT col0 * + 76 FROM tab2
----
532
5928
6004
query I rowsort
SELECT ALL 42 * 75 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0c056019ef9d6dc97fc7ec198d73e7af
onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT DISTINCT + ( col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + ( col2 ) / col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT 57 + - col1 + col1 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT - ( + col0 ) * + col0 * + cor0.col1 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + cor0.col2 + + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1419
271
4654
query I rowsort
SELECT + 73 * - col2 * col1 + - col2 * + 8 FROM tab2 AS cor0
----
-112190
-47462
-61317
query I rowsort
SELECT ALL - + col1 * col1 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
-1557
-6307
-9408
query I rowsort
SELECT + 37 * col0 AS col2 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT DISTINCT - col2 * col0 * col2 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-103
SELECT CAST( NULL AS SIGNED ) * - col1 * - tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-103
SELECT CAST ( NULL AS INTEGER ) * - col1 * - tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - col1 + col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 96 + 77 AS col2 FROM tab0 AS cor0
----
173
query I rowsort
SELECT - col0 * col0 * - col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + 75 + + col2 AS col2 FROM tab0
----
108
157
76
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2
----
0
query I rowsort
SELECT ALL + ( - col1 + + col0 ) AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL - 1 AS col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL + 77 + cor0.col2 * ( col1 ) FROM tab2 AS cor0
----
1611
723
914
query I rowsort
SELECT - col2 * col0 + col0 * - col1 * col1 FROM tab0 AS cor0
----
-178296
-329350
-744307
query I rowsort
SELECT + - 30 * cor0.col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
query I rowsort
SELECT 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT + + col2 * col2 + col1 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT col2 * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + cor0.col1 + col1 * ( + ( col1 ) * + ( + col0 ) ) + cor0.col0 AS col1 FROM tab2 cor0
----
22927
271655
6765
query I rowsort
SELECT DISTINCT - col0 * + ( col2 * - col2 ) - - ( - cor0.col2 ) * - col2 FROM tab0 AS cor0
----
27225
36
605160
onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT - + col0 DIV + 32 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-120
SELECT - + col0 / + 32 FROM tab2 AS cor0
----
-2
-2
0
query I rowsort
SELECT ALL col0 + col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - cor0.col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col0 + ( col1 ) * + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + col2 + - 55 FROM tab1 AS cor0
----
-1
2
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-125
SELECT DISTINCT col1 * col2 DIV - col1 - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT col1 * col2 / - col1 - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-126
SELECT + - ( - 61 ) * col1 + 44 DIV + col2 + + cor0.col0 FROM tab1 AS cor0
----
1589
674
873
skipif mysql # not compatible
query I rowsort label-126
SELECT + - ( - 61 ) * col1 + 44 / + col2 + + cor0.col0 FROM tab1 AS cor0
----
1589
674
873
query I rowsort
SELECT - - col0 * - col2 * + col0 + - col2 - col0 FROM tab2 AS cor0
----
-1357
-158288
-237275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( 68 ) * col2 col2 FROM tab1
----
-198288
-220932
-626688
query I rowsort
SELECT + + col1 * col2 * - col2 + + col1 FROM tab1 cor0
----
-119795
-32480
-75790
query I rowsort
SELECT - - col2 * col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-131
SELECT + CAST( NULL AS SIGNED ) / + 40 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-131
SELECT + CAST ( NULL AS INTEGER ) / + 40 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - 7 ) AS col0 FROM tab0 cor0
----
7
7
7
query I rowsort
SELECT + + cor0.col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - + col2 + col1 * - 61 FROM tab0 AS cor0
----
-5279
-5633
-5918
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT IN ( + col2 + + col2 )
----
query I rowsort
SELECT + tab2.col1 * tab2.col0 * col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - col1 - + cor0.col0 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + 2 + - col1 FROM tab2 AS cor0
----
-15
-29
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-139
SELECT + + col2 DIV cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-139
SELECT + + col2 / cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT DISTINCT + - col1 + col1 + col0 * - cor0.col2 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - - col1 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + 75 AS col2 FROM tab2 AS cor0
----
37
48
49
query I rowsort
SELECT ALL - col1 * 55 + - 72 AS col0 FROM tab2 cor0
----
-1007
-1777
-3317
query I rowsort
SELECT 88 * - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 18d5e44248faf39019b0f7d86024557d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-145
SELECT ALL + col2 * CAST( cor0.col0 * col0 + 58 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
159692
239362
2889
skipif mysql # not compatible
query I rowsort label-145
SELECT ALL + col2 * CAST ( cor0.col0 * col0 + 58 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
159692
239362
2889
query I rowsort
SELECT - - col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 - col0 * + 14 * cor0.col2 FROM tab0 AS cor0
----
-110182
-13128
-3850
query I rowsort
SELECT cor0.col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - col0 - + tab1.col1 AS col2 FROM tab1
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-151
SELECT DISTINCT - col0 + CAST( 96 AS SIGNED ) FROM tab1 AS cor0
----
16
32
93
skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT - col0 + CAST ( 96 AS INTEGER ) FROM tab1 AS cor0
----
16
32
93
query I rowsort
SELECT + 14 AS col2 FROM tab2
----
14
14
14
query I rowsort
SELECT ALL - col2 + - ( - 49 ) FROM tab0
----
-33
16
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 66 + + col2 col2 FROM tab0
----
-2145
-5330
-65
query I rowsort
SELECT tab0.col0 + ( col1 ) AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-157
SELECT col2 DIV cor0.col0 + + col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-157
SELECT col2 / cor0.col0 + + col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT ALL - col2 + + col0 * col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT - col2 - col1 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-160
SELECT col0 + - col2 DIV + ( + col1 * col1 ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-160
SELECT col0 + - col2 / + ( + col1 * col1 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 67 * col2 AS col2 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT ALL col2 * - tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col0 - + 67 AS col1 FROM tab0
----
-32
-43
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-164
SELECT - col0 - - ( col2 + CAST( NULL AS SIGNED ) ) * + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-164
SELECT - col0 - - ( col2 + CAST ( NULL AS INTEGER ) ) * + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - + col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col1 ) * cor0.col0 * + col1 FROM tab0 cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 + col1 col0 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-168
SELECT cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-168
SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - tab0.col0 * col0 * 99 + col2 FROM tab0
----
-121274
-56991
-784097
query I rowsort
SELECT DISTINCT - col2 - tab0.col0 * col0 AS col2 FROM tab0
----
-1226
-609
-8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - col0 * - col1 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT - 41 + + col1 * - col2 * - col0 FROM tab0 AS cor0
----
3354
664077
68071
query I rowsort
SELECT + col2 * - col0 - col2 * - col2 FROM tab1 AS cor0
----
-399
1536
2754
query I rowsort
SELECT + - col0 - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT col2 * col0 - 33 AS col0 FROM tab0 cor0
----
2
7265
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT - 40 * col1 * + CAST( 78 AS SIGNED ) AS col0 FROM tab2 cor0
----
-184080
-53040
-96720
skipif mysql # not compatible
query I rowsort label-177
SELECT - 40 * col1 * + CAST ( 78 AS INTEGER ) AS col0 FROM tab2 cor0
----
-184080
-53040
-96720
query I rowsort
SELECT tab2.col2 + + tab2.col1 * + tab2.col0 * - col2 FROM tab2
----
-119626
-50996
-5832
onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT DISTINCT - - col1 DIV col0 + col2 * + col2 FROM tab2 AS cor0
----
1444
676
733
skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - - col1 / col0 + col2 * + col2 FROM tab2 AS cor0
----
1444
676
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-180
SELECT - col2 * col0 + - col0 DIV col1 + - col0 AS col2 FROM tab0
----
-70
-7387
-816
skipif mysql # not compatible
query I rowsort label-180
SELECT - col2 * col0 + - col0 / col1 + - col0 AS col2 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT col1 + tab1.col1 * - tab1.col2 * col0 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT - col2 + + col1 * + col0 FROM tab2
----
1305
190
4576
query I rowsort
SELECT - col2 * - col1 + col1 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT - col1 - - col0 * - col1 DIV - col1 col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-184
SELECT - col1 - - col0 * - col1 / - col1 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL + + col2 - col2 * - col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT + col1 + col2 DIV + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-187
SELECT + col1 + col2 / + col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ALL col1 - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - col1 * col2 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT - col1 + col0 * cor0.col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - col1 + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT + + cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-192
SELECT + + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT ALL + + col0 + - col1 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + + col0 + - col1 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab0.col1 - + tab0.col2 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT tab1.col2 DIV - col2 + - col1 AS col0 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-197
SELECT tab1.col2 / - col2 + - col1 AS col0 FROM tab1
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + tab0.col0 * - col1 col2 FROM tab0
----
-14823
-3153
-3396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + - col1 * col2 col0 FROM tab1
----
-1242
3078
6432
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 + tab2.col2 AS col2 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT tab2.col0 * - col1 + - col2 * col1 + - col1 * + col1 AS col0 FROM tab2
----
-2015
-2278
-9617
query I rowsort
SELECT ALL col1 * + col1 + col2 AS col2 FROM tab0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + + col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL col0 * + col1 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - 70 * + col2 AS col0 FROM tab2 AS cor0
----
-1820
-1890
-2660
query I rowsort
SELECT DISTINCT col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 55 + - cor0.col1 AS col2 FROM tab1 cor0
----
29
42
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col2 col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT ALL ( col0 ) + col1 - + col1 DIV - col1 FROM tab0 AS cor0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-209
SELECT ALL ( col0 ) + col1 - + col1 / - col1 FROM tab0 AS cor0
----
111
133
181
query I rowsort
SELECT DISTINCT ( - col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab1 AS cor0
----
20
query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - 21 AS col0 FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT - 89 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3
2
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT ALL + ( col0 ) DIV - cor0.col2 + col0 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + ( col0 ) / - cor0.col2 + col0 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT DISTINCT + 18 * tab1.col2 FROM tab1
----
1026
1728
972
query I rowsort
SELECT - ( ( + col0 ) ) + - col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT 6 - tab0.col0 AS col2 FROM tab0
----
-18
-29
-83
query I rowsort
SELECT col0 * col0 - col2 AS col1 FROM tab2
----
22
6058
6203
query I rowsort
SELECT 17 + col0 FROM tab0
----
106
41
52
query I rowsort
SELECT + ( tab0.col2 ) * col0 * + tab0.col2 - col1 AS col2 FROM tab0
----
-62
26050
598345
query I rowsort
SELECT col0 * col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - - 16 FROM tab2 AS cor0
----
16
query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2 AS cor0
----
40
query I rowsort
SELECT DISTINCT tab1.col0 * - col2 - col1 FROM tab1
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT 24 DIV col2 - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-226
SELECT 24 / col2 - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT 58 * - col1 + col0 FROM tab1 AS cor0
----
-1505
-516
-674
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT DISTINCT col0 + + col0 DIV col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT col0 + + col0 / col2 FROM tab0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-230
SELECT col1 + col1 DIV - col1 col0 FROM tab0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-230
SELECT col1 + col1 / - col1 col0 FROM tab0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT - col1 + + col2 + - col0 DIV + col1 AS col2 FROM tab2
----
-34
-4
17
skipif mysql # not compatible
query I rowsort label-231
SELECT - col1 + + col2 + - col0 / + col1 AS col2 FROM tab2
----
-34
-4
17
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( + tab0.col2 )
----
query I rowsort
SELECT + col2 + - col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND col0
----
query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 NOT IN ( - tab1.col1 * col0 )
----
query I rowsort
SELECT col0 + - tab1.col2 * - col2 AS col1 FROM tab1
----
2919
3313
9296
query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 > ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = NULL
----
query I rowsort
SELECT ALL tab1.col2 - + col0 * - col2 * col1 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT col2 + tab1.col0 * col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - col1 + col0 * col2 * col0 AS col2 FROM tab2
----
1292
158125
237141
query I rowsort
SELECT + tab2.col1 * - col1 * col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab0 WHERE NULL <> ( + col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + col2 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT col2 DIV + col2 + - col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-246
SELECT col2 / + col2 + - col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT ALL + col2 + - tab2.col1 AS col2 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT col0 DIV tab1.col0 + col0 AS col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-248
SELECT col0 / tab1.col0 + col0 AS col0 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT col2 + col0 * col1 - col2 FROM tab2
----
1343
217
4602
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * + col1 - + col2 ) NOT BETWEEN col0 AND ( - col1 + + col2 * + col2 )
----
3
26
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL tab0.col1 * col2 DIV col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL tab0.col1 * col2 / col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT DISTINCT - tab0.col2 DIV - tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - tab0.col2 / - tab0.col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col1 - col2 * - col1 * col1 AS col0 FROM tab2
----
10999
25978
90565
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col0 / + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 - - col0 * col2 col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT col0 * col0 * - col2 AS col2 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT - col1 DIV + col0 + col0 AS col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-257
SELECT - col1 / + col0 + col0 AS col0 FROM tab1
----
-5
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT ALL + + col1 * - col0 DIV col0 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203
skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + + col1 * - col0 / col0 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL + - col0 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT tab0.col2 - tab0.col0 * + col1 * + col2 AS col1 FROM tab0 WHERE NULL IN ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + col2 col2 FROM tab2
----
104
117
34
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < col0 * col1 + - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col1 FROM tab1 WHERE NOT ( - col1 * col1 ) <> NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * + col0 / col2 ) <= col1 * + col1 + - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * col0 + + col2 / col1 AND ( NULL )
----
query I rowsort
SELECT + col0 * col1 + - 46 * 79 FROM tab0 AS cor0
----
-1570
-239
4465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-267
SELECT ALL + + col1 * col0 / - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + + col1 * col0 / - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 76 * - col0 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT DISTINCT col0 * col1 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col0 * - col1 + - col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 + ( + 66 ) AS col0 FROM tab1 AS cor0
----
-2850
-3183
-9150
onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT - col0 + + cor0.col1 DIV col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-272
SELECT - col0 + + cor0.col1 / col0 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT DISTINCT - + 11 * - col0 AS col2 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT ALL - col2 * 25 + - col2 - - 39 AS col1 FROM tab0
----
-2093
-819
13
query I rowsort
SELECT ALL + ( - col2 ) - - col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT + 4 * col0 FROM tab0
----
140
356
96
query I rowsort
SELECT tab1.col2 + + tab1.col2 FROM tab1
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + - 4 + + col2 * col0 col0 FROM tab1 AS cor0
----
3004
6636
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT col0 DIV + col0 + ( - col1 ) * + col2 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-279
SELECT col0 / + col0 + ( - col1 ) * + col2 FROM tab0 AS cor0
----
-2837
-7461
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT ALL - - 0 * - col0 DIV cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - - 0 * - col0 / cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-282
SELECT ALL col0 * tab0.col2 + CAST( col2 AS SIGNED ) * + col0 + 3 FROM tab0
----
14599
1587
73
skipif mysql # not compatible
query I rowsort label-282
SELECT ALL col0 * tab0.col2 + CAST ( col2 AS INTEGER ) * + col0 + 3 FROM tab0
----
14599
1587
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-283
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-283
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-284
SELECT + col2 - - CAST( - 96 AS SIGNED ) * + col2 * - col0 FROM tab1
----
15606
350265
737376
skipif mysql # not compatible
query I rowsort label-284
SELECT + col2 - - CAST ( - 96 AS INTEGER ) * + col2 * - col0 FROM tab1
----
15606
350265
737376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-285
SELECT - col2 / + col0 + cor0.col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-285
SELECT - col2 / + col0 + cor0.col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) + - col0 + 2 * col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL ( tab2.col1 ) + col2 * + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT 70 * ( tab0.col2 ) + + col2 * 17 AS col0 FROM tab0
----
2871
7134
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-289
SELECT + 19 DIV - col2 + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-289
SELECT + 19 / - col2 + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - col2 + - col2 * col1 AS col0 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT - + col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - - 11 * col2 AS col0 FROM tab0 AS cor0
----
11
363
902
query I rowsort
SELECT - ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 50 * + col2 + col1 FROM tab0 cor0
----
147
1736
4191
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
17
31
59
query I rowsort
SELECT + col1 + + col0 * col2 + 48 AS col0 FROM tab1 AS cor0
----
236
3706
7741
query I rowsort
SELECT - 55 + + col0 * + col2 AS col1 FROM tab2 cor0
----
134
1973
2947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-299
SELECT + CAST( ( col0 ) AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-299
SELECT + CAST ( ( col0 ) AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - col0 * 43 AS col1 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT 9 * 28 FROM tab1 AS cor0
----
252
252
252
query I rowsort
SELECT ALL + - ( col0 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 17 + - ( col0 ) + col2 AS col1 FROM tab2 AS cor0
----
-24
-35
37
query I rowsort
SELECT + + 80 + 51 FROM tab1 AS cor0
----
131
131
131
query I rowsort
SELECT DISTINCT + col2 * 71 * cor0.col2 FROM tab1 AS cor0
----
207036
230679
654336
query I rowsort
SELECT ALL - 36 * + cor0.col1 + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-3039
-3105
-3456
query I rowsort
SELECT ALL 1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + - col2 * + col0 + ( + cor0.col2 ) + col0 FROM tab2 cor0
----
-155
-1924
-2885
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-311
SELECT ALL - 84 + + col0 + CAST( + col1 * col1 AS SIGNED ) FROM tab2 AS cor0
----
284
3475
884
skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - 84 + + col0 + CAST ( + col1 * col1 AS INTEGER ) FROM tab2 AS cor0
----
284
3475
884
query I rowsort
SELECT ALL + 77 AS col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT tab1.col1 - col1 * - col2 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + 55 * - col0 AS col2 FROM tab2
----
-385
-4290
-4345
query I rowsort
SELECT - 41 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT DISTINCT + + cor0.col1 + - col0 + + col1 DIV + cor0.col0 FROM tab0 AS cor0
----
3
64
65
skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + + cor0.col1 + - col0 + + col1 / + cor0.col0 FROM tab0 AS cor0
----
3
64
65
query I rowsort
SELECT - 70 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT ALL + + cor0.col2 + - 92 DIV + col0 FROM tab1 AS cor0
----
24
56
95
skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + + cor0.col2 + - 92 / + col0 FROM tab1 AS cor0
----
24
56
95
query I rowsort
SELECT + - col2 * + 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + + 38 * - cor0.col1 * col1 FROM tab1 AS cor0
----
-25662
-3790
-6409
query I rowsort
SELECT - tab1.col0 - tab1.col2 AS col0 FROM tab1
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-324
SELECT DISTINCT CAST( + 38 AS SIGNED ) * col1 * 52 FROM tab2 AS cor0
----
116584
33592
61256
skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT CAST ( + 38 AS INTEGER ) * col1 * 52 FROM tab2 AS cor0
----
116584
33592
61256
query I rowsort
SELECT ALL + col2 + + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT tab1.col0 + 94 * col1 AS col1 FROM tab1
----
1004
1302
2447
query I rowsort
SELECT - tab0.col2 * - col1 * col1 + - col1 * - col2 + 13 * ( col2 ) FROM tab0
----
247335
687570
9519
query I rowsort
SELECT col2 - cor0.col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col2 * + tab2.col1 + + col1 AS col0 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-330
SELECT DISTINCT + col1 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT + col1 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab2 AS cor0
----
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT ALL + 94 DIV col0 + ( col2 ) DIV - col1 FROM tab1 AS cor0
----
-4
-6
29
skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 94 / col0 + ( col2 ) / - col1 FROM tab1 AS cor0
----
-4
-6
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-333
SELECT - CAST( 38 AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
skipif mysql # not compatible
query I rowsort label-333
SELECT - CAST ( 38 AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT ALL - col0 * + col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + col0 * col0 * col1 FROM tab1
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT CAST( NULL AS SIGNED ) * - 3 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-336
SELECT CAST ( NULL AS INTEGER ) * - 3 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 + + 31 FROM tab1 cor0
----
41
44
57
query I rowsort
SELECT ALL 76 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - - col2 - - 64 FROM tab0 AS cor0
----
146
65
97
query I rowsort
SELECT ALL - + 36 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT col1 + col2 * + col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT - ( + 28 ) + + col2 * ( col0 ) FROM tab2
----
161
2000
2974
query I rowsort
SELECT ALL 82 * col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT + ( col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-346
SELECT DISTINCT - col0 + + ( cor0.col0 ) + CAST( col0 AS SIGNED ) * col2 * - ( - col1 ) FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - col0 + + ( cor0.col0 ) + CAST ( col0 AS INTEGER ) * col2 * - ( - col1 ) FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT + cor2.col0 DIV - 18 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d95bcc72b0123dff6de6700632221363
skipif mysql # not compatible
query I rowsort label-347
SELECT + cor2.col0 / - 18 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d95bcc72b0123dff6de6700632221363
query I rowsort
SELECT + + cor0.col2 + + col1 * + ( + ( + col0 ) ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 + + col1 * + col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT + 60 + col2 AS col0 FROM tab0 cor0
----
142
61
93
query I rowsort
SELECT - + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 73 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT + 5 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT DISTINCT - col1 DIV - ( col2 ) FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - col1 / - ( col2 ) FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT - cor0.col0 DIV 45 col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-356
SELECT - cor0.col0 / 45 col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - 19 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col0 ) + 67 col1 FROM tab1 AS cor0
----
-11
-573
-973
query I rowsort
SELECT - - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + + ( 33 ) FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT + + 68 * 41 AS col1 FROM tab1 AS cor0
----
2788
2788
2788
query I rowsort
SELECT col2 * + 2 + - col0 FROM tab2 cor0
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT ALL + col1 + col2 DIV col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-364
SELECT ALL + col1 + col2 / col1 FROM tab1
----
15
20
28
query I rowsort
SELECT DISTINCT col2 * col1 + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT + tab0.col0 * - 9 * col2 FROM tab0
----
-315
-65682
-7128
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT col0 + tab0.col1 DIV 36 FROM tab0
----
26
37
91
skipif mysql # not compatible
query I rowsort label-367
SELECT col0 + tab0.col1 / 36 FROM tab0
----
26
37
91
query I rowsort
SELECT 37 * col1 - cor0.col2 * + 43 AS col0 FROM tab0 AS cor0
----
-159
1763
3546
query I rowsort
SELECT + 81 + col2 AS col1 FROM tab2 AS cor0
----
107
108
119
query I rowsort
SELECT ALL col2 * 43 + + tab0.col0 AS col0 FROM tab0
----
1443
3615
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 36 * col1 * + ( tab1.col1 ) col2 FROM tab1
----
24333
3536
6004
query I rowsort
SELECT ALL col2 * + ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + + col1 + - 70 + - col0 FROM tab1 cor0
----
-124
-137
-47
query I rowsort
SELECT DISTINCT - ( - col0 ) * - col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT ALL - + cor0.col0 DIV 81 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - + cor0.col0 / 81 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT + - col1 + 79 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-377
SELECT + - col1 + 79 / col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-378
SELECT DISTINCT CAST( + 78 AS SIGNED ) FROM tab1 AS cor0
----
78
skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT CAST ( + 78 AS INTEGER ) FROM tab1 AS cor0
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-379
SELECT CAST( NULL AS SIGNED ) * col1 * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-379
SELECT CAST ( NULL AS INTEGER ) * col1 * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + - ( 29 ) * col1 FROM tab0 cor0
----
-2461
-2557
-2812
query I rowsort
SELECT ALL - col2 * col0 * 11 FROM tab0 AS cor0
----
-385
-80278
-8712
query I rowsort
SELECT + + col0 * - col1 + + 19 FROM tab1 AS cor0
----
-1021
-59
-621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-383
SELECT - col0 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-383
SELECT - col0 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT + 28 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-384
SELECT + 28 / - tab0.col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 60 col2 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT col0 * ( + col1 ) - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * + 83 col0 FROM tab1
----
1079
2158
830
query I rowsort
SELECT - col1 * ( + tab1.col0 ) * - tab1.col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT col1 - + ( + col0 + col1 ) FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT col2 DIV - col1 + col2 * col2 - col1 AS col1 FROM tab1
----
2888
3234
9196
skipif mysql # not compatible
query I rowsort label-390
SELECT col2 / - col1 + col2 * col2 - col1 AS col1 FROM tab1
----
2888
3234
9196
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-391
SELECT - tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-391
SELECT - tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - col2 * col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL + 57 DIV - col0 FROM tab2 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + 57 / - col0 FROM tab2 AS cor0
----
-8
0
0
query I rowsort
SELECT ( + tab1.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2
----
-17
query I rowsort
SELECT col1 * col2 * + col1 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT - col0 * - col0 + - col2 * - 44 AS col2 FROM tab0 AS cor0
----
11529
1269
2028
query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + + 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - + 19 * + col0 FROM tab2 AS cor0
----
-133
-1482
-1501
query I rowsort
SELECT ALL + 69 - cor0.col1 FROM tab0 AS cor0
----
-17
-22
-28
query I rowsort
SELECT - col1 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT + cor0.col2 * col0 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
176
34
6
skipif mysql # not compatible
query I rowsort label-403
SELECT + cor0.col2 * col0 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
176
34
6
query I rowsort
SELECT DISTINCT 77 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT DISTINCT + col2 + - col0 DIV - col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT + col2 + - col0 / - col0 FROM tab2 AS cor0
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT + - col2 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-406
SELECT + - col2 / + col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0, tab1 cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT - col2 + ( + ( col2 ) ) * - col0 AS col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT + cor0.col2 + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b
query I rowsort
SELECT ALL - col2 * - col0 + col1 * col2 FROM tab0 cor0
----
132
14760
3630
query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT DISTINCT + 57 DIV + tab1.col0 + col2 DIV - col1 FROM tab1
----
-5
-7
17
skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + 57 / + tab1.col0 + col2 / - col1 FROM tab1
----
-5
-7
17
query I rowsort
SELECT + + 72 + - 97 AS col0 FROM tab1 AS cor0
----
-25
-25
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-415
SELECT - CAST( 97 AS SIGNED ) FROM tab1
----
-97
-97
-97
skipif mysql # not compatible
query I rowsort label-415
SELECT - CAST ( 97 AS INTEGER ) FROM tab1
----
-97
-97
-97
query I rowsort
SELECT 66 + col1 AS col2 FROM tab2
----
125
83
97
query I rowsort
SELECT tab0.col0 + 63 AS col2 FROM tab0
----
152
87
98
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * + col1 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-419
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT - + CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-420
SELECT - + CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col2 * + 83 FROM tab1 cor0
----
-4482
-4731
-7968
query I rowsort
SELECT ALL 90 + col1 AS col1 FROM tab1 AS cor0
----
100
103
116
query I rowsort
SELECT DISTINCT + + col0 * col0 + col2 + col0 FROM tab0 AS cor0
----
1261
633
8092
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + 48 FROM tab2 AS cor0
----
-48
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - col1 * + col2 - col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL tab1.col0 * + ( - 52 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 582da5615d0f9ef67313d20e431fdcbf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-429
SELECT DISTINCT + col2 + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + col2 + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + ( 77 ) + col2 + col2 AS col2 FROM tab1 AS cor0
----
185
191
269
query I rowsort
SELECT DISTINCT + - ( - col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT - col2 + CAST( - col0 AS SIGNED ) FROM tab0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-434
SELECT - col2 + CAST ( - col0 AS INTEGER ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT col0 * 50 AS col0 FROM tab0
----
1200
1750
4450
query I rowsort
SELECT 51 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-437
SELECT DISTINCT CAST( 49 AS SIGNED ) col2 FROM tab1, tab2, tab1 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT CAST ( 49 AS INTEGER ) col2 FROM tab1, tab2, tab1 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT - + ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + ( + 68 ) AS col0 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT ALL + 14 * - 8 AS col0 FROM tab1 AS cor0
----
-112
-112
-112
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT + col2 + col0 * col0 + - col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col0 + - 7 * col0 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT DISTINCT - col1 + - col1 + + tab1.col1 * ( col2 ) AS col1 FROM tab1
----
1222
1352
550
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-447
SELECT DISTINCT + col1 + col2 * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + col1 + col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * col2 + col1 * + col0 col0 FROM tab2 AS cor0
----
2141
5148
784
onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT - col1 DIV + cor0.col1 + - ( 81 * col1 ) FROM tab2 AS cor0
----
-1378
-2512
-4780
skipif mysql # not compatible
query I rowsort label-449
SELECT - col1 / + cor0.col1 + - ( 81 * col1 ) FROM tab2 AS cor0
----
-1378
-2512
-4780
query I rowsort
SELECT ALL + + col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + - col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT 43 * col0 + - ( + ( col2 ) + col0 ) * col1 AS col1 FROM tab1
----
-1353
1152
1542
query I rowsort
SELECT + 19 * - col2 FROM tab2
----
-494
-513
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col1 + - col1 col2 FROM tab1
----
-1222
-2444
-940
query I rowsort
SELECT DISTINCT + col2 + tab2.col0 + col0 AS col0 FROM tab2
----
182
196
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-456
SELECT tab1.col0 / + CAST( NULL AS SIGNED ) + - 30 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-456
SELECT tab1.col0 / + CAST ( NULL AS INTEGER ) + - 30 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-457
SELECT ALL - + col2 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - + col2 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT DISTINCT col0 + + 97 FROM tab2 AS cor0
----
104
175
176
query I rowsort
SELECT col2 * - 35 + col2 * col1 FROM tab1 AS cor0
----
-1425
-2112
-486
query I rowsort
SELECT ALL - cor0.col0 * col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - 14 + + cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b2bc301cc095904871264d678c7e1a7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT DISTINCT col1 * - col1 + ( col1 ) DIV + col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col1 * - col1 + ( col1 ) / + col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-463
SELECT DISTINCT + - col0 * CAST( - 22 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-455
-48
-5963
skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT + - col0 * CAST ( - 22 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-455
-48
-5963
query I rowsort
SELECT col0 * + 24 FROM tab0 AS cor0
----
2136
576
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-465
SELECT ALL - col1 DIV + col0 + - 77 FROM tab2 AS cor0
----
-77
-77
-81
skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - col1 / + col0 + - 77 FROM tab2 AS cor0
----
-77
-77
-81
query I rowsort
SELECT ALL col0 * cor0.col1 + - 17 FROM tab0 cor0
----
2047
3378
8082
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT col2 + - 59 DIV + 67 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-467
SELECT col2 + - 59 / + 67 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT DISTINCT + + col0 DIV 80 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + + col0 / 80 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL - col0 * 11 + 35 AS col1 FROM tab2 AS cor0
----
-42
-823
-834
query I rowsort
SELECT + col2 * - ( tab0.col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col1 * - ( - tab1.col1 + col0 ) * 8 AS col2 FROM tab1
----
-4320
-6968
4784
query I rowsort
SELECT 58 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT col1 * + ( - col0 ) + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-474
SELECT DISTINCT + + col1 + - CAST( - 92 AS SIGNED ) DIV col1 AS col2 FROM tab2 AS cor0
----
22
33
60
skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT + + col1 + - CAST ( - 92 AS INTEGER ) / col1 AS col2 FROM tab2 AS cor0
----
22
33
60
query I rowsort
SELECT ALL 83 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT 65 + - 31 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
55
65
65
skipif mysql # not compatible
query I rowsort label-476
SELECT 65 + - 31 / cor0.col0 AS col1 FROM tab1 AS cor0
----
55
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 7 ) col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT + + col0 * 17 AS col1 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT - + col1 + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT - col2 DIV 57 col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-480
SELECT - col2 / 57 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col1 + 16 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
463
475
625
query I rowsort
SELECT - 22 - - cor0.col2 * + col0 FROM tab2 cor0
----
167
2006
2980
query I rowsort
SELECT ALL - ( + col0 ) + + 77 FROM tab1 AS cor0
----
-3
13
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 * cor0.col1 + - cor0.col0 col1 FROM tab1 AS cor0
----
-1225
-534
-691
query I rowsort
SELECT DISTINCT + + col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 7 * col2 AS col1 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT - + col2 * col2 - 31 AS col0 FROM tab2 cor0
----
-1475
-707
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-488
SELECT ALL ( - col0 ) + CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-488
SELECT ALL ( - col0 ) + CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + + 27 * + cor0.col2 + - 30 + col2 * col0 AS col1 FROM tab0 AS cor0
----
1653
32
9482
query I rowsort
SELECT - 10 * - col0 + col2 FROM tab2 AS cor0
----
806
828
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + - col1 * - 99 col0 FROM tab1 AS cor0
----
1003
1300
2587
query I rowsort
SELECT + 34 + - col1 FROM tab1 AS cor0
----
21
24
8
query I rowsort
SELECT + - 56 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT + + 44 * 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3696
query I rowsort
SELECT + col1 * tab0.col0 + col0 AS col1 FROM tab0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT DISTINCT col2 * col0 DIV ( 35 ) + col1 AS col0 FROM tab0 AS cor0
----
108
299
98
skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT col2 * col0 / ( 35 ) + col1 AS col0 FROM tab0 AS cor0
----
108
299
98
query I rowsort
SELECT ALL 72 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7
query I rowsort
SELECT - + col2 + - 23 FROM tab2 cor0
----
-49
-50
-61
query I rowsort
SELECT DISTINCT col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col1 * + 76 AS col0 FROM tab1 AS cor0
----
-1976
-760
-988
query I rowsort
SELECT ALL col2 + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-502
SELECT - - col0 * col0 + - 81 * + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-502
SELECT - - col0 * col0 + - 81 * + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT col1 * 42 + col0 DIV - col1 FROM tab2 AS cor0
----
1302
2477
710
skipif mysql # not compatible
query I rowsort label-504
SELECT col1 * 42 + col0 / - col1 FROM tab2 AS cor0
----
1302
2477
710
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT + col2 + ( col0 ) * col0 DIV 58 FROM tab1 AS cor0
----
127
206
54
skipif mysql # not compatible
query I rowsort label-505
SELECT + col2 + ( col0 ) * col0 / 58 FROM tab1 AS cor0
----
127
206
54
query I rowsort
SELECT ALL + + col0 * + col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * - ( col1 * cor0.col1 + - 49 * 66 ) FROM tab0 cor0
----
-357932
-459277
-598975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-510
SELECT DISTINCT - + cor0.col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - + cor0.col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
query III rowsort
SELECT * FROM tab1 WHERE col1 = - col0
----
query I rowsort
SELECT - col0 + col2 * + col2 * - col2 FROM tab0
----
-35961
-36
-551457
onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT DISTINCT + col2 * + col1 DIV col1 + - col0 FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + col2 * + col1 / col1 + - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col1 - - col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - col2 * col1 + + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col0 + col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 + + col0 + col2 )
----
query I rowsort
SELECT - tab0.col1 * + col0 * + col1 - + col2 FROM tab0
----
-177537
-329316
-737091
query I rowsort
SELECT DISTINCT col1 * + col1 - + col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 FROM tab2 WHERE NULL >= + col1
----
query I rowsort
SELECT DISTINCT + + col2 * col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col0 col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT tab0.col2 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT col1 DIV col0 col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-523
SELECT col1 / col0 col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * tab0.col2 + + col1 col1 FROM tab0
----
-243982
-678951
-9312
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <> NULL
----
query I rowsort
SELECT - col2 + + col0 * + col0 AS col2 FROM tab0
----
1224
543
7839
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 >= NULL
----
query I rowsort
SELECT DISTINCT col0 * col0 + - tab0.col0 * - tab0.col2 AS col2 FROM tab0
----
1260
1368
15219
query I rowsort
SELECT DISTINCT + 27 * col0 + col1 FROM tab1 AS cor0
----
107
1738
2173
query I rowsort
SELECT ALL + + 80 + col0 FROM tab0 cor0
----
104
115
169
query I rowsort
SELECT 54 * col0 AS col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT ALL + + 85 AS col2 FROM tab1 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT - 64 + col1 AS col1 FROM tab2 AS cor0
----
-33
-47
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT - + col0 + + col2 DIV ( + 73 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-79
skipif mysql # not compatible
query I rowsort label-534
SELECT - + col0 + + col2 / ( + 73 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-79
query I rowsort
SELECT ALL 54 + + col0 * col1 AS col2 FROM tab2
----
1397
271
4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT + tab1.col2 DIV col2 + - col2 - - 32 FROM tab1
----
-21
-24
-63
skipif mysql # not compatible
query I rowsort label-536
SELECT + tab1.col2 / col2 + - col2 - - 32 FROM tab1
----
-21
-24
-63
query I rowsort
SELECT ALL 48 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL ( + cor0.col0 ) + + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + ( + col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab2 cor0
----
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + cor0.col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col1 * + ( + tab1.col1 ) AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL - col1 * tab2.col2 * ( + tab2.col2 ) + col2 + - 82 AS col0 FROM tab2
----
-22654
-24592
-39940
query I rowsort
SELECT col1 * col1 * - col2 + ( 44 ) FROM tab1
----
-16180
-36460
-5656
query I rowsort
SELECT ALL + col0 - - 74 AS col0 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-547
SELECT + CAST( NULL AS SIGNED ) + - ( col2 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-547
SELECT + CAST ( NULL AS INTEGER ) + - ( col2 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT 29 + 69 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT col2 * + 57 + col2 + - 26 AS col2 FROM tab0
----
1888
32
4730
query I rowsort
SELECT col2 * + col2 + + col1 * + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
15087
8518
9411
query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab0 AS cor0
----
44
query I rowsort
SELECT + ( + 36 ) AS col2 FROM tab0 AS cor0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 16 * + 11 FROM tab0 AS cor0
----
176
query I rowsort
SELECT DISTINCT + 66 * - col2 AS col0 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT - col2 * col0 + col2 * ( - 18 ) + col0 AS col0 FROM tab1 AS cor0
----
-1131
-4610
-9328
query I rowsort
SELECT ALL + 80 + - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-98
10
32
query I rowsort
SELECT - 25 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
144
651
75
query I rowsort
SELECT ALL col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + col2 + + col1 * + col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + - col2 * - col2 + cor0.col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - 2 * col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1586
-722
-891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - 6 + col2 AS col1 FROM tab2 AS cor0
----
20
21
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT ALL col1 * col1 DIV col2 col1 FROM tab1
----
1
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-568
SELECT ALL col1 * col1 / col2 col1 FROM tab1
----
1
1
12
query I rowsort
SELECT DISTINCT + 83 * col2 + col0 * + col0 FROM tab0 cor0
----
1308
14727
3315
query I rowsort
SELECT + col1 * - col0 - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL col1 * + 51 + cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
-3138
-7017
1164
query I rowsort
SELECT - col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 - - 3 FROM tab2 AS cor0
----
20
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT ALL + + 99 * col2 + - cor0.col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
2573
2673
3758
skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + + 99 * col2 + - cor0.col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
2573
2673
3758
query I rowsort
SELECT ALL + 14 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT col0 + + ( - col0 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - 46 + col2 AS col0 FROM tab2
----
-19
-20
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + tab0.col1 col0 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-579
SELECT + CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-579
SELECT + CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT 74 DIV - col1 + col1 AS col1 FROM tab2 AS cor0
----
13
29
58
skipif mysql # not compatible
query I rowsort label-580
SELECT 74 / - col1 + col1 AS col1 FROM tab2 AS cor0
----
13
29
58
query I rowsort
SELECT DISTINCT + col1 + col0 + - tab1.col1 FROM tab1
----
3
64
80
query I rowsort
SELECT + col2 * + col2 * tab0.col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - ( + 27 ) * col0 FROM tab2
----
-189
-2106
-2133
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 42 AS REAL ) + - col2 * tab0.col1 / col1 FROM tab0
----
-40
41
9
query I rowsort
SELECT col1 * col0 * + cor0.col0 FROM tab0 AS cor0
----
118825
49536
720811
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) <= NULL
----
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT ( - col1 ) < col0
----
query I rowsort
SELECT ALL tab2.col0 * + col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col1 * + col2 * - col0 FROM tab2 WHERE NOT col1 + - col2 >= ( NULL )
----
query I rowsort
SELECT col2 * + col0 - col0 AS col2 FROM tab1
----
159
3584
7600
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= ( col0 * - col0 + + col0 )
----
query I rowsort
SELECT tab1.col0 * - col2 + - col0 * col2 + + tab1.col0 * col0 FROM tab1
----
-315
-3200
-8960
query I rowsort
SELECT col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col1 * col2 * + col2 + tab2.col1 FROM tab2
----
22630
24565
39943
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - + col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 * - col0 col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + col2 * + col1 * - col0 + tab1.col2 FROM tab1
----
-36423
-4158
-99744
onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT + col1 + col0 DIV col0 col0 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-602
SELECT + col1 + col0 / col0 col0 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT - col0 DIV col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-603
SELECT - col0 / col0 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + col2 + - cor0.col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + col2 + - ( + 3 ) * col1 FROM tab0
----
-191
-225
-290
query I rowsort
SELECT tab0.col0 * - 38 AS col2 FROM tab0
----
-1330
-3382
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - tab0.col0 * 84 FROM tab0
----
-2016
-2940
-7476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-610
SELECT + - col2 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-610
SELECT + - col2 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * 98 + - 53 AS col1 FROM tab0
----
3181
45
7983
onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT DISTINCT col2 DIV tab1.col0 + 48 FROM tab1
----
48
49
66
skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT col2 / tab1.col0 + 48 FROM tab1
----
48
49
66
query I rowsort
SELECT - col2 * col1 + tab1.col0 * col2 * col1 FROM tab1
----
2808
35910
98592
query I rowsort
SELECT col0 * 72 AS col1 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT + col1 * cor0.col0 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + 7 * col0 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT + tab1.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col0 + - 72 AS col0 FROM tab1 AS cor0
----
-69
-8
8
query I rowsort
SELECT ALL ( 4 ) * col2 AS col0 FROM tab0 cor0
----
132
328
4
query I rowsort
SELECT col0 * - 13 AS col1 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT ALL - + ( 21 ) + col0 AS col0 FROM tab1 AS cor0
----
-18
43
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT DISTINCT - + CAST( + cor0.col2 AS SIGNED ) + cor0.col1 * - 68 AS col1 FROM tab2 AS cor0
----
-1194
-2135
-4038
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - + CAST ( + cor0.col2 AS INTEGER ) + cor0.col1 * - 68 AS col1 FROM tab2 AS cor0
----
-1194
-2135
-4038
query I rowsort
SELECT ( - col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col1 FROM tab1 AS cor0
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-627
SELECT - CAST( NULL AS SIGNED ) * - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-627
SELECT - CAST ( NULL AS INTEGER ) * - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL - - ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - 63 * - col0 FROM tab0 cor0
----
1512
2205
5607
query I rowsort
SELECT ( col1 ) * 38 FROM tab0
----
3268
3458
3686
query I rowsort
SELECT + + 31 * col0 - - ( ( + col2 ) ) * cor0.col2 FROM tab2 AS cor0
----
3094
3893
946
query I rowsort
SELECT - + 5 * + col2 * - col2 - col0 AS col0 FROM tab2 AS cor0
----
3302
3638
7141
query I rowsort
SELECT - - 61 * - col0 - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-434
-4836
-4898
query I rowsort
SELECT - - 72 + cor0.col2 AS col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT ALL col2 * 59 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT - - col1 * 71 + + 74 FROM tab0 AS cor0
----
6180
6535
6961
query I rowsort
SELECT ALL + col1 + + ( col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col2 - 35 * col0 AS col1 FROM tab2 cor0
----
-218
-2704
-2727
query I rowsort
SELECT ALL - col2 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - cor0.col2 * 26 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-644
SELECT DISTINCT + + col2 * + CAST( - col1 * + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT + + col2 * + CAST ( - col1 * + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT cor0.col2 * - 94 AS col1 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT DISTINCT cor0.col2 * col0 * - 41 AS col1 FROM tab1 AS cor0
----
-149568
-314880
-6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-647
SELECT DISTINCT + + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT + + col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + - col2 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * + 86 col2 FROM tab1 AS cor0
----
204
5447
6784
query I rowsort
SELECT + col2 * + col0 + - 18 FROM tab1 AS cor0
----
144
3630
7662
query I rowsort
SELECT DISTINCT col0 * ( cor0.col1 ) FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-652
SELECT col1 * CAST( col2 AS SIGNED ) FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-652
SELECT col1 * CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 + tab0.col2 * tab0.col1 - 9 AS col1 FROM tab0
----
123
2853
7542
query I rowsort
SELECT + col1 * 54 + + col1 * col1 FROM tab2 AS cor0
----
1207
2635
6667
query I rowsort
SELECT + col2 * col1 + + col1 * col2 AS col0 FROM tab1 cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - col1 - + cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 38 + 84 col2 FROM tab2 AS cor0
----
1072
1110
1528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT - col0 + - CAST( NULL AS SIGNED ) * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-658
SELECT - col0 + - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 * - col0 + + cor0.col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - col2 col1 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-661
SELECT CAST( - 88 AS SIGNED ) FROM tab2 cor0
----
-88
-88
-88
skipif mysql # not compatible
query I rowsort label-661
SELECT CAST ( - 88 AS INTEGER ) FROM tab2 cor0
----
-88
-88
-88
query I rowsort
SELECT col0 * - col1 + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + - 50 * col1 FROM tab2 cor0
----
-1550
-2950
-850
query I rowsort
SELECT DISTINCT + col2 + - 3 * - col1 * + 36 AS col2 FROM tab2 AS cor0
----
1874
3375
6398
onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT - + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-665
SELECT - + col1 / col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 20 + 62 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-667
SELECT ALL + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * ( - 64 ) + col0 FROM tab1
----
-1661
-576
-752
query I rowsort
SELECT + col1 * ( ( - col0 ) + - ( - col1 ) ) AS col2 FROM tab2
----
-1054
-1121
744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL col0 + + col1 * - 47 FROM tab2 AS cor0
----
-1450
-2695
-720
query I rowsort
SELECT ALL + + col2 - + col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT DISTINCT + 80 * col1 + + 47 DIV + ( - col2 ) AS col0 FROM tab0 AS cor0
----
6879
7280
7713
skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + 80 * col1 + + 47 / + ( - col2 ) AS col0 FROM tab0 AS cor0
----
6879
7280
7713
query I rowsort
SELECT ALL - col2 * col1 - 19 AS col0 FROM tab2 AS cor0
----
-1553
-665
-856
query I rowsort
SELECT ALL + ( + tab2.col1 ) + col2 FROM tab2
----
55
58
85
query I rowsort
SELECT - col1 + col0 + col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + 26 - - 86 FROM tab0, tab1 cor0, tab1 AS cor1
----
112
query I rowsort
SELECT DISTINCT + ( col0 * col1 ) + tab2.col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT col1 * col0 + ( col2 ) * col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL + - col0 + - col1 * col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + 61 + + ( col1 ) AS col2 FROM tab0
----
147
152
158
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col2 + col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
-741
3299
719
query I rowsort
SELECT ALL 43 * 32 AS col1 FROM tab0 AS cor0
----
1376
1376
1376
query I rowsort
SELECT + + ( cor0.col1 ) + col2 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) / + 69 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + - CAST ( NULL AS REAL ) / + 69 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 3 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
124
236
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-689
SELECT DISTINCT - 25 * col0 + + col2 * CAST( - 25 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
1550
184325
70350
skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - 25 * col0 + + col2 * CAST ( - 25 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
1550
184325
70350
query I rowsort
SELECT ALL ( - ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-691
SELECT DISTINCT CAST( 2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT CAST ( 2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2
query I rowsort
SELECT ALL - col1 * - col0 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col2 + - col1 * 93 AS col2 FROM tab2 AS cor0
----
-1543
-2856
-5461
query I rowsort
SELECT + + col0 * col2 + + col2 * cor0.col0 FROM tab0 AS cor0
----
14596
1584
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-695
SELECT + ( + col0 ) + - CAST( NULL AS SIGNED ) * 29 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-695
SELECT + ( + col0 ) + - CAST ( NULL AS INTEGER ) * 29 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
onlyif mysql # use DIV operator for integer division
query I rowsort label-697
SELECT - 50 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-697
SELECT - 50 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-698
SELECT col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT - - 3 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-699
SELECT - - 3 / cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col2 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( cor1.col0 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-702
SELECT DISTINCT - col2 * - CAST( - 27 + col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
430336
64251
70
skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - col2 * - CAST ( - 27 + col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
430336
64251
70
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-704
SELECT + col1 + + CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-704
SELECT + col1 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
17576
19683
54872
query I rowsort
SELECT ALL - cor0.col0 * + col0 + 68 * col2 FROM tab1 AS cor0
----
-220
128
3663
query I rowsort
SELECT - - col2 + col1 * - col1 + + 78 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-14595
-9486
-9937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 - - col0 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + ( ( - col0 ) ) + ( + 15 ) + - col2 * col1 * col0 FROM tab2 AS cor0
----
-119715
-51098
-5851
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 - col0 col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + col0 + + col0 - - col0 AS col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT - ( - 13 ) AS col1 FROM tab2 cor0
----
13
13
13
query I rowsort
SELECT - 99 + - 86 - col0 * + col2 FROM tab2 AS cor0
----
-2213
-3187
-374
query I rowsort
SELECT DISTINCT 77 * - ( + cor0.col0 ) FROM tab2, tab0 AS cor0
----
-1848
-2695
-6853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-715
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * - col2 - - tab1.col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT 1 FROM tab2, tab2 AS cor0
----
1
query I rowsort
SELECT 99 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL col2 + + col0 * - col2 AS col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ( col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT 89 * col0 DIV col0 FROM tab2
----
89
89
89
skipif mysql # not compatible
query I rowsort label-722
SELECT 89 * col0 / col0 FROM tab2
----
89
89
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT + 54 DIV - cor0.col2 + + 38 * + col1 FROM tab0 cor0
----
3267
3458
3632
skipif mysql # not compatible
query I rowsort label-723
SELECT + 54 / - cor0.col2 + + 38 * + col1 FROM tab0 cor0
----
3267
3458
3632
query I rowsort
SELECT + - col1 * + cor0.col2 * - 70 - 63 FROM tab1 AS cor0
----
39837
87297
98217
query I rowsort
SELECT DISTINCT + ( col1 ) - - col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT col2 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab2 AS cor0
----
-91
query I rowsort
SELECT 98 * - tab2.col2 FROM tab2
----
-2548
-2646
-3724
query I rowsort
SELECT - 59 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT 23 DIV 13 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-730
SELECT 23 / 13 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL - col1 - - 38 AS col0 FROM tab2
----
-21
21
7
query I rowsort
SELECT - - 69 * col1 FROM tab1 cor0
----
1794
690
897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-733
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-733
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - col1 * - col1 + col0 AS col2 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT ALL - 64 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT + 34 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-737
SELECT - col2 * - CAST( col2 + - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-737
SELECT - col2 * - CAST ( col2 + - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - col0 * 50 AS col1 FROM tab1 cor0
----
-150
-3200
-4000
query I rowsort
SELECT ALL - + 62 + - col1 * - col0 AS col2 FROM tab2 cor0
----
1281
155
4540
query I rowsort
SELECT - ( col0 ) + - ( + col2 + + col1 ) FROM tab2 AS cor0
----
-134
-163
-65
query I rowsort
SELECT ALL + 97 - col0 FROM tab2 AS cor0
----
18
19
90
query I rowsort
SELECT ALL - cor0.col1 * - ( 56 ) + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2366
1978
5335
query I rowsort
SELECT 91 + + col1 + - 58 * - col0 FROM tab2
----
4674
4690
528
onlyif mysql # use DIV operator for integer division
query I rowsort label-744
SELECT + col0 DIV 30 col0 FROM tab1
----
0
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-744
SELECT + col0 / 30 col0 FROM tab1
----
0
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT col0 * 35 DIV 16 AS col2 FROM tab1
----
140
175
6
skipif mysql # not compatible
query I rowsort label-745
SELECT col0 * 35 / 16 AS col2 FROM tab1
----
140
175
6
query I rowsort
SELECT - col0 * - 85 FROM tab2
----
595
6630
6715
query I rowsort
SELECT + - 17 * col1 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT ALL - + 58 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-1566
-2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT + col0 * ( col1 ) DIV col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-749
SELECT + col0 * ( col1 ) / col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-750
SELECT + CAST( NULL AS SIGNED ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-750
SELECT + CAST ( NULL AS INTEGER ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 68 * - ( + col2 ) col1 FROM tab2 AS cor0
----
-1768
-1836
-2584
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT col1 * 81 - 80 DIV + col1 col1 FROM tab1
----
1047
2103
802
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-752
SELECT col1 * 81 - 80 / + col1 col1 FROM tab1
----
1047
2103
802
query I rowsort
SELECT DISTINCT - 66 FROM tab0, tab0 AS cor0
----
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-754
SELECT - tab2.col0 * - CAST( 86 AS SIGNED ) - + col0 DIV + col0 FROM tab2
----
601
6707
6793
skipif mysql # not compatible
query I rowsort label-754
SELECT - tab2.col0 * - CAST ( 86 AS INTEGER ) - + col0 / + col0 FROM tab2
----
601
6707
6793
query I rowsort
SELECT + ( 44 * + col0 ) + 47 + col0 * - col0 AS col2 FROM tab2
----
-2605
-2718
306
query I rowsort
SELECT ALL - 80 + - 92 FROM tab1
----
-172
-172
-172
query I rowsort
SELECT - cor0.col0 * - ( col1 ) FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT col2 - cor0.col2 DIV - col0 AS col1 FROM tab0 cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-758
SELECT col2 - cor0.col2 / - col0 AS col1 FROM tab0 cor0
----
1
34
82
query I rowsort
SELECT - tab1.col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT + ( - col0 ) + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - + col1 * + col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - 20 * - col0 * col1 + col1 AS col2 FROM tab2 AS cor0
----
26877
4371
92099
query I rowsort
SELECT + col0 * col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - 45 + col0 * - col0 FROM tab0 AS cor0
----
-1270
-621
-7966
query I rowsort
SELECT - col0 + col1 * + col2 + 82 FROM tab2 AS cor0
----
1538
649
912
query I rowsort
SELECT - - col2 * 30 - + col0 FROM tab2 AS cor0
----
1061
702
803
query I rowsort
SELECT ALL - + ( col0 ) * - cor0.col0 * 75 AS col1 FROM tab0 AS cor0
----
43200
594075
91875
query I rowsort
SELECT col0 * - col2 - - cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT 5 * - tab1.col0 + col1 AS col0 FROM tab1
----
-310
-387
11
query I rowsort
SELECT ALL col2 + ( col0 ) AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - ( tab1.col0 * col2 ) + - col1 AS col1 FROM tab1
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL - col0 * tab1.col1 + - col2 DIV - col0 FROM tab1
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-772
SELECT ALL - col0 * tab1.col1 + - col2 / - col0 FROM tab1
----
-1039
-60
-640
query I rowsort
SELECT cor0.col1 + 50 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8c61c5c3a1ab93eeeead10e113cfcabe
onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT ALL cor0.col0 * col2 DIV col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-774
SELECT ALL cor0.col0 * col2 / col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 + + ( col2 ) AS col2 FROM tab1
----
242
3715
7789
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-777
SELECT ALL - 73 * + tab1.col0 + col2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-1024
-57
1840
skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - 73 * + tab1.col0 + col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-1024
-57
1840
query I rowsort
SELECT DISTINCT + + col0 * - col2 + col2 + 16 FROM tab0 AS cor0
----
-18
-7200
-743
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 - + cor0.col0 * + col0 FROM tab2 AS cor0
----
-3160
-3978
147
query I rowsort
SELECT cor0.col2 + cor0.col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - - col0 * + cor0.col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-782
SELECT + col1 * - cor0.col2 * - CAST( col0 * + col2 AS SIGNED ) + + ( + col1 ) FROM tab2 AS cor0
----
158224
1939309
3111011
skipif mysql # not compatible
query I rowsort label-782
SELECT + col1 * - cor0.col2 * - CAST ( col0 * + col2 AS INTEGER ) + + ( + col1 ) FROM tab2 AS cor0
----
158224
1939309
3111011
query I rowsort
SELECT ALL + + 85 FROM tab2 cor0
----
85
85
85
query I rowsort
SELECT col0 * col0 - 70 AS col0 FROM tab1 AS cor0
----
-61
4026
6330
onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT + cor0.col1 DIV col1 + 60 FROM tab2 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-785
SELECT + cor0.col1 / col1 + 60 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT + - col0 + - col1 + - col2 FROM tab1 AS cor0
----
-131
-189
-83
query I rowsort
SELECT + col1 * - cor0.col1 - + ( + col1 ) FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-788
SELECT - CAST( NULL AS SIGNED ) * col0 + + col1 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-788
SELECT - CAST ( NULL AS INTEGER ) * col0 + + col1 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 36 * col0 AS col0 FROM tab1 AS cor0
----
108
2304
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col1 FROM tab2 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT ALL col0 + col1 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-791
SELECT ALL col0 + col1 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col1 - + col0 * 45 * col2 FROM tab1 AS cor0
----
-164150
-345587
-7264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 * 92 col0 FROM tab1 cor0
----
1276
2395
984
query I rowsort
SELECT ALL - cor0.col0 * - 47 FROM tab2 AS cor0
----
329
3666
3713
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT DISTINCT - col0 * col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - col0 * col1 / col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - col1 * 63 AS col0 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT ALL col0 * - col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL - col2 + 98 * + col0 FROM tab0 AS cor0
----
2319
3429
8640
query I rowsort
SELECT ALL - col0 * + 65 + 5 - col2 * - ( 39 ) * + col2 FROM tab1 cor0
----
113534
122556
354229
query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab2 cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT DISTINCT + col1 DIV 98 + 39 FROM tab0 AS cor0
----
39
skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + col1 / 98 + 39 FROM tab0 AS cor0
----
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 79 * col1 col2 FROM tab1 AS cor0
----
1123
2108
847
query I rowsort
SELECT ALL - cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 + col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT - cor0.col0 + 46 * - 53 AS col1 FROM tab0 AS cor0
----
-2462
-2473
-2527
query I rowsort
SELECT ALL + 41 * - col0 + + col2 FROM tab2 AS cor0
----
-260
-3172
-3201
query I rowsort
SELECT 7 * 47 AS col1 FROM tab0 AS cor0
----
329
329
329
query I rowsort
SELECT ALL - - col2 * ( cor0.col1 ) + + col0 * col0 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT ALL 36 + + col1 AS col2 FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT ALL + 8 * + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
137
200
262
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-813
SELECT - col0 * CAST( NULL AS SIGNED ) / 66 - col2 * 49 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-813
SELECT - col0 * CAST ( NULL AS INTEGER ) / 66 - col2 * 49 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * ( + 75 + + col1 ) FROM tab1 AS cor0
----
-303
-5440
-7040
query I rowsort
SELECT - + col0 - 27 FROM tab2 AS cor0
----
-105
-106
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT - col2 * 76 + - col0 DIV cor0.col2 FROM tab0 AS cor0
----
-111
-2508
-6233
skipif mysql # not compatible
query I rowsort label-816
SELECT - col2 * 76 + - col0 / cor0.col2 FROM tab0 AS cor0
----
-111
-2508
-6233
query I rowsort
SELECT + col1 * + 58 + + tab0.col0 FROM tab0
----
5012
5367
5661
query I rowsort
SELECT - cor0.col2 * col1 * 25 AS col1 FROM tab2 AS cor0
----
-16150
-20925
-38350
query I rowsort
SELECT + - cor0.col2 * cor0.col2 - - ( + col0 ) FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT DISTINCT + col1 * + 77 + + col2 * col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT + col1 * + 77 + + col2 * col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col0 + - 15 AS col1 FROM tab1
----
-12
49
65
query I rowsort
SELECT - col2 * + col2 * - col0 AS col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT col1 * - 37 + col0 FROM tab1 AS cor0
----
-306
-401
-959
onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT ( - cor0.col2 ) DIV - col0 + 6 AS col0 FROM tab2 AS cor0
----
6
6
9
skipif mysql # not compatible
query I rowsort label-824
SELECT ( - cor0.col2 ) / - col0 + 6 AS col0 FROM tab2 AS cor0
----
6
6
9
query I rowsort
SELECT ALL - - ( col2 ) * + col1 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - 74 * + cor0.col1 * col1 FROM tab2 AS cor0
----
-21386
-257594
-71114
query I rowsort
SELECT - ( ( cor0.col1 ) ) * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + 98 * - col1 FROM tab1 cor0
----
1274
2548
980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-829
SELECT ALL col0 * col0 + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-829
SELECT ALL col0 * col0 + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 13 * col2 * + 8 + + col0 FROM tab1 AS cor0
----
10064
5619
5992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-831
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-831
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - ( col1 ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab2
----
59
59
59
query I rowsort
SELECT - 90 + - ( - cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7874aafe85d292be6e83bda348ad18a8
query I rowsort
SELECT - col2 * + cor0.col2 + - 87 AS col2 FROM tab0 cor0
----
-1176
-6811
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT + 39 DIV - col2 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-836
SELECT + 39 / - col2 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-838
SELECT + ( - col1 + + CAST( 81 AS SIGNED ) ) AS col2 FROM tab2
----
22
50
64
skipif mysql # not compatible
query I rowsort label-838
SELECT + ( - col1 + + CAST ( 81 AS INTEGER ) ) AS col2 FROM tab2
----
22
50
64
query I rowsort
SELECT - col2 * ( col2 * - col0 ) FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT cor0.col1 * + 32 AS col2 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT 15 + - col1 FROM tab0 cor0
----
-71
-76
-82
query I rowsort
SELECT col0 * col0 + - cor0.col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ( cor0.col0 ) FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT ALL - 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT cor0.col1 + - 19 * cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 0b25899e45364a9f24e94b61d2161fd8
query I rowsort
SELECT DISTINCT - 14 * + col0 * + col0 FROM tab2
----
-686
-85176
-87374
query I rowsort
SELECT - 1 * col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT cor0.col2 + + col2 * 35 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT - 2 AS col1 FROM tab0 cor0
----
-2
-2
-2
query I rowsort
SELECT - ( cor0.col1 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col1 ) + col0 * - col0 - - col2 * - col0 col1 FROM tab1 AS cor0
----
-13911
-7644
505
query I rowsort
SELECT DISTINCT + col2 * + col1 * col2 + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
22648
30789
45968
query I rowsort
SELECT DISTINCT 45 * cor0.col1 FROM tab1, tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT - col1 + + cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - col2 - + 69 AS col2 FROM tab2 AS cor0
----
-107
-95
-96
query I rowsort
SELECT - 44 + - cor0.col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to d2a681bab299401fa1f4b67bbe8938d8
query I rowsort
SELECT ALL + col0 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col1 * - col2 + + 4 * + col1 * + cor0.col2 FROM tab0 AS cor0
----
22386
291
8514
query I rowsort
SELECT ALL - cor0.col0 * - col2 + 2 - + col0 FROM tab0 AS cor0
----
2
7211
770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 30 col2 FROM tab2 AS cor0
----
30
query I rowsort
SELECT - + col0 * cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT - cor0.col1 + + col0 * + col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ( - col0 ) * + col0 + col1 * col0 * + col0 FROM tab1 cor0
----
225
36864
76800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 44 ) * col1 col2 FROM tab0 AS cor0
----
3784
4004
4268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-865
SELECT CAST( - ( + col2 ) AS SIGNED ) * - 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63
skipif mysql # not compatible
query I rowsort label-865
SELECT CAST ( - ( + col2 ) AS INTEGER ) * - 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT DISTINCT + - col1 * - col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 40 AS col2 FROM tab1 cor0
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-869
SELECT ALL + col0 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + col0 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-870
SELECT - CAST( col1 AS SIGNED ) * + cor0.col1 + 16 * col1 AS col1 FROM tab1 AS cor0
----
-260
39
60
skipif mysql # not compatible
query I rowsort label-870
SELECT - CAST ( col1 AS INTEGER ) * + cor0.col1 + 16 * col1 AS col1 FROM tab1 AS cor0
----
-260
39
60
query I rowsort
SELECT DISTINCT 35 + + 69 * col1 AS col2 FROM tab0 AS cor0
----
5969
6314
6728
query I rowsort
SELECT + - col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL col0 + + 76 * + col2 FROM tab0
----
111
2532
6321
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ALL col1 DIV col1 - - col0 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-875
SELECT ALL col1 / col1 - - col0 AS col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL col0 - + col0 * 11 AS col1 FROM tab1
----
-30
-640
-800
query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT col1 * col0 - ( 94 ) * col2 FROM tab2 AS cor0
----
-2229
-2321
2158
onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT DISTINCT + ( cor0.col2 ) + ( col0 ) DIV cor0.col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT + ( cor0.col2 ) + ( col0 ) / cor0.col0 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 * + col0 col0 FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + cor0.col0 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + - col0 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - ( ( col2 ) + col0 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL cor1.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3
query I rowsort
SELECT + + 43 + cor0.col0 AS col0 FROM tab2 AS cor0
----
121
122
50
query I rowsort
SELECT ALL - cor0.col2 * 25 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT + + col2 + 45 AS col0 FROM tab1 AS cor0
----
102
141
99
query I rowsort
SELECT DISTINCT + col1 * + col2 * + col0 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT - col0 DIV 94 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-890
SELECT - col0 / 94 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 * col2 + 11 AS col0 FROM tab2 AS cor0
----
-1433
-665
-718
query I rowsort
SELECT ALL col2 * col2 * col2 + - tab1.col0 FROM tab1
----
157461
185129
884656
onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT ALL - col2 * - col2 + col1 DIV col1 + 68 FROM tab0
----
1158
6793
70
skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - col2 * - col2 + col1 / col1 + 68 FROM tab0
----
1158
6793
70
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ( - 58 ) + - col2 * ( col0 ) AS col0 FROM tab1
----
-220
-3706
-7738
query I rowsort
SELECT col2 + + 54 FROM tab2 AS cor0
----
80
81
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-897
SELECT ALL - - ( 66 ) * + col0 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1584
2310
5874
skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - - ( 66 ) * + col0 + col0 / col1 AS col1 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ALL + 31 + + col0 AS col1 FROM tab1 cor0
----
111
34
95
query I rowsort
SELECT - cor0.col2 * - 96 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + 32 + + col1 AS col1 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT DISTINCT col2 * 71 * col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
201522
529891
6922
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT - 39 + col1 * col2 DIV + col2 FROM tab1 AS cor0
----
-13
-26
-29
skipif mysql # not compatible
query I rowsort label-902
SELECT - 39 + col1 * col2 / + col2 FROM tab1 AS cor0
----
-13
-26
-29
query I rowsort
SELECT ALL + col1 + - 96 AS col0 FROM tab0 AS cor0
----
-10
-5
1
query I rowsort
SELECT ( - col1 ) * col0 + 11 AS col0 FROM tab0 AS cor0
----
-2053
-3384
-8088
onlyif mysql # use DIV operator for integer division
query I rowsort label-905
SELECT - 58 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-905
SELECT - 58 / - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT ALL - col1 * col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - col1 * col0 / col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( col0 ) * ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 + 69 * col0 FROM tab0
----
1680
2450
6230
query I rowsort
SELECT ALL - 1 * col2 * - 67 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT 74 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT - 29 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT - - 29 * - col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL 2 * col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL 68 AS col2 FROM tab2 cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-917
SELECT col2 * CAST( col2 AS SIGNED ) + col1 FROM tab2
----
1461
735
760
skipif mysql # not compatible
query I rowsort label-917
SELECT col2 * CAST ( col2 AS INTEGER ) + col1 FROM tab2
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-918
SELECT tab2.col1 * + CAST( NULL AS SIGNED ) + col2 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-918
SELECT tab2.col1 * + CAST ( NULL AS INTEGER ) + col2 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 54 + col2 AS col2 FROM tab0 AS cor0
----
136
55
87
query I rowsort
SELECT + 88 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT + tab0.col0 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 92 * - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1196
-2392
-920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col2 col0 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT 76 FROM tab0, tab2 cor0
----
76
query I rowsort
SELECT DISTINCT - col2 - 67 * 36 AS col0 FROM tab1 AS cor0
----
-2466
-2469
-2508
query I rowsort
SELECT + col0 + + 4 FROM tab0 AS cor0
----
28
39
93
query I rowsort
SELECT DISTINCT - col1 + + 16 - - col1 AS col2 FROM tab2 AS cor0
----
16
query I rowsort
SELECT col2 * ( - tab0.col0 + col0 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + cor0.col0 + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ceed5d4760732a197411f1a6cb5c657f
query I rowsort
SELECT col2 + 28 - + col0 FROM tab2
----
-13
-24
48
query I rowsort
SELECT + col0 * + ( + cor0.col0 ) + col0 + 29 AS col0 FROM tab0 AS cor0
----
1289
629
8039
query I rowsort
SELECT col0 + 38 FROM tab1 AS cor0
----
102
118
41
query I rowsort
SELECT + + col0 + col1 + - ( col1 + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - 91 * - col2 AS col0 FROM tab0
----
611884
91
99099
onlyif mysql # use DIV operator for integer division
query I rowsort label-935
SELECT - col2 + + cor0.col2 DIV col0 FROM tab1 cor0
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-935
SELECT - col2 + + cor0.col2 / col0 FROM tab1 cor0
----
-36
-57
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-936
SELECT + col1 - ( tab2.col2 + + CAST( col0 AS SIGNED ) ) col0 FROM tab2
----
-100
-3
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-936
SELECT + col1 - ( tab2.col2 + + CAST ( col0 AS INTEGER ) ) col0 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT + 96 * + col0 + col2 AS col2 FROM tab1
----
342
6201
7776
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 + ( col0 ) FROM tab2
----
1405
193
4621
query I rowsort
SELECT - + cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT cor0.col1 * 6 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 919305dc4365a0ca9c57132a033d27d3
query I rowsort
SELECT ALL + 68 AS col0 FROM tab1 cor0
----
68
68
68
query I rowsort
SELECT + 6 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * + col0 * + 80 col2 FROM tab2 AS cor0
----
15151
162299
240177
query I rowsort
SELECT - ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + col1 * - 5 AS col0 FROM tab2 AS cor0
----
155
295
85
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 91 * tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 586f63d5d30e33788eea0e6d049506d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT + col0 DIV + col2 + + cor0.col1 * + col1 + - col2 DIV - cor0.col1 FROM tab0 AS cor0
----
7396
8282
9444
skipif mysql # not compatible
query I rowsort label-948
SELECT + col0 / + col2 + + cor0.col1 * + col1 + - col2 / - cor0.col1 FROM tab0 AS cor0
----
7396
8282
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-949
SELECT col0 * col0 DIV - 40 AS col2 FROM tab0
----
-14
-198
-30
skipif mysql # not compatible
query I rowsort label-949
SELECT col0 * col0 / - 40 AS col2 FROM tab0
----
-14
-198
-30
query I rowsort
SELECT 38 * col0 FROM tab1
----
114
2432
3040
query I rowsort
SELECT + + col1 * cor0.col1 + col0 + + 85 * + col2 AS col2 FROM tab2 AS cor0
----
3263
3598
5769
query I rowsort
SELECT col1 + 13 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT + col1 * - col1 + 1 - - col2 AS col1 FROM tab0 AS cor0
----
-7362
-8198
-9407
query I rowsort
SELECT - col0 + 84 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT - cor0.col1 * ( 18 ) + + col0 FROM tab0 AS cor0
----
-1524
-1549
-1711
query I rowsort
SELECT ALL + col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - - ( + 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-958
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-958
SELECT + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + cor0.col0 * - col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-961
SELECT + - 44 + + col2 DIV col1 AS col0 FROM tab2 cor0
----
-42
-44
-44
skipif mysql # not compatible
query I rowsort label-961
SELECT + - 44 + + col2 / col1 AS col0 FROM tab2 cor0
----
-42
-44
-44
query I rowsort
SELECT ALL - ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT 28 + col0 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 FROM tab1 cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT DISTINCT col1 DIV + 35 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT col1 / + 35 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col2 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - - col1 - - cor0.col0 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT - col2 DIV - col0 - 58 FROM tab1 cor0
----
-40
-57
-58
skipif mysql # not compatible
query I rowsort label-968
SELECT - col2 / - col0 - 58 FROM tab1 cor0
----
-40
-57
-58
query I rowsort
SELECT ALL + col0 + 62 FROM tab0 AS cor0
----
151
86
97
query I rowsort
SELECT + tab1.col2 + 12 AS col1 FROM tab1
----
108
66
69
query I rowsort
SELECT DISTINCT - col2 + + 37 FROM tab0 AS cor0
----
-45
36
4
query I rowsort
SELECT ALL + col0 + - 50 FROM tab1 AS cor0
----
-47
14
30
query I rowsort
SELECT DISTINCT - col0 * - col1 * - col1 + col1 FROM tab2 cor0
----
-22814
-271459
-6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-974
SELECT + col2 * CAST( col1 AS SIGNED ) FROM tab2 cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-974
SELECT + col2 * CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col1 * + 84 AS col0 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT col0 * col2 - col2 AS col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT + ( col2 * col2 ) AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ( + col1 ) * - tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + col0 * ( col1 ) + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-981
SELECT DISTINCT + + ( col2 ) * - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + + ( col2 ) * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col1 ) + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL - + 48 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL + - 86 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT ALL col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT DISTINCT + + 69 DIV cor0.col2 col2 FROM tab0 AS cor0
----
0
2
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + + 69 / cor0.col2 col2 FROM tab0 AS cor0
----
0
2
69
query I rowsort
SELECT ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + ( - col1 * + col1 ) AS col1 FROM tab1 cor0
----
2240
3149
9047
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT ALL 41 + 99 DIV col0 + col0 AS col0 FROM tab1
----
106
122
77
skipif mysql # not compatible
query I rowsort label-991
SELECT ALL 41 + 99 / col0 + col0 AS col0 FROM tab1
----
106
122
77
query I rowsort
SELECT ALL col0 + 60 AS col2 FROM tab2
----
138
139
67
query I rowsort
SELECT - ( - col0 ) - - col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL tab2.col0 * + ( col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT - 55 * col0 AS col1 FROM tab0 AS cor0
----
-1320
-1925
-4895
query I rowsort
SELECT DISTINCT - + 0 AS col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - + ( + col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 + - tab2.col2 ) col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - 60 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT ALL - 24 AS col0 FROM tab1
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT + 20 * col2 + - CAST( col2 AS SIGNED ) DIV - col0 FROM tab1
----
1098
1140
1921
skipif mysql # not compatible
query I rowsort label-1002
SELECT + 20 * col2 + - CAST ( col2 AS INTEGER ) / - col0 FROM tab1
----
1098
1140
1921
query I rowsort
SELECT - 64 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT DISTINCT - col2 * 64 - - 83 * col0 * - 57 FROM tab1
----
-17649
-306432
-384624
query I rowsort
SELECT ALL + + ( 40 ) * + col0 - + col1 * - 8 * - col1 FROM tab2 AS cor0
----
-24728
-7408
848
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1006
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 * - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 * - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( + 38 ) * col1 - - 87 AS col0 FROM tab2 AS cor0
----
1265
2329
733
query I rowsort
SELECT ALL - ( 44 ) FROM tab0 cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1009
SELECT ALL + + col1 * col0 DIV col1 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + + col1 * col0 / col1 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 * - 25 + col2 AS col0 FROM tab2 AS cor0
----
-148
-1924
-1937
query I rowsort
SELECT DISTINCT + 73 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1321
1477
643
query I rowsort
SELECT ALL - - 22 AS col0 FROM tab0 cor0
----
22
22
22
query I rowsort
SELECT - 40 * - cor0.col2 - col2 FROM tab2 AS cor0
----
1014
1053
1482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1014
SELECT ALL col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1015
SELECT ALL col1 - CAST( + tab2.col1 AS SIGNED ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL col1 - CAST ( + tab2.col1 AS INTEGER ) FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col0 col1 FROM tab1
----
21
448
560
query I rowsort
SELECT ALL 61 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - col2 + col1 * col1 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT DISTINCT - ( - col0 ) DIV - col0 + + ( 23 ) AS col2 FROM tab2 cor0
----
22
skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - ( - col0 ) / - col0 + + ( 23 ) AS col2 FROM tab2 cor0
----
22
query I rowsort
SELECT ALL + + col0 * col2 - col1 * col2 AS col1 FROM tab0 cor0
----
-164
-2046
-62
query I rowsort
SELECT - col1 + 88 AS col2 FROM tab2 AS cor0
----
29
57
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT DISTINCT + - col2 * - col0 DIV col0 + + col2 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7462
8445
9411
skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + - col2 * - col0 / col0 + + col2 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7462
8445
9411
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 10 * + col0 FROM tab2 AS cor0
----
70
780
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT ALL + cor0.col2 + 87 DIV - col0 + + col2 * + col2 * col1 FROM tab1 AS cor0
----
119903
32546
75841
skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + cor0.col2 + 87 / - col0 + + col2 * + col2 * col1 FROM tab1 AS cor0
----
119903
32546
75841
query I rowsort
SELECT col0 + 28 FROM tab0 AS cor0
----
117
52
63
query I rowsort
SELECT ALL - - 58 - + 52 AS col1 FROM tab0 AS cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1029
SELECT + - col0 * ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1029
SELECT + - col0 * ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1030
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col0 + + col0 + col2 * - col2 FROM tab0 AS cor0
----
-1041
-6546
69
query I rowsort
SELECT col2 + ( col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1033
SELECT + + CAST( + col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-1033
SELECT + + CAST ( + col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT + col2 DIV 29 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1034
SELECT + col2 / 29 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - - 99 * - col0 AS col2 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT + + 70 * 47 AS col1 FROM tab2 AS cor0
----
3290
3290
3290
query I rowsort
SELECT - 4 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT - 68 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1039
SELECT CAST( NULL AS DECIMAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1039
SELECT CAST ( NULL AS REAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 11 + col1 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1545
-657
-848
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1041
SELECT DISTINCT + - col0 * col2 + + CAST( - ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT + - col0 * col2 + + CAST ( - ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - ( - col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT - col1 DIV - col0 + + col0 + + col0 FROM tab2 AS cor0
----
156
158
18
skipif mysql # not compatible
query I rowsort label-1043
SELECT - col1 / - col0 + + col0 + + col0 FROM tab2 AS cor0
----
156
158
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * - 43 - cor0.col0 col1 FROM tab1 AS cor0
----
1169
423
575
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 37 * - cor0.col2 + col2 col0 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1046
SELECT + col2 * + col2 - 35 DIV - col0 AS col1 FROM tab1 AS cor0
----
2927
3249
9216
skipif mysql # not compatible
query I rowsort label-1046
SELECT + col2 * + col2 - 35 / - col0 AS col1 FROM tab1 AS cor0
----
2927
3249
9216
query I rowsort
SELECT - + cor0.col0 * cor0.col0 - 66 FROM tab1 AS cor0
----
-4162
-6466
-75
query I rowsort
SELECT col0 + - col2 * 83 AS col0 FROM tab2 AS cor0
----
-2080
-2234
-3075
query I rowsort
SELECT - - 26 + + col0 FROM tab1 AS cor0
----
106
29
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 20 + col0 * col0 col2 FROM tab1 AS cor0
----
4296
529
6660
query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1052
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1053
SELECT + - col1 - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-1053
SELECT + - col1 - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT + col2 * + 70 + + 43 DIV col2 FROM tab1 cor0
----
3780
3990
6720
skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + col2 * + 70 + + 43 / col2 FROM tab1 cor0
----
3780
3990
6720
query I rowsort
SELECT - col2 - 94 * 84 AS col1 FROM tab1 AS cor0
----
-7950
-7953
-7992
query I rowsort
SELECT 54 * col1 AS col2 FROM tab0
----
4644
4914
5238
query I rowsort
SELECT + cor0.col2 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - + col0 + 64 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2136
-5337
-99
query I rowsort
SELECT - col0 * 33 + col0 AS col1 FROM tab2 AS cor0
----
-224
-2496
-2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT ALL - col1 DIV + 21 + col1 AS col2 FROM tab2 AS cor0
----
17
30
57
skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - col1 / + 21 + col1 AS col2 FROM tab2 AS cor0
----
17
30
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT col0 DIV + tab1.col0 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1061
SELECT col0 / + tab1.col0 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - 95 * - col1 AS col0 FROM tab0
----
8170
8645
9215
query I rowsort
SELECT ALL - col1 + ( + tab2.col2 ) - - col2 AS col0 FROM tab2
----
-7
23
59
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e
query I rowsort
SELECT ALL + ( ( col2 ) ) * 69 AS col0 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1066
SELECT - col2 + CAST( NULL AS SIGNED ) + col0 * + col2 * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1066
SELECT - col2 + CAST ( NULL AS INTEGER ) + col0 * + col2 * col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col0 * + cor0.col0 FROM tab1 cor0
----
-262144
-27
-512000
query I rowsort
SELECT + cor0.col2 * - col1 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT 35 + + tab0.col2 + tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 432e1c60c0d64119b956aa1be22faa43
query I rowsort
SELECT 12 + tab0.col0 * 67 FROM tab0, tab0 AS cor0
----
9 values hashing to d8275d8533911cc85ba36835c1419b22
onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT - 44 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1072
SELECT - 44 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 66 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT cor2.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
43
query I rowsort
SELECT ALL + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col1 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + ( - ( - col2 ) ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT ( 77 ) AS col1 FROM tab2 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT DISTINCT + cor0.col1 DIV 20 AS col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + cor0.col1 / 20 AS col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - col2 + 51 + - col1 * - col1 AS col2 FROM tab1
----
124
673
94
query I rowsort
SELECT + col0 - - 59 AS col1 FROM tab2
----
137
138
66
query I rowsort
SELECT - col0 * 24 FROM tab2
----
-168
-1872
-1896
query I rowsort
SELECT ALL + col1 + + 66 + + 57 * col0 * tab2.col1 FROM tab2
----
12466
262439
76634
query I rowsort
SELECT col1 + - 42 FROM tab1
----
-16
-29
-32
query I rowsort
SELECT ALL ( 32 ) AS col0 FROM tab0
----
32
32
32
query I rowsort
SELECT ALL + 73 AS col0 FROM tab0
----
73
73
73
query I rowsort
SELECT DISTINCT 43 * - col0 FROM tab0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT 78 + - tab0.col2 FROM tab0
----
-4
45
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT ALL cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col2 * col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1
-2548
1697
query I rowsort
SELECT DISTINCT + col1 + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - 2 FROM tab0, tab2, tab2 AS cor0
----
-2
query I rowsort
SELECT ALL ( + col2 ) - + col0 * col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL 56 + tab1.col1 + + col2 FROM tab1
----
123
136
165
query I rowsort
SELECT + tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - 14 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT + col1 * + cor0.col0 + 5 + - col2 * col1 FROM tab2 AS cor0
----
-615
3073
702
query I rowsort
SELECT + 68 + - col1 * + col1 * - ( col0 * 91 ) - - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1231636
186020
583038
query I rowsort
SELECT - - 88 + col2 * - 1 * + 35 + col1 FROM tab2 AS cor0
----
-1225
-763
-826
query I rowsort
SELECT 75 * + col1 AS col2 FROM tab0
----
6450
6825
7275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 + + col0 + 71 col2 FROM tab1
----
104
120
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1106
SELECT + - cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1106
SELECT + - cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 - 13 * - col1 FROM tab2 AS cor0
----
238
434
826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1108
SELECT DISTINCT col1 * CAST( - 97 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-1687
-3034
-5749
skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT col1 * CAST ( - 97 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-1687
-3034
-5749
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + cor0.col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - col0 * - 46 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1114
SELECT ALL - - cor0.col1 + CAST( 35 AS SIGNED ) AS col2 FROM tab1 cor0
----
45
48
61
skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL - - cor0.col1 + CAST ( 35 AS INTEGER ) AS col2 FROM tab1 cor0
----
45
48
61
query I rowsort
SELECT DISTINCT - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-58
-59
-70
query I rowsort
SELECT col1 * col1 + cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT + cor0.col0 DIV + col2 + + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1118
SELECT + cor0.col0 / + col2 + + col1 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT col1 + - col0 * col1 DIV col1 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-1119
SELECT col1 + - col0 * col1 / col1 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col2 * - col0 + + 19 + + col0 AS col0 FROM tab0 AS cor0
----
-7190
-749
19
query I rowsort
SELECT + col1 - + 98 AS col1 FROM tab1 AS cor0
----
-72
-85
-88
query I rowsort
SELECT col1 - 84 FROM tab0 AS cor0
----
13
2
7
query I rowsort
SELECT col1 * 87 + col0 AS col2 FROM tab0 AS cor0
----
7506
8006
8474
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 + + 80 col1 FROM tab0 AS cor0
----
108
108
108
query I rowsort
SELECT + 98 + + cor0.col2 FROM tab2 AS cor0
----
124
125
136
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT ALL + - col1 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + - col1 + col0 / col0 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT DISTINCT - col2 * col0 + + col1 DIV + ( + col1 + col1 ) FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - col2 * col0 + + col1 / + ( + col1 + col1 ) FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * 16 col2 FROM tab2 AS cor0
----
-688
query I rowsort
SELECT DISTINCT + - ( - col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ( - 53 ) FROM tab2 cor0
----
-53
-53
-53
query I rowsort
SELECT ALL - cor0.col2 * - 66 * - col2 AS col0 FROM tab1 AS cor0
----
-192456
-214434
-608256
query I rowsort
SELECT ALL col2 + col1 + + col1 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT ALL - 52 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT col2 + col2 + 40 AS col0 FROM tab0
----
106
204
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1137
SELECT DISTINCT col1 + CAST( + col0 + - col0 * 48 AS SIGNED ) AS col2 FROM tab2
----
-298
-3607
-3696
skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT col1 + CAST ( + col0 + - col0 * 48 AS INTEGER ) AS col2 FROM tab2
----
-298
-3607
-3696
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT + - col1 DIV - 26 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT + - col1 / - 26 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + + 78 col2 FROM tab2
----
-1
0
71
query I rowsort
SELECT 19 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1141
SELECT ALL col1 * CAST( NULL AS SIGNED ) / ( + tab1.col0 * col1 ) + - col0 / col0 + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL col1 * CAST ( NULL AS INTEGER ) / ( + tab1.col0 * col1 ) + - col0 / col0 + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col1 + col0 * col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col1 * - col2 + + 44 * cor0.col1 + - col1 FROM tab1 cor0
----
-140
-286
-689
query I rowsort
SELECT DISTINCT col1 + + col0 * + 5 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
203
3978
8093
query I rowsort
SELECT ALL + + 44 - + col0 * - col0 * - ( col0 ) AS col1 FROM tab2 cor0
----
-299
-474508
-492995
query I rowsort
SELECT - - ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col2 * col2 + - ( col2 + col2 ) * + 92 FROM tab1 AS cor0
----
-12852
-13737
-26880
query I rowsort
SELECT col0 * col0 + col2 * 34 AS col0 FROM tab2
----
6968
7533
967
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1150
SELECT + CAST( NULL AS DECIMAL ) / tab0.col1 - - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1150
SELECT + CAST ( NULL AS REAL ) / tab0.col1 - - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 * + col1 * - 12 FROM tab2 cor0
----
-16154
-2631
-55250
query I rowsort
SELECT 84 AS col0 FROM tab0 cor0
----
84
84
84
query I rowsort
SELECT ALL - 51 * + col1 + + 52 AS col2 FROM tab0
----
-4334
-4589
-4895
query I rowsort
SELECT ALL + col2 * - col1 + col0 * 12 FROM tab0 AS cor0
----
-2550
-6394
323
query I rowsort
SELECT DISTINCT + + col1 + + col2 * col2 - + 22 * col1 FROM tab0 AS cor0
----
-2036
-717
4813
query I rowsort
SELECT - 97 * - col0 * col1 AS col2 FROM tab1
----
100880
62080
7566
query I rowsort
SELECT - ( - col1 ) * + tab1.col1 * col0 + - col0 FROM tab1
----
13440
2025
6336
query I rowsort
SELECT ALL 41 + col1 * - col1 * col0 + + col2 AS col0 FROM tab2
----
-22752
-271451
-6659
query I rowsort
SELECT - ( + tab0.col2 ) * col0 * 92 FROM tab0
----
-3220
-671416
-72864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT DISTINCT + cor0.col0 + col0 DIV - col1 col0 FROM tab2 AS cor0
----
7
75
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + cor0.col0 + col0 / - col1 col0 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT ALL + 40 + - col1 AS col2 FROM tab0 cor0
----
-46
-51
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1162
SELECT CAST( NULL AS SIGNED ) * 35 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1162
SELECT CAST ( NULL AS INTEGER ) * 35 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col0 * + col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1165
SELECT + 80 DIV col2 + col0 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-1165
SELECT + 80 / col2 + col0 FROM tab1 AS cor0
----
4
65
80
query I rowsort
SELECT + cor0.col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab2, tab0 AS cor0
----
94
query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT cor0.col0 * - 21 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT + - col2 DIV 97 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1170
SELECT + - col2 / 97 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col0 * - 3 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT - - col1 + 16 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT ALL - col0 * ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + 66 * - col0 + col2 * + 34 * + 0 + col0 * - 78 AS col2 FROM tab2 AS cor0
----
-1008
-11232
-11376
query I rowsort
SELECT ALL - + 86 + - col0 * + col2 * 6 FROM tab2 AS cor0
----
-1220
-12254
-18098
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT - - 63 - 23 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
-105783
-30826
-4928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1178
SELECT - + CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1178
SELECT - + CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 37 ) FROM tab1 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT + col0 DIV 35 AS col1 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1180
SELECT + col0 / 35 AS col1 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) + - 25 col2 FROM tab0 AS cor0
----
1200
551
7896
query I rowsort
SELECT + ( - cor0.col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1184
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL cor0.col0 - col1 * + col1 * - col2 FROM tab0 AS cor0
----
244092
679131
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1187
SELECT + CAST( - col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-1187
SELECT + CAST ( - col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1188
SELECT CAST( NULL AS SIGNED ) / + cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1188
SELECT CAST ( NULL AS INTEGER ) / + cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 31 AS col1 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT tab0.col1 + - 46 AS col2 FROM tab0
----
40
45
51
query I rowsort
SELECT col2 + col2 * 81 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT ALL - 33 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT tab2.col2 + - 83 FROM tab2
----
-45
-56
-57
query I rowsort
SELECT DISTINCT - col2 * + col1 + 52 * col2 * col0 FROM tab2 cor0
----
103922
155458
8991
query I rowsort
SELECT ALL - - 90 + + col1 * + 33 FROM tab2 AS cor0
----
1113
2037
651
query I rowsort
SELECT ALL - col0 - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + 87 + + cor0.col0 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT ALL + + cor0.col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * 58 col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT - col0 + col0 * - col1 * col1 AS col1 FROM tab2
----
-22910
-271596
-6734
query I rowsort
SELECT DISTINCT - 57 + cor0.col0 FROM tab2 AS cor0
----
-50
21
22
query I rowsort
SELECT - col0 * col1 * 89 + + col2 FROM tab1 AS cor0
----
-56903
-6888
-92464
query I rowsort
SELECT ALL + 59 * + col0 FROM tab0 cor0
----
1416
2065
5251
query I rowsort
SELECT ALL + 60 + col2 AS col0 FROM tab1 cor0
----
114
117
156
query I rowsort
SELECT ALL + + col2 * + col0 * - col0 + col0 * col0 AS col0 FROM tab2 AS cor0
----
-1274
-152100
-230917
query I rowsort
SELECT ALL 87 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL + 44 * + 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c80e5a89c0945ca287fe776d3645f02e
query I rowsort
SELECT ALL - + 95 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT ALL + col1 DIV + ( + col1 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + col1 / + ( + col1 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * 32 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT DISTINCT tab1.col1 + - tab1.col0 * 24 + - ( + col2 ) FROM tab1
----
-100
-1583
-2003
query I rowsort
SELECT ALL + ( - col0 ) * col2 - - ( cor0.col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT DISTINCT ( col2 ) DIV col1 - ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT ( col2 ) / col1 - ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * + cor0.col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL + 59 + col0 * + col0 FROM tab0 cor0
----
1284
635
7980
query I rowsort
SELECT + col0 - 15 FROM tab0 AS cor0
----
20
74
9
query I rowsort
SELECT DISTINCT - + 48 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-39
4048
6352
query I rowsort
SELECT + + 12 + ( - col1 * col2 ) FROM tab2 AS cor0
----
-1522
-634
-825
query I rowsort
SELECT - ( + col2 ) - + col2 * col1 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT ALL + col0 DIV - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + col0 / - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 24 * - cor0.col2 col1 FROM tab0 AS cor0
----
121
2059
878
query I rowsort
SELECT + col0 - - tab0.col2 * + col1 AS col1 FROM tab0
----
132
2862
7551
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
query I rowsort
SELECT + 73 + + 41 + - tab2.col0 FROM tab2
----
107
35
36
query I rowsort
SELECT ALL + col2 + 3 * + col1 FROM tab0 AS cor0
----
291
292
355
query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab2, tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT ALL - CAST( NULL AS SIGNED ) * - tab1.col0 + + tab1.col0 * - 84 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - CAST ( NULL AS INTEGER ) * - tab1.col0 + + tab1.col0 * - 84 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - 99 + cor0.col0 * ( 59 ) * + col1 FROM tab0 AS cor0
----
121677
200206
477742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab1
----
33
33
33
query I rowsort
SELECT ALL col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col0 * + col1 * 87 AS col2 FROM tab2
----
116841
18879
400374
query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2
----
27
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 62 * + cor0.col0 + col2 FROM tab0 AS cor0
----
1521
2171
5600
query I rowsort
SELECT DISTINCT + - col0 * + col1 - + ( + col1 ) * + col1 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT - col0 - cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - 4 + + col1 AS col0 FROM tab0 AS cor0
----
82
87
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col0 + + col2 col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col2 + ( - col0 ) AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL + - col1 + + 76 AS col2 FROM tab2 AS cor0
----
17
45
59
query I rowsort
SELECT ALL + cor0.col0 + 49 AS col0 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 75 + - 23 * col1 AS col2 FROM tab2 AS cor0
----
-1282
-316
-638
query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab1 AS cor0
----
34
skipif mysql # not compatible
query I rowsort
SELECT 92 + col2 * col0 * CAST ( col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
114168
5195
52820
query I rowsort
SELECT + 71 * 25 FROM tab0 AS cor0
----
1775
1775
1775
query I rowsort
SELECT - + cor0.col0 + + col0 * - col2 * + 2 AS col2 FROM tab0 AS cor0
----
-105
-14685
-1608
query I rowsort
SELECT + - cor0.col2 * 91 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1253
SELECT DISTINCT - CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 57 + ( + col2 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-154
-2895
-7519
onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT CAST( + col1 AS SIGNED ) + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1255
SELECT CAST ( + col1 AS INTEGER ) + + col2 / col2 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT - col2 * 22 AS col2 FROM tab1
----
-1188
-1254
-2112
query I rowsort
SELECT + tab2.col2 + - col1 * col1 * - col1 AS col2 FROM tab2
----
205405
29818
4951
query I rowsort
SELECT - 40 * - col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
-1960
-243360
-249640
query I rowsort
SELECT - col0 * + 57 - ( col0 + col1 ) * col2 AS col0 FROM tab1 cor0
----
-13488
-1737
-7866
query I rowsort
SELECT - col1 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + - col1 + 55 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT + 69 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT + col0 DIV ( col2 ) col1 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1263
SELECT + col0 / ( col2 ) col1 FROM tab1
----
0
0
1
query I rowsort
SELECT + col2 + - col1 + col0 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL col2 + ( - col1 ) * - col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + ( - col0 ) * col2 + - col1 - col2 FROM tab2 AS cor0
----
-2113
-247
-3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT ALL - + ( col0 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - + ( col0 ) / + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT - col0 DIV - ( col1 ) AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1268
SELECT - col0 / - ( col1 ) AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT - col0 + - col1 + - col0 * col2 FROM tab1
----
-191
-3722
-7773
query I rowsort
SELECT - cor0.col0 * - cor0.col1 + - cor0.col0 * cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-104754
-1302
-354354
query I rowsort
SELECT - 49 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT ALL + 95 * tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b19d63520354ca6ea34b409569810ff4
query I rowsort
SELECT - 8 + - col1 * 43 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-318036
-356091
-404595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab0
----
74
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + col0 col2 FROM tab1
----
-53
24
8
query I rowsort
SELECT ( 28 ) + + col1 FROM tab2
----
45
59
87
query I rowsort
SELECT col0 + - col2 * 96 FROM tab1 cor0
----
-5181
-5408
-9136
query I rowsort
SELECT ALL 67 * col2 FROM tab0
----
2211
5494
67
query I rowsort
SELECT ALL ( + col2 + + col1 ) * + ( + 31 + + col1 ) FROM tab1
----
2747
4560
4796
query I rowsort
SELECT + 86 * + col0 FROM tab1 cor0
----
258
5504
6880
query I rowsort
SELECT + col1 - tab0.col1 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT + col0 DIV + col0 - ( tab2.col2 ) * + col1 AS col2 FROM tab2
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-1282
SELECT + col0 / + col0 - ( tab2.col2 ) * + col1 AS col2 FROM tab2
----
-1533
-645
-836
query I rowsort
SELECT ALL - col1 * - col1 + - col0 * 47 FROM tab0
----
4098
6268
7764
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT ALL - + cor0.col0 DIV + 9 FROM tab1 AS cor0
----
-7
-8
0
skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - + cor0.col0 / + 9 FROM tab1 AS cor0
----
-7
-8
0
query I rowsort
SELECT ALL col2 * col0 * 62 AS col1 FROM tab2
----
11718
125736
186124
query I rowsort
SELECT + + col1 + col0 * + 93 AS col2 FROM tab1 AS cor0
----
305
5962
7453
query I rowsort
SELECT 10 + cor0.col2 AS col1 FROM tab0 AS cor0
----
11
43
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + col0 col1 FROM tab0
----
104
39
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT + cor0.col2 DIV cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4
skipif mysql # not compatible
query I rowsort label-1289
SELECT + cor0.col2 / cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e356a6b217612a547b669fa80e15d9b4
query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) * - col2 + - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 - - 7 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT ALL - + col0 * + ( + cor0.col2 ) + + col1 + col1 FROM tab0 AS cor0
----
-620
-7116
159
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1293
SELECT col2 + - CAST( 39 AS SIGNED ) AS col1 FROM tab1 cor0
----
15
18
57
skipif mysql # not compatible
query I rowsort label-1293
SELECT col2 + - CAST ( 39 AS INTEGER ) AS col1 FROM tab1 cor0
----
15
18
57
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 - - 86 AS col2 FROM tab0 AS cor0
----
1311
662
8007
query I rowsort
SELECT ALL + col0 + + 71 AS col0 FROM tab1 AS cor0
----
135
151
74
query I rowsort
SELECT - - cor0.col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * + 22 AS col2 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT ALL cor0.col0 * col0 * 86 - - col1 AS col0 FROM tab1 AS cor0
----
352266
550413
800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * 73 + + col2 * - col2 * + col0 col0 FROM tab0 AS cor0
----
-24384
-591939
2520
query I rowsort
SELECT + - col1 * + 96 AS col2 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL + col2 * 25 - col0 FROM tab1 AS cor0
----
1347
1361
2320
query I rowsort
SELECT ( col1 + col0 ) * - 85 FROM tab2
----
-11645
-3230
-8160
query I rowsort
SELECT - 54 + + 47 * col2 + tab2.col0 * tab2.col0 FROM tab2
----
1264
7252
7973
query I rowsort
SELECT 89 + - 36 FROM tab2 AS cor0
----
53
53
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1306
SELECT CAST( + col1 AS SIGNED ) * col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-1306
SELECT CAST ( + col1 AS INTEGER ) * col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col2 + - col2 - - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-30
526
848
query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 * - 41 + + 41 FROM tab0 AS cor0
----
116399
305983
4018
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 52 + col2 col1 FROM tab2 cor0
----
-1326
-1377
-1938
query I rowsort
SELECT ( - 93 ) * col2 AS col1 FROM tab0 AS cor0
----
-3069
-7626
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT - cor0.col2 DIV col0 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1311
SELECT - cor0.col2 / col0 FROM tab2 cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT DISTINCT - 69 * col0 / - CAST( NULL AS SIGNED ) + - col2 * - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT - 69 * col0 / - CAST ( NULL AS INTEGER ) + - col2 * - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
89
query I rowsort
SELECT ALL - 85 * col1 AS col0 FROM tab0 cor0
----
-7310
-7735
-8245
query I rowsort
SELECT + - 37 * col1 FROM tab0 AS cor0
----
-3182
-3367
-3589
onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT + tab0.col1 DIV col1 + - col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-1316
SELECT + tab0.col1 / col1 + - col2 AS col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT ALL col2 + - col0 - col0 * + col1 FROM tab2
----
-1384
-197
-4654
query I rowsort
SELECT col1 * tab1.col2 + - col1 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NULL ) BETWEEN ( + col2 * col0 / + col1 ) AND - col2
----
query I rowsort
SELECT ALL col2 + - tab2.col2 + col2 * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * col2 * col0 + col1 + - col2 FROM tab1
----
207889
737197
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1323
SELECT col1 DIV col0 + col0 + + col1 AS col2 FROM tab0
----
113
134
181
skipif mysql # not compatible
query I rowsort label-1323
SELECT col1 / col0 + col0 + + col1 AS col2 FROM tab0
----
113
134
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT + col2 DIV col0 + col2 AS col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-1324
SELECT + col2 / col0 + col2 AS col2 FROM tab0
----
1
34
82
query I rowsort
SELECT ALL col0 * + tab2.col1 * col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL tab1.col1 * - col2 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col0 / col1 - col1 FROM tab1 WHERE NULL IN ( + col2 * - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT + col1 DIV + tab0.col1 + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1328
SELECT + col1 / + tab0.col1 + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL tab2.col2 * - col2 * col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT ALL col2 * col1 * - tab0.col2 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col2 * - col0 col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + 39 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT ALL - + 54 AS col0 FROM tab1 cor0
----
-54
-54
-54
query I rowsort
SELECT DISTINCT - cor0.col0 - - 96 FROM tab1, tab2 cor0
----
17
18
89
query I rowsort
SELECT - cor0.col2 + + col2 * + col0 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT ALL col2 * col2 + + ( col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
1499
761
787
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT DISTINCT col0 * col1 DIV + col2 FROM tab0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT col0 * col1 / + col2 FROM tab0
----
3395
62
98
query I rowsort
SELECT DISTINCT col1 * col0 + tab2.col0 + col2 * col1 AS col1 FROM tab2
----
1061
2068
6214
query I rowsort
SELECT ALL - col0 + col1 * col2 + - col2 * col2 AS col2 FROM tab1
----
-1515
-2743
-8048
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + col0 * - col1 + col0 NOT BETWEEN - col1 * + col2 AND NULL
----
query I rowsort
SELECT DISTINCT - 71 FROM tab0 AS cor0
----
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT ALL col1 * - col0 DIV col0 AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL col1 * - col0 / col0 AS col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + col1 + col2 * col0 col1 FROM tab2 WHERE col1 + col0 - col2 * col1 > NULL
----
query I rowsort
SELECT ALL - col0 + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 IN ( col2 * + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col0 * + tab1.col0 * col0 AS col2 FROM tab1
----
262144
27
512000
query I rowsort
SELECT ALL + tab0.col1 + col2 FROM tab0 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT col2 FROM tab0 WHERE ( col1 * + col2 ) NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT DISTINCT + tab0.col2 + col0 * col2 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + + col2 col2 FROM tab0
----
246
3
99
query I rowsort
SELECT + col0 + - col2 * - tab2.col1 * + tab2.col1 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - col2 )
----
query I rowsort
SELECT - col0 + tab2.col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + tab0.col2 - col1 AS col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT ALL col0 DIV col0 - - col1 AS col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL col0 / col0 - - col1 AS col0 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT + col0 + tab0.col0 - - col0 DIV col0 FROM tab0
----
179
49
71
skipif mysql # not compatible
query I rowsort label-1357
SELECT + col0 + tab0.col0 - - col0 / col0 FROM tab0
----
179
49
71
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > col1
----
query I rowsort
SELECT + + ( cor0.col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT 41 + col2 AS col1 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT DISTINCT + 7 * - 69 + col2 AS col0 FROM tab2 AS cor0
----
-445
-456
-457
query I rowsort
SELECT DISTINCT + 56 + ( col2 ) + + col0 AS col0 FROM tab0 cor0
----
113
227
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT ALL + tab1.col0 DIV - 74 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + tab1.col0 / - 74 AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL 41 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT ALL - cor0.col0 + - col2 * - col0 * + col1 FROM tab0 cor0
----
3360
664029
68088
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - ( - tab0.col0 * + col0 ) AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT 89 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT col2 * + col1 * + 31 AS col2 FROM tab2
----
20026
25947
47554
query I rowsort
SELECT DISTINCT 63 + + col1 FROM tab0
----
149
154
160
query I rowsort
SELECT - 6 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT col0 * + col2 + ( + 97 ) FROM tab2 cor0
----
2125
286
3099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT DISTINCT col0 DIV + col0 + - tab1.col0 * col0 * - col2 FROM tab1
----
233473
487
614401
skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT col0 / + col0 + - tab1.col0 * col0 * - col2 FROM tab1
----
233473
487
614401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + col1 + - col1 col1 FROM tab1
----
67
67
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1375
SELECT ALL - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 + + col2 * col1 AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col2 + + 97 AS col1 FROM tab2 AS cor0
----
59
70
71
query I rowsort
SELECT col2 * ( cor0.col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 * + col0 + + 25 FROM tab0 AS cor0
----
-10
-7273
-767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT DISTINCT col1 + col2 DIV + 93 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT col1 + col2 / + 93 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 + - 80 AS col1 FROM tab0 cor0
----
-47
-79
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT + - col0 DIV CAST( - col2 AS SIGNED ) + col1 col0 FROM tab0 AS cor0
----
132
86
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1383
SELECT + - col0 / CAST ( - col2 AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT + cor0.col2 * + 33 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT DISTINCT - - col0 * + ( - col1 ) + - col2 AS col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT + cor0.col1 * - 20 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT DISTINCT - col2 * 36 AS col1 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT + + cor0.col2 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT DISTINCT + col0 DIV - ( cor0.col2 ) FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + col0 / - ( cor0.col2 ) FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT col2 + cor0.col2 * - col1 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1390
SELECT col2 + cor0.col2 * - col1 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * - 74 + + col1 AS col2 FROM tab2 AS cor0
----
-1865
-1967
-2795
query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab1
----
70
query I rowsort
SELECT DISTINCT - col0 * + ( col1 + + col1 ) FROM tab2
----
-2686
-434
-9204
query I rowsort
SELECT - ( 6 + + col2 ) FROM tab2
----
-32
-33
-44
query I rowsort
SELECT 97 * col0 FROM tab2 cor0
----
679
7566
7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - ( + cor0.col1 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT 89 * - cor0.col0 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT - 23 * - col2 FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 FROM tab2 cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1401
SELECT + cor0.col1 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 73 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-116
-1955
-2929
onlyif mysql # use DIV operator for integer division
query I rowsort label-1403
SELECT ( - col0 ) DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1403
SELECT ( - col0 ) / + col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab0, tab0 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col0 + col0 ) col2 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL + 78 * col0 FROM tab2
----
546
6084
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col0 col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 48 + tab1.col1 * col0 AS col0 FROM tab1
----
30
592
992
query I rowsort
SELECT ALL col2 + col2 * + col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT + ( - col2 + + 16 ) AS col1 FROM tab2
----
-10
-11
-22
query I rowsort
SELECT + col0 + + 62 AS col1 FROM tab1 AS cor0
----
126
142
65
query I rowsort
SELECT - col0 * + col0 * + 7 FROM tab0
----
-4032
-55447
-8575
query I rowsort
SELECT DISTINCT - + col0 * 66 + - col2 FROM tab2 AS cor0
----
-489
-5174
-5252
query I rowsort
SELECT ALL col1 + ( col1 + - col0 ) FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT - + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT col1 + - col1 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * + col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT - col0 + - col2 * col2 + col2 FROM tab1 AS cor0
----
-2865
-3256
-9200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ALL - col0 DIV col0 - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - col0 / col0 - col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL + + col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 * cor0.col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL col0 * + col1 + + col1 * + col1 AS col0 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT + col0 * col1 + tab2.col2 AS col1 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT - tab0.col0 * col0 + col1 DIV + col1 FROM tab0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-1426
SELECT - tab0.col0 * col0 + col1 / + col1 FROM tab0
----
-1224
-575
-7920
query I rowsort
SELECT DISTINCT col2 + - col0 * - col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col1 + col2 + col0 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT - cor0.col0 + - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * col1 - + col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT + + col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * cor0.col1 - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT col2 * - col0 * col1 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
-119534
-51000
-5797
onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT ALL col0 DIV col1 + - tab2.col1 + col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL col0 / col1 + - tab2.col1 + col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL col0 + col1 * tab0.col2 * + col2 AS col2 FROM tab0
----
132
611973
93678
query I rowsort
SELECT ALL + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - cor0.col0 * + col1 col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT + col1 - col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col2 * col1 - col1 * - col1 FROM tab2 AS cor0
----
-357
124
1947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT DISTINCT + + col2 + + CAST( NULL AS DECIMAL ) * + 70 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + + col2 + + CAST ( NULL AS REAL ) * + 70 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT + - col2 * CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 + 68 * col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL - col1 * - col1 + tab1.col0 FROM tab1
----
164
249
679
query I rowsort
SELECT col1 * + 62 * - tab1.col2 AS col2 FROM tab1
----
-35340
-77376
-87048
query I rowsort
SELECT DISTINCT - cor0.col2 + + 67 AS col0 FROM tab2 AS cor0
----
29
40
41
query I rowsort
SELECT ALL + + cor0.col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + - col1 + col0 + + col2 * col2 * + ( - 91 ) FROM tab2 AS cor0
----
-131342
-61497
-66363
query I rowsort
SELECT DISTINCT col0 + col1 + + 67 AS col1 FROM tab2 cor0
----
105
163
204
query I rowsort
SELECT ALL - col0 * 2 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 73 col1 FROM tab0 AS cor0
----
1752
2555
6497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col2 * col0 col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + cor0.col0 + col2 + - col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - - cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col1 + 51 * + col2 * 85 FROM tab2 AS cor0
----
112769
117076
164747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1456
SELECT ALL - CAST( 22 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1298
374
682
skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - CAST ( 22 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT - col2 + col0 * cor0.col0 AS col1 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT - 5 * + 26 * + col1 AS col0 FROM tab2
----
-2210
-4030
-7670
query I rowsort
SELECT - 42 + - col2 FROM tab2 AS cor0
----
-68
-69
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1460
SELECT ALL - - CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL - - CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col0 + + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1465
SELECT CAST( NULL AS SIGNED ) - col0 * col0 * + tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1465
SELECT CAST ( NULL AS INTEGER ) - col0 * col0 * + tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 75 * + cor0.col1 + - col0 AS col1 FROM tab0 cor0
----
-6474
-6914
-7310
query I rowsort
SELECT DISTINCT + 90 + col2 * 23 FROM tab1 AS cor0
----
1332
1401
2298
query I rowsort
SELECT + 40 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT + + col0 * col1 * + ( - col0 ) FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + 94 + - cor0.col2 FROM tab0 cor0
----
12
61
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1471
SELECT DISTINCT + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT DISTINCT + ( - col0 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + ( - col0 ) / - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + + col2 * cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - + 94 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-35
-63
-77
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab1, tab0 AS cor0
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT + + col1 + - cor0.col2 * 82 DIV + col0 FROM tab1 AS cor0
----
-1450
-63
-85
skipif mysql # not compatible
query I rowsort label-1477
SELECT + + col1 + - cor0.col2 * 82 / + col0 FROM tab1 AS cor0
----
-1450
-63
-85
query I rowsort
SELECT col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 * + col1 + + col2 - + col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + + col2 * cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col1 + + 66 AS col0 FROM tab2 cor0
----
1058
3606
372
query I rowsort
SELECT DISTINCT - + 61 * ( + col0 * ( - col1 ) ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
39104
4761
63520
query I rowsort
SELECT + col1 * + col1 + col2 AS col1 FROM tab2 cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 + + col0 * col0 col2 FROM tab0 cor0
----
1207
558
7903
query I rowsort
SELECT - 0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT - 10 + 87 * col1 FROM tab0
----
7472
7907
8429
onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT DISTINCT - col1 DIV col2 + tab0.col2 * + 51 FROM tab0
----
-46
1681
4181
skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT - col1 / col2 + tab0.col2 * + 51 FROM tab0
----
-46
1681
4181
query I rowsort
SELECT ALL - col1 + + 0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 13 col1 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT ALL + 92 + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 147e757ceb9575e13e0d8753ee260213
query I rowsort
SELECT col0 * 85 AS col0 FROM tab0
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT ALL 25 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 25 / col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT DISTINCT tab0.col2 DIV col2 + tab0.col1 * col1 FROM tab0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT tab0.col2 / col2 + tab0.col1 * col1 FROM tab0
----
7397
8282
9410
query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + col0 + 59 * cor0.col0 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT + ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col0 * 18 AS col1 FROM tab0
----
-1602
-432
-630
query I rowsort
SELECT + - 53 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + col0 * ( - col1 ) col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col1 * col1 * - 2 FROM tab0
----
-14792
-16562
-18818
onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT - col1 * - col2 + - col2 DIV + 11 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1336
1454
622
skipif mysql # not compatible
query I rowsort label-1504
SELECT - col1 * - col2 + - col2 / + 11 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1336
1454
622
query I rowsort
SELECT - + cor0.col1 * - ( + col2 ) + cor0.col2 * + ( col0 ) + - cor0.col2 * col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 + 87 + + col0 AS col0 FROM tab2 AS cor0
----
125
183
224
query I rowsort
SELECT - - col1 * 97 + 17 FROM tab1 AS cor0
----
1278
2539
987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1508
SELECT col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1508
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 17 FROM tab1 cor0
----
-37
-40
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col2 + col1 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col2 - ( col2 ) FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - ( 58 ) col0 FROM tab1 AS cor0
----
-1
-4
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1513
SELECT ALL col1 DIV + col0 + 80 * cor0.col1 FROM tab2 AS cor0
----
1360
2484
4720
skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL col1 / + col0 + 80 * cor0.col1 FROM tab2 AS cor0
----
1360
2484
4720
query I rowsort
SELECT DISTINCT col2 + + 71 FROM tab0
----
104
153
72
query I rowsort
SELECT ALL tab0.col1 * - col0 + 1 * + col2 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1516
SELECT - col2 + + CAST( NULL AS SIGNED ) + col1 col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1516
SELECT - col2 + + CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + col0 - col2 FROM tab0 AS cor0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT DISTINCT + col0 DIV - cor0.col0 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + col0 / - cor0.col0 FROM tab2 cor0
----
-1
query I rowsort
SELECT + + col2 - - col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL + col2 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + col2 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 * 35 AS col2 FROM tab2 AS cor0
----
-245
-2730
-2765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( col1 ) col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - + 49 FROM tab2 cor0
----
-49
query I rowsort
SELECT ALL col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL cor0.col1 * - 51 AS col2 FROM tab1 AS cor0
----
-1326
-510
-663
onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT - + col2 * col0 + col2 DIV + ( 36 ) FROM tab0 AS cor0
----
-35
-7296
-792
skipif mysql # not compatible
query I rowsort label-1527
SELECT - + col2 * col0 + col2 / + ( 36 ) FROM tab0 AS cor0
----
-35
-7296
-792
query I rowsort
SELECT ALL - 97 * - col0 FROM tab0 AS cor0
----
2328
3395
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 24 ) col1 FROM tab0 AS cor0
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT ALL + 53 * cor0.col2 + col2 + CAST( col0 AS SIGNED ) DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
2915
3077
5183
skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + 53 * cor0.col2 + col2 + CAST ( col0 AS INTEGER ) / - cor0.col0 AS col1 FROM tab1 AS cor0
----
2915
3077
5183
query I rowsort
SELECT col2 + ( tab0.col0 ) + + col1 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-1532
SELECT DISTINCT col2 DIV - col1 - col1 FROM tab1
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT col2 / - col1 - col1 FROM tab1
----
-15
-20
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT col2 DIV col0 + + 11 - tab0.col1 * + ( 49 ) FROM tab0
----
-4202
-4448
-4742
skipif mysql # not compatible
query I rowsort label-1534
SELECT col2 / col0 + + 11 - tab0.col1 * + ( 49 ) FROM tab0
----
-4202
-4448
-4742
query I rowsort
SELECT DISTINCT - 59 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT ALL - - col0 - cor0.col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 25 col2 FROM tab0 AS cor0
----
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col0 FROM tab2 AS cor0
----
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 3 * + col0 + ( 26 ) * col0 * 46 AS col1 FROM tab2 AS cor0
----
8393
93522
94721
query I rowsort
SELECT ALL ( - tab2.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT 36 - - col0 * 74 FROM tab2 AS cor0
----
554
5808
5882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT col1 * - col1 * 15 FROM tab1
----
-10140
-1500
-2535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1545
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1545
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 41 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT - + col0 + - col1 * + col1 * + 65 AS col1 FROM tab0 AS cor0
----
-480764
-538354
-611620
query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - col1 + 9 AS col1 FROM tab2 cor0
----
26
40
68
query I rowsort
SELECT DISTINCT + + 58 * + col1 + col2 - 30 * + cor0.col1 FROM tab2 AS cor0
----
1678
514
895
onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT ALL - 60 + 47 DIV cor0.col0 col1 FROM tab2 AS cor0
----
-54
-60
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - 60 + 47 / cor0.col0 col1 FROM tab2 AS cor0
----
-54
-60
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT DISTINCT - + 36 DIV col0 AS col1 FROM tab1 AS cor0
----
-12
0
skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - + 36 / col0 AS col1 FROM tab1 AS cor0
----
-12
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1553
SELECT ALL + col2 * col2 * col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + col2 * col2 * col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 71 FROM tab0 cor0
----
71
71
71
query I rowsort
SELECT ALL - col2 + + 81 * col1 FROM tab2 cor0
----
1339
2484
4753
query I rowsort
SELECT ALL 63 * 8 + col0 AS col1 FROM tab0 AS cor0
----
528
539
593
query I rowsort
SELECT - 15 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1558
SELECT + CAST( NULL AS SIGNED ) * + col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1558
SELECT + CAST ( NULL AS INTEGER ) * + col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1559
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + + ( col0 ) + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - - 7 + col2 AS col2 FROM tab2 AS cor0
----
33
34
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - 23 col1 FROM tab1 AS cor0
----
-10
-13
3
query I rowsort
SELECT 70 * + col2 AS col2 FROM tab0
----
2310
5740
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1565
SELECT + ( col1 ) - CAST( + col2 AS SIGNED ) FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-1565
SELECT + ( col1 ) - CAST ( + col2 AS INTEGER ) FROM tab0
----
53
9
96
query I rowsort
SELECT + cor0.col0 * - 0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT DISTINCT tab2.col2 + + col1 * + col1 DIV + col1 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT tab2.col2 + + col1 * + col1 / + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - 60 * col0 * - col1 FROM tab0
----
123840
203700
485940
query I rowsort
SELECT 59 + col2 * col0 FROM tab2
----
2087
248
3061
query I rowsort
SELECT ALL 59 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT col2 + - 7 AS col0 FROM tab1
----
47
50
89
query I rowsort
SELECT - col1 * - col0 + col1 + col0 FROM tab0 AS cor0
----
2174
3527
8279
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col1 FROM tab1, tab1 AS cor0
----
10
query I rowsort
SELECT + cor0.col2 * col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - 87 FROM tab0, tab2 AS cor0
----
-87
query I rowsort
SELECT col0 * + 66 + - col2 + + col1 FROM tab1
----
170
4177
5197
query I rowsort
SELECT col0 * + ( + col0 ) AS col2 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col0 col0 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 61 col2 FROM tab1 AS cor0
----
71
74
87
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 6275704c8dcc358f1d7c268582457eaa
query I rowsort
SELECT - col1 * + 40 + 39 AS col0 FROM tab1
----
-1001
-361
-481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - ( col2 ) col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col1 * 40 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT + - col0 * - ( cor0.col1 ) + col2 + + 13 AS col1 FROM tab1 AS cor0
----
1149
145
710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - + col1 * + ( - col1 ) * - col2 FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - - col1 * - 65 AS col2 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
53
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - col1 * - ( cor0.col2 ) + col1 + 38 FROM tab2 AS cor0
----
1631
701
906
query I rowsort
SELECT ( col1 ) + + col2 + 43 FROM tab0 AS cor0
----
141
162
216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL + col1 DIV cor0.col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + col1 / cor0.col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT 17 FROM tab2 cor0
----
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 + + ( col1 ) col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 45 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 * + col2 col0 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + col2 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
84
query I rowsort
SELECT ALL + 66 * col0 + - 32 AS col2 FROM tab2 AS cor0
----
430
5116
5182
query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 AS cor0
----
-59
query I rowsort
SELECT + - col2 * + 52 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT + col0 - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + tab0.col2 * - 56 FROM tab0, tab1 AS cor0
----
9 values hashing to b5ac07851fe10ec7b4f57100c31039f6
query I rowsort
SELECT 6 * col2 AS col0 FROM tab0
----
198
492
6
query I rowsort
SELECT - col2 + col2 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - col1 * cor0.col2 + ( + col0 * col0 ) + + 54 FROM tab2 cor0
----
6941
7672
940
query I rowsort
SELECT ALL + col0 + + tab0.col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + col2 + col2 + 23 * + col1 AS col1 FROM tab1
----
344
491
706
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT ALL + 68 * - col0 * - ( + col0 ) + + col1 DIV 52 AS col0 FROM tab2
----
3332
413713
424388
skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL + 68 * - col0 * - ( + col0 ) + + col1 / 52 AS col0 FROM tab2
----
3332
413713
424388
query I rowsort
SELECT DISTINCT col0 + - col1 * ( + tab1.col0 ) FROM tab1
----
-576
-75
-960
query I rowsort
SELECT 33 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
34
query I rowsort
SELECT ALL 81 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT - 7 + col2 DIV + col2 col0 FROM tab1 AS cor0
----
-6
-6
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1616
SELECT - 7 + col2 / + col2 col0 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT - + ( cor0.col1 ) + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * + col1 + + col0 col1 FROM tab1 cor0
----
1054
1367
2577
query I rowsort
SELECT cor0.col0 * + col1 - - col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 52 * col0 - - col1 FROM tab1 AS cor0
----
182
3338
4173
onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT - col0 DIV - col1 + + col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-1621
SELECT - col0 / - col1 + + col1 FROM tab2 AS cor0
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT ALL 24 DIV - 22 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL 24 / - 22 AS col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 9 * col2 FROM tab2
----
234
243
342
query I rowsort
SELECT 60 + col2 AS col1 FROM tab0
----
142
61
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col0 FROM tab0
----
42
42
42
query I rowsort
SELECT ( - col1 ) + + col1 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT 4 * col0 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT - col1 * cor0.col0 - ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT col0 DIV col0 - 65 FROM tab0 AS cor0
----
-64
-64
-64
skipif mysql # not compatible
query I rowsort label-1630
SELECT col0 / col0 - 65 FROM tab0 AS cor0
----
-64
-64
-64
query I rowsort
SELECT ALL 21 * col1 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT ALL + - ( + col1 ) * col1 * + col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 75 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT ALL - 21 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT + 60 - + col2 * + col1 * - ( 57 ) FROM tab0
----
161826
425394
5589
onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT 16 - col1 * - col0 DIV - ( col0 ) AS col2 FROM tab0 cor0
----
-70
-75
-81
skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT 16 - col1 * - col0 / - ( col0 ) AS col2 FROM tab0 cor0
----
-70
-75
-81
query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 - - ( + cor0.col1 ) FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab0 cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT ALL col1 DIV - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL col1 / - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1641
SELECT - + col1 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-1641
SELECT - + col1 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + - col2 + col2 + - ( + col0 * - 20 ) FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT ALL col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-1644
SELECT - cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1644
SELECT - cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 27 col2 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT + cor0.col0 + + col0 * + cor0.col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + col1 * - ( cor0.col0 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ( - col1 ) * cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + cor1.col1 * 25 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 39425ada88616f86cc36707d19f9b069
query I rowsort
SELECT DISTINCT ( + col2 ) + - cor0.col2 + - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - cor2.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT DISTINCT CAST( 39 AS SIGNED ) DIV - cor0.col0 + col0 FROM tab0 AS cor0
----
23
34
89
skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT CAST ( 39 AS INTEGER ) / - cor0.col0 + col0 FROM tab0 AS cor0
----
23
34
89
query I rowsort
SELECT ALL - col0 * + col0 * tab1.col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + col2 - - col0 * col0 * col1 FROM tab1
----
288
41017
83296
query I rowsort
SELECT - col0 + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT col2 * + col2 + col0 AS col1 FROM tab1
----
2919
3313
9296
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col1 <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - tab1.col2 * col1 + col1 + + col1 )
----
query I rowsort
SELECT - cor0.col0 + - col0 + + col2 FROM tab0 AS cor0
----
-15
-69
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT + col0 DIV col2 + col2 * - col1 - col1 AS col1 FROM tab1 cor0
----
-1261
-1430
-579
skipif mysql # not compatible
query I rowsort label-1662
SELECT + col0 / col2 + col2 * - col1 - col1 AS col1 FROM tab1 cor0
----
-1261
-1430
-579
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * - col0 - col2 AS col1 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT + col1 * tab1.col2 - tab1.col2 AS col2 FROM tab1
----
1152
1350
513
query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 * col2 NOT IN ( + col2 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col2 + col2 * - col0 col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT ALL col1 + - col1 DIV + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL col1 + - col1 / + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT + col1 + + col1 + col2 AS col1 FROM tab2
----
144
72
89
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( col1 + col1 + - col1 / col2 )
----
query I rowsort
SELECT ALL col1 - col0 * col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + col1 * col2 * col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - tab0.col1 * - col2 col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT tab2.col2 * tab2.col0 * col2 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + col2 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT col1 + col0 - + cor0.col0 * col1 FROM tab0 cor0
----
-1954
-3263
-7919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * - col0 * - col0 col2 FROM tab2 cor0
----
-1292
-158125
-237141
query I rowsort
SELECT - col0 + cor0.col2 + col0 AS col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1683
SELECT ALL cor0.col0 * - col2 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL cor0.col0 * - col2 + col1 / col0 AS col0 FROM tab0 AS cor0
----
-33
-7297
-789
query I rowsort
SELECT DISTINCT col2 + + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col1 * col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT DISTINCT - col2 DIV + col2 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - col2 / + col2 AS col0 FROM tab1
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT col0 DIV - tab0.col0 + col0 AS col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1687
SELECT col0 / - tab0.col0 + col0 AS col1 FROM tab0
----
23
34
88
query I rowsort
SELECT + col2 + col1 * + col1 FROM tab2
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT col1 * - col0 - col1 DIV - col2 AS col1 FROM tab0
----
-2062
-3298
-8098
skipif mysql # not compatible
query I rowsort label-1689
SELECT col1 * - col0 - col1 / - col2 AS col1 FROM tab0
----
-2062
-3298
-8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT - col0 + col1 DIV - col2 AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1690
SELECT - col0 + col1 / - col2 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col2 * col1 - + col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + col2 * - tab2.col2 + + tab2.col1 * - col2 FROM tab2
----
-1566
-2090
-2210
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 * - col2 + col1 - + col1 )
----
query I rowsort
SELECT + col1 + - col1 * col2 + col1 * + col2 * col1 AS col1 FROM tab2
----
10353
25141
89031
query I rowsort
SELECT - col2 + + 2 FROM tab2 AS cor0
----
-24
-25
-36
query I rowsort
SELECT + cor0.col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * ( 2 ) - col0 FROM tab1 cor0
----
-44
-54
49
query I rowsort
SELECT col2 * col2 + + 96 AS col0 FROM tab2 AS cor0
----
1540
772
825
query I rowsort
SELECT ALL 41 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT + cor0.col0 + + CAST( 31 AS SIGNED ) * + cor0.col1 * 92 - - col0 FROM tab2 AS cor0
----
168424
48642
88426
skipif mysql # not compatible
query I rowsort label-1701
SELECT + cor0.col0 + + CAST ( 31 AS INTEGER ) * + cor0.col1 * 92 - - col0 FROM tab2 AS cor0
----
168424
48642
88426
query I rowsort
SELECT - - col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col1 - - col0 * col2 * - col1 AS col2 FROM tab1
----
-36470
-4186
-99827
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT ALL col1 DIV + tab0.col0 + + col0 AS col2 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL col1 / + tab0.col0 + + col0 AS col2 FROM tab0
----
27
37
90
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT ALL col2 DIV - col0 + + col1 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL col2 / - col0 + + col1 FROM tab2
----
17
28
59
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = + col2 * + col1 + col1
----
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col1 ) <= col2
----
query I rowsort
SELECT + col2 + col0 * + col2 * col1 FROM tab1
----
36537
4266
99936
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) BETWEEN NULL AND - col1 + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + - col1 + + col0 * - 94 FROM tab2 AS cor0
----
-689
-7391
-7443
query I rowsort
SELECT tab1.col2 + - tab1.col1 * + 24 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7be711ca99d0ddc8d58156e09b07d216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1715
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + + ( - col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col2 * + 4 * col1 AS col2 FROM tab1 AS cor0
----
2280
4992
5616
query I rowsort
SELECT - + col2 * - ( col1 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + - cor0.col1 * 85 + + col0 AS col2 FROM tab0 AS cor0
----
-7286
-7646
-8210
query I rowsort
SELECT - col1 + + ( col0 ) * + col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - + cor0.col2 + 42 FROM tab1 AS cor0
----
-12
-15
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - 12 FROM tab2, tab0 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT ALL + - ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1 AS cor0
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT col1 - cor0.col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21
query I rowsort
SELECT + col0 * 57 FROM tab1
----
171
3648
4560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - 63 FROM tab0, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT ALL - 1 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 * + cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( - col2 + 5 ) AS col1 FROM tab1
----
-49
-52
-91
query I rowsort
SELECT ALL - tab0.col2 * + tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab1
----
58
query I rowsort
SELECT col1 + - tab1.col0 * + col0 AS col0 FROM tab1
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT DISTINCT col0 DIV - col0 + col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT col0 / - col0 + col0 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT DISTINCT + + col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + + col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 * col1 * - col1 + - col0 FROM tab2
----
-22910
-271596
-6734
query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT ALL + col2 DIV + col2 + + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + col2 / + col2 + + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT col2 * tab0.col2 + tab0.col0 AS col1 FROM tab0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col0 col1 FROM tab1
----
-1168
-1401
-506
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col1 * - col2 * - tab1.col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT ( - col1 ) + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + col0 * + cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 22 FROM tab0, tab0 cor0
----
22
query I rowsort
SELECT ALL + col2 * - col2 + + col2 * + col1 FROM tab2
----
-798
108
858
query I rowsort
SELECT ALL + col1 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + - col0 + + col2 * col2 - col0 AS col0 FROM tab1 AS cor0
----
2910
3121
9056
query I rowsort
SELECT - - col0 * col0 * + col1 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
396
44608
90880
query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT col0 * + col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 40 col0 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT + - 41 * col0 + col1 FROM tab1 cor0
----
-2614
-3267
-97
query I rowsort
SELECT DISTINCT + col2 + + col0 * col1 * col0 FROM tab0 AS cor0
----
118826
49569
720893
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1763
SELECT CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT col2 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-1764
SELECT col2 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
46
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT + col0 DIV col2 + col0 + + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
27
72
91
skipif mysql # not compatible
query I rowsort label-1765
SELECT + col0 / col2 + col0 + + col1 / + col0 AS col0 FROM tab0 AS cor0
----
27
72
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT ALL col1 * col0 + col1 DIV 53 AS col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL col1 * col0 + col1 / 53 AS col0 FROM tab0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT + 21 FROM tab1, tab1 AS cor0
----
21
query I rowsort
SELECT ALL - cor0.col2 + - 69 * - 39 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 522b04bcdbc1b910286b0250dc0ee53d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT ALL ( + 68 ) * col1 * CAST( col0 AS SIGNED ) + tab1.col2 col2 FROM tab1
----
43577
5358
70816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL ( + 68 ) * col1 * CAST ( col0 AS INTEGER ) + tab1.col2 col2 FROM tab1
----
43577
5358
70816
query I rowsort
SELECT - col2 * tab2.col0 + tab2.col1 * - ( - col0 ) + - col0 AS col2 FROM tab2
----
-1738
21
2496
query I rowsort
SELECT ALL - tab1.col0 + tab1.col0 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT DISTINCT + - CAST( + 23 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-49
-50
-61
skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT + - CAST ( + 23 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-49
-50
-61
query I rowsort
SELECT - ( + col2 ) * col0 * + col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
-207836
-737111
-8072
query I rowsort
SELECT ALL 94 + + 86 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2158
3104
7748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1777
SELECT ALL CAST( NULL AS SIGNED ) + 75 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL CAST ( NULL AS INTEGER ) + 75 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 88 * cor0.col0 + + col0 FROM tab0 AS cor0
----
-2088
-3045
-7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - - cor0.col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT ALL + col2 + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL + col2 + - col0 / col0 AS col2 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 * col1 + - col0 col1 FROM tab2 AS cor0
----
210
335
40
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col2 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT ALL - 29 + col1 * col2 FROM tab2 AS cor0
----
1505
617
808
query I rowsort
SELECT DISTINCT - col0 * col0 - 93 * col2 FROM tab0 AS cor0
----
-1318
-15547
-3645
onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT 51 DIV col2 + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1787
SELECT 51 / col2 + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT - cor0.col0 * + col2 + - CAST( + col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
skipif mysql # not compatible
query I rowsort label-1788
SELECT - cor0.col0 * + col2 + - CAST ( + col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT 48 - col0 * col0 AS col2 FROM tab0
----
-1177
-528
-7873
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + - 74 + + col1 FROM tab1 AS cor0
----
-48
-61
-64
query I rowsort
SELECT DISTINCT 99 + + col0 AS col1 FROM tab1 AS cor0
----
102
163
179
query I rowsort
SELECT col1 * - col2 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT + + col2 * col2 - cor0.col2 DIV col1 FROM tab1 AS cor0
----
2914
3244
9209
skipif mysql # not compatible
query I rowsort label-1794
SELECT + + col2 * col2 - cor0.col2 / col1 FROM tab1 AS cor0
----
2914
3244
9209
query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT + + col0 * - CAST( 48 AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
-10416
-220896
-64464
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1796
SELECT + + col0 * - CAST ( 48 AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
-10416
-220896
-64464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - 52 * col0 col0 FROM tab1 AS cor0
----
-159
-3392
-4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT ALL col1 + + 48 DIV + col0 FROM tab2 AS cor0
----
17
37
59
skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL col1 + + 48 / + col0 FROM tab2 AS cor0
----
17
37
59
query I rowsort
SELECT - col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col1 + col0 * 20 FROM tab1 AS cor0
----
1290
1613
86
query I rowsort
SELECT col0 * 29 AS col1 FROM tab0 cor0
----
1015
2581
696
query I rowsort
SELECT col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - col2 + 29 AS col2 FROM tab1 cor0
----
-25
-28
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - cor0.col2 + ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT cor1.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 * - 18 AS col0 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT ALL - ( + 4 ) FROM tab1 AS cor0
----
-4
-4
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT DISTINCT + col2 * ( col1 + CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + col2 * ( col1 + CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT CAST( NULL AS SIGNED ) * ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1811
SELECT CAST ( NULL AS INTEGER ) * ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 1 * col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT + CAST( col2 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-1813
SELECT + CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - + 12 + - col0 AS col2 FROM tab0 AS cor0
----
-101
-36
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT - + col2 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1816
SELECT - + col2 / - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * 79 AS col0 FROM tab1
----
1027
2054
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT DISTINCT col1 DIV ( ( col0 ) ) AS col1 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT col1 / ( ( col0 ) ) AS col1 FROM tab1
----
0
8
query I rowsort
SELECT - + 88 * - col1 FROM tab2 cor0
----
1496
2728
5192
query I rowsort
SELECT + cor0.col1 + + col1 * - ( col2 * col0 ) FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL + tab0.col0 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 116454f2268e21c1351daf3f5803c987
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT + ( - 39 ) AS col1 FROM tab2
----
-39
-39
-39
query I rowsort
SELECT - col0 * col2 + 92 AS col2 FROM tab2
----
-1936
-2910
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT DISTINCT tab0.col0 DIV tab0.col1 + + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT tab0.col0 / tab0.col1 + + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor1.col2 ) + cor0.col2 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 557f58b0437448d5f4b4d34aad060bc5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1829
SELECT + - col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-1829
SELECT + - col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1830
SELECT DISTINCT cor0.col1 * + CAST( col1 AS SIGNED ) + col1 col2 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT cor0.col1 * + CAST ( col1 AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + 19 * - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-494
query I rowsort
SELECT cor1.col1 * cor1.col2 + + 12 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dfaaad2c551f8fd1951236e0ef48289d
query I rowsort
SELECT - + col2 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL 69 * 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9536deed3f96cbaa8a9ab85cd2567b71
query I rowsort
SELECT ALL - + col2 * ( + cor0.col2 + + col0 ) FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT DISTINCT + - col2 + - 22 AS col1 FROM tab2 AS cor0
----
-48
-49
-60
query I rowsort
SELECT ALL col2 + ( + col0 ) - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT ALL + ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT ALL - col0 DIV col1 + - col0 + ( col2 ) AS col2 FROM tab1
----
-13
10
51
skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - col0 / col1 + - col0 + ( col2 ) AS col2 FROM tab1
----
-13
10
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT 67 DIV + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-1840
SELECT 67 / + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT DISTINCT + 52 * - cor0.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT + - 20 + 31 AS col0 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT - ( 25 ) FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT + - 95 * 20 AS col2 FROM tab1 AS cor0
----
-1900
-1900
-1900
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT DISTINCT + 46 DIV 13 AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + 46 / 13 AS col2 FROM tab0 AS cor0
----
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT - + CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1846
SELECT - + CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * col0 col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT ALL - 90 + - col0 AS col2 FROM tab0 AS cor0
----
-114
-125
-179
onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT + col1 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1849
SELECT + col1 / - col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 22 * - cor0.col2 * ( - cor0.col0 ) col1 FROM tab0 AS cor0
----
160556
17424
770
query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab2
----
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT DISTINCT - tab0.col1 DIV col0 AS col2 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - tab0.col1 / col0 AS col2 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT - col0 * col2 + 65 AS col2 FROM tab0 AS cor0
----
-7233
-727
30
query I rowsort
SELECT + 84 + - col1 FROM tab0 AS cor0
----
-13
-2
-7
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ( 67 ) AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ( ( col1 ) ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL + 64 - - col1 FROM tab0 AS cor0
----
150
155
161
query I rowsort
SELECT DISTINCT + - 18 + + col0 FROM tab0 AS cor0
----
17
6
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1860
SELECT DISTINCT + 37 + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT + 37 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( col2 ) + - 71 * - ( - cor0.col2 ) FROM tab2 AS cor0
----
-1820
-1890
-2660
query I rowsort
SELECT DISTINCT - 17 FROM tab2 AS cor0
----
-17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT DISTINCT - col1 * - col0 + - col0 * col0 * + col0 + - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - col1 * - col0 + - col0 * col0 * + col0 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) * - tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * 53 col0 FROM tab1
----
2859
2957
5008
onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT ALL col1 * - col2 + - col2 + tab2.col2 DIV - col0 FROM tab2
----
-1560
-684
-867
skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL col1 * - col2 + - col2 + tab2.col2 / - col0 FROM tab2
----
-1560
-684
-867
query I rowsort
SELECT tab0.col1 * col2 * - 43 FROM tab0
----
-122034
-320866
-4171
onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT DISTINCT + ( + col2 ) DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT + ( + col2 ) / col2 FROM tab0
----
1
query I rowsort
SELECT DISTINCT + tab1.col1 * 81 AS col2 FROM tab1
----
1053
2106
810
query I rowsort
SELECT DISTINCT + col1 - + 73 FROM tab2 AS cor0
----
-14
-42
-56
query I rowsort
SELECT ALL + - ( + 10 ) * col2 + + col1 AS col1 FROM tab2 AS cor0
----
-201
-239
-363
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1872
SELECT DISTINCT CAST( col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + - ( 19 ) + + col2 FROM tab2 AS cor0
----
19
7
8
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) * col2 - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + col2 + 54 FROM tab2
----
80
81
92
query I rowsort
SELECT DISTINCT + tab0.col1 * col2 - - col2 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT col0 + ( tab0.col0 ) FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT col2 - 0 DIV col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1878
SELECT col2 - 0 / col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1879
SELECT + + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1879
SELECT + + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT DISTINCT col1 + ( + col1 ) * + CAST( - ( + col1 ) AS SIGNED ) FROM tab0
----
-7310
-8190
-9312
skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT col1 + ( + col1 ) * + CAST ( - ( + col1 ) AS INTEGER ) FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT 31 * col0 AS col2 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT - + 63 + 78 AS col0 FROM tab2 cor0
----
15
15
15
query I rowsort
SELECT ALL col0 * - 60 - + col1 FROM tab2 AS cor0
----
-451
-4739
-4757
query I rowsort
SELECT DISTINCT - + ( - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 42 + cor0.col1 AS col0 FROM tab2 cor0
----
101
59
73
query I rowsort
SELECT ALL col2 * - 96 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-5130
-5415
-9120
query I rowsort
SELECT col1 + + 59 * col0 AS col2 FROM tab2 AS cor0
----
444
4661
4678
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT 57 * col1 + col2 DIV - ( - col0 ) FROM tab2 AS cor0
----
1770
3363
969
skipif mysql # not compatible
query I rowsort label-1888
SELECT 57 * col1 + col2 / - ( - col0 ) FROM tab2 AS cor0
----
1770
3363
969
query I rowsort
SELECT ( + 93 ) AS col1 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT ALL - 10 * - col2 FROM tab2 AS cor0
----
260
270
380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1891
SELECT + + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1891
SELECT + + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT col2 DIV 70 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1892
SELECT col2 / 70 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col2 * - 56 + tab1.col2 AS col0 FROM tab1
----
-2970
-3135
-5280
query I rowsort
SELECT tab1.col0 * 9 FROM tab1
----
27
576
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT ALL + cor0.col1 + - 18 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + cor0.col1 + - 18 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 + 99 FROM tab2 AS cor0
----
20
21
92
query I rowsort
SELECT col2 * ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 57 + + tab0.col1 FROM tab0, tab1 AS cor0
----
143
148
154
query I rowsort
SELECT ALL - col0 + + col0 * - col1 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT + 1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1901
SELECT ALL CAST( col2 AS SIGNED ) - - col2 col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL CAST ( col2 AS INTEGER ) - - col2 col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL ( 85 ) FROM tab2
----
85
85
85
query I rowsort
SELECT DISTINCT col1 * + col2 * col2 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + col1 + ( + col1 ) FROM tab2
----
118
34
62
query I rowsort
SELECT - 0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 85 * cor0.col1 + 22 AS col2 FROM tab1 AS cor0
----
-1083
-2188
-828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col2 * + col2 col2 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - ( col1 + col0 ) col1 FROM tab0 cor0
----
-97
682
7118
query I rowsort
SELECT - 69 AS col1 FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT + + col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab0 AS cor0
----
-98
-98
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 + col1 * - col2 * col0 col1 FROM tab1 AS cor0
----
-35840
-4134
-98800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT ALL cor0.col2 + + cor0.col2 DIV 4 col1 FROM tab2 AS cor0
----
32
33
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL cor0.col2 + + cor0.col2 / 4 col1 FROM tab2 AS cor0
----
32
33
47
query I rowsort
SELECT DISTINCT - 33 - - col1 AS col0 FROM tab0 cor0
----
53
58
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT DISTINCT - col2 DIV + col2 + col0 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - col2 / + col2 + col0 AS col1 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + col2 * - col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT CAST( - 89 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
skipif mysql # not compatible
query I rowsort label-1917
SELECT CAST ( - 89 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT - 45 * + col0 + 23 AS col0 FROM tab1 AS cor0
----
-112
-2857
-3577
query I rowsort
SELECT + col0 * - 56 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT ALL + col1 * ( col0 ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 98 col1 FROM tab1 AS cor0
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col2 * col1 * cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - ( col1 ) * - cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT 34 - + 87 AS col0 FROM tab2 AS cor0
----
-53
-53
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT ALL 67 DIV 6 col0 FROM tab1
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL 67 / 6 col0 FROM tab1
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 84 col0 FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT 97 * + col1 * col0 + + 86 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
4736
58917
91750
onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT cor0.col1 + 11 DIV col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-1929
SELECT cor0.col1 + 11 / col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1930
SELECT + ( col0 ) * col1 DIV + col0 - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-1930
SELECT + ( col0 ) * col1 / + col0 - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + col2 + - 90 AS col2 FROM tab0 AS cor0
----
-57
-8
-89
query I rowsort
SELECT - 11 - - cor0.col1 FROM tab0 AS cor0
----
75
80
86
query I rowsort
SELECT - 51 * + cor0.col1 FROM tab2 AS cor0
----
-1581
-3009
-867
onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT DISTINCT + cor0.col2 + 42 DIV - 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + cor0.col2 + 42 / - 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL - + 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 83 * + ( col1 ) AS col0 FROM tab0
----
-7138
-7553
-8051
query I rowsort
SELECT DISTINCT - col0 + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 + - col2 * cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-207296
-736240
-8670
onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT + - col2 + + 50 DIV col0 FROM tab0 AS cor0
----
-31
-82
0
skipif mysql # not compatible
query I rowsort label-1940
SELECT + - col2 + + 50 / col0 FROM tab0 AS cor0
----
-31
-82
0
query I rowsort
SELECT DISTINCT - - 81 + + col2 * - col0 + col0 FROM tab1 cor0
----
-3503
-7519
-78
query I rowsort
SELECT DISTINCT 85 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT 67 * - 90 + col1 * col2 FROM tab0 AS cor0
----
-3192
-5933
1432
query I rowsort
SELECT ALL + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 + - ( col2 ) AS col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT ALL col0 + col2 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL col0 + col2 / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 * + 92 AS col2 FROM tab0
----
-3036
-7544
-92
query I rowsort
SELECT DISTINCT tab1.col1 * 82 AS col1 FROM tab1
----
1066
2132
820
query I rowsort
SELECT + ( tab1.col1 ) * col1 - + 3 AS col1 FROM tab1
----
166
673
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1952
SELECT ( + ( - col2 ) * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1952
SELECT ( + ( - col2 ) * - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT CAST( - col1 AS SIGNED ) + + col2 * 63 FROM tab1 AS cor0
----
3376
3581
6035
skipif mysql # not compatible
query I rowsort label-1953
SELECT CAST ( - col1 AS INTEGER ) + + col2 * 63 FROM tab1 AS cor0
----
3376
3581
6035
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 5 FROM tab2
----
5
query I rowsort
SELECT ALL 92 * + 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 361517f618165dffca5187dc8296ea71
query I rowsort
SELECT - col0 + - 41 AS col0 FROM tab0 AS cor0
----
-130
-65
-76
query I rowsort
SELECT ALL - col0 + ( 20 + col0 ) * - ( tab2.col0 * - col0 ) FROM tab2
----
1316
596154
617780
query I rowsort
SELECT ALL + col2 * + col2 * tab0.col2 + - tab0.col1 AS col2 FROM tab0
----
-96
35851
551277
query I rowsort
SELECT ALL - cor0.col1 + col1 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
205320
29760
4896
query I rowsort
SELECT DISTINCT + cor0.col1 * 55 FROM tab2 AS cor0
----
1705
3245
935
query I rowsort
SELECT DISTINCT - col2 + 36 AS col0 FROM tab0
----
-46
3
35
query I rowsort
SELECT DISTINCT col2 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 + - 19 + + col0 * - col2 FROM tab2 cor0
----
-181
-2021
-2983
query I rowsort
SELECT + - col2 * - col0 - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 + - tab1.col0 FROM tab1
----
-28
670
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT ALL col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col0 * col0 + col0 AS col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT col0 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 - - cor0.col2 col1 FROM tab0 cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col1 + + col2 + 38 FROM tab1 AS cor0
----
121
66
85
query I rowsort
SELECT ALL col2 + ( - 7 ) * col0 AS col1 FROM tab2 AS cor0
----
-22
-515
-520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * col1 * + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * col1 * + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT - col2 * - 10 - col1 DIV col0 FROM tab2 AS cor0
----
260
266
380
skipif mysql # not compatible
query I rowsort label-1978
SELECT - col2 * - 10 - col1 / col0 FROM tab2 AS cor0
----
260
266
380
query I rowsort
SELECT ALL cor0.col1 + - 50 + - 87 FROM tab1 AS cor0
----
-111
-124
-127
query I rowsort
SELECT + ( 48 ) * col1 + 57 FROM tab1 AS cor0
----
1305
537
681
query I rowsort
SELECT ALL + - ( + 97 ) * cor0.col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-15688
-353846
-744947
query I rowsort
SELECT ALL + 81 + + col1 - col0 FROM tab2 AS cor0
----
105
19
62
query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab2 AS cor0
----
67
query I rowsort
SELECT + 92 * col0 + col0 FROM tab2 cor0
----
651
7254
7347
query I rowsort
SELECT ALL ( - col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 33 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT - 4 * col2 AS col0 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT + + 70 * cor0.col1 + + col0 AS col0 FROM tab0 cor0
----
6044
6459
6825
query I rowsort
SELECT cor0.col1 + - 21 FROM tab0, tab2 AS cor0
----
9 values hashing to 81a9602ab0b50507fbaf5805018f5361
query I rowsort
SELECT 44 * + cor0.col1 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT ALL col1 + + col2 * - 83 AS col2 FROM tab0 cor0
----
-2653
-6715
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT col1 * ( 89 ) + col0 DIV 40 + - col0 AS col2 FROM tab1 AS cor0
----
1079
2311
827
skipif mysql # not compatible
query I rowsort label-1992
SELECT col1 * ( 89 ) + col0 / 40 + - col0 AS col2 FROM tab1 AS cor0
----
1079
2311
827
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT DISTINCT col2 DIV ( col0 * col1 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT col2 / ( col0 * col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col1 * - 81 AS col0 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT + ( col0 ) * + 24 + ( col1 + col1 ) FROM tab1
----
124
1556
1946
query I rowsort
SELECT ALL - 63 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab2
----
37
query I rowsort
SELECT - - 42 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT - + ( - 68 ) FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT + col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT ( - 94 ) * col2 AS col1 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT + - cor0.col0 + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - ( + col0 ) col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT CAST ( NULL AS REAL ) / - ( + col0 ) col0 FROM tab2
----
NULL
query I rowsort
SELECT + ( cor0.col2 ) * cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT 69 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * + tab0.col0 col1 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT DISTINCT + col0 * - 92 AS col0 FROM tab2
----
-644
-7176
-7268
query I rowsort
SELECT col2 + 45 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT + + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 32 col1 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT - col1 - 64 * + 56 AS col2 FROM tab0 cor0
----
-3670
-3675
-3681
query I rowsort
SELECT - + col2 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + + col1 * 93 + cor0.col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT DISTINCT - 47 + col2 FROM tab2
----
-20
-21
-9
query I rowsort
SELECT ALL - col2 + tab1.col2 AS col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - col0 * + col2 * col1 col1 FROM tab0
----
-656019
-66048
0
query I rowsort
SELECT ALL - col2 + + col0 * 36 FROM tab1
----
2247
2784
54
query I rowsort
SELECT ( col1 ) * - 0 + + col2 * col2 + col2 FROM tab0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT + col1 DIV - col0 + + col2 * - col1 FROM tab0
----
-2841
-7463
-99
skipif mysql # not compatible
query I rowsort label-2022
SELECT + col1 / - col0 + + col2 * - col1 FROM tab0
----
-2841
-7463
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT col2 DIV + ( 55 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2023
SELECT col2 / + ( 55 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 + 8 * col1 AS col0 FROM tab2 AS cor0
----
153
279
531
onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT - col1 DIV 25 AS col1 FROM tab0 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-2026
SELECT - col1 / 25 AS col1 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT col2 + + 18 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT - cor0.col1 + col2 * - 13 AS col2 FROM tab2 AS cor0
----
-382
-397
-511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2030
SELECT + col2 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2030
SELECT + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * + 25 + cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 436baefca217951d1f9d25f686fe7b0c
query I rowsort
SELECT col2 * ( col2 ) + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col2 * + col2 + + ( cor0.col2 ) FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL cor0.col0 - 9 AS col1 FROM tab2 AS cor0
----
-2
69
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT col2 * CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2036
SELECT col2 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7d61f430b3f73ad1ee93cde0973b3fa7
query I rowsort
SELECT - 30 + col1 + tab1.col1 * 31 AS col1 FROM tab1
----
290
386
802
query I rowsort
SELECT + + 97 * cor0.col0 + + col0 * 49 FROM tab0 AS cor0
----
12994
3504
5110
query I rowsort
SELECT - 76 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT - col1 + ( col1 ) * col2 AS col1 FROM tab0 cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT + col2 + - col2 * col2 DIV col1 AS col0 FROM tab1 cor0
----
-267
-58
-612
skipif mysql # not compatible
query I rowsort label-2042
SELECT + col2 + - col2 * col2 / col1 AS col0 FROM tab1 cor0
----
-267
-58
-612
query I rowsort
SELECT ALL + col0 + - col2 * col1 * + col0 + - cor0.col2 * 70 FROM tab1 AS cor0
----
-106480
-40406
-7989
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT - - 53 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-2044
SELECT - - 53 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-4
-5
query I rowsort
SELECT 97 * col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * 5 AS col2 FROM tab0 AS cor0
----
463
486
537
query I rowsort
SELECT DISTINCT + col1 * - col1 + + col1 - + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1767
-4956
-918
query I rowsort
SELECT + + col2 * - col0 - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - - col0 * ( - ( col1 ) ) + + ( + col0 ) AS col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col2 * - 46 - - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-11871
-3441
-3582
query I rowsort
SELECT DISTINCT - 24 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT - col0 DIV col0 + - col1 AS col2 FROM tab2
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-2052
SELECT - col0 / col0 + - col1 AS col2 FROM tab2
----
-18
-32
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT DISTINCT + 77 + col2 DIV col0 FROM tab0
----
77
78
skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + 77 + col2 / col0 FROM tab0
----
77
78
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + + 34 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT DISTINCT - - col1 DIV col1 col2 FROM tab0 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - - col1 / col1 col2 FROM tab0 cor0
----
1
query I rowsort
SELECT ALL - 60 * - col1 AS col2 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT + 94 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT cor0.col1 + - col2 * - col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2061
SELECT - + ( - col1 ) * CAST( NULL AS SIGNED ) + 86 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2061
SELECT - + ( - col1 ) * CAST ( NULL AS INTEGER ) + 86 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + col2 * - 92 * - ( col1 * + col2 ) FROM tab1
----
11022432
2989137
6975126
query I rowsort
SELECT - 54 + - col0 + - tab0.col0 AS col1 FROM tab0
----
-102
-124
-232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab1
----
1040
640
78
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query I rowsort
SELECT DISTINCT col2 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + 17 + col1 FROM tab2 AS cor0
----
34
48
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * 85 + + tab1.col1 * 36 - col2 col0 FROM tab1
----
2598
2667
3177
query I rowsort
SELECT - ( + col1 * col0 ) + col1 + + col1 FROM tab0
----
-1892
-3201
-7917
onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT col1 DIV - 12 AS col2 FROM tab1
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2072
SELECT col1 / - 12 AS col2 FROM tab1
----
-1
-2
0
query I rowsort
SELECT + tab0.col2 + + col2 - col1 * 90 FROM tab0
----
-7674
-8026
-8728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2074
SELECT + CAST( col2 AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-2074
SELECT + CAST ( col2 AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 89 + col2 AS col2 FROM tab2 AS cor0
----
115
116
127
query I rowsort
SELECT ALL + ( col0 ) + - col1 * 62 - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-1447
3092
6954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT ALL + CAST( + col2 AS SIGNED ) + col2 + col2 AS col2 FROM tab2 AS cor0
----
114
78
81
skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + CAST ( + col2 AS INTEGER ) + col2 + col2 AS col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT DISTINCT - col2 - 86 AS col1 FROM tab2 AS cor0
----
-112
-113
-124
query I rowsort
SELECT 88 FROM tab1, tab1 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - cor0.col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 14 + - col1 AS col0 FROM tab0 cor0
----
-72
-77
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 17 * col1 * - 29 + cor0.col1 col1 FROM tab2 AS cor0
----
-15252
-29028
-8364
query I rowsort
SELECT ALL + col2 * col2 - 5 AS col2 FROM tab2 AS cor0
----
1439
671
724
query I rowsort
SELECT ALL 85 - col2 AS col1 FROM tab0 AS cor0
----
3
52
84
query I rowsort
SELECT - col1 + cor0.col1 * col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL col0 * col1 + - tab2.col0 * 39 FROM tab2
----
-1738
-56
1560
query I rowsort
SELECT ALL + tab2.col0 * + col0 + col0 * col0 AS col1 FROM tab2
----
12168
12482
98
query I rowsort
SELECT + 73 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL + 36 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-1109
-2046
-533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2090
SELECT ALL 15 * - col2 + CAST( 82 AS SIGNED ) * col1 FROM tab2 AS cor0
----
2137
4448
824
skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL 15 * - col2 + CAST ( 82 AS INTEGER ) * col1 FROM tab2 AS cor0
----
2137
4448
824
query I rowsort
SELECT ALL + + col0 + + col2 * 35 * col0 AS col1 FROM tab0 AS cor0
----
1260
255519
27744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2092
SELECT ALL col0 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL col0 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + - col0 * col2 + col0 col0 FROM tab0 AS cor0
----
2070
253
97
query I rowsort
SELECT col0 + + 61 * - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-13230
-280644
-81844
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * - col0 * cor0.col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT + - col2 * + 16 FROM tab1 AS cor0
----
-1536
-864
-912
query I rowsort
SELECT ALL + col0 * 40 FROM tab1 AS cor0
----
120
2560
3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2098
SELECT ALL - + col0 + + 41 DIV + 76 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - + col0 + + 41 / + 76 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT col2 * - cor0.col0 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 88 col2 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT col0 * col0 * col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + + ( ( cor0.col2 ) ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col0 AS REAL ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT ALL - + ( cor0.col2 ) + - col0 DIV col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - + ( cor0.col2 ) + - col0 / col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT + - ( - col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - + 34 * col2 AS col0 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT ALL - - ( 74 ) * + col1 AS col1 FROM tab0 AS cor0
----
6364
6734
7178
onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT DISTINCT + col2 DIV 1 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + col2 / 1 AS col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2110
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 37 AS col2 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT - col2 * - 33 FROM tab2 AS cor0
----
1254
858
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ALL - col2 DIV col1 + 13 FROM tab1
----
11
6
8
skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - col2 / col1 + 13 FROM tab1
----
11
6
8
query I rowsort
SELECT + 41 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + col2 * 56 * + 42 FROM tab0
----
192864
2352
77616
query I rowsort
SELECT + col0 * + 81 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT ALL - - col0 * 59 FROM tab2 cor0
----
413
4602
4661
query I rowsort
SELECT - col0 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - ( cor0.col2 ) col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + 48 + + col1 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 27 + 48 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT - 56 + - col0 FROM tab0 AS cor0
----
-145
-80
-91
query I rowsort
SELECT DISTINCT - col2 + col0 * 12 FROM tab1 AS cor0
----
-18
711
864
query I rowsort
SELECT - - 13 AS col2 FROM tab2 cor0
----
13
13
13
query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT - 96 * col1 AS col1 FROM tab1
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT + + 87 AS col1 FROM tab1, tab2, tab0 AS cor0
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2131
SELECT - col1 + - ( col2 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2131
SELECT - col1 + - ( col2 ) / - col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT + + col1 - + col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col2 * + col0 + col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT + + col2 * cor0.col0 + - 60 AS col2 FROM tab0 AS cor0
----
-25
7238
732
query I rowsort
SELECT + col0 + 39 FROM tab2 cor0
----
117
118
46
query I rowsort
SELECT cor0.col1 * - 83 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d374d3ad44ac0ed0ea06c0580c6b00e2
query I rowsort
SELECT - 2 + col2 + + col0 AS col1 FROM tab0
----
169
34
55
query I rowsort
SELECT cor0.col0 - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * ( - cor0.col0 ) * col0 + 66 * - col2 AS col0 FROM tab2 cor0
----
-459
156468
234650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT + col2 * col0 + col2 * + col1 * col2 + 39 DIV + col2 AS col2 FROM tab1 AS cor0
----
127488
36138
75978
skipif mysql # not compatible
query I rowsort label-2140
SELECT + col2 * col0 + col2 * + col1 * col2 + 39 / + col2 AS col2 FROM tab1 AS cor0
----
127488
36138
75978
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab2.col1 * ( - col1 ) ) col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2142
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2142
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT ALL 94 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
query I rowsort
SELECT ALL 58 * 76 FROM tab1, tab1 cor0
----
9 values hashing to a72f3073185c2b9c3fc122777691b451
query I rowsort
SELECT DISTINCT + col2 * 56 FROM tab0
----
1848
4592
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 19 + 22 AS col2 FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT col2 - ( ( col2 ) * col0 ) AS col1 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT + col1 DIV + tab1.col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2152
SELECT + col1 / + tab1.col1 AS col2 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT + col2 DIV col0 + col1 + + col2 FROM tab2
----
55
61
85
skipif mysql # not compatible
query I rowsort label-2153
SELECT + col2 / col0 + col1 + + col2 FROM tab2
----
55
61
85
query I rowsort
SELECT col1 + col0 - - col2 FROM tab2
----
134
163
65
query I rowsort
SELECT col2 * + 75 + 47 AS col2 FROM tab0
----
122
2522
6197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab0, tab1 cor0
----
-41
query I rowsort
SELECT DISTINCT col0 * col0 * col1 AS col1 FROM tab0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2158
SELECT DISTINCT + col1 * CAST( + col1 AS SIGNED ) FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + col1 * CAST ( + col1 AS INTEGER ) FROM tab2
----
289
3481
961
query I rowsort
SELECT - col2 + 66 AS col2 FROM tab2
----
28
39
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT DISTINCT CAST( 37 * + col2 AS SIGNED ) FROM tab0
----
1221
3034
37
skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT CAST ( 37 * + col2 AS INTEGER ) FROM tab0
----
1221
3034
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2161
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + tab0.col1 ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - 49 * 50 * col0 FROM tab0
----
-218050
-58800
-85750
query I rowsort
SELECT - 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT DISTINCT ( col2 * col2 ) AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT ( - col1 ) - - tab1.col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - ( + col0 ) + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - + 1 * - cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 85 * - cor0.col2 FROM tab0 AS cor0
----
2805
6970
85
query I rowsort
SELECT ALL + 39 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 - + col1 col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT - 76 * col2 * 95 + + cor0.col2 FROM tab0 AS cor0
----
-238227
-591958
-7219
query I rowsort
SELECT cor0.col1 + col2 * - 27 * + 42 FROM tab1 cor0
----
-108851
-61210
-64628
query I rowsort
SELECT ALL - - col2 - - col1 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2176
SELECT DISTINCT + + 64 * col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + + 64 * col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - col2 - + cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL ( col0 ) + + 93 FROM tab0 AS cor0
----
117
128
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 - - cor0.col1 col1 FROM tab1 AS cor0
----
105
89
92
query I rowsort
SELECT - col2 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 - - col0 * - col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT ALL + + ( col1 ) DIV 6 + + col0 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-230
-40959
-83198
skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + + ( col1 ) / 6 + + col0 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-230
-40959
-83198
query I rowsort
SELECT ALL ( + col2 ) * col2 - + 60 * - col0 AS col2 FROM tab1 AS cor0
----
14016
3096
7089
query I rowsort
SELECT ALL + 25 + col0 * - col2 FROM tab0 AS cor0
----
-10
-7273
-767
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col2 * col2 * - 12 AS col2 FROM tab0 AS cor0
----
-12
-13068
-80688
query I rowsort
SELECT ALL - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + col2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2190
SELECT cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2190
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 10 AS col0 FROM tab2 AS cor0
----
-170
-310
-590
query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + - col2 * - 56 AS col1 FROM tab2 AS cor0
----
1456
1512
2128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( cor0.col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + + 97 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT ALL - col1 * - col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col1 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - col2 * - 67 AS col2 FROM tab0 AS cor0
----
-2211
-5494
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 72 * + col0 * + col2 - - col0 * col2 FROM tab0 AS cor0
----
2555
532754
57816
query I rowsort
SELECT - + cor0.col0 * - 83 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT ALL - col0 * + col1 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - - 73 * + col2 FROM tab2 AS cor0
----
1898
1971
2774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col0 ) col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col2 - 13 AS col1 FROM tab2
----
13
14
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT + + 76 DIV - 11 FROM tab2 AS cor0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-2206
SELECT + + 76 / - 11 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 * + 45 * - cor0.col2 FROM tab1 AS cor0
----
-130544
-146105
-414551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT - col0 DIV 65 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2208
SELECT - col0 / 65 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + + ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL 31 FROM tab0 cor0
----
31
31
31
query I rowsort
SELECT ALL col0 * 43 AS col1 FROM tab2 AS cor0
----
301
3354
3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT DISTINCT - 64 + - col0 DIV - col0 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1471
583
774
skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - 64 + - col0 / - col0 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1471
583
774
query I rowsort
SELECT + 98 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT ALL 81 + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6f1f3ed1fae258b937e08076d21f1e18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2215
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 84 FROM tab0, tab0 cor0 CROSS JOIN tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 84 FROM tab0, tab0 cor0 CROSS JOIN tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT - 11 * col2 + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2216
SELECT - 11 * col2 + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 22 + + col2 AS col0 FROM tab1 AS cor0
----
118
76
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT ALL + col2 * + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + col2 * + col0 / col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab1 AS cor0
----
96
query I rowsort
SELECT DISTINCT - col1 + col2 * col2 AS col2 FROM tab0 cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT tab1.col1 * col1 - + col1 * col2 FROM tab1
----
-1079
-470
-728
query I rowsort
SELECT ALL + + cor0.col1 * + ( + 47 ) * - col2 AS col1 FROM tab1 AS cor0
----
-26790
-58656
-65988
query I rowsort
SELECT - col0 * - col1 * col1 - col2 * - col2 FROM tab1 cor0
----
22736
4944
9649
query I rowsort
SELECT DISTINCT + 2 + - col2 FROM tab1
----
-52
-55
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col0 col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT + col0 + ( - 92 ) * col1 FROM tab1
----
-1116
-2389
-856
query I rowsort
SELECT ALL col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT col1 DIV - col0 + - col0 AS col0 FROM tab1
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-2229
SELECT col1 / - col0 + - col0 AS col0 FROM tab1
----
-11
-64
-80
query I rowsort
SELECT DISTINCT + 42 FROM tab2, tab1, tab1 cor0, tab0
----
42
query I rowsort
SELECT col2 + 35 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT DISTINCT col1 * - 77 AS col2 FROM tab1 AS cor0
----
-1001
-2002
-770
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + - col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + - col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT ALL CAST( + 43 AS SIGNED ) AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL CAST ( + 43 AS INTEGER ) AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT ALL - 77 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-33
-82
query I rowsort
SELECT col0 * + col2 * + col2 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT 14 * + col1 AS col1 FROM tab0
----
1204
1274
1358
query I rowsort
SELECT ALL - ( 71 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT + - cor0.col1 * col1 - - col1 * - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-12804
-16380
-9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT + 20 * col1 - + 45 DIV col2 FROM tab1 cor0
----
200
260
520
skipif mysql # not compatible
query I rowsort label-2242
SELECT + 20 * col1 - + 45 / col2 FROM tab1 cor0
----
200
260
520
query I rowsort
SELECT ALL + col0 * + col0 + - 56 FROM tab0 AS cor0
----
1169
520
7865
query I rowsort
SELECT ALL cor0.col0 * + 89 AS col2 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT + + col1 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT ALL CAST( col2 AS SIGNED ) + col2 * + col0 DIV + ( cor0.col0 ) - - ( col2 * + col1 ) FROM tab0 AS cor0
----
2904
7626
99
skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL CAST ( col2 AS INTEGER ) + col2 * + col0 / + ( cor0.col0 ) - - ( col2 * + col1 ) FROM tab0 AS cor0
----
2904
7626
99
query I rowsort
SELECT DISTINCT - 77 + + col2 + + col1 AS col1 FROM tab0 cor0
----
21
42
96
query I rowsort
SELECT ( - 43 ) AS col1 FROM tab2 cor0
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + - col0 col0 FROM tab2 AS cor0
----
-166
-167
-95
query I rowsort
SELECT ALL - 87 + col0 * col0 FROM tab1 AS cor0
----
-78
4009
6313
query I rowsort
SELECT DISTINCT - + 48 + + col1 - - col1 FROM tab2 AS cor0
----
-14
14
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 93 + 32 AS col1 FROM tab1 AS cor0
----
-61
query I rowsort
SELECT + col1 * - ( 67 ) + col1 FROM tab0
----
-5676
-6006
-6402
query I rowsort
SELECT - cor0.col0 * 64 AS col0 FROM tab0 AS cor0
----
-1536
-2240
-5696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 98 col0 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT ( - col1 + col0 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT col2 - 20 AS col0 FROM tab2
----
18
6
7
query I rowsort
SELECT - 35 * + col2 * col0 FROM tab0 AS cor0
----
-1225
-255430
-27720
query I rowsort
SELECT ALL - + cor0.col1 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424
query I rowsort
SELECT DISTINCT - + 5 + col1 AS col1 FROM tab2 AS cor0
----
12
26
54
query I rowsort
SELECT DISTINCT + - ( + col0 ) * + 46 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT + 46 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL - col0 * - col0 * + col0 AS col0 FROM tab2
----
343
474552
493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2265
SELECT - col2 + CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2265
SELECT - col2 + CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - ( col2 + col0 ) AS col2 FROM tab2 AS cor0
----
-2704
-4446
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT + col1 + - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-2267
SELECT + col1 + - col2 / + col1 AS col1 FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT ALL 86 * - col1 AS col1 FROM tab1
----
-1118
-2236
-860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab0
----
45
45
45
query I rowsort
SELECT 14 + tab1.col0 * - col2 * - col2 + col0 * ( col0 ) AS col2 FROM tab1
----
212046
743694
8771
query I rowsort
SELECT - 94 * + col2 AS col2 FROM tab1
----
-5076
-5358
-9024
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab2, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT - + cor0.col1 * ( col1 + col1 ) FROM tab2 AS cor0
----
-1922
-578
-6962
query I rowsort
SELECT 67 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL 64 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT DISTINCT + col1 + - 48 AS col2 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT 14 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col2 + - tab0.col2 * col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT - col2 + - ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + col1 + col2 + - 17 * cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-10813
-1246
-17571
query I rowsort
SELECT DISTINCT - col0 + col0 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
4032
6
6320
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
query I rowsort
SELECT ALL + col0 * cor0.col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - col2 * 25 FROM tab1 cor0
----
-1350
-1425
-2400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT DISTINCT - col2 - CAST( - col2 * - cor0.col1 + + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-2904
-7626
-99
skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - col2 - CAST ( - col2 * - cor0.col1 + + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-2904
-7626
-99
query I rowsort
SELECT - + col1 + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col1 * - 24 + col1 * + col2 * - col2 FROM tab1 AS cor0
----
-120120
-32730
-76440
query I rowsort
SELECT - col0 + - 53 * - 90 FROM tab1 AS cor0
----
4690
4706
4767
query I rowsort
SELECT DISTINCT col1 + ( col2 ) + col1 AS col1 FROM tab0 cor0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT DISTINCT col2 * ( col1 ) * + col0 - col0 DIV col0 AS col2 FROM tab0 cor0
----
3394
664117
68111
skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT col2 * ( col1 ) * + col0 - col0 / col0 AS col2 FROM tab0 cor0
----
3394
664117
68111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * + tab0.col0 col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 + ( col0 * col2 ) + + 18 AS col0 FROM tab2 AS cor0
----
1968
200
2941
onlyif mysql # use DIV operator for integer division
query I rowsort label-2295
SELECT + + col2 DIV col0 + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-2295
SELECT + + col2 / col0 + col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
7
query I rowsort
SELECT ALL - ( - col1 ) + + col0 FROM tab1
----
29
74
93
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57
query I rowsort
SELECT DISTINCT 29 + - 14 AS col2 FROM tab2 AS cor0
----
15
query I rowsort
SELECT + ( + col1 ) + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + ( - col1 ) * + col0 + + 47 + cor0.col0 * - col0 FROM tab2 AS cor0
----
-10639
-219
-7537
query I rowsort
SELECT - 31 FROM tab1 cor0
----
-31
-31
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT - col0 + col2 * 98 FROM tab0 AS cor0
----
3210
63
7947
query I rowsort
SELECT 29 * - cor0.col0 * ( - 35 ) FROM tab0 AS cor0
----
24360
35525
90335
query I rowsort
SELECT - tab2.col1 * 75 FROM tab2
----
-1275
-2325
-4425
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL + - 45 * col1 FROM tab0 cor0
----
-3870
-4095
-4365
query I rowsort
SELECT ALL 28 * + col0 AS col1 FROM tab2
----
196
2184
2212
query I rowsort
SELECT ALL + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL - + col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 69 + col0 FROM tab1 AS cor0
----
133
149
72
query I rowsort
SELECT DISTINCT + 22 * - col1 AS col1 FROM tab1 cor0
----
-220
-286
-572
query I rowsort
SELECT col1 + col2 + col1 AS col0 FROM tab1 cor0
----
106
122
77
query I rowsort
SELECT + 69 * col0 + ( col2 * col2 ) + col1 * col2 FROM tab0 AS cor0
----
20327
2513
5583
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 + + col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT 11 * - col2 FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT - ( + col0 + col2 ) AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 + - col2 AS col1 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - col1 col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL - 24 + - 70 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - - col0 + + col0 + col2 FROM tab2 AS cor0
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT - col2 + - cor0.col0 * col1 * 3 + - 45 DIV col2 FROM tab1 AS cor0
----
-1977
-288
-3216
skipif mysql # not compatible
query I rowsort label-2323
SELECT - col2 + - cor0.col0 * col1 * 3 + - 45 / col2 FROM tab1 AS cor0
----
-1977
-288
-3216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT DISTINCT + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2325
SELECT ALL cor0.col1 * 88 + + cor0.col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL cor0.col1 * 88 + + cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT cor0.col2 * col2 + col0 * ( + ( - col1 ) ) DIV ( + col0 ) + + col1 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-2326
SELECT cor0.col2 * col2 + col0 * ( + ( - col1 ) ) / ( + col0 ) + + col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2327
SELECT - CAST( 60 * - col1 AS SIGNED ) FROM tab1
----
1560
600
780
skipif mysql # not compatible
query I rowsort label-2327
SELECT - CAST ( 60 * - col1 AS INTEGER ) FROM tab1
----
1560
600
780
query I rowsort
SELECT DISTINCT + 46 + 94 AS col2 FROM tab0
----
140
onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT 83 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2329
SELECT 83 / col2 FROM tab1
----
0
1
1
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - + cor0.col2 * 57 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a87c24da21cc531aa28cdf200281d070
query I rowsort
SELECT + - 52 * 89 + + cor0.col0 - + col1 AS col1 FROM tab2 cor0
----
-4566
-4609
-4652
query I rowsort
SELECT 4 * - 22 - col2 * col2 FROM tab0 AS cor0
----
-1177
-6812
-89
query I rowsort
SELECT DISTINCT - + col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - + cor0.col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT + col2 * - 45 AS col1 FROM tab1 cor0
----
-2430
-2565
-4320
query I rowsort
SELECT + col2 + - ( col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + col1 * col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 9 * 5 FROM tab2, tab0 AS cor0
----
-45
query I rowsort
SELECT - + 84 - cor0.col0 FROM tab0 AS cor0
----
-108
-119
-173
onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT + cor0.col0 DIV + 1 col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2341
SELECT + cor0.col0 / + 1 col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT - 54 * 81 + col0 AS col2 FROM tab1
----
-4294
-4310
-4371
onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT + 66 + col1 DIV col1 FROM tab2 AS cor0
----
67
67
67
skipif mysql # not compatible
query I rowsort label-2344
SELECT + 66 + col1 / col1 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT ( - col0 ) + col1 + + tab1.col2 FROM tab1
----
29
3
77
query I rowsort
SELECT DISTINCT + tab2.col1 + 65 FROM tab2, tab0 AS cor0
----
124
82
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT - col1 + + col1 DIV tab0.col2 AS col1 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-2347
SELECT - col1 + + col1 / tab0.col2 AS col1 FROM tab0
----
-84
-90
0
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT + 75 AS col2 FROM tab0
----
75
75
75
query I rowsort
SELECT - 94 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT ALL 21 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-3
-68
query I rowsort
SELECT DISTINCT 50 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
104
107
146
query I rowsort
SELECT - + col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT cor0.col0 * - 95 FROM tab1 AS cor0
----
-285
-6080
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + ( + 26 ) col0 FROM tab2 AS cor0
----
-676
-702
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2357
SELECT DISTINCT col1 * + col1 + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT col1 * + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
query I rowsort
SELECT - - 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - col1 + + 76 FROM tab1
----
50
63
66
query I rowsort
SELECT ALL + col2 * ( + col0 ) + col0 * - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - ( - cor0.col0 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col0 * + ( - col2 ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( col0 ) + col1 - col2 FROM tab0
----
-80
29
61
query I rowsort
SELECT cor0.col2 - + cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT 64 DIV + col0 AS col0 FROM tab1
----
0
1
21
skipif mysql # not compatible
query I rowsort label-2365
SELECT 64 / + col0 AS col0 FROM tab1
----
0
1
21
query I rowsort
SELECT - 90 - + col0 AS col2 FROM tab1 AS cor0
----
-154
-170
-93
query I rowsort
SELECT col0 * + 38 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
10106
1331
2001
query I rowsort
SELECT + col0 * col2 + 25 AS col2 FROM tab1 AS cor0
----
187
3673
7705
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col2 + col2 col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * tab0.col1 col2 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT + CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2371
SELECT + CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 + cor0.col1 col2 FROM tab0 AS cor0
----
1261
195
6906
query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 - cor0.col2 * 63 AS col1 FROM tab0 AS cor0
----
-13447
-9472
-9475
query I rowsort
SELECT ALL - + col1 * + 64 FROM tab1 AS cor0
----
-1664
-640
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * + 32 col0 FROM tab0 AS cor0
----
3104
3104
3104
query I rowsort
SELECT DISTINCT cor0.col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + ( 58 ) AS col2 FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL 78 * 39 FROM tab2 AS cor0
----
3042
3042
3042
query I rowsort
SELECT 55 * - cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2967
-3071
-5200
query I rowsort
SELECT DISTINCT col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + col2 * + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT - - ( + col0 ) DIV - cor0.col0 + CAST( - ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-2382
SELECT - - ( + col0 ) / - cor0.col0 + CAST ( - ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT ALL 49 * col0 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
17
31
59
query I rowsort
SELECT + col1 + 70 * - tab2.col2 AS col1 FROM tab2
----
-1761
-1859
-2643
query I rowsort
SELECT DISTINCT - - col1 * - 27 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT - 5 * - col0 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT DISTINCT + - 20 * - ( col2 ) FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT ALL col2 + 17 AS col1 FROM tab0 AS cor0
----
18
50
99
query I rowsort
SELECT ALL + cor0.col1 + col1 + + col1 * + 14 AS col2 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # use DIV operator for integer division
query I rowsort label-2391
SELECT DISTINCT - col2 DIV - col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - col2 / - col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT - col2 + 48 AS col0 FROM tab0
----
-34
15
47
query I rowsort
SELECT - - 54 * - col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
query I rowsort
SELECT - 35 * - 37 + + col0 * + 41 FROM tab0
----
2279
2730
4944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab2
----
33
33
33
query I rowsort
SELECT ALL 42 * + col0 AS col2 FROM tab0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col0 FROM tab2
----
14
query I rowsort
SELECT DISTINCT - - col1 * - 75 AS col0 FROM tab0 cor0
----
-6450
-6825
-7275
query I rowsort
SELECT DISTINCT - + col2 + - 86 FROM tab0 AS cor0
----
-119
-168
-87
query I rowsort
SELECT + - col0 + + col0 * ( col0 ) FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT + col2 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT + col1 - - tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT - col0 * col0 + ( + col2 ) FROM tab2
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT DISTINCT col1 DIV - col1 - + col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT col1 / - col1 - + col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT ALL + col1 - col2 * col1 AS col0 FROM tab2
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * col2 + - col2 col1 FROM tab1
----
-270
-3762
-7872
query I rowsort
SELECT + 33 + + col2 - col1 * col2 AS col2 FROM tab1
----
-1119
-1317
-480
query I rowsort
SELECT DISTINCT col2 + col1 + - col0 FROM tab0
----
63
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2409
SELECT ALL tab2.col2 + + CAST( NULL AS SIGNED ) + + col0 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL tab2.col2 + + CAST ( NULL AS INTEGER ) + + col0 * - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + 12 * col0 AS col0 FROM tab0 AS cor0
----
1150
321
421
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 11 * + col0 col1 FROM tab1
----
30
640
800
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 * - ( - col0 ) + ( col0 * col1 ) FROM tab1 AS cor0
----
100880
37120
4290
query I rowsort
SELECT ALL - col0 - ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT + + col2 + - 86 FROM tab1 AS cor0
----
-29
-32
10
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * 22 AS col2 FROM tab2 AS cor0
----
1324
412
709
query I rowsort
SELECT ALL col2 * 61 + - cor0.col1 FROM tab1 AS cor0
----
3268
3467
5843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 * - col0 col0 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT - col2 DIV - col0 AS col1 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2418
SELECT - col2 / - col0 AS col1 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT - + col0 - col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT ALL + col1 DIV - 30 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + col1 / - 30 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + cor0.col2 - - ( col2 ) * - col2 * col2 AS col1 FROM tab2 AS cor0
----
-17550
-19656
-54834
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2422
SELECT DISTINCT - - col1 * + cor0.col1 + - cor0.col1 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - - col1 * + cor0.col1 + - cor0.col1 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * tab1.col2 + + 39 * - col2 FROM tab1
----
-11424
-2268
-5871
onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT ALL - col2 + 7 DIV - col0 AS col2 FROM tab2
----
-26
-28
-38
skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - col2 + 7 / - col0 AS col2 FROM tab2
----
-26
-28
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT + tab2.col0 * 71 + col2 DIV tab2.col0 AS col0 FROM tab2
----
500
5538
5609
skipif mysql # not compatible
query I rowsort label-2425
SELECT + tab2.col0 * 71 + col2 / tab2.col0 AS col0 FROM tab2
----
500
5538
5609
query I rowsort
SELECT tab2.col0 + - col0 * col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + - col2 * 39 + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-10660
-136
-4125
query I rowsort
SELECT ALL col2 + - 90 FROM tab1 AS cor0
----
-33
-36
6
query I rowsort
SELECT ALL col0 * + 70 + 11 FROM tab0
----
1691
2461
6241
query I rowsort
SELECT DISTINCT + 11 FROM tab0, tab2 AS cor0
----
11
query I rowsort
SELECT + ( 16 ) + - col1 FROM tab1 AS cor0
----
-10
3
6
query I rowsort
SELECT ALL col1 * 37 AS col2 FROM tab2 cor0
----
1147
2183
629
query I rowsort
SELECT ALL + ( col2 ) * col0 + col0 * + 43 AS col0 FROM tab1 AS cor0
----
11120
291
6400
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2435
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + 47 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT - + ( - col0 ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col0 + - ( 64 ) col1 FROM tab1 AS cor0
----
-4160
-6464
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2440
SELECT CAST( col0 AS SIGNED ) * + col2 - + col0 * + ( col1 ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2440
SELECT CAST ( col0 AS INTEGER ) * + col2 - + col0 * + ( col1 ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + col2 * + col2 + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT 51 - + col1 FROM tab0 AS cor0
----
-35
-40
-46
query I rowsort
SELECT - 69 AS col2 FROM tab2 AS cor0
----
-69
-69
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT - 39 DIV col2 FROM tab0 cor0
----
-1
-39
0
skipif mysql # not compatible
query I rowsort label-2447
SELECT - 39 / col2 FROM tab0 cor0
----
-1
-39
0
query I rowsort
SELECT DISTINCT - 55 * - col1 + - ( + 21 ) FROM tab0 AS cor0
----
4709
4984
5314
query I rowsort
SELECT ALL + ( + cor0.col1 ) + - col1 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
-243982
-678951
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT DISTINCT + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT ALL 84 * - col1 + + CAST( col0 AS SIGNED ) * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL 84 * - col1 + + CAST ( col0 AS INTEGER ) * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 cor0
----
16
query I rowsort
SELECT ALL + 51 * col1 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT - 58 + col2 AS col0 FROM tab2 AS cor0
----
-20
-31
-32
query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab0 AS cor0
----
41
query I rowsort
SELECT ALL + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + - col1 - - col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col0 * col1 + - ( - col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + - col2 * 2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT col0 + 80 AS col1 FROM tab0 cor0
----
104
115
169
query I rowsort
SELECT - col2 + col0 * + col0 FROM tab1
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT - col1 DIV - col1 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2462
SELECT - col1 / - col1 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 / - col2 AS col0 FROM tab0 WHERE NOT - col0 * col1 < - col0 * - col0
----
query I rowsort
SELECT + cor0.col2 * + col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT - col1 + - col2 * - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-96
35851
551277
onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT + - col2 * - col0 + col0 * cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
35
7378
801
skipif mysql # not compatible
query I rowsort label-2467
SELECT + - col2 * - col0 + col0 * cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
35
7378
801
query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 )
----
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - - cor0.col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2471
SELECT - - cor0.col0 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT cor0.col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col1 + cor0.col1 - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
2968
3269
9242
query I rowsort
SELECT DISTINCT + col2 + + tab0.col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + col2 * - tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col1 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2479
SELECT DISTINCT + col2 * col1 + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + col2 * col1 + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 51 * - col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT 94 + cor0.col2 AS col0 FROM tab2 AS cor0
----
120
121
132
query I rowsort
SELECT ALL + col2 * col1 + - col0 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * 88 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-7656
query I rowsort
SELECT ALL + col1 * + col0 * + col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - + 5 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL col0 + col2 * 22 AS col2 FROM tab0
----
1893
57
750
query I rowsort
SELECT ALL col1 - + tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE NOT + col1 NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2 WHERE NOT col2 <> NULL
----
query I rowsort
SELECT DISTINCT - col2 - - col0 * col0 FROM tab2
----
22
6058
6203
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - cor0.col0 )
----
query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL <> col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 - - col0 ) >= ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 + col1 * tab0.col0 + - col0 * - col1 FROM tab0
----
16107
4042
6693
query I rowsort
SELECT + col0 * col1 * col1 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col1 * col2 * + tab2.col0 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT ALL col2 * col2 + + col1 DIV + tab1.col1 - col1 FROM tab1
----
2891
3240
9204
skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL col2 * col2 + + col1 / + tab1.col1 - col1 FROM tab1
----
2891
3240
9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT ALL tab0.col0 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL tab0.col0 / - col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * col0 * + col1 col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col1 + col1 - - tab0.col2 * + tab0.col1 FROM tab0
----
291
3010
7644
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <> ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 + col2 + col0 * col0 AS col0 FROM tab0
----
1129
523
7912
query I rowsort
SELECT - col2 - - col2 * col0 AS col2 FROM tab2
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT ALL + col0 DIV col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + col0 / col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT ALL 1 * col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col1 * - cor0.col2 - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT + + ( + col1 ) + + col1 + col1 * col0 * col1 FROM tab0 cor0
----
177676
329509
737191
query I rowsort
SELECT ALL + tab0.col0 + + col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL 53 + + col1 * - 38 AS col2 FROM tab0 AS cor0
----
-3215
-3405
-3633
query I rowsort
SELECT ALL 38 * cor0.col0 FROM tab0 cor0
----
1330
3382
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT + + col0 DIV col1 - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2027
-2998
skipif mysql # not compatible
query I rowsort label-2515
SELECT + + col0 / col1 - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2027
-2998
query I rowsort
SELECT ALL ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + col1 * + col1 + cor0.col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + col2 - ( col0 + + col2 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + cor0.col2 + col1 * + col0 * col0 FROM tab2 AS cor0
----
106135
1546
358982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 95 col1 FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT DISTINCT col1 * 30 FROM tab0 AS cor0
----
2580
2730
2910
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col0 + + CAST ( - 84 AS REAL ) AS col1 FROM tab1 cor0
----
-20
-4
-81
query I rowsort
SELECT ALL - col0 + + 73 FROM tab0 cor0
----
-16
38
49
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 * - col2 + 88 AS col1 FROM tab0 AS cor0
----
123
7386
880
query I rowsort
SELECT ALL col2 * 36 + 9 - col2 AS col0 FROM tab1 AS cor0
----
1899
2004
3369
query I rowsort
SELECT ALL + col1 * + col0 - + col1 * col2 AS col1 FROM tab0 cor0
----
-774
3298
637
query I rowsort
SELECT ALL col1 * + col2 + col2 AS col2 FROM tab2
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2529
SELECT - col1 * col0 + + CAST( + 8 AS SIGNED ) + col0 AS col2 FROM tab0
----
-2032
-3352
-8002
skipif mysql # not compatible
query I rowsort label-2529
SELECT - col1 * col0 + + CAST ( + 8 AS INTEGER ) + col0 AS col2 FROM tab0
----
-2032
-3352
-8002
query I rowsort
SELECT ALL - col2 + + tab0.col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT col2 * + col0 + + 84 FROM tab2
----
2112
273
3086
onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT DISTINCT 39 DIV col1 + ( - 17 ) * tab0.col1 + col1 * - col0 FROM tab0
----
-3526
-5044
-9646
skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 39 / col1 + ( - 17 ) * tab0.col1 + col1 * - col0 FROM tab0
----
-3526
-5044
-9646
query I rowsort
SELECT ALL - 91 + col0 FROM tab2
----
-12
-13
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col0 FROM tab1
----
0
query I rowsort
SELECT ( col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL 28 * 37 AS col2 FROM tab1 AS cor0
----
1036
1036
1036
onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT 9 DIV + ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2538
SELECT 9 / + ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * 68 AS col0 FROM tab1 AS cor0
----
-1768
-680
-884
query I rowsort
SELECT ALL - ( 47 ) FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT ALL + 22 * col1 FROM tab2 cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT - col1 * + col1 + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ( col2 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 84 - 76 * tab1.col1 FROM tab1
----
-1892
-676
-904
query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab0
----
-30
query I rowsort
SELECT - 99 - - col2 FROM tab0
----
-17
-66
-98
query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab0
----
88
query I rowsort
SELECT ALL - ( tab1.col2 ) * tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT col0 + + tab0.col1 DIV tab0.col2 col2 FROM tab0
----
132
26
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2549
SELECT col0 + + tab0.col1 / tab0.col2 col2 FROM tab0
----
132
26
90
query I rowsort
SELECT ALL col1 * col1 * + col0 + + col0 FROM tab0
----
177528
329350
737098
query I rowsort
SELECT DISTINCT - col0 * col2 + + col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + col0 + - col0 + tab1.col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + - col1 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1 AS cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2556
SELECT col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + - 71 - col2 AS col2 FROM tab1 cor0
----
-125
-128
-167
query I rowsort
SELECT DISTINCT - - 53 * + cor0.col2 + - col0 * col2 * - col1 FROM tab0 AS cor0
----
3448
668464
69861
query I rowsort
SELECT + - 74 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-152
-153
-81
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - col0 * + cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + col2 + ( tab1.col1 ) AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 98 - col0 col0 FROM tab1 AS cor0
----
-1044
-1354
-2551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV + cor0.col0 AS col0 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / + cor0.col0 AS col0 FROM tab2 cor0
----
0
4
query I rowsort
SELECT + 85 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2567
SELECT ALL - CAST( NULL AS DECIMAL ) + - col1 * col2 col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - CAST ( NULL AS REAL ) + - col1 * col2 col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 90 + - col0 FROM tab0 AS cor0
----
1
55
66
query I rowsort
SELECT col1 * 66 * col1 + + col1 AS col2 FROM tab1
----
11167
44642
6610
query I rowsort
SELECT DISTINCT + + 58 + + 99 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1229
-2516
-932
query I rowsort
SELECT DISTINCT - col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab1 AS cor0
----
-68
query I rowsort
SELECT 78 * - cor0.col0 FROM tab0 AS cor0
----
-1872
-2730
-6942
onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT ALL + 93 DIV 49 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + 93 / 49 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + col0 col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT - col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT - - cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - ( col1 ) * + cor0.col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - ( 59 ) + col0 * - col1 AS col2 FROM tab2 cor0
----
-1402
-276
-4661
query I rowsort
SELECT ( 60 ) + cor0.col2 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT 28 AS col1 FROM tab0 cor0
----
28
28
28
query I rowsort
SELECT + 75 * + col1 AS col1 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
24
query I rowsort
SELECT + - 12 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT ALL 6 + col2 AS col0 FROM tab1 cor0
----
102
60
63
query I rowsort
SELECT - + cor0.col1 * col1 * + 38 FROM tab1 AS cor0
----
-25688
-3800
-6422
query I rowsort
SELECT ALL + + cor0.col0 * col0 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT DISTINCT + 73 * col0 - + ( 42 ) FROM tab0 AS cor0
----
1710
2513
6455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT + col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2589
SELECT + col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * cor0.col2 - - 54 FROM tab0 cor0
----
-1035
-6670
53
query I rowsort
SELECT - col0 + + ( col2 ) * + col0 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT col2 + ( - cor0.col0 ) - - col2 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT - col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col0 + 8 * col2 FROM tab1 AS cor0
----
435
520
848
query I rowsort
SELECT cor0.col1 - 23 FROM tab1 AS cor0
----
-10
-13
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col1 + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 93 col0 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT ALL cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + 2 AS col1 FROM tab1 AS cor0
----
5
66
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2601
SELECT + + col2 * CAST( + col0 + col2 AS SIGNED ) * - 76 AS col1 FROM tab1 AS cor0
----
-1284096
-233928
-524172
skipif mysql # not compatible
query I rowsort label-2601
SELECT + + col2 * CAST ( + col0 + col2 AS INTEGER ) * - 76 AS col1 FROM tab1 AS cor0
----
-1284096
-233928
-524172
query I rowsort
SELECT DISTINCT - - col0 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( - 7 AS REAL ) FROM tab1 cor0
----
378
399
672
query I rowsort
SELECT - col1 * + ( - col0 ) FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 + + col1 col2 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT ALL - - ( col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - 7 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 180f983bbf84f38a53d5012e5c10c628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT 91 * cor0.col2 - - col2 DIV 12 FROM tab1 AS cor0
----
4918
5191
8744
skipif mysql # not compatible
query I rowsort label-2608
SELECT 91 * cor0.col2 - - col2 / 12 FROM tab1 AS cor0
----
4918
5191
8744
query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 AS col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col2 - col0 * + col1 * col0 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 86 + + col2 * - 88 * - 28 AS col1 FROM tab0 AS cor0
----
202134
2550
81398
query I rowsort
SELECT + + col1 * + cor0.col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 24 * cor0.col0 FROM tab2 AS cor0
----
168
1872
1896
query I rowsort
SELECT 24 * 39 FROM tab2
----
936
936
936
query I rowsort
SELECT ALL 86 AS col0 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT ( 39 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
39
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
17
31
59
query I rowsort
SELECT DISTINCT ( col1 ) * + col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col2 + 99 * col2 AS col0 FROM tab1 AS cor0
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 53 AS REAL ) + + col1 * - col0 col2 FROM tab2 AS cor0
----
-1290
-164
-4549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - 52 * - col2 + - col0 * col2 * - col0 + col1 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1374
23562
661248
query I rowsort
SELECT DISTINCT - 76 * + col0 FROM tab0 AS cor0
----
-1824
-2660
-6764
query I rowsort
SELECT ALL - - 5 + - cor0.col2 FROM tab2 cor0
----
-21
-22
-33
query I rowsort
SELECT DISTINCT - 8 + col2 + - ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2039
-3402
-8025
query I rowsort
SELECT ALL + col1 + col2 * col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT 79 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT ALL + col0 + col0 + - col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 * col1 + - 15 * cor0.col1 FROM tab0 AS cor0
----
-1552
-4128
-8827
query I rowsort
SELECT ALL - - 74 + col1 FROM tab0 AS cor0
----
160
165
171
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1
query I rowsort
SELECT + cor0.col1 * - col2 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ( col1 ) * 99 - col2 AS col0 FROM tab0 AS cor0
----
8481
8927
9602
query I rowsort
SELECT + - ( col1 ) - - cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT + 76 DIV col1 + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + 76 / col1 + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + col2 + + col2 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col0 * 28 + - col2 AS col0 FROM tab2 AS cor0
----
169
2158
2174
query I rowsort
SELECT - - col1 * 85 FROM tab0 cor0
----
7310
7735
8245
query I rowsort
SELECT - col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col2 + - cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - cor0.col1 * - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2644
SELECT - cor0.col1 * - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + col0 + - ( + col0 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col0 * + ( cor0.col2 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 86 * 74 AS col1 FROM tab1, tab0 AS cor0
----
-6364
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + 48 + - 75 AS col2 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 + 1 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT - ( + ( col0 ) ) + - 2 AS col1 FROM tab2 AS cor0
----
-80
-81
-9
query I rowsort
SELECT ALL + 42 + + col0 FROM tab2 AS cor0
----
120
121
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT - + CAST( col1 AS SIGNED ) * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif mysql # not compatible
query I rowsort label-2656
SELECT - + CAST ( col1 AS INTEGER ) * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 67 * - col2 + + col2 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT ALL + col0 * + 19 AS col2 FROM tab2
----
133
1482
1501
query I rowsort
SELECT ALL 0 * - cor0.col0 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - - col1 + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT DISTINCT + col0 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + col0 + cor0.col0 / col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT 4 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * - tab1.col2 + col2 * + 96 col0 FROM tab1
----
1549
1834
5048
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + ( 38 ) + col2 AS col1 FROM tab0
----
120
39
71
query I rowsort
SELECT + + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL 90 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT + - ( - 47 ) FROM tab2, tab0, tab0 cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - col0 * 40 FROM tab1 AS cor0
----
-120
-2560
-3200
query I rowsort
SELECT ALL + col0 + - 90 FROM tab2 AS cor0
----
-11
-12
-83
query I rowsort
SELECT ALL col2 + + col1 * + ( - col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col2 * + ( - 31 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1099
-728
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col1 + + col0 * + 40 AS col2 FROM tab2
----
311
3177
3179
query I rowsort
SELECT - col1 - col1 AS col2 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT ALL - col2 * - col1 + - col0 + col1 FROM tab0
----
159
2900
7464
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT + col2 * 40 + + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1087
1118
1599
query I rowsort
SELECT ALL col0 * + col0 * - 85 AS col1 FROM tab0 AS cor0
----
-104125
-48960
-673285
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT + col2 + + CAST( ( col2 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2680
SELECT + col2 + + CAST ( ( col2 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + + col2 + 40 FROM tab1 AS cor0
----
136
94
97
query I rowsort
SELECT ALL - col2 * 47 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT + col1 + col2 * 16 + col1 FROM tab1 AS cor0
----
1562
916
932
query I rowsort
SELECT - col0 + - col1 * cor0.col0 AS col2 FROM tab0 cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT 16 DIV + col2 + 27 + - col1 AS col1 FROM tab0 AS cor0
----
-54
-59
-64
skipif mysql # not compatible
query I rowsort label-2685
SELECT 16 / + col2 + 27 + - col1 AS col1 FROM tab0 AS cor0
----
-54
-59
-64
query I rowsort
SELECT - col2 - col2 * - col2 * - 19 AS col0 FROM tab0 cor0
----
-127838
-20
-20724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 + col0 col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + 10 + col0 * 19 + - 25 AS col0 FROM tab0 cor0
----
1676
441
650
query I rowsort
SELECT DISTINCT col2 + + col1 + tab1.col0 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 * ( + col2 * col2 ) AS col1 FROM tab1
----
207872
737200
8745
query I rowsort
SELECT ALL - cor0.col1 - - col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col0 + + 64 FROM tab2 AS cor0
----
142
143
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col1 / CAST ( + col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0, tab2 cor0
----
-94
query I rowsort
SELECT - - col2 * 39 AS col0 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT + cor1.col1 + + 62 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4bc35ad16a8f164494c1e6371649ff8a
query I rowsort
SELECT + 41 * col0 FROM tab2 cor0
----
287
3198
3239
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT ALL + ( - cor0.col0 ) DIV col0 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + ( - cor0.col0 ) / col0 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * col1 + col0 col0 FROM tab2 AS cor0
----
1494
487
751
query I rowsort
SELECT DISTINCT 16 - - col0 AS col2 FROM tab1 AS cor0
----
19
80
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL cor0.col0 DIV 41 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL cor0.col0 / 41 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT ALL 39 + + col1 + - ( - col2 ) FROM tab2 AS cor0
----
124
94
97
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT 26 + col2 * 21 * col2 FROM tab0 cor0
----
141230
22895
47
query I rowsort
SELECT cor0.col0 + 94 + + col2 * col1 FROM tab1 AS cor0
----
1422
1501
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2709
SELECT col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2709
SELECT col2 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + ( + cor0.col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - 28 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1276
-1432
-598
query I rowsort
SELECT ALL - + ( cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT ALL - 28 DIV - col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-59
skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - 28 / - col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-59
query I rowsort
SELECT DISTINCT - 83 + - col2 + col1 * 44 AS col1 FROM tab0 AS cor0
----
3668
3839
4184
query I rowsort
SELECT ALL - 40 - - 70 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT - - 65 + + col2 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT - col1 * 4 AS col2 FROM tab1
----
-104
-40
-52
query I rowsort
SELECT - 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT col0 * - 8 FROM tab1
----
-24
-512
-640
query I rowsort
SELECT DISTINCT col0 + ( 1 ) + - col2 FROM tab2 AS cor0
----
-19
42
53
query I rowsort
SELECT ALL col2 * + ( col2 ) AS col0 FROM tab2 cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - col2 + col1 * col1 * - 82 AS col1 FROM tab2
----
-23736
-285468
-78829
query I rowsort
SELECT ALL - + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT - col1 * + col0 * + ( - col1 * + col1 ) + ( col2 ) AS col2 FROM tab1
----
175856
52782
64057
query I rowsort
SELECT DISTINCT - col1 * ( 15 + col1 * 43 ) FROM tab1
----
-29458
-4450
-7462
query I rowsort
SELECT DISTINCT 44 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT DISTINCT - col2 DIV - 57 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - col2 / - 57 AS col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT + tab1.col0 DIV 65 col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2731
SELECT + tab1.col0 / 65 col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT ALL - - col2 + - 92 FROM tab0 AS cor0
----
-10
-59
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT ALL - col2 DIV + col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - col2 / + col1 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT - + col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col1 col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL 13 + col0 FROM tab0
----
102
37
48
query I rowsort
SELECT + ( - col1 * - tab1.col2 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 + - col2 + col1 * ( + 83 + col1 ) AS col1 FROM tab2
----
1679
3538
8411
query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL 12 * + col2 + col0 * - col2 FROM tab1
----
-2964
-6528
486
query I rowsort
SELECT - col1 * - 41 + col2 * 64 FROM tab1 AS cor0
----
4058
4522
6677
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT ALL - CAST( - 53 AS SIGNED ) + col0 AS col0 FROM tab1
----
117
133
56
skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - CAST ( - 53 AS INTEGER ) + col0 AS col0 FROM tab1
----
117
133
56
query I rowsort
SELECT ALL - ( tab1.col2 ) * col0 + col2 AS col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT - - col2 + + cor0.col1 * + ( - cor0.col2 ) FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col2 * col1 + 8 AS col1 FROM tab1 AS cor0
----
-1240
-1396
-562
query I rowsort
SELECT - col1 * col1 + col2 * + col1 + col1 FROM tab0 AS cor0
----
-4472
-728
-9215
query I rowsort
SELECT DISTINCT + 72 + col2 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT ALL + col2 + + cor0.col1 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 - col2 * + col0 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT + + col0 * - col2 + - col0 * col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL col1 * + col1 + 99 FROM tab2 AS cor0
----
1060
3580
388
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2753
SELECT DISTINCT - + col2 * cor0.col1 + CAST( 94 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1154
-1310
-476
skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - + col2 * cor0.col1 + CAST ( 94 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1154
-1310
-476
query I rowsort
SELECT ALL + col1 + + cor0.col0 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + col2 * + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - 15 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT col0 + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2758
SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 71 * col1 * + ( - col2 ) FROM tab1
----
-40470
-88608
-99684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT DISTINCT ( col1 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2761
SELECT ALL col2 * - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL col2 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 81 * col0 + + col2 * 43 - col0 AS col0 FROM tab2 cor0
----
-4844
-5278
587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * + 70 col0 FROM tab2 AS cor0
----
-483
-5382
-5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * col2 + col0 col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT ALL + - col0 + col1 * cor0.col1 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT ALL + col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col2 * + col0 + 51 * col0 * - 64 + col2 * col2 AS col0 FROM tab1 AS cor0
----
-209295
-259584
-7038
query I rowsort
SELECT DISTINCT col2 * + 47 AS col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT + col2 * - col1 + - 25 FROM tab2
----
-1559
-671
-862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + tab0.col0 col2 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT col0 + tab1.col2 DIV ( + 97 ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2771
SELECT col0 + tab1.col2 / ( + 97 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 52 * - col2 * + col0 FROM tab2
----
105456
156104
9828
query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
-72
query I rowsort
SELECT - col1 - - 34 FROM tab1 AS cor0
----
21
24
8
query I rowsort
SELECT ALL col1 * - 59 - - col1 * - 36 FROM tab2 AS cor0
----
-1615
-2945
-5605
onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT ALL + - col0 - col2 DIV cor0.col1 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + - col0 - col2 / cor0.col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - 11 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL + col0 DIV 36 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + col0 / 36 FROM tab1 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + col0 col2 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT ALL - 12 * - cor0.col2 AS col0 FROM tab2 cor0
----
312
324
456
query I rowsort
SELECT ALL col0 * 97 FROM tab1
----
291
6208
7760
query I rowsort
SELECT - 0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL 7 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT DISTINCT col0 * + col2 + cor0.col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT col2 + col0 + col0 FROM tab0 cor0
----
260
71
81
query I rowsort
SELECT + 94 * 92 - - col0 * col2 * + col2 FROM tab0 AS cor0
----
34784
607084
8683
query I rowsort
SELECT ALL - 12 + col0 AS col2 FROM tab1
----
-9
52
68
query I rowsort
SELECT 98 * + col0 AS col2 FROM tab0
----
2352
3430
8722
query I rowsort
SELECT + ( col2 ) + col1 * col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT - 42 + col0 + - col0 FROM tab0
----
-42
-42
-42
query I rowsort
SELECT + col0 * col2 - + tab2.col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT cor0.col2 * col0 * cor0.col2 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * col1 + - col2 * + col0 FROM tab0 AS cor0
----
2079
246
63
query I rowsort
SELECT ALL + - col2 * - col2 + + col2 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
115520
53404
5832
query I rowsort
SELECT - - col0 * - col1 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT - col0 * + col2 - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - cor0.col1 + cor0.col2 AS col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + - 12 AS col1 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT col0 * - col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + ( - col2 ) * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col2 + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col0 * + col1 * + col1 + - col1 FROM tab2 cor0
----
22814
271459
6696
query I rowsort
SELECT 74 + 85 * - col2 + col0 FROM tab0
----
-2707
-6807
24
query I rowsort
SELECT 45 FROM tab2, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT + col1 * col1 * col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ( col1 ) * col1 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-540
-871
598
query I rowsort
SELECT - col0 * cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + cor0.col1 ) AND NOT NULL = NULL OR NULL NOT IN ( - col1 + cor0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT 81 + - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
77
81
81
skipif mysql # not compatible
query I rowsort label-2809
SELECT 81 + - col1 / + col0 AS col1 FROM tab2 AS cor0
----
77
81
81
query I rowsort
SELECT ALL col0 - col0 * tab1.col1 AS col1 FROM tab1 WHERE NOT ( - col2 ) < ( NULL )
----
query I rowsort
SELECT - col2 * + col1 - - col2 * - col2 FROM tab0
----
-14186
-3927
-98
query I rowsort
SELECT DISTINCT - tab1.col0 * + col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col2 + tab1.col1 * + tab1.col2 * - col1 - + col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + col0 * - tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND col2
----
query I rowsort
SELECT tab1.col0 + + tab1.col1 * col1 * col1 AS col2 FROM tab1
----
1064
17579
2277
query I rowsort
SELECT - col2 + - tab1.col1 + col0 * - col2 AS col2 FROM tab1
----
-242
-3715
-7789
query I rowsort
SELECT DISTINCT + col2 + col0 * + tab1.col1 FROM tab1
----
1136
132
697
query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col1 = col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL >= col1
----
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT col1 * + col2 * col2 NOT IN ( col0 + + tab1.col2 )
----
query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col1 * - col0 + col0 * tab2.col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col1 - - col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - col2 - + col2 * col1 FROM tab2
----
-1560
-684
-864
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - + cor0.col2 * col0 - col1 * col1 FROM tab0 AS cor0
----
-15579
-8188
-9444
query I rowsort
SELECT col1 * + col2 - - col0 * col0 AS col2 FROM tab2 cor0
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-2830
SELECT - col0 + col2 DIV - col0 + + col1 col1 FROM tab1
----
-54
-68
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2830
SELECT - col0 + col2 / - col0 + + col1 col1 FROM tab1
----
-54
-68
5
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - cor0.col2 ) NOT BETWEEN col0 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL + tab1.col2 - - tab1.col1 FROM tab1
----
109
67
80
query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL IN ( tab1.col2 * col2 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - cor0.col2 NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col0 * + col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + - ( col2 ) * - col2 * + cor0.col1 + - 16 FROM tab0 cor0
----
611868
81
93638
query I rowsort
SELECT col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - 88 + + cor0.col2 * + col1 * 32 FROM tab0 AS cor0
----
238696
3016
90728
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab1 cor0
----
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT - cor0.col0 DIV col1 + cor0.col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2841
SELECT - cor0.col0 / col1 + cor0.col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT ALL + col0 DIV col1 + - col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + col0 / col1 + - col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ( + col1 ) * - cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT cor0.col0 * ( cor0.col1 ) - ( - col0 ) AS col2 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT DISTINCT - - ( col1 ) DIV + col0 + - col2 * col2 FROM tab2 cor0
----
-1444
-676
-725
skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - - ( col1 ) / + col0 + - col2 * col2 FROM tab2 cor0
----
-1444
-676
-725
query I rowsort
SELECT ALL - cor0.col1 * col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - + ( - ( col0 ) ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 39 col1 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab1 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT 91 + 76 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
91
93
94
skipif mysql # not compatible
query I rowsort label-2850
SELECT 91 + 76 / cor0.col0 AS col0 FROM tab0 AS cor0
----
91
93
94
query I rowsort
SELECT ( 10 ) FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT ALL - - cor0.col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT 66 * - ( - col1 ) + - 86 AS col2 FROM tab1 AS cor0
----
1630
574
772
query I rowsort
SELECT + col2 + + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + ( 86 ) FROM tab0 AS cor0
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT ALL - - 95 + + col0 DIV + col2 FROM tab1 AS cor0
----
95
95
96
skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - - 95 + + col0 / + col2 FROM tab1 AS cor0
----
95
95
96
query I rowsort
SELECT 69 * + col1 + + col0 FROM tab0 AS cor0
----
5958
6368
6728
query I rowsort
SELECT + - 40 AS col2 FROM tab0 AS cor0
----
-40
-40
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col1 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - 16 + + tab2.col1 col0 FROM tab2
----
-37
-65
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT CAST( NULL AS DECIMAL ) * tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2861
SELECT CAST ( NULL AS REAL ) * tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col2 * 35 * - col0 AS col1 FROM tab1
----
-127680
-268800
-5670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL 77 FROM tab1, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2865
SELECT DISTINCT - - col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - - col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col1 + 24 FROM tab0 AS cor0
----
110
115
121
query I rowsort
SELECT cor0.col0 * col0 - - ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT - - col1 + 15 + - col0 AS col0 FROM tab1 AS cor0
----
-39
-52
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT DISTINCT col0 + - col0 DIV + ( + tab1.col0 ) FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT col0 + - col0 / + ( + tab1.col0 ) FROM tab1
----
2
63
79
query I rowsort
SELECT ALL col1 * col1 + ( col0 ) * + 98 + col0 AS col1 FROM tab0
----
12874
17092
9772
query I rowsort
SELECT + col0 * 90 * 19 FROM tab1
----
109440
136800
5130
query I rowsort
SELECT + + col0 * + col0 + cor0.col1 + col2 * - ( col1 * col0 + col1 ) FROM tab0 AS cor0
----
-2170
-663568
-70288
query I rowsort
SELECT DISTINCT + - cor0.col0 * + 99 FROM tab1 AS cor0
----
-297
-6336
-7920
query I rowsort
SELECT ALL col1 + + col2 + + col2 AS col0 FROM tab0
----
152
255
99
query I rowsort
SELECT ALL tab1.col0 * - col2 * col0 + + col0 FROM tab1
----
-233408
-483
-614320
query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 + cor0.col0 col2 FROM tab2 AS cor0
----
-48
23
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * - tab0.col2 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL tab1.col2 + col1 * col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT + 77 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT DISTINCT + col2 * col0 + ( + tab0.col1 ) AS col1 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT + CAST( col0 AS SIGNED ) DIV + col0 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2882
SELECT + CAST ( col0 AS INTEGER ) / + col0 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT 86 * 97 AS col1 FROM tab0
----
8342
8342
8342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT CAST( tab1.col2 AS SIGNED ) * + col1 AS col0 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2884
SELECT CAST ( tab1.col2 AS INTEGER ) * + col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 + col1 * cor0.col1 AS col1 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT - - col1 + ( - col1 ) * cor0.col1 + - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 0 * - ( col2 * - col1 ) + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col0 + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT - ( - col0 + tab2.col2 * + col1 ) FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + col1 * col0 + + ( - col2 ) FROM tab0
----
2031
3394
8017
query I rowsort
SELECT - - 49 AS col0 FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 * - col0 * + 14 FROM tab2 AS cor0
----
-18802
-3038
-64428
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + + 4 + + ( - col1 ) FROM tab2 AS cor0
----
-2083
-216
-3015
query I rowsort
SELECT ALL + 46 * - col0 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT ALL + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 64 + + col2 + ( cor0.col1 ) FROM tab0 cor0
----
162
183
237
query I rowsort
SELECT DISTINCT - - col2 + + 5 FROM tab2 AS cor0
----
31
32
43
query I rowsort
SELECT ALL - + col0 + - 1 * - col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT ALL + + cor0.col0 DIV - col1 + col0 AS col2 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + + cor0.col0 / - col1 + col0 AS col2 FROM tab1 AS cor0
----
3
58
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT cor0.col2 + - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-2901
SELECT cor0.col2 + - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT ALL - col1 * col0 + + 79 DIV col0 FROM tab2 AS cor0
----
-1342
-206
-4601
skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - col1 * col0 + + 79 / col0 FROM tab2 AS cor0
----
-1342
-206
-4601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2903
SELECT DISTINCT - cor0.col2 * - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT ALL - - cor0.col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - - cor0.col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2906
SELECT cor0.col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-2906
SELECT cor0.col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT - 23 * col2 + + col1 * col1 AS col0 FROM tab2
----
-585
2883
340
query I rowsort
SELECT + + col0 * - 8 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT + 95 AS col0 FROM tab2
----
95
95
95
query I rowsort
SELECT 20 * col2 FROM tab2 cor0
----
520
540
760
query I rowsort
SELECT col0 * 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT + + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2913
SELECT + + col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT + + col1 DIV + col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2914
SELECT + + col1 / + col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2916
SELECT DISTINCT - cor0.col2 DIV 77 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - cor0.col2 / 77 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT - col1 * + col2 * + col0 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col0 * 64 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT + CAST( 49 AS SIGNED ) * + col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-150
-403
1196
skipif mysql # not compatible
query I rowsort label-2920
SELECT + CAST ( 49 AS INTEGER ) * + col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-150
-403
1196
onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT - 70 DIV cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-41
-59
skipif mysql # not compatible
query I rowsort label-2921
SELECT - 70 / cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-41
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT 95 - col0 FROM tab1 AS cor0
----
15
31
92
query I rowsort
SELECT col2 + ( + cor0.col1 ) * 13 * col2 FROM tab1 AS cor0
----
16320
18306
7467
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2925
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 93 * cor0.col1 + col0 * 67 FROM tab2 AS cor0
----
10713
3352
6874
query I rowsort
SELECT + - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - tab1.col0 * - col2 + + tab1.col1 * col1 FROM tab1
----
3748
7849
838
query I rowsort
SELECT ALL - 4 + - col2 * + col0 FROM tab1 cor0
----
-166
-3652
-7684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT 56 + - cor0.col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2930
SELECT 56 + - cor0.col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 49 + - col1 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-145
-2854
-7429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 * - col1 col1 FROM tab1 AS cor0
----
100
130
260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab0 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL col0 * ( col2 ) DIV + col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL col0 * ( col2 ) / + col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + 11 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 365e85330b095eb9c8184ee9233d1519
query I rowsort
SELECT - col1 * col2 * ( 59 ) + + col1 + 19 FROM tab1 AS cor0
----
-33601
-73600
-82791
query I rowsort
SELECT col2 * - col0 + 41 + col1 AS col0 FROM tab0 AS cor0
----
-665
-7166
103
query I rowsort
SELECT + 98 + - col1 * - col0 - + col0 FROM tab0 AS cor0
----
2138
3458
8108
query I rowsort
SELECT ( + tab0.col2 ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col0 + 74 FROM tab2 AS cor0
----
-4
-5
67
query I rowsort
SELECT DISTINCT - col2 * 26 + col2 AS col0 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT + tab1.col0 * - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d6e251a4a6d3e8483c15062bde9b3abb
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT col0 + - tab1.col0 DIV col1 - col2 * - col0 AS col0 FROM tab1
----
165
3706
7754
skipif mysql # not compatible
query I rowsort label-2944
SELECT col0 + - tab1.col0 / col1 - col2 * - col0 AS col0 FROM tab1
----
165
3706
7754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT DISTINCT col1 DIV + tab0.col1 + ( - ( + col0 ) ) * col0 FROM tab0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT col1 / + tab0.col1 + ( - ( + col0 ) ) * col0 FROM tab0
----
-1224
-575
-7920
query I rowsort
SELECT 12 * + col0 + 43 * col1 + - col1 AS col2 FROM tab1
----
1128
1188
1506
query I rowsort
SELECT DISTINCT ( tab0.col2 ) * - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 38ae4ab6a8fdfcd855d57a73fb99e326
query I rowsort
SELECT DISTINCT - col2 + 22 AS col1 FROM tab0 AS cor0
----
-11
-60
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col0 FROM tab0 AS cor0
----
48
48
48
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ( - col1 ) + - col1 - + 47 AS col1 FROM tab0
----
-219
-229
-241
query I rowsort
SELECT + tab2.col1 * ( tab2.col2 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT + + 36 DIV cor0.col1 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-2953
SELECT + + 36 / cor0.col1 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 5 + + col1 + + col1 FROM tab2 AS cor0
----
113
29
57
query I rowsort
SELECT + + col1 * cor0.col0 + col0 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-613
3146
776
query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT + 83 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT ALL col0 * col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT - - col1 * - col1 - + col0 DIV + col0 FROM tab2 AS cor0
----
-290
-3482
-962
skipif mysql # not compatible
query I rowsort label-2959
SELECT - - col1 * - col1 - + col0 / + col0 FROM tab2 AS cor0
----
-290
-3482
-962
query I rowsort
SELECT - - col1 * cor0.col2 - 24 FROM tab1 AS cor0
----
1224
1380
546
query I rowsort
SELECT ALL - + col0 * + 62 * - col0 FROM tab2 AS cor0
----
3038
377208
386942
query I rowsort
SELECT col0 + + col2 * 75 AS col1 FROM tab1 AS cor0
----
4053
4339
7280
query I rowsort
SELECT ALL col0 * + col1 - cor0.col1 AS col1 FROM tab0 cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT - + cor0.col0 + + CAST( NULL AS SIGNED ) * 69 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2964
SELECT - + cor0.col0 + + CAST ( NULL AS INTEGER ) * 69 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2965
SELECT ALL - - col2 * 28 + col0 * cor0.col2 * + CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
115140
53456
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - - col2 * 28 + col0 * cor0.col2 * + CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
115140
53456
5859
query I rowsort
SELECT + cor0.col2 + 0 * col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col1 - + 40 FROM tab2 AS cor0
----
-23
-9
19
query I rowsort
SELECT ALL col1 * + col0 + 45 AS col0 FROM tab1 cor0
----
1085
123
685
query I rowsort
SELECT - cor0.col0 + 17 AS col2 FROM tab2 AS cor0
----
-61
-62
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT ALL + + col0 - col1 DIV - 49 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + + col0 - col1 / - 49 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 * col1 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT ALL - - 88 - - col1 * col2 FROM tab2 AS cor0
----
1622
734
925
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2973
SELECT + + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2973
SELECT + + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT DISTINCT + CAST( - 91 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-117
-118
-129
skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + CAST ( - 91 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-117
-118
-129
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT - + CAST( 0 AS SIGNED ) * cor0.col1 + ( cor0.col0 * col2 + 82 ) AS col0 FROM tab1 AS cor0
----
244
3730
7762
skipif mysql # not compatible
query I rowsort label-2975
SELECT - + CAST ( 0 AS INTEGER ) * cor0.col1 + ( cor0.col0 * col2 + 82 ) AS col0 FROM tab1 AS cor0
----
244
3730
7762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT DISTINCT - - CAST( 74 AS SIGNED ) * col1 + col2 col1 FROM tab2 AS cor0
----
1296
2321
4392
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - - CAST ( 74 AS INTEGER ) * col1 + col2 col1 FROM tab2 AS cor0
----
1296
2321
4392
query I rowsort
SELECT col1 * + ( tab1.col0 ) + col2 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + - 59 FROM tab1 cor0
----
19
581
981
query I rowsort
SELECT ALL ( col0 ) + - col0 + - col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL tab0.col0 + + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 * col1 FROM tab1
----
-667
3996
6231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL tab2.col1 * - col1 - tab2.col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + tab0.col2 - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 64 - col2 AS col0 FROM tab0
----
-18
31
63
query I rowsort
SELECT DISTINCT col0 * 47 AS col2 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT + col1 * 49 + col2 AS col1 FROM tab2 AS cor0
----
1546
2917
871
query I rowsort
SELECT ALL + - cor0.col2 * + col2 + 63 AS col1 FROM tab1 AS cor0
----
-2853
-3186
-9153
onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT ALL + col2 + + 63 DIV - col2 FROM tab1 AS cor0
----
53
56
96
skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + col2 + + 63 / - col2 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT DISTINCT + 12 * - col2 FROM tab2
----
-312
-324
-456
query I rowsort
SELECT + 59 + - tab1.col1 * col0 AS col1 FROM tab1
----
-19
-581
-981
query I rowsort
SELECT ( col1 ) - + col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT 16 AS col2 FROM tab1
----
16
16
16
query I rowsort
SELECT + - col0 * + 0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col1 + 74 FROM tab1 AS cor0
----
100
84
87
query I rowsort
SELECT col1 + col0 * + 24 FROM tab0 cor0
----
2227
662
937
query I rowsort
SELECT ALL - col2 + + ( + col2 + - tab0.col0 * - 35 ) AS col2 FROM tab0
----
1225
3115
840
query I rowsort
SELECT DISTINCT - tab2.col0 + col1 * col1 AS col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL col0 + - 4 * - col0 * + col0 + col2 * - col1 AS col2 FROM tab1
----
-1365
15878
24432
onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT ALL + col2 * tab1.col0 + 78 DIV - col1 AS col1 FROM tab1
----
159
3641
7674
skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + col2 * tab1.col0 + 78 / - col1 AS col1 FROM tab1
----
159
3641
7674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3001
SELECT col0 * - CAST( NULL AS SIGNED ) * - 30 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3001
SELECT col0 * - CAST ( NULL AS INTEGER ) * - 30 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 93 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT - ( tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col0 col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
-83
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
29
query I rowsort
SELECT - 36 + - cor0.col0 FROM tab2 cor0
----
-114
-115
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * col1 col0 FROM tab2 AS cor0
----
1612
3068
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab2
----
98
98
98
query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - ( 64 ) FROM tab0
----
-64
query I rowsort
SELECT - 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT - col1 + col2 * - 64 AS col1 FROM tab0 AS cor0
----
-161
-2198
-5339
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT ALL ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col0 * cor0.col0 AS col2 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + 25 * col2 AS col2 FROM tab0 AS cor0
----
2050
25
825
query I rowsort
SELECT ALL - + col1 * + col2 + - ( col0 ) + col2 * + 53 * + col2 FROM tab0 AS cor0
----
-79
348821
54855
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col0 * - col2 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL ( col0 ) + - 97 AS col1 FROM tab2 AS cor0
----
-18
-19
-90
query I rowsort
SELECT - ( col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT - col2 DIV - 23 col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3023
SELECT - col2 / - 23 col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT + col0 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3024
SELECT + col0 / + col2 AS col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT + + ( + ( col2 - ( - col1 ) ) ) + col0 + + col2 FROM tab1 cor0
----
137
188
285
query I rowsort
SELECT DISTINCT + - 81 AS col1 FROM tab2 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort
SELECT tab1.col0 * CAST ( 17 AS REAL ) FROM tab1
----
1088
1360
51
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0, tab2 AS cor0
----
-63
query I rowsort
SELECT DISTINCT + col1 * - ( - col2 + tab0.col2 * + col0 ) FROM tab0
----
-3298
-65274
-656656
query I rowsort
SELECT ( - cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - col2 + - 72 FROM tab1 AS cor0
----
-126
-129
-168
query I rowsort
SELECT + 29 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT - col1 * - 8 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT - + col2 + + col1 + - col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - col0 * + col1 + 7 + + col0 AS col2 FROM tab0 AS cor0
----
2095
3437
8195
query I rowsort
SELECT - + cor0.col0 * cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + cor0.col0 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT col1 + + col2 * + 49 * col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
28669
40855
73197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col0 * + 30 * 90 + + col2 - + col1 * col0 FROM tab1 AS cor0
----
172217
215056
8076
query I rowsort
SELECT tab0.col1 + 77 AS col0 FROM tab0
----
163
168
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT - tab2.col2 DIV + ( + 67 ) - col0 * - col2 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3043
SELECT - tab2.col2 / + ( + 67 ) - col0 * - col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - tab1.col2 + - tab1.col2 FROM tab1, tab0 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col1 * 91 + col0 FROM tab0
----
7850
8370
8862
query I rowsort
SELECT col2 * 53 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT DISTINCT + - col2 * 0 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 88 AS col1 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT - CAST( 77 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
skipif mysql # not compatible
query I rowsort label-3049
SELECT - CAST ( 77 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT DISTINCT + col2 + + col2 + - col1 * cor0.col0 * + CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-36366
-4104
-99648
skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT + col2 + + col2 + - col1 * cor0.col0 * + CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-36366
-4104
-99648
onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT ALL - - 19 + col2 DIV + col1 AS col0 FROM tab1 cor0
----
21
24
26
skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL - - 19 + col2 / + col1 AS col0 FROM tab1 cor0
----
21
24
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3052
SELECT - CAST( NULL AS SIGNED ) * ( - col0 ) + + 65 * 80 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3052
SELECT - CAST ( NULL AS INTEGER ) * ( - col0 ) + + 65 * 80 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 47 FROM tab0 AS cor0
----
-47
-47
-47
query I rowsort
SELECT ALL + - col2 * col2 + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-3349
-3592
-9385
query I rowsort
SELECT - - 58 AS col1 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT ALL + 77 * - 13 AS col1 FROM tab2 AS cor0
----
-1001
-1001
-1001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + cor0.col0 col0 FROM tab0 AS cor0
----
104
115
169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * ( + col0 ) col1 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col2 * - 14 FROM tab0 AS cor0
----
-1059
-438
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT DISTINCT + col0 DIV 89 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + col0 / 89 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - 83 + - cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-183
-252
-759
query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 72 - - col2 AS col0 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT col2 * 74 AS col0 FROM tab0
----
2442
6068
74
query I rowsort
SELECT ALL 34 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL + col2 * - col0 - ( - col0 ) FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL tab0.col1 - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + ( col2 ) + col1 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col2 + col0 * - 41 FROM tab2 AS cor0
----
-260
-3172
-3201
query I rowsort
SELECT - 90 * + cor0.col1 FROM tab2 cor0
----
-1530
-2790
-5310
query I rowsort
SELECT ALL + col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + 71 + - col2 FROM tab1 cor0
----
-25
14
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3074
SELECT DISTINCT - col2 DIV col2 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - col2 / col2 AS col1 FROM tab0
----
-1
query I rowsort
SELECT ALL - col1 * + col2 + + ( - col0 ) FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL col1 * + col1 - + col0 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL col2 * col1 + - col1 + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT DISTINCT + col1 - cor0.col2 DIV + 9 AS col1 FROM tab0 AS cor0
----
82
83
97
skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + col1 - cor0.col2 / + 9 AS col1 FROM tab0 AS cor0
----
82
83
97
query I rowsort
SELECT ALL 74 AS col0 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT - col0 * col2 + 10 FROM tab1 AS cor0
----
-152
-3638
-7670
query I rowsort
SELECT DISTINCT + 10 * - col0 FROM tab0 cor0
----
-240
-350
-890
query I rowsort
SELECT ALL col0 * col1 * col1 + + col2 FROM tab0 AS cor0
----
177537
329316
737091
query I rowsort
SELECT ALL - - col0 + col2 + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7453
8452
9445
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab2, tab0 AS cor0
----
-69
query I rowsort
SELECT DISTINCT + 3 FROM tab1, tab2 AS cor0
----
3
query I rowsort
SELECT col0 - + tab0.col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT + 8 AS col1 FROM tab1
----
8
8
8
query I rowsort
SELECT tab0.col2 - 56 AS col0 FROM tab0
----
-23
-55
26
query I rowsort
SELECT DISTINCT - ( 77 ) FROM tab0
----
-77
query I rowsort
SELECT ALL - 8 * + col0 FROM tab1
----
-24
-512
-640
query I rowsort
SELECT DISTINCT col2 * - 46 FROM tab0
----
-1518
-3772
-46
query I rowsort
SELECT 95 * tab0.col0 + col2 * tab0.col2 AS col1 FROM tab0
----
15179
3326
3369
query I rowsort
SELECT + 15 * - col2 + col2 FROM tab1
----
-1344
-756
-798
query I rowsort
SELECT + col0 * - col1 * - 52 FROM tab1
----
33280
4056
54080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT ALL + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL - 86 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT + 42 * - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 * col1 - + col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + col1 + + col0 + - col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3103
SELECT ALL - col1 + - col2 * CAST( 86 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
-131983
-55573
-72013
skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - col1 + - col2 * CAST ( 86 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
-131983
-55573
-72013
query I rowsort
SELECT - 71 * + col2 + 58 + + 85 FROM tab2 AS cor0
----
-1703
-1774
-2555
query I rowsort
SELECT DISTINCT - + 88 * + col0 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT ALL + col2 * - col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT ALL + ( + 48 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL col1 + + ( 34 ) * col0 FROM tab0 AS cor0
----
1287
3117
902
query I rowsort
SELECT ALL - col0 + + 24 * - col0 AS col2 FROM tab0 AS cor0
----
-2225
-600
-875
query I rowsort
SELECT ALL col2 * - col2 + col2 + col1 FROM tab2 AS cor0
----
-1389
-591
-671
query I rowsort
SELECT DISTINCT - col1 * - col2 + 67 - - col2 * 73 AS col2 FROM tab1 AS cor0
----
4798
5413
8323
query I rowsort
SELECT - col1 * ( 18 ) + col0 FROM tab1 cor0
----
-116
-154
-465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT cor0.col1 * CAST( 27 AS SIGNED ) FROM tab2 AS cor0
----
1593
459
837
skipif mysql # not compatible
query I rowsort label-3114
SELECT cor0.col1 * CAST ( 27 AS INTEGER ) FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL 5 AS col1 FROM tab0 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + - col0 col2 FROM tab1 AS cor0
----
-123
-139
-62
query I rowsort
SELECT ALL 85 AS col0 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ALL + 80 * + 75 + + col0 FROM tab1 AS cor0
----
6003
6064
6080
query I rowsort
SELECT DISTINCT + - col1 + - ( + col1 ) * 73 AS col1 FROM tab0 AS cor0
----
-6364
-6734
-7178
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL col2 + - ( - cor0.col2 ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col2 / cor0.col1 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col2 / cor0.col1 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL 96 * 98 FROM tab0 AS cor0
----
9408
9408
9408
query I rowsort
SELECT - cor0.col1 * + 36 FROM tab2 cor0
----
-1116
-2124
-612
query I rowsort
SELECT - - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * + col2 col0 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT tab0.col2 + cor0.col2 * + 52 FROM tab0, tab2 AS cor0
----
9 values hashing to ba0006d784c6c0970c3c478980c7ef3b
query I rowsort
SELECT - - 71 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT - 53 * + col2 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT col2 + - cor0.col0 * - 92 FROM tab2 cor0
----
671
7202
7306
query I rowsort
SELECT col2 * + col0 * - cor0.col2 + col0 * cor0.col2 FROM tab1 AS cor0
----
-204288
-729600
-8586
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT + - col1 DIV cor0.col0 + + 88 + - col0 FROM tab0 cor0
----
-2
51
61
skipif mysql # not compatible
query I rowsort label-3134
SELECT + - col1 / cor0.col0 + + 88 + - col0 FROM tab0 cor0
----
-2
51
61
query I rowsort
SELECT DISTINCT - + col1 * ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + 97 FROM tab2, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT col2 DIV + cor0.col0 - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-3137
SELECT col2 / + cor0.col0 - col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT cor0.col2 + + 76 FROM tab0 AS cor0
----
109
158
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) + col2 + - cor0.col2 * - 11 col1 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - tab2.col2 * ( 10 ) AS col1 FROM tab2
----
-260
-270
-380
query I rowsort
SELECT + + col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col2 * col0 - - col0 * ( col2 + + ( + 51 ) ) FROM tab2 AS cor0
----
357
3978
4029
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT 85 * + col2 - - CAST( col1 * + col0 AS SIGNED ) FROM tab1 cor0
----
4668
5485
9200
skipif mysql # not compatible
query I rowsort label-3144
SELECT 85 * + col2 - - CAST ( col1 * + col0 AS INTEGER ) FROM tab1 cor0
----
4668
5485
9200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT - col2 DIV col0 + + col2 AS col0 FROM tab2 cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-3145
SELECT - col2 / col0 + + col2 AS col0 FROM tab2 cor0
----
24
26
38
query I rowsort
SELECT DISTINCT + ( - tab0.col2 * - col1 ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - - col0 - ( - 18 ) * + col2 * col0 AS col0 FROM tab2 cor0
----
3409
36582
54115
query I rowsort
SELECT + col2 * - 62 + - 38 + col2 * cor0.col2 FROM tab0 AS cor0
----
-99
-995
1602
query I rowsort
SELECT ALL - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL - col2 + + ( - 51 ) + - col2 AS col2 FROM tab2 AS cor0
----
-103
-105
-127
query I rowsort
SELECT - col2 + 28 AS col2 FROM tab0 AS cor0
----
-5
-54
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3152
SELECT DISTINCT - + col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - + col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT col2 DIV - tab0.col2 + - col1 * tab0.col0 + + tab0.col1 FROM tab0
----
-1979
-3299
-8009
skipif mysql # not compatible
query I rowsort label-3153
SELECT col2 / - tab0.col2 + - col1 * tab0.col0 + + tab0.col1 FROM tab0
----
-1979
-3299
-8009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3154
SELECT + ( cor0.col2 ) * CAST( + cor0.col1 AS SIGNED ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d
skipif mysql # not compatible
query I rowsort label-3154
SELECT + ( cor0.col2 ) * CAST ( + cor0.col1 AS INTEGER ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab1
----
55
55
55
query I rowsort
SELECT + 83 * tab1.col2 FROM tab1
----
4482
4731
7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * + 55 col0 FROM tab1 AS cor0
----
-715
-715
-715
query I rowsort
SELECT ALL + + cor0.col1 * - ( - col0 ) + - 38 AS col2 FROM tab1 AS cor0
----
1002
40
602
query I rowsort
SELECT 65 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT ALL tab2.col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL tab2.col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 11 + - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7385
-8270
-9398
onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT DISTINCT - col2 DIV + 33 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT - col2 / + 33 FROM tab2
----
-1
0
query I rowsort
SELECT ALL + 95 FROM tab0, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT 73 DIV + col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3164
SELECT 73 / + col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT - - col2 * ( + col1 * - col2 ) AS col2 FROM tab1 cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT - - ( 57 ) + col0 * ( col2 ) DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
137
60
skipif mysql # not compatible
query I rowsort label-3166
SELECT - - ( 57 ) + col0 * ( col2 ) / + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
137
60
query I rowsort
SELECT + ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3168
SELECT + CAST( col0 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-3168
SELECT + CAST ( col0 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT ALL + CAST( col1 AS SIGNED ) DIV + col1 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + CAST ( col1 AS INTEGER ) / + col1 AS col0 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT DISTINCT + + ( col1 ) + col0 DIV ( col2 ) FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT + + ( col1 ) + col0 / ( col2 ) FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT ALL - + col0 * - col1 + - col1 * 3 AS col2 FROM tab1 AS cor0
----
0
1001
610
query I rowsort
SELECT DISTINCT col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3173
SELECT - CAST( ( col1 ) * col2 AS SIGNED ) + col0 AS col1 FROM tab2
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-3173
SELECT - CAST ( ( col1 ) * col2 AS INTEGER ) + col0 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT - col2 * - 73 + - col0 AS col2 FROM tab2
----
1820
1964
2695
query I rowsort
SELECT DISTINCT - ( col1 * tab2.col0 + - col0 * + 39 ) FROM tab2
----
-1560
1738
56
query I rowsort
SELECT 35 + - 29 FROM tab2
----
6
6
6
query I rowsort
SELECT + ( - col0 ) - + col2 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - col2 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + + 95 + col0 AS col2 FROM tab2 AS cor0
----
102
173
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT ALL - cor0.col1 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - cor0.col1 + col1 / col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ALL + col0 + + cor0.col1 * col0 AS col1 FROM tab0 cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * - col1 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - + col0 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT + 92 * + col2 * col0 AS col2 FROM tab0 cor0
----
3220
671416
72864
query I rowsort
SELECT ALL cor0.col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col2 + ( - col0 ) * col0 - col2 FROM tab1
----
-117
-4210
-6592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + col2 * col0 + tab0.col2 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT + cor0.col0 DIV 15 + 83 FROM tab0 AS cor0
----
84
85
88
skipif mysql # not compatible
query I rowsort label-3189
SELECT + cor0.col0 / 15 + 83 FROM tab0 AS cor0
----
84
85
88
query I rowsort
SELECT + col1 * - 60 + 23 AS col2 FROM tab2 cor0
----
-1837
-3517
-997
query I rowsort
SELECT DISTINCT + + 26 FROM tab1 AS cor0
----
26
query I rowsort
SELECT ALL + + col0 * + col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - 35 * - 3 + col2 FROM tab0 AS cor0
----
106
138
187
query I rowsort
SELECT ( 55 ) FROM tab1 AS cor0
----
55
55
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3195
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - 31 + - col1 FROM tab0 AS cor0
----
-117
-122
-128
onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT DISTINCT - ( + col1 ) + - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - ( + col1 ) + - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-87
-91
-97
query I rowsort
SELECT ALL + ( ( col0 ) ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ( 33 ) + - col0 AS col1 FROM tab0 AS cor0
----
-2
-56
9
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col1 - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + col1 * + col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT cor0.col2 * ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 * + 67 AS col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT DISTINCT + col2 * 15 FROM tab2 cor0
----
390
405
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col0 * + col1 col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT + - col1 * 25 * - col1 AS col1 FROM tab1 AS cor0
----
16900
2500
4225
query I rowsort
SELECT DISTINCT + col2 + - col1 - cor0.col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - tab1.col1 + 76 FROM tab1, tab2 AS cor0
----
50
63
66
query I rowsort
SELECT ALL - 67 * - col1 AS col0 FROM tab0
----
5762
6097
6499
query I rowsort
SELECT ALL - - col0 * + 99 FROM tab2 cor0
----
693
7722
7821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT + col0 + - ( 9 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
6
78
79
skipif mysql # not compatible
query I rowsort label-3213
SELECT + col0 + - ( 9 ) / + col0 AS col1 FROM tab2 AS cor0
----
6
78
79
query I rowsort
SELECT DISTINCT - 8 + tab2.col1 * + col0 + 60 * - ( + col0 + + col2 * tab2.col1 ) FROM tab2
----
-42165
-50431
-92126
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + cor0.col1 + col2 * + cor0.col1 FROM tab0 cor0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT + ( + col2 ) + tab1.col0 * - CAST( 69 AS SIGNED ) + col0 FROM tab1
----
-150
-4295
-5344
skipif mysql # not compatible
query I rowsort label-3217
SELECT + ( + col2 ) + tab1.col0 * - CAST ( 69 AS INTEGER ) + col0 FROM tab1
----
-150
-4295
-5344
onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT - col2 DIV - 82 + + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3218
SELECT - col2 / - 82 + + col1 FROM tab2 AS cor0
----
17
31
59
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 62 + tab0.col2 AS col1 FROM tab0
----
144
63
95
query I rowsort
SELECT - 86 * - col2 + - ( - 19 ) * tab1.col0 * - col1 FROM tab1
----
-11504
-7258
3162
query I rowsort
SELECT DISTINCT - 42 * + cor0.col2 + + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
1452
4018
55
query I rowsort
SELECT col0 + - col1 * + col2 * + col1 AS col1 FROM tab1 cor0
----
-16144
-36501
-5636
query I rowsort
SELECT ALL + + 10 * cor0.col1 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 46 + + col0 * ( 40 ) FROM tab1 AS cor0
----
166
2606
3246
query I rowsort
SELECT + 36 * tab0.col2 * - 84 FROM tab0
----
-247968
-3024
-99792
query I rowsort
SELECT + 44 + + col2 AS col0 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT ALL 19 + col1 AS col1 FROM tab1 AS cor0
----
29
32
45
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL 45 + col1 * col1 FROM tab0 AS cor0
----
7441
8326
9454
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT - col1 * col0 + CAST( col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
-1272
-3360
-801
skipif mysql # not compatible
query I rowsort label-3233
SELECT - col1 * col0 + CAST ( col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT ALL - + cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + col0 * + 79 AS col1 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT + 30 DIV - tab1.col2 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3236
SELECT + 30 / - tab1.col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT + col1 - 12 * col0 FROM tab0 AS cor0
----
-202
-323
-977
onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT DISTINCT - col1 + col1 DIV col0 col2 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - col1 + col1 / col0 col2 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT ALL + col1 * + col0 - col2 FROM tab1 cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3241
SELECT DISTINCT CAST( - col2 AS SIGNED ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL cor1.col1 + + cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 30d7054d1d16cc0cd2af7741ad06735e
query I rowsort
SELECT ALL - ( 44 ) FROM tab0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT + 60 DIV col0 AS col2 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3244
SELECT + 60 / col0 AS col2 FROM tab2
----
0
0
8
query I rowsort
SELECT ALL - ( + ( + cor0.col2 ) ) + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - ( 90 ) - + col1 * - cor0.col2 FROM tab2 AS cor0
----
1444
556
747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + col2 * col1 + + col2 AS col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ( col0 ) + + col1 * 73 FROM tab1 AS cor0
----
1029
1901
794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT - 71 - col2 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3250
SELECT - 71 - col2 / - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( + cor0.col0 ) * + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + - 30 AS col1 FROM tab1 cor0
----
-30
-30
-30
query I rowsort
SELECT col1 * cor0.col2 + 79 * - cor0.col1 * cor0.col1 FROM tab2 cor0
----
-22185
-273465
-75082
query I rowsort
SELECT + 75 * col0 AS col1 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT + - col2 + - col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + 26 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
123
2223
944
query I rowsort
SELECT ALL col1 * + col2 + col0 * col2 AS col2 FROM tab2
----
1026
3562
3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 50 col2 FROM tab1
----
60
63
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT col1 DIV + col1 + col0 * - col0 AS col0 FROM tab2
----
-48
-6083
-6240
skipif mysql # not compatible
query I rowsort label-3259
SELECT col1 / + col1 + col0 * - col0 AS col0 FROM tab2
----
-48
-6083
-6240
query I rowsort
SELECT ALL - 32 * + col1 FROM tab2 AS cor0
----
-1888
-544
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT col2 * col1 DIV + col0 AS col0 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-3261
SELECT col2 * col1 / + col0 AS col0 FROM tab2
----
119
19
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT - col0 + + col0 DIV + 25 FROM tab2
----
-7
-75
-76
skipif mysql # not compatible
query I rowsort label-3262
SELECT - col0 + + col0 / + 25 FROM tab2
----
-7
-75
-76
query I rowsort
SELECT DISTINCT 30 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
30
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + - col0 * 9 FROM tab1 AS cor0
----
2673
2889
8496
query I rowsort
SELECT - 6 - 78 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab0, tab0 AS cor0
----
75
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
25
query I rowsort
SELECT DISTINCT + + col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + + 85 + - 57 AS col2 FROM tab0 AS cor0
----
28
query I rowsort
SELECT ALL ( col1 ) + - cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - 64 * col1 - col0 FROM tab0 AS cor0
----
-5528
-5913
-6243
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - col1 + col1 col0 FROM tab2 cor0
----
-1395
-2655
-765
query I rowsort
SELECT DISTINCT + 95 * 0 * - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab0 cor0
----
84
84
84
query I rowsort
SELECT - col1 * - ( - 24 ) FROM tab0
----
-2064
-2184
-2328
query I rowsort
SELECT 68 + 50 AS col2 FROM tab0 AS cor0
----
118
118
118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3278
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * + ( col2 ) * + col0 col0 FROM tab2 cor0
----
-5670
-60840
-90060
query I rowsort
SELECT - col0 * 78 AS col2 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT + col2 * 24 + cor0.col1 * ( + 28 ) AS col0 FROM tab2 AS cor0
----
1388
1516
2276
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3282
SELECT + CAST( NULL AS SIGNED ) * col2 * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3282
SELECT + CAST ( NULL AS INTEGER ) * col2 * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2 AS cor0
----
53
query I rowsort
SELECT DISTINCT + col0 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL tab0.col2 + col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + + col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT DISTINCT + CAST( cor0.col0 AS SIGNED ) * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + CAST ( cor0.col0 AS INTEGER ) * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - ( - 62 ) + - col2 * col1 * 96 AS col0 FROM tab2 AS cor0
----
-147202
-61954
-80290
query I rowsort
SELECT ALL - + col0 + col2 * - 62 FROM tab1 cor0
----
-3351
-3598
-6032
query I rowsort
SELECT 52 AS col2 FROM tab0 cor0
----
52
52
52
query I rowsort
SELECT DISTINCT tab2.col1 * 11 AS col0 FROM tab2
----
187
341
649
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - col1 * - 20 FROM tab2 cor0
----
1180
340
620
query I rowsort
SELECT + col1 + + 75 FROM tab2
----
106
134
92
query I rowsort
SELECT ALL ( + col1 ) * + col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col2 * tab2.col1 * - col2 AS col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col2 + ( - col0 ) - - cor0.col2 AS col1 FROM tab1 AS cor0
----
105
112
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT ALL cor0.col2 + 7 * col2 DIV col1 + col0 * 54 AS col1 FROM tab1 AS cor0
----
230
3552
4467
skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL cor0.col2 + 7 * col2 / col1 + col0 * 54 AS col1 FROM tab1 AS cor0
----
230
3552
4467
onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT DISTINCT + col1 * ( - 39 ) + + col1 DIV + col2 FROM tab0 AS cor0
----
-3352
-3548
-3686
skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT + col1 * ( - 39 ) + + col1 / + col2 FROM tab0 AS cor0
----
-3352
-3548
-3686
query I rowsort
SELECT + - col1 + - 39 AS col0 FROM tab1 AS cor0
----
-49
-52
-65
query I rowsort
SELECT ALL + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( + tab0.col2 ) - ( col0 ) AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col1 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT col1 + col2 - + 44 AS col1 FROM tab2
----
11
14
41
query I rowsort
SELECT + col2 * + col0 + col2 + col2 * - col0 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - col0 * col0 * + 58 FROM tab1
----
-237568
-371200
-522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3307
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3307
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 * 41 * + col1 AS col2 FROM tab2
----
188682
55063
8897
query I rowsort
SELECT - col1 + - ( + 85 ) * - col2 FROM tab2 AS cor0
----
2151
2264
3213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 90 col2 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT col0 + - col1 * 49 AS col1 FROM tab2 cor0
----
-1512
-2813
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT ALL cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL cor0.col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - + col1 + 71 FROM tab2 AS cor0
----
12
40
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT ALL - cor0.col1 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - cor0.col1 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + cor0.col0 * - 37 + - col1 AS col2 FROM tab2 cor0
----
-290
-2940
-2945
onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT DISTINCT cor0.col0 + 35 DIV + col1 AS col0 FROM tab1 AS cor0
----
4
67
82
skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT cor0.col0 + 35 / + col1 AS col0 FROM tab1 AS cor0
----
4
67
82
query I rowsort
SELECT ALL - col1 + 20 FROM tab2 AS cor0
----
-11
-39
3
query I rowsort
SELECT - cor0.col1 * - col2 + - col2 * - col0 * + ( col2 ) + col0 AS col1 FROM tab0 cor0
----
167
28998
605987
query I rowsort
SELECT DISTINCT + - col0 + col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + + 23 * cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
168
1872
1896
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 18 - col1 FROM tab1 AS cor0
----
-8
5
8
query I rowsort
SELECT - 23 + col1 * col0 AS col0 FROM tab1 cor0
----
1017
55
617
query I rowsort
SELECT ALL - ( col1 ) + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + col1 * - col0 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + col2 * + col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT DISTINCT + col0 + 96 + + col1 AS col0 FROM tab1 AS cor0
----
125
170
189
query I rowsort
SELECT DISTINCT col2 * + col0 + 51 * col0 AS col2 FROM tab1 AS cor0
----
11760
315
6912
query I rowsort
SELECT ALL ( + tab2.col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col2 - col1 * col1 * - col2 FROM tab0
----
244101
679124
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT col0 DIV - col1 + col1 * - col1 FROM tab0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-3331
SELECT col0 / - col1 + col1 * - col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT DISTINCT + col0 * col0 DIV - col1 FROM tab2
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + col0 * col0 / - col1 FROM tab2
----
-1
-103
-367
onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT + col0 DIV + col1 AS col2 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3333
SELECT + col0 / + col1 AS col2 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL col2 - + col0 * + col0 AS col2 FROM tab2
----
-22
-6058
-6203
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - col2 / + col0 NOT IN ( - tab2.col2 * col0 )
----
query I rowsort
SELECT + tab2.col0 + + col0 AS col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT ALL col1 DIV tab0.col2 + + col0 * + col2 + col1 FROM tab0
----
229
7390
880
skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL col1 / tab0.col2 + + col0 * + col2 + col1 FROM tab0
----
229
7390
880
query I rowsort
SELECT col0 + - col2 * col1 + col1 AS col2 FROM tab1
----
-1155
-1375
-496
query I rowsort
SELECT + col0 * tab0.col0 * + col1 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-3340
SELECT DISTINCT col0 DIV col0 - - col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT col0 / col0 - - col2 FROM tab0
----
2
34
83
query I rowsort
SELECT col0 * col1 * col1 - + col2 FROM tab0
----
177471
329314
736927
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col1 NOT BETWEEN + col2 AND ( + col1 )
----
query I rowsort
SELECT col0 * - col2 * col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 * - col0 * + col2 + - tab2.col1 AS col2 FROM tab2
----
-114093
-5134
-52787
query I rowsort
SELECT ALL - tab0.col2 + - col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT + - ( + cor0.col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 - - col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - - 11 - col0 FROM tab2 AS cor0
----
-67
-68
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * col0 - col0 col1 FROM tab0 cor0
----
-177528
-329350
-737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT - col2 + col2 + col2 DIV + 48 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3350
SELECT - col2 + col2 + col2 / + 48 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - 61 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3351
SELECT - 61 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 87 * + 15 + col2 FROM tab1
----
-1209
-1248
-1251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * col2 * - col2 col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-17
-31
-59
query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT 43 DIV + col1 - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3357
SELECT 43 / + col1 - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT + col1 DIV 96 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3358
SELECT + col1 / 96 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 17 * col2 AS col1 FROM tab0 AS cor0
----
1394
17
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT ALL + col2 DIV - col1 + col0 AS col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + col2 / - col1 + col0 AS col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT DISTINCT - col0 * + ( + 26 ) AS col0 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT DISTINCT - + 21 * col2 AS col0 FROM tab1 AS cor0
----
-1134
-1197
-2016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 75 ) + - cor0.col2 * + ( + col1 ) col1 FROM tab1 AS cor0
----
-1323
-1479
-645
query I rowsort
SELECT - 65 - cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fcc949c6cf7b54035d666c9c0aaf7271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3365
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 61 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 61 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT col1 DIV + col2 + - 22 AS col2 FROM tab0 AS cor0
----
-20
-21
75
skipif mysql # not compatible
query I rowsort label-3366
SELECT col1 / + col2 + - 22 AS col2 FROM tab0 AS cor0
----
-20
-21
75
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
65
query I rowsort
SELECT DISTINCT tab2.col1 + col0 * col2 + + 68 FROM tab2
----
2155
288
3087
onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT ALL col1 DIV tab2.col1 col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL col1 / tab2.col1 col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL + col2 * 91 FROM tab1 AS cor0
----
4914
5187
8736
onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT - + col1 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3371
SELECT - + col1 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * + ( + 40 ) AS col2 FROM tab2 cor0
----
280
3120
3160
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + 15 + tab0.col2 FROM tab0
----
16
48
97
query I rowsort
SELECT tab0.col1 * 85 FROM tab0
----
7310
7735
8245
onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT col0 DIV - 89 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3376
SELECT col0 / - 89 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL + cor0.col0 + + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 12dab34e8226f2bb1644c238b20d2aa7
query I rowsort
SELECT + 23 - + col2 * - col1 FROM tab1 AS cor0
----
1271
1427
593
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2 WHERE NOT NULL IN ( - cor0.col1 )
----
query I rowsort
SELECT + col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 87 * + col0 - - col2 * col1 FROM tab0 AS cor0
----
15205
3142
4926
query I rowsort
SELECT + + 8 + + col2 + - 1 AS col2 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT - 53 + - col2 FROM tab2 AS cor0
----
-79
-80
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3384
SELECT - col1 / - col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 29 + col1 AS col0 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT - 7 * col2 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT 43 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT col0 + col1 + 71 AS col0 FROM tab2 AS cor0
----
109
167
208
query I rowsort
SELECT DISTINCT 49 * cor0.col0 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab1 AS cor0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT ALL - col1 + col1 DIV - ( - col1 ) FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - col1 + col1 / - ( - col1 ) FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT + col1 * + col0 + ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT DISTINCT col0 DIV col1 + col2 * + 9 FROM tab2 AS cor0
----
235
243
346
skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT col0 / col1 + col2 * + 9 FROM tab2 AS cor0
----
235
243
346
query I rowsort
SELECT + + 51 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
1588
3087
946
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + 46 * - tab0.col2 AS col2 FROM tab0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT + 13 * col0 AS col2 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT ALL + col0 * - col1 + - col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + col0 - cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + col0 - 7 AS col1 FROM tab2 AS cor0
----
-196
-2035
-3009
query I rowsort
SELECT 62 * col2 + + cor0.col0 FROM tab2 AS cor0
----
1681
1690
2435
query I rowsort
SELECT ALL - col2 * - ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT ALL + col1 + col2 DIV + 98 col1 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + col1 + col2 / + 98 col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT DISTINCT - cor0.col0 + col1 DIV ( + col0 ) + + 14 AS col1 FROM tab1 AS cor0
----
-50
-66
19
skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - cor0.col0 + col1 / ( + col0 ) + + 14 AS col1 FROM tab1 AS cor0
----
-50
-66
19
query I rowsort
SELECT ALL + - col0 + 33 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1785
-1945
-3248
query I rowsort
SELECT cor0.col2 * + col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT - 56 + col1 + 37 * tab0.col2 AS col1 FROM tab0
----
1251
3069
78
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + CAST ( + col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col2 * + col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col1 + 58 * + col2 AS col0 FROM tab2 AS cor0
----
1449
1535
2187
query I rowsort
SELECT DISTINCT + col1 * + 67 + + 97 + + col1 AS col0 FROM tab0 AS cor0
----
5945
6285
6693
query I rowsort
SELECT 46 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT 97 + col2 AS col1 FROM tab1
----
151
154
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT - tab0.col1 * + col0 * tab0.col1 + tab0.col0 * - col1 - 25 FROM tab0
----
-179593
-332735
-745133
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT + 1 * col0 - - tab0.col2 DIV - 29 FROM tab0
----
23
35
87
skipif mysql # not compatible
query I rowsort label-3418
SELECT + 1 * col0 - - tab0.col2 / - 29 FROM tab0
----
23
35
87
query I rowsort
SELECT ALL + 87 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + ( + 47 ) * + cor0.col2 - - 26 AS col2 FROM tab0 AS cor0
----
1577
3880
73
query I rowsort
SELECT ALL + 72 * col2 FROM tab2 AS cor0
----
1872
1944
2736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 + + 2 FROM tab2 AS cor0
----
-287
-3479
-959
skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 + + 2 FROM tab2 AS cor0
----
-287
-3479
-959
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 84 AS REAL ) AS col0 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT DISTINCT col2 + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + + ( + 71 ) FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT - - ( + col2 ) + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 47 AS col0 FROM tab1 AS cor0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 51 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL col0 DIV - col1 - + col2 AS col0 FROM tab2
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL col0 / - col1 - + col2 AS col0 FROM tab2
----
-27
-27
-42
query I rowsort
SELECT - 97 - - col1 FROM tab2
----
-38
-66
-80
query I rowsort
SELECT - - 84 * col0 * col1 FROM tab2 AS cor0
----
112812
18228
386568
query I rowsort
SELECT DISTINCT + tab1.col0 + tab1.col0 FROM tab1
----
128
160
6
query I rowsort
SELECT 17 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT + + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3437
SELECT + + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - ( + ( + cor0.col2 ) ) * ( col2 ) FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-74
query I rowsort
SELECT ALL col2 + ( 96 ) + col1 * col2 FROM tab2
----
1656
780
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT ALL 72 + - tab0.col0 DIV 83 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4f6269f64ea65c1e33dd5d50b7a2c286
skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 72 + - tab0.col0 / 83 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4f6269f64ea65c1e33dd5d50b7a2c286
query I rowsort
SELECT ALL - + ( 30 ) + + col2 FROM tab2 AS cor0
----
-3
-4
8
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT + - CAST( 83 AS SIGNED ) DIV + col2 + - 3 FROM tab1 AS cor0
----
-3
-4
-4
skipif mysql # not compatible
query I rowsort label-3444
SELECT + - CAST ( 83 AS INTEGER ) / + col2 + - 3 FROM tab1 AS cor0
----
-3
-4
-4
query I rowsort
SELECT DISTINCT 70 * col0 AS col2 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT - ( 55 ) + col0 * ( - col2 * cor0.col0 ) FROM tab2 AS cor0
----
-1378
-158239
-237213
onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT DISTINCT 50 DIV 43 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 50 / 43 AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT 38 * col1 + col0 AS col0 FROM tab1 AS cor0
----
444
574
991
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3449
SELECT + col1 + + 36 * cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3449
SELECT + col1 + + 36 * cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 14 + - col1 AS col0 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT + - col0 * + 95 + col1 FROM tab0 AS cor0
----
-2194
-3228
-8364
query I rowsort
SELECT DISTINCT + - 1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL col1 * - ( + cor0.col2 ) + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - col2 + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT - 86 DIV col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-3455
SELECT - 86 / col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL cor0.col0 * - col0 * - ( + 38 + + col1 ) FROM tab1 AS cor0
----
196608
326400
576
query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38
query I rowsort
SELECT ALL + col0 + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col0 * col1 - 21 AS col0 FROM tab1 AS cor0
----
1019
57
619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 - col1 col1 FROM tab0 AS cor0
----
-105
-110
-116
onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT ALL - col1 DIV + col0 - + 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-67
skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - col1 / + col0 - + 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3465
SELECT ALL - - col1 + cor0.col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - - col1 + cor0.col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 col0 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT col1 * col0 - + col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 + 79 * col2 col0 FROM tab2 AS cor0
----
2021
2129
3023
query I rowsort
SELECT DISTINCT + col1 * ( col1 * + cor0.col2 ) + + 25 * cor0.col0 - - col0 FROM tab0 AS cor0
----
10319
244692
681356
query I rowsort
SELECT - col2 * - 67 FROM tab1 AS cor0
----
3618
3819
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + 49 * + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to 588b65115dddc2ce0d0b2e130b52c3a9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT 8 + - col2 DIV - col1 AS col0 FROM tab0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-3478
SELECT 8 + - col2 / - col1 AS col0 FROM tab0
----
8
8
8
query I rowsort
SELECT 55 * 40 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b87eae3d28c66a1428bcb1352ff4f5b3
query I rowsort
SELECT ALL - 88 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab2 AS cor0
----
52
query I rowsort
SELECT - + col1 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 * - 75 col0 FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT 57 + 98 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
120
131
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col1 * + col2 + - 23 col2 FROM tab1 AS cor0
----
119785
32467
75793
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT ALL CAST( + 86 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
4644
4902
8256
skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CAST ( + 86 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT col1 * + 9 AS col2 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT - col0 * col2 - - col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ( col0 ) * col0 + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT col1 * 24 * col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
194458
49569
81481
onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT DISTINCT - 6 DIV + 31 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT - 6 / + 31 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + col0 + + col0 + col1 AS col2 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT - cor0.col0 * col1 DIV cor0.col0 + col1 * 52 * col0 FROM tab0 AS cor0
----
107242
176443
421057
skipif mysql # not compatible
query I rowsort label-3493
SELECT - cor0.col0 * col1 / cor0.col0 + col1 * 52 * col0 FROM tab0 AS cor0
----
107242
176443
421057
query I rowsort
SELECT DISTINCT col0 + - col0 + col1 * 84 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT DISTINCT + + 66 AS col0 FROM tab1 AS cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT ALL - cor1.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - cor1.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL 15 * + tab1.col2 * col1 + 58 * + col2 DIV col2 AS col2 FROM tab1
----
18778
21118
8608
skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 15 * + tab1.col2 * col1 + 58 * + col2 / col2 AS col2 FROM tab1
----
18778
21118
8608
query I rowsort
SELECT + 96 + 82 * col1 + ( - col1 ) * col2 AS col2 FROM tab0
----
4310
7953
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT ALL col2 + + col0 DIV - 12 FROM tab1 cor0
----
52
54
90
skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL col2 + + col0 / - 12 FROM tab1 cor0
----
52
54
90
query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
75
query I rowsort
SELECT ALL cor0.col1 + + 26 * col2 FROM tab0 cor0
----
123
2223
944
query I rowsort
SELECT DISTINCT + - col2 + - 14 AS col2 FROM tab2 AS cor0
----
-40
-41
-52
query I rowsort
SELECT DISTINCT - 60 * - cor0.col0 AS col0 FROM tab1, tab0 cor0
----
1440
2100
5340
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col2 FROM tab1
----
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT col0 DIV - col2 - - col2 AS col1 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT col0 / - col2 - - col2 AS col1 FROM tab1
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - ( - col2 ) col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 * 33 AS col2 FROM tab1
----
1782
1881
3168
query I rowsort
SELECT DISTINCT - col0 * col2 - + col0 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT DISTINCT + col1 * col0 DIV col0 - col0 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + col1 * col0 / col0 - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL + col1 * + 0 * col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT ( - tab1.col2 ) + cor0.col1 FROM tab1, tab1 cor0
----
-28
-31
-41
-44
-47
-70
-83
-86
query I rowsort
SELECT - col2 + - ( cor0.col1 ) + - cor0.col1 FROM tab2 AS cor0
----
-144
-72
-89
query I rowsort
SELECT + - col1 * - 97 * + col2 AS col1 FROM tab2 AS cor0
----
148798
62662
81189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT ALL - col1 - CAST( 31 + - col1 AS SIGNED ) * - 97 FROM tab0
----
-5421
-5911
-6499
skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - col1 - CAST ( 31 + - col1 AS INTEGER ) * - 97 FROM tab0
----
-5421
-5911
-6499
query I rowsort
SELECT - + col0 * col2 + + col0 FROM tab0 cor0
----
-7209
-768
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT + col0 + - col1 DIV ( - col0 ) AS col2 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-3520
SELECT + col0 + - col1 / ( - col0 ) AS col2 FROM tab2 AS cor0
----
11
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT DISTINCT + cor0.col1 + col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + cor0.col1 + col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT DISTINCT - - col1 * - ( - col1 ) + - col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - 23 + col1 + col0 AS col2 FROM tab1 AS cor0
----
51
6
70
query I rowsort
SELECT ALL - cor0.col2 + + 18 * col2 * col0 FROM tab2 AS cor0
----
3375
36478
53998
onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT - col2 DIV 42 + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
94
skipif mysql # not compatible
query I rowsort label-3525
SELECT - col2 / 42 + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
94
query I rowsort
SELECT + - 55 * - col0 * + cor0.col1 - 7 FROM tab1 AS cor0
----
35193
4283
57193
onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT DISTINCT + ( col1 ) DIV col2 + 15 DIV tab1.col0 + tab1.col1 FROM tab1
----
10
13
31
skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + ( col1 ) / col2 + 15 / tab1.col0 + tab1.col1 FROM tab1
----
10
13
31
query I rowsort
SELECT ALL - 75 + col0 FROM tab2
----
-68
3
4
query I rowsort
SELECT ALL col2 * - col2 + - col1 AS col2 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT ALL - tab0.col2 + tab0.col1 + - tab0.col0 * + col1 AS col1 FROM tab0
----
-2011
-3299
-8090
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT ALL + CAST( ( - col1 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - col1 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - 89 * cor0.col0 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT + + ( + col0 ) + + col0 + col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT + - ( + col0 ) * + col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT - 58 - ( cor0.col1 ) FROM tab1 cor0
----
-68
-71
-84
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 43 * ( - col1 ) FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + - 54 + + col2 FROM tab0 cor0
----
-21
-53
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL + 4 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + 4 / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * - col2 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT ALL - - 79 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - - 79 / - col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL 88 * - col0 FROM tab2 AS cor0
----
-616
-6864
-6952
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + col2 * 31 + 46 FROM tab1 cor0
----
1720
1813
3022
query I rowsort
SELECT ALL - col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - col1 * - 99 AS col2 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT ALL col0 + 14 * col0 AS col1 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT - + col2 + - col1 * 12 AS col0 FROM tab2 AS cor0
----
-242
-399
-734
query I rowsort
SELECT ALL + col0 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 + 36 * - col2 FROM tab2 AS cor0
----
-1289
-858
-965
query I rowsort
SELECT DISTINCT + col0 + 28 AS col1 FROM tab0 AS cor0
----
117
52
63
query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 AS col2 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + col0 * col0 col1 FROM tab0
----
1138
489
7834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col0 FROM tab1, tab2, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col1 * col1 * 32 FROM tab2 AS cor0
----
111392
30752
9248
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL - - col1 DIV - ( - col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - - col1 / - ( - col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 + - tab2.col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT - col1 + + col1 + + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col0 * - 6 AS col1 FROM tab1, tab1 AS cor0
----
18
384
480
query I rowsort
SELECT + 58 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL - + col0 * col0 + 64 FROM tab1 AS cor0
----
-4032
-6336
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + 64 col1 FROM tab2
----
-1088
-1984
-3776
query I rowsort
SELECT ALL 97 AS col0 FROM tab0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT - 70 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3567
SELECT - 70 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + 20 * col0 AS col2 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT tab2.col2 * 2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT + - 16 * - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-3571
SELECT + - 16 * - col2 / + col2 AS col2 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT ALL ( 23 ) AS col2 FROM tab0
----
23
23
23
query I rowsort
SELECT ALL - col0 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT ALL CAST( 42 AS SIGNED ) AS col2 FROM tab1
----
42
42
42
skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL CAST ( 42 AS INTEGER ) AS col2 FROM tab1
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT + 40 DIV 77 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3575
SELECT + 40 / 77 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT + col2 DIV + 16 + - col1 * + col2 FROM tab0 AS cor0
----
-2836
-7457
-97
skipif mysql # not compatible
query I rowsort label-3576
SELECT + col2 / + 16 + - col1 * + col2 FROM tab0 AS cor0
----
-2836
-7457
-97
query I rowsort
SELECT cor0.col2 * + 24 AS col2 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL + 84 + 38 - + col1 FROM tab0 AS cor0
----
25
31
36
query I rowsort
SELECT DISTINCT - col1 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL 94 * cor0.col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT DISTINCT 44 + col2 AS col2 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT + - col1 + - ( col1 + - col2 ) AS col0 FROM tab2 AS cor0
----
-35
-92
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT ALL cor0.col0 DIV 20 + + tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 976d3a8dbe6280185dd0f24997c847b1
skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL cor0.col0 / 20 + + tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 976d3a8dbe6280185dd0f24997c847b1
query I rowsort
SELECT ALL - 77 + + col0 FROM tab2
----
-70
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col2 col0 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + - 52 FROM tab2 AS cor0
----
-52
query I rowsort
SELECT - 38 + col1 AS col0 FROM tab2 AS cor0
----
-21
-7
21
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col2 * - 88 AS col0 FROM tab0
----
2904
7216
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 5 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT CAST ( NULL AS REAL ) * 5 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL - 30 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 30 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
10
query I rowsort
SELECT DISTINCT - col2 * + 69 FROM tab1 AS cor0
----
-3726
-3933
-6624
query I rowsort
SELECT + col1 + 42 * col0 FROM tab1 cor0
----
152
2698
3373
query I rowsort
SELECT col1 * col1 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT + col0 DIV - col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-3595
SELECT + col0 / - col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 * + ( col0 ) + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT col2 - col2 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 18 - col2 FROM tab0
----
-15
-64
17
query I rowsort
SELECT tab2.col2 * + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837
query I rowsort
SELECT ALL + col0 - + col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col2 + col0 + col0 * col0 FROM tab1 AS cor0
----
4217
6576
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT DISTINCT + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + - col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col2 - + cor0.col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 - + col1 col1 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT + col0 + - cor0.col1 * - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + + 1 * - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + 39 * + col1 * - col2 + col1 FROM tab0 AS cor0
----
-110596
-290927
-3686
query I rowsort
SELECT DISTINCT - - col2 - + col0 * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + + cor0.col0 - col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col1 * col1 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3349
-3592
-9385
onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT DISTINCT col2 DIV - cor0.col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT col2 / - cor0.col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + 4 + + col2 * + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
40
7384
829
query I rowsort
SELECT DISTINCT - 93 FROM tab1, tab1 AS cor0
----
-93
query I rowsort
SELECT - - 69 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1030
3550
358
query I rowsort
SELECT + col0 + - 66 * + cor0.col1 FROM tab0 cor0
----
-5652
-5917
-6367
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( - col2 AS REAL ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + - 76 AS col0 FROM tab0 cor0
----
-76
-76
-76
query I rowsort
SELECT ALL col0 * - 80 FROM tab2
----
-560
-6240
-6320
query I rowsort
SELECT ALL - ( + 25 ) AS col2 FROM tab0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 * + ( - col0 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( col1 * - col2 + - col1 * - col0 ) FROM tab2
----
-620
3068
697
query I rowsort
SELECT ALL col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col1 * - tab1.col2 * - col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col0 * + tab0.col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col0 + tab0.col0 + + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( + tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT tab2.col0 * col2 * + col0 + - col0 * col1 DIV + col1 FROM tab2
----
1316
158106
237079
skipif mysql # not compatible
query I rowsort label-3632
SELECT tab2.col0 * col2 * + col0 + - col0 * col1 / + col1 FROM tab2
----
1316
158106
237079
query I rowsort
SELECT DISTINCT tab1.col2 - - tab1.col2 * - col2 FROM tab1
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 * col1 * col0 ) BETWEEN ( NULL ) AND ( col2 )
----
query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT NULL IN ( col2 + + tab2.col0 * tab2.col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + tab0.col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col1 + + col1 )
----
query I rowsort
SELECT cor0.col2 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT - tab0.col2 + + col1 / col2 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN NULL AND ( + col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> col1 + col0
----
query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT col0 + tab1.col2 + col1 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT col2 * + tab0.col2 + col0 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + cor0.col2 * - col1 + - col2 * col1 FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT col0 + col0 + - col1 FROM tab0
----
-27
-38
87
query I rowsort
SELECT ALL col2 + tab2.col2 + - col1 * col1 FROM tab2
----
-213
-3429
-907
query I rowsort
SELECT ALL + col2 + + col1 + col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - col1 * - col1 + col1 * + col2 FROM tab0 AS cor0
----
10234
15743
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - cor0.col0 + - col1 col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 + col0 * - col0 * col2 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT - col2 * col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - tab2.col0 + - col0 AS col1 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + - col0 + cor0.col2 * - col0 * - cor0.col1 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + col1 + + col0 * col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT col2 + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col2 + - col0 + + col1 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL - - col2 * - ( 58 ) FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT + CAST( NULL AS SIGNED ) * 4 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3665
SELECT + CAST ( NULL AS INTEGER ) * 4 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT tab1.col1 + - CAST ( - ( col2 ) AS REAL ) * 0 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 + ( + col0 ) AS col1 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT - col1 * - col2 + ( col1 ) + col2 DIV 61 AS col2 FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-3668
SELECT - col1 * - col2 + ( col1 ) + col2 / 61 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - + col1 + + col1 * - ( col2 ) * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3670
SELECT DISTINCT - + ( + col1 ) DIV 99 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - + ( + col1 ) / 99 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT + + col2 * col2 DIV + ( + col1 ) FROM tab2 AS cor0
----
11
23
84
skipif mysql # not compatible
query I rowsort label-3671
SELECT + + col2 * col2 / + ( + col1 ) FROM tab2 AS cor0
----
11
23
84
query I rowsort
SELECT DISTINCT + col0 + col2 + + col1 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT + tab2.col2 + - ( + col2 ) + + ( - tab2.col2 ) * col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 + col0 * + col0 AS col0 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT ALL + - 51 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
51
skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + - 51 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
51
query I rowsort
SELECT + 51 + + col2 FROM tab1 AS cor0
----
105
108
147
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * + col2 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-24072
-590337
3360
query I rowsort
SELECT - - col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + 72 + col1 AS col0 FROM tab1 cor0
----
82
85
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT col0 DIV - 21 FROM tab2 AS cor0
----
-3
-3
0
skipif mysql # not compatible
query I rowsort label-3681
SELECT col0 / - 21 FROM tab2 AS cor0
----
-3
-3
0
query I rowsort
SELECT - col1 * - ( - col1 ) + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - + col1 + ( col1 ) FROM tab2 cor0
----
0
query I rowsort
SELECT + col2 * col1 * + ( col1 ) AS col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ALL tab1.col0 + col2 * col2 + col1 AS col0 FROM tab1
----
2945
3323
9309
onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT + - col1 DIV 86 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3686
SELECT + - col1 / 86 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + 56 * cor0.col2 * col2 FROM tab2 AS cor0
----
37915
40855
80881
query I rowsort
SELECT + col1 * cor0.col2 + 9 FROM tab2 AS cor0
----
1543
655
846
query I rowsort
SELECT - + col2 * 76 AS col0 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT - - col1 + 16 * + 76 AS col1 FROM tab0 cor0
----
1302
1307
1313
query I rowsort
SELECT 75 * + 41 AS col0 FROM tab1
----
3075
3075
3075
query I rowsort
SELECT ALL - ( - 21 ) + - col2 FROM tab2
----
-17
-5
-6
query I rowsort
SELECT - - ( 48 ) FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT 13 * col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT ALL + - cor0.col1 + + 51 AS col2 FROM tab2 AS cor0
----
-8
20
34
query I rowsort
SELECT DISTINCT - + ( + 23 ) FROM tab1 AS cor0
----
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * col0 col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT - 29 - - col0 FROM tab2 cor0
----
-22
49
50
query I rowsort
SELECT ALL - 58 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT col1 + - 82 FROM tab1
----
-56
-69
-72
query I rowsort
SELECT - col0 + + col2 * col0 - col0 FROM tab1 AS cor0
----
156
3520
7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT + 6 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3702
SELECT + 6 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 97 * + col2 AS col0 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT ALL - + 29 * col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT - - ( col1 ) * - 77 AS col0 FROM tab2 cor0
----
-1309
-2387
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT + col2 DIV cor0.col0 AS col2 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3706
SELECT + col2 / cor0.col0 AS col2 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
32
query I rowsort
SELECT DISTINCT + ( col0 ) * 66 AS col2 FROM tab2 AS cor0
----
462
5148
5214
query I rowsort
SELECT ( cor0.col0 ) + 27 * 21 AS col0 FROM tab1 AS cor0
----
570
631
647
query I rowsort
SELECT DISTINCT + col0 + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - 89 AS col0 FROM tab1 cor0
----
-89
-89
-89
query I rowsort
SELECT - 70 * + col1 FROM tab1 AS cor0
----
-1820
-700
-910
query I rowsort
SELECT + - 92 * col2 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3715
SELECT DISTINCT + col2 * + col2 + - CAST( - col0 AS SIGNED ) + - col0 col0 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + col2 * + col2 + - CAST ( - col0 AS INTEGER ) + - col0 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + cor0.col2 + + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 54 + cor0.col0 FROM tab2 AS cor0
----
132
133
61
query I rowsort
SELECT - 89 * - col1 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT col1 + 19 AS col0 FROM tab2
----
36
50
78
query I rowsort
SELECT col2 * - 54 FROM tab2
----
-1404
-1458
-2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT - - col2 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3721
SELECT - - col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + col0 + col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT col1 * 22 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
2468
3359
9923
query I rowsort
SELECT col1 + - col1 * col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT - col2 * 18 AS col0 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT DISTINCT - + 5 FROM tab2 AS cor0
----
-5
query I rowsort
SELECT + 90 * - col2 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT - cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col1 * + ( cor0.col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 88 + - col1 col0 FROM tab0 AS cor0
----
-3
-9
2
query I rowsort
SELECT ALL col0 * + 43 * ( + tab0.col1 ) AS col2 FROM tab0
----
145985
348257
88752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT CAST( - 67 AS SIGNED ) + + col2 * col2 AS col1 FROM tab0 AS cor0
----
-66
1022
6657
skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( - 67 AS INTEGER ) + + col2 * col2 AS col1 FROM tab0 AS cor0
----
-66
1022
6657
query I rowsort
SELECT ALL - - cor0.col2 * 65 AS col0 FROM tab1 AS cor0
----
3510
3705
6240
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
50
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 AS col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + - col1 * 88 + col1 - ( - 83 ) * col1 FROM tab2 AS cor0
----
-124
-236
-68
query I rowsort
SELECT + - 62 + 28 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 - - col1 FROM tab0 cor0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 27 ) col2 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL ( col2 * tab1.col0 + tab1.col1 * tab1.col2 ) FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT + - col0 * col0 - - col1 * 69 FROM tab0 cor0
----
-1642
5358
5468
query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 53 ) * col1 col1 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT col0 + 2 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT + + 32 + col1 FROM tab2 AS cor0
----
49
63
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 34 * col0 col2 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT - col2 + - 16 AS col1 FROM tab2 cor0
----
-42
-43
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT ALL - CAST( + col1 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - CAST ( + col1 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT ALL 16 DIV - col0 + col0 FROM tab1 AS cor0
----
-2
64
80
skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL 16 / - col0 + col0 FROM tab1 AS cor0
----
-2
64
80
query I rowsort
SELECT - - 77 AS col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT ALL + ( - 37 ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT col1 * - 99 + - col1 * - 77 AS col0 FROM tab2
----
-1298
-374
-682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col2 * col2 col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col0 + ( col0 ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + cor0.col0 * 50 - + 29 FROM tab1 AS cor0
----
121
3171
3971
query I rowsort
SELECT ALL - + col2 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT ALL col1 DIV + col2 - 3 * col2 col0 FROM tab0
----
-245
-97
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL col1 / + col2 - 3 * col2 col0 FROM tab0
----
-245
-97
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL - ( tab0.col2 ) * + col1 - ( col0 ) DIV col2 AS col2 FROM tab0
----
-132
-2838
-7463
skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - ( tab0.col2 ) * + col1 - ( col0 ) / col2 AS col2 FROM tab0
----
-132
-2838
-7463
query I rowsort
SELECT DISTINCT cor0.col0 * - 34 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-238
-2652
-2686
query I rowsort
SELECT ALL col1 + ( 12 * col2 ) FROM tab0
----
1075
109
482
query I rowsort
SELECT ALL col1 * col1 + col0 * col0 AS col1 FROM tab0
----
10634
16202
7972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT ALL col0 - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL col0 - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT 29 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + + ( - 88 ) * + cor0.col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6868d2496905b996da7ba645d8421999
query I rowsort
SELECT + tab1.col0 * ( 68 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 11e7210f9a25842b6563b24e624b5361
query I rowsort
SELECT ALL - - col1 + + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col2 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + 10 * cor0.col2 AS col1 FROM tab1 AS cor0
----
540
570
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT - + 70 DIV - col1 + col1 FROM tab2 AS cor0
----
21
33
60
skipif mysql # not compatible
query I rowsort label-3774
SELECT - + 70 / - col1 + col1 FROM tab2 AS cor0
----
21
33
60
query I rowsort
SELECT ALL + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT cor0.col0 * 67 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT ALL + 54 * + 15 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 3b3ded2f47c4e49be852fd38dcc2e3a3
query I rowsort
SELECT DISTINCT + col1 * - 13 * - col1 AS col0 FROM tab0
----
107653
122317
96148
onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT col2 DIV ( + cor0.col2 * col2 + + col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3781
SELECT col2 / ( + cor0.col2 * col2 + + col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT - + col0 - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT - cor0.col2 - 46 * - col2 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT ALL 53 + col1 FROM tab0 cor0
----
139
144
150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3786
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + + 75 col2 FROM tab1 cor0
----
128
128
128
query I rowsort
SELECT - + col1 * - col2 - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - + ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT + - col2 + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3791
SELECT + - col2 + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + 76 FROM tab2
----
102
103
114
query I rowsort
SELECT + tab0.col0 * 70 AS col2 FROM tab0
----
1680
2450
6230
onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT DISTINCT col1 + col0 + tab1.col1 DIV col0 AS col2 FROM tab1
----
37
74
93
skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT col1 + col0 + tab1.col1 / col0 AS col2 FROM tab1
----
37
74
93
query I rowsort
SELECT ALL + 46 + 83 + tab2.col1 AS col1 FROM tab2
----
146
160
188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT + col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col1 - col2 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT - 4 * col1 - col1 AS col0 FROM tab2
----
-155
-295
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT col2 * - cor0.col2 - - CAST( 11 + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-2879
-3228
-9192
skipif mysql # not compatible
query I rowsort label-3801
SELECT col2 * - cor0.col2 - - CAST ( 11 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-2879
-3228
-9192
query I rowsort
SELECT DISTINCT 9 * tab0.col1 AS col2 FROM tab0
----
774
819
873
query I rowsort
SELECT - + col0 * + col1 + + 71 AS col2 FROM tab2 AS cor0
----
-1272
-146
-4531
query I rowsort
SELECT ALL - + col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT ALL - + col2 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - + col2 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3806
SELECT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + - col1 + - 3 AS col0 FROM tab0 AS cor0
----
-12
-56
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT ALL cor0.col2 DIV - 47 - + 41 FROM tab0 AS cor0
----
-41
-41
-42
skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL cor0.col2 / - 47 - + 41 FROM tab0 AS cor0
----
-41
-41
-42
query I rowsort
SELECT DISTINCT 76 - - tab1.col2 * col0 AS col0 FROM tab1
----
238
3724
7756
query I rowsort
SELECT - 58 * + col2 AS col1 FROM tab2
----
-1508
-1566
-2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ( + col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * - ( col1 ) * + 70 AS col2 FROM tab2 AS cor0
----
-107380
-45220
-58590
query I rowsort
SELECT - + col1 * 10 AS col0 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT cor0.col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 49 * - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8414d49d57afb2d5bb13602da091697b
query I rowsort
SELECT 52 AS col0 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT - - col0 * - 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT DISTINCT - + col2 + - 38 * col1 AS col1 FROM tab0 AS cor0
----
-3301
-3540
-3687
query I rowsort
SELECT + 11 AS col2 FROM tab1
----
11
11
11
query I rowsort
SELECT ALL col1 * - 80 FROM tab2 AS cor0
----
-1360
-2480
-4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * + 86 col1 FROM tab0 AS cor0
----
-177504
-291970
-696514
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 36 col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT DISTINCT + 23 + + col1 FROM tab0
----
109
114
120
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT - col0 * + col1 + + col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT 54 * + col1 FROM tab0
----
4644
4914
5238
query I rowsort
SELECT + ( + col2 ) * col2 - col2 * col0 FROM tab1
----
-399
1536
2754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col0 - ( + col2 ) DIV col0 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-3830
SELECT col0 - ( + col2 ) / col0 FROM tab0
----
23
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT col1 - + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-3831
SELECT col1 - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT - col1 * + 44 * col0 AS col1 FROM tab1 AS cor0
----
-28160
-3432
-45760
query I rowsort
SELECT DISTINCT 51 FROM tab2, tab1 cor0 CROSS JOIN tab0 cor1
----
51
query I rowsort
SELECT DISTINCT 42 * - col1 AS col1 FROM tab2
----
-1302
-2478
-714
query I rowsort
SELECT - ( 92 ) * + col2 AS col0 FROM tab1
----
-4968
-5244
-8832
query I rowsort
SELECT - - ( + col2 ) + col1 * + ( col1 * col0 ) + + ( + col2 + col0 ) FROM tab2 AS cor0
----
22986
271648
6788
query I rowsort
SELECT + col2 * col1 + col1 + 57 AS col2 FROM tab2 AS cor0
----
1650
720
925
query I rowsort
SELECT col0 + col0 + col1 AS col1 FROM tab0
----
134
167
269
query I rowsort
SELECT + 30 + - cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to adaff0fb6e72ffbf3f9f74568cf10cc8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT - col2 * - cor0.col1 + + col0 DIV 82 + - col0 FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-3840
SELECT - col2 * - cor0.col1 + + col0 / 82 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL - 55 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL + 37 + + col1 + - col0 FROM tab0
----
39
99
99
query I rowsort
SELECT ALL - + cor0.col0 * + 77 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1d5e9447b5fe06b87957fc8fb6085eef
onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT ALL - 39 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - 39 / + col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * col1 col0 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT 77 + col0 * cor0.col1 * col0 FROM tab2 AS cor0
----
106174
1596
359033
onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT DISTINCT cor0.col2 DIV + col1 + - ( cor0.col0 ) * + col0 FROM tab1 AS cor0
----
-4091
-6393
-7
skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT cor0.col2 / + col1 + - ( cor0.col0 ) * + col0 FROM tab1 AS cor0
----
-4091
-6393
-7
query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2 AS cor0
----
88
query I rowsort
SELECT DISTINCT - - col2 * col1 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT 59 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
1480
533
671
query I rowsort
SELECT ALL 34 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + col1 + col2 * + 72 FROM tab1 cor0
----
3914
4114
6925
query I rowsort
SELECT - col1 * col2 + - 43 FROM tab1 AS cor0
----
-1291
-1447
-613
query I rowsort
SELECT DISTINCT - + col1 * - col1 + + 55 AS col2 FROM tab1 AS cor0
----
155
224
731
onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT - - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3855
SELECT - - col1 / + cor0.col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 1 + cor0.col0 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT + col1 + - cor0.col2 DIV - col1 AS col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3857
SELECT + col1 + - cor0.col2 / - col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT DISTINCT + - 74 + + col2 DIV - col1 FROM tab2 AS cor0
----
-74
-76
skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + - 74 + + col2 / - col1 FROM tab2 AS cor0
----
-74
-76
query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 + + col0 * 55 FROM tab0 AS cor0
----
1406
2022
4986
query I rowsort
SELECT 81 FROM tab1, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + - col2 + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
query I rowsort
SELECT DISTINCT - col1 * ( + col1 * + col0 ) FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT ALL + col2 + CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL + col2 + CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + - col1 * ( - 67 ) AS col1 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT - col0 DIV - col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3868
SELECT - col0 / - col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT - col0 * - 20 FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT ALL col2 * col1 + - col2 + - ( col1 ) AS col2 FROM tab1
----
1139
1324
503
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 69 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-2097
-258
-3071
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee
query I rowsort
SELECT - 37 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT DISTINCT 53 FROM tab2, tab0 AS cor0
----
53
query I rowsort
SELECT DISTINCT + - 95 * ( - col2 * col0 ) + + 82 AS col0 FROM tab1 AS cor0
----
15472
346642
729682
query I rowsort
SELECT ALL col2 * col2 + + col1 - - col2 * - 92 FROM tab2 AS cor0
----
-1657
-1724
-2035
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL col2 * - col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + 37 * 18 * + col2 FROM tab1 AS cor0
----
35964
37962
63936
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - ( - col2 ) + + col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - tab1.col1 * col1 - + col1 FROM tab1
----
-110
-182
-702
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 92 AS REAL ) - col1 FROM tab1
----
-102
-105
-118
onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT ALL - cor0.col0 DIV col1 + CAST( - 29 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-29
-30
-33
skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - cor0.col0 / col1 + CAST ( - 29 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-29
-30
-33
query I rowsort
SELECT col1 * - col0 + + cor0.col2 * col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT DISTINCT - - col1 * col2 + ( - 86 ) AS col0 FROM tab1 cor0
----
1162
1318
484
query I rowsort
SELECT ALL + col1 * cor0.col0 - ( - 3 ) AS col1 FROM tab1 AS cor0
----
1043
643
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT CAST( + col2 AS SIGNED ) + - col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3889
SELECT CAST ( + col2 AS INTEGER ) + - col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT - 36 * - tab1.col1 - + col2 DIV - col0 FROM tab1
----
360
469
954
skipif mysql # not compatible
query I rowsort label-3890
SELECT - 36 * - tab1.col1 - + col2 / - col0 FROM tab1
----
360
469
954
query I rowsort
SELECT ( col2 ) + + col1 * - col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT + col0 * 97 FROM tab0 AS cor0
----
2328
3395
8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT DISTINCT tab1.col1 * - CAST( - tab1.col2 AS SIGNED ) FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT tab1.col1 * - CAST ( - tab1.col2 AS INTEGER ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col0 * 76 AS col0 FROM tab2
----
-532
-5928
-6004
query I rowsort
SELECT ALL - col0 * - ( col2 ) + + col1 AS col1 FROM tab1
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3896
SELECT ( + 88 + col1 ) * ( - ( tab0.col0 ) * - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3896
SELECT ( + 88 + col1 ) * ( - ( tab0.col0 ) * - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 85 * col1 * col2 FROM tab2
----
-130390
-54910
-71145
query I rowsort
SELECT tab2.col1 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab2
----
0
query I rowsort
SELECT ( - 51 ) FROM tab1 AS cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT + 9 + + 99 DIV + col2 FROM tab1 AS cor0
----
10
10
10
skipif mysql # not compatible
query I rowsort label-3901
SELECT + 9 + + 99 / + col2 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT col1 + col2 - - col0 * + col1 * cor0.col2 FROM tab2 AS cor0
----
119737
51089
5917
query I rowsort
SELECT + col1 * + col2 + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL 71 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL + + 62 FROM tab0 cor0
----
62
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT - col1 * - CAST( - ( + col1 ) AS SIGNED ) - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
skipif mysql # not compatible
query I rowsort label-3906
SELECT - col1 * - CAST ( - ( + col1 ) AS INTEGER ) - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL - + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT + cor0.col1 + + 38 + ( - col2 + col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
124
129
135
skipif mysql # not compatible
query I rowsort label-3908
SELECT + cor0.col1 + + 38 + ( - col2 + col1 ) / col1 AS col0 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT DISTINCT + + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + col2 * + col1 * col2 - cor0.col0 FROM tab0 AS cor0
----
611795
62
93630
query I rowsort
SELECT col0 - col1 * + col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col1 col1 FROM tab0
----
126
131
137
query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 98 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT + col1 - - 58 FROM tab1
----
68
71
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT DISTINCT 77 * + 66 + col2 DIV + 37 + - col2 col2 FROM tab1 cor0
----
4988
5026
5029
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT 77 * + 66 + col2 / + 37 + - col2 col2 FROM tab1 cor0
----
4988
5026
5029
query I rowsort
SELECT DISTINCT + col0 - 82 AS col1 FROM tab0 cor0
----
-47
-58
7
query I rowsort
SELECT - cor0.col2 + 53 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
344
4108
4149
query I rowsort
SELECT + 17 * 61 - + col0 * 45 AS col0 FROM tab0 AS cor0
----
-2968
-43
-538
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT DISTINCT - col1 DIV col0 + - col2 + col1 FROM tab2 AS cor0
----
-21
0
33
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - col1 / col0 + - col2 + col1 FROM tab2 AS cor0
----
-21
0
33
query I rowsort
SELECT ALL + + cor0.col1 - + 97 * + col1 * 27 AS col0 FROM tab0 AS cor0
----
-225148
-238238
-253946
query I rowsort
SELECT ALL + 40 * - 19 * - cor0.col0 FROM tab2 cor0
----
5320
59280
60040
query I rowsort
SELECT + ( 0 ) AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + col1 - 18 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT col1 * - 28 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL col0 * col2 * - tab1.col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT + col0 * col1 + + 4 * col1 AS col2 FROM tab1 AS cor0
----
1092
182
680
query I rowsort
SELECT - 75 * - col2 + + col1 FROM tab2 AS cor0
----
2009
2056
2867
query I rowsort
SELECT + - col2 * col1 + 47 FROM tab2 AS cor0
----
-1487
-599
-790
onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT - col0 DIV col0 + 87 * - col2 FROM tab1 AS cor0
----
-4699
-4960
-8353
skipif mysql # not compatible
query I rowsort label-3930
SELECT - col0 / col0 + 87 * - col2 FROM tab1 AS cor0
----
-4699
-4960
-8353
query I rowsort
SELECT ALL - ( tab0.col0 * + col2 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 17 * + 39 FROM tab1, tab0, tab1 AS cor0
----
663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT + ( col2 ) + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3933
SELECT + ( col2 ) + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 64 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + ( - 25 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT + 78 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL col0 - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col0 + - ( cor0.col0 ) FROM tab1 cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT DISTINCT + col1 + col0 DIV col0 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + col1 + col0 / col0 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT - - col0 * col1 - - cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 * + col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - ( - col1 ) + col1 * tab0.col2 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - - 39 AS col1 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 * + ( cor0.col2 ) - - col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - - ( col1 ) * col2 - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - + 76 * + col1 + - col0 * + col0 FROM tab0 AS cor0
----
-14837
-7112
-8597
query I rowsort
SELECT - + 15 * col1 AS col0 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT ALL col1 * cor0.col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT - cor0.col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + 54 + - col2 FROM tab0
----
-28
21
53
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ( col2 ) * col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 + col1 * col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
243
40969
83209
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT + + col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3956
SELECT + + col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 12 * + col2 AS col1 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT - 69 + - 62 AS col0 FROM tab0
----
-131
-131
-131
query I rowsort
SELECT tab2.col1 * col2 + + col0 AS col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT + 97 * tab0.col1 AS col1 FROM tab0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT - 72 + tab1.col0 DIV tab1.col1 FROM tab1
----
-66
-66
-72
skipif mysql # not compatible
query I rowsort label-3961
SELECT - 72 + tab1.col0 / tab1.col1 FROM tab1
----
-66
-66
-72
query I rowsort
SELECT col1 - + tab0.col1 * tab0.col0 * + col2 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL - col0 - 70 AS col1 FROM tab1 AS cor0
----
-134
-150
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3964
SELECT DISTINCT col2 + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT col2 + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT col2 + col0 * - 29 * + col1 AS col0 FROM tab1 cor0
----
-18503
-2208
-30064
query I rowsort
SELECT DISTINCT + col2 * 88 FROM tab1 AS cor0
----
4752
5016
8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT DISTINCT col0 DIV CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT col0 / CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL - cor0.col0 * 16 AS col0 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col2 AS col0 FROM tab0 cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT DISTINCT col0 DIV - 67 + + cor0.col2 FROM tab1 AS cor0
----
54
57
95
skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT col0 / - 67 + + cor0.col2 FROM tab1 AS cor0
----
54
57
95
query I rowsort
SELECT ALL - col2 * - 60 - + col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + + col2 * ( 99 ) AS col1 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT ALL + + col0 + col1 - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799
query I rowsort
SELECT - col1 + 63 * cor0.col0 * - col1 FROM tab1 cor0
----
-40330
-4940
-65533
query I rowsort
SELECT ALL - 87 AS col1 FROM tab1
----
-87
-87
-87
query I rowsort
SELECT col1 * 59 AS col0 FROM tab2
----
1003
1829
3481
query I rowsort
SELECT - col1 * - col2 + 93 + tab2.col0 FROM tab2
----
1705
818
937
query I rowsort
SELECT col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + col1 - ( col2 ) * col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + - col0 + 52 FROM tab2 cor0
----
-26
-27
45
query I rowsort
SELECT ALL tab0.col0 - ( col1 ) * col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + col2 + - col2 * col2 AS col2 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT col1 + col1 DIV col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3984
SELECT col1 + col1 / col2 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3985
SELECT ALL tab1.col0 DIV col2 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL tab1.col0 / col2 AS col1 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT - col1 DIV col2 + - col2 AS col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3986
SELECT - col1 / col2 + - col2 AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - tab2.col0 * - col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT tab2.col0 + col1 * col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - cor0.col2 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT col0 * - col0 DIV + col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-3990
SELECT col0 * - col0 / + col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + cor0.col2 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col0 - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL cor0.col0 * + col1 * col2 AS col2 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT + col0 * + col1 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - - col1 * + cor0.col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL + - cor0.col0 * + col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - 34 + col2 * col2 AS col1 FROM tab0
----
-33
1055
6690
onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT + col2 DIV - col0 + - col1 FROM tab0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-3998
SELECT + col2 / - col0 + - col1 FROM tab0
----
-87
-91
-97
query I rowsort
SELECT - 31 + + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
142
67
88
query I rowsort
SELECT ALL + - 6 + col2 * - col1 AS col0 FROM tab0 cor0
----
-103
-2844
-7468
query I rowsort
SELECT ALL + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT DISTINCT col2 DIV - col0 + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT col2 / - col0 + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL + col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + 34 + - col1 AS col2 FROM tab0 AS cor0
----
-120
-125
-131
query I rowsort
SELECT - 54 * cor0.col2 FROM tab2 AS cor0
----
-1404
-1458
-2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col0 FROM tab1
----
80
query I rowsort
SELECT - ( - col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 * + 92 - col1 FROM tab0 cor0
----
-5
2950
7453
query I rowsort
SELECT - col1 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col1 + 81 AS col0 FROM tab1 cor0
----
107
91
94
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col2 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT + col0 + + col1 * tab2.col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT + col1 + col1 * col1 AS col2 FROM tab2
----
306
3540
992
query I rowsort
SELECT - cor1.col0 * + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 064f0d12f5a54890818030ba889e7e5c
query I rowsort
SELECT ALL - ( - tab0.col0 + col1 ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 3 FROM tab2, tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col1 * col2 + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col1 + 48 AS col0 FROM tab1
----
22
35
38
query I rowsort
SELECT ALL 44 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT ALL - col0 * col0 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + col2 + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col0 col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT 36 + cor1.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3cef073e11b6bd5eb74f7b3e57ea4373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + + 79 * + tab1.col0 col1 FROM tab1
----
234
4992
6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT col1 * CAST( NULL AS SIGNED ) + 95 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4029
SELECT col1 * CAST ( NULL AS INTEGER ) + 95 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col0 - + col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + col1 - 22 FROM tab1
----
-12
-9
4
query I rowsort
SELECT col1 + - ( col0 ) * col0 * col1 - col0 AS col1 FROM tab0 AS cor0
----
-118763
-49474
-720809
query I rowsort
SELECT - 38 * + cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to be73150aa165976539aa4e50495c19cb
query I rowsort
SELECT cor0.col1 + - col1 * col1 FROM tab1 cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( + 17 ) col0 FROM tab1 cor0
----
20
81
97
query I rowsort
SELECT + - col0 - + col0 FROM tab1 cor0
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4037
SELECT + CAST( NULL AS DECIMAL ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4037
SELECT + CAST ( NULL AS REAL ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 13 + - col0 * col1 FROM tab2 AS cor0
----
-1330
-204
-4589
query I rowsort
SELECT + ( + ( - col2 ) ) + + ( - col2 ) FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - col2 * + col0 col2 FROM tab1 AS cor0
----
207936
737280
8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT 95 + col0 AS col2 FROM tab0 AS cor0
----
119
130
184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4043
SELECT + CAST( NULL AS SIGNED ) * + col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4043
SELECT + CAST ( NULL AS INTEGER ) * + col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col2 * - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4045
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4045
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL ( col1 ) + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + + ( col2 ) * cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + - col2 * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL tab1.col1 - + 45 * + tab1.col2 AS col0 FROM tab1
----
-2404
-2555
-4307
query I rowsort
SELECT col2 - ( tab0.col1 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 - - tab1.col2 * col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + 58 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT - + col2 * - col2 * + 10 FROM tab0 cor0
----
10
10890
67240
query I rowsort
SELECT ALL + cor0.col0 + 14 AS col1 FROM tab0 AS cor0
----
103
38
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT + col0 DIV 9 col0 FROM tab2 cor0
----
0
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4057
SELECT + col0 / 9 col0 FROM tab2 cor0
----
0
8
8
query I rowsort
SELECT ALL + - cor0.col2 * + 77 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT 56 FROM tab2, tab2 AS cor0
----
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT DISTINCT - col1 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - col1 / ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + col1 * - col1 + + col1 * - 11 + + col2 FROM tab1 AS cor0
----
-153
-216
-908
query I rowsort
SELECT ALL col0 * + cor0.col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4064
SELECT DISTINCT + - CAST( - 53 AS SIGNED ) + col0 + col0 FROM tab0 AS cor0
----
101
123
231
skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT + - CAST ( - 53 AS INTEGER ) + col0 + col0 FROM tab0 AS cor0
----
101
123
231
query I rowsort
SELECT DISTINCT + - ( + 8 ) * col1 + col1 * + 1 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT - col2 + + 60 FROM tab0 AS cor0
----
-22
27
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4067
SELECT - CAST( + col0 AS SIGNED ) * - col2 - - col2 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-4067
SELECT - CAST ( + col0 AS INTEGER ) * - col2 - - col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + 29 + - col2 FROM tab0 AS cor0
----
-111
-30
-62
query I rowsort
SELECT 84 + + 71 FROM tab1 AS cor0
----
155
155
155
query I rowsort
SELECT ALL + col1 + ( col2 ) AS col0 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT DISTINCT + col0 DIV 30 AS col1 FROM tab1 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + col0 / 30 AS col1 FROM tab1 AS cor0
----
0
2
query I rowsort
SELECT col2 + + 12 FROM tab0 AS cor0
----
13
45
94
query I rowsort
SELECT ALL + - 70 + col0 * col2 AS col1 FROM tab2 AS cor0
----
119
1958
2932
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 72 ) col1 FROM tab0 AS cor0
----
-72
query I rowsort
SELECT + ( + col1 ) + + cor0.col0 + - 94 FROM tab1 cor0
----
-1
-20
-65
query I rowsort
SELECT + + ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + ( - col2 ) + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT - 83 + - col2 * + cor0.col0 - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1343
-1451
-15302
query I rowsort
SELECT ALL col2 * + 36 * - col2 AS col2 FROM tab2 AS cor0
----
-24336
-26244
-51984
query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT ALL - col0 - + col2 DIV col1 AS col0 FROM tab1
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - col0 - + col2 / col1 AS col0 FROM tab1
----
-5
-69
-87
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT col1 - 21 * + col2 FROM tab0
----
-1631
-607
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * + col1 * ( + 73 ) AS col0 FROM tab1 AS cor0
----
102492
41610
91104
skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * + col1 * ( + 73 ) AS col0 FROM tab1 AS cor0
----
102492
41610
91104
query I rowsort
SELECT ALL col0 * 7 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT + 58 * + cor0.col0 + col2 - + 14 * col2 FROM tab1 AS cor0
----
-528
2971
3392
query I rowsort
SELECT ALL + + col1 * - cor0.col0 + ( - col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col2 * - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT ALL - + 81 DIV col1 AS col0 FROM tab1 cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - + 81 / col1 AS col0 FROM tab1 cor0
----
-3
-6
-8
query I rowsort
SELECT DISTINCT 19 * - col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT ALL cor0.col1 DIV - col1 + col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL cor0.col1 / - col1 + col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - 44 * col2 * col0 FROM tab2 AS cor0
----
-132088
-8316
-89232
query I rowsort
SELECT ALL - 29 * col1 * + ( col0 ) + col0 FROM tab2 AS cor0
----
-133380
-38868
-6286
query I rowsort
SELECT + + cor0.col2 + + 96 FROM tab0 AS cor0
----
129
178
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT DISTINCT cor0.col0 DIV col0 + cor0.col0 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT cor0.col0 / col0 + cor0.col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 * col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - col1 + ( cor0.col1 * - col2 ) FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - - col2 + 84 * col0 AS col2 FROM tab2 AS cor0
----
615
6578
6674
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * ( - col2 ) col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL col2 + - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + - cor0.col2 - ( col0 ) * - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col0 * 90 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT DISTINCT tab2.col0 * 33 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to aac77bdfb26ca657308312773e65fc7c
query I rowsort
SELECT DISTINCT + col1 + + col1 + + col2 * col0 FROM tab2 AS cor0
----
2146
251
3036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( + 63 ) col2 FROM tab2 AS cor0
----
-56
15
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4107
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + ( col2 ) + 11 col1 FROM tab0
----
130
179
98
query I rowsort
SELECT - - 96 * - col0 AS col1 FROM tab1 cor0
----
-288
-6144
-7680
query I rowsort
SELECT + 39 + + col2 * ( + col2 + - col0 ) FROM tab2 AS cor0
----
-1313
-1519
579
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4111
SELECT DISTINCT - ( + col1 ) * - col2 + CAST( col1 AS SIGNED ) * col2 + - CAST( NULL AS SIGNED ) * tab2.col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - ( + col1 ) * - col2 + CAST ( col1 AS INTEGER ) * col2 + - CAST ( NULL AS INTEGER ) * tab2.col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ( 99 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT - ( + col1 ) * - ( + col2 + col1 ) FROM tab2
----
1798
5015
935
query I rowsort
SELECT ALL 66 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * + cor0.col2 col0 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT ALL col0 - col0 * + col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT - col0 * + col0 * - col0 + + col2 AS col1 FROM tab1
----
262201
512096
81
query I rowsort
SELECT col2 + col1 * col0 AS col0 FROM tab2
----
1381
244
4628
query III rowsort
SELECT * FROM tab1 WHERE - col0 IN ( + col1 * col1 + + col1 * col2 + tab1.col2 * col0 )
----
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * + col0 FROM tab0
----
1260
1368
15219
query I rowsort
SELECT + col1 + - col2 * - tab0.col2 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT - col0 * col1 + col2 * col1 FROM tab1 WHERE NOT NULL <= col2
----
query I rowsort
SELECT col0 + + col2 + col0 FROM tab1
----
185
256
60
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = ( col0 )
----
query I rowsort
SELECT ALL - tab2.col0 * - col1 AS col2 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT tab0.col1 DIV + col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4127
SELECT tab0.col1 / + col0 col0 FROM tab0
----
1
2
3
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col2 * tab0.col2 )
----
query I rowsort
SELECT DISTINCT + col1 * col0 * - col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + 10 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT - + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 + - col1 * - col0 * col2 AS col0 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT DISTINCT col1 + - col2 AS col0 FROM tab0 WHERE NULL <= + col0
----
query I rowsort
SELECT ALL col2 * + col0 + + col2 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab1.col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + col1 / + col0 FROM tab0 AS cor0 WHERE NOT ( col1 * col1 ) NOT IN ( + col1 )
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT col1 - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4141
SELECT ALL - col2 + col1 DIV col0 FROM tab2
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - col2 + col1 / col0 FROM tab2
----
-23
-26
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT DISTINCT - col2 * col1 DIV + col2 + col2 AS col0 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - col2 * col1 / + col2 + col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL + tab2.col0 * - col2 + + col2 AS col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE ( col0 * col1 ) <> ( NULL )
----
query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 + col2 ) IN ( - col0 * - col2 )
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 * tab1.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col0 * + tab0.col1 * - tab0.col1 col0 FROM tab0 WHERE NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + tab0.col1 + col1 col1 FROM tab0
----
2150
3492
8190
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> col1 * + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col2 * col2 - - col0 * - col1 FROM tab1
----
2609
2838
8176
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( tab0.col1 + - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE - col0 IN ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT DISTINCT col0 DIV + cor0.col1 - - col0 * col1 FROM tab1 AS cor0
----
1046
646
78
skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT col0 / + cor0.col1 - - col0 * col1 FROM tab1 AS cor0
----
1046
646
78
query I rowsort
SELECT DISTINCT - 11 FROM tab2 cor0
----
-11
query I rowsort
SELECT 92 + - col2 AS col2 FROM tab0 AS cor0
----
10
59
91
query I rowsort
SELECT DISTINCT + - 40 * - col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT + 88 * col2 * - col2 AS col0 FROM tab2
----
-127072
-59488
-64152
query I rowsort
SELECT - col2 * + tab2.col2 - - col1 AS col0 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT - 64 * - col1 * col0 - col2 FROM tab2
----
13861
294502
85914
query I rowsort
SELECT ALL 41 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT + ( + 31 ) AS col1 FROM tab0
----
31
query I rowsort
SELECT - col0 * + 64 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT + 54 + ( + col0 ) FROM tab1
----
118
134
57
query I rowsort
SELECT - 20 + - col2 + + col1 AS col1 FROM tab0
----
-11
33
76
query I rowsort
SELECT ALL col1 + + ( col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT + col1 * tab1.col1 * + col2 AS col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT - 74 * col2 * col2 AS col1 FROM tab1
----
-215784
-240426
-681984
query I rowsort
SELECT - tab0.col1 + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 14ba2031bc9d3391a60f7163593933fc
query I rowsort
SELECT ( col2 ) * + 44 + - 8 AS col0 FROM tab2
----
1136
1180
1664
query I rowsort
SELECT col0 - 12 * col2 FROM tab0 AS cor0
----
-372
-895
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT + col1 DIV col1 + - cor0.col1 + - col0 * col2 * 71 FROM tab1 AS cor0
----
-11527
-259017
-545292
skipif mysql # not compatible
query I rowsort label-4173
SELECT + col1 / col1 + - cor0.col1 + - col0 * col2 * 71 FROM tab1 AS cor0
----
-11527
-259017
-545292
query I rowsort
SELECT col1 * ( - 23 ) FROM tab1
----
-230
-299
-598
onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT ALL col0 * ( - col2 ) DIV col2 - + col2 * - col0 FROM tab0
----
0
7209
768
skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL col0 * ( - col2 ) / col2 - + col2 * - col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT + col0 * 65 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT + col0 + ( - 40 ) * + cor0.col0 FROM tab1 AS cor0
----
-117
-2496
-3120
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 + 42 * + col0 + - col0 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT - col1 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + - col1 + - col2 FROM tab0 AS cor0
----
-1
2719
7289
query I rowsort
SELECT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + 98 FROM tab1, tab2, tab0 cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT DISTINCT + 30 + col2 FROM tab0 cor0
----
112
31
63
query I rowsort
SELECT col2 + col1 * - 66 FROM tab2
----
-1084
-2019
-3868
query I rowsort
SELECT - 98 + + col0 FROM tab2 AS cor0
----
-19
-20
-91
query I rowsort
SELECT ALL - - col0 * cor0.col2 + col2 + - col1 * + col0 FROM tab1 AS cor0
----
138
3065
6736
query I rowsort
SELECT col2 + ( 60 ) FROM tab1
----
114
117
156
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 53 col2 FROM tab1
----
-50
11
27
query I rowsort
SELECT ALL + col0 * - col0 + col0 * + col0 + - col0 * - 2 FROM tab1
----
128
160
6
query I rowsort
SELECT col2 - - ( col1 ) * - col0 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - 31 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT ALL + col2 + - col2 DIV - col0 AS col1 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + col2 + - col2 / - col0 AS col1 FROM tab2
----
26
30
38
query I rowsort
SELECT ALL - 63 * - col2 * + col0 AS col1 FROM tab2 AS cor0
----
11907
127764
189126
query I rowsort
SELECT DISTINCT col0 + 46 AS col2 FROM tab2 cor0
----
124
125
53
query I rowsort
SELECT col2 + - cor0.col0 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT - 34 + 33 DIV col0 AS col2 FROM tab2 AS cor0
----
-30
-34
-34
skipif mysql # not compatible
query I rowsort label-4197
SELECT - 34 + 33 / col0 AS col2 FROM tab2 AS cor0
----
-30
-34
-34
query I rowsort
SELECT DISTINCT ( + col0 * tab2.col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT + - ( + col2 ) * - col2 + col1 * + 45 AS col1 FROM tab0 cor0
----
10819
4366
4959
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT ALL - - 89 DIV + 97 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - - 89 / + 97 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + 75 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col2 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - cor0.col2 * ( - col2 + col1 * + col2 ) AS col0 FROM tab0 AS cor0
----
605160
92565
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT + - cor0.col0 DIV + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4207
SELECT + - cor0.col0 / + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + ( col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL 34 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT 21 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1227
-1383
-549
query I rowsort
SELECT 64 + col0 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT + col0 + + 2 AS col1 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT DISTINCT + 89 * - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
-4806
-5073
-8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + + col1 * - cor0.col1 col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - col1 * col1 + 75 FROM tab1 AS cor0
----
-25
-601
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4216
SELECT DISTINCT - cor0.col0 + - col0 DIV cor0.col0 FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT - cor0.col0 + - col0 / cor0.col0 FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT 99 * + col1 AS col1 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT - 10 * - col1 * col2 FROM tab2 AS cor0
----
15340
6460
8370
query I rowsort
SELECT - - col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col1 * col0 AS col1 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + 39 * col1 * col0 col1 FROM tab0 cor0
----
141814
324142
87892
query I rowsort
SELECT DISTINCT + - col0 - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL col0 * col1 + - 93 AS col2 FROM tab0 AS cor0
----
1971
3302
8006
query I rowsort
SELECT col0 * 98 - + col1 AS col0 FROM tab1 AS cor0
----
268
6262
7827
query I rowsort
SELECT ALL + + col2 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - col0 * - ( col0 ) + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT col0 + 1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + col2 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + col1 + - 37 FROM tab0 AS cor0
----
49
54
60
query I rowsort
SELECT ALL 14 * - col0 * col1 - + ( col0 ) FROM tab1
----
-1095
-14640
-9024
query I rowsort
SELECT + + col2 * col2 - + cor0.col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT col2 + cor0.col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT col0 * + col2 + col1 FROM tab0 cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT + col2 + col2 DIV - col2 + col2 FROM tab0
----
1
163
65
skipif mysql # not compatible
query I rowsort label-4235
SELECT + col2 + col2 / - col2 + col2 FROM tab0
----
1
163
65
query I rowsort
SELECT DISTINCT 34 * + col0 AS col0 FROM tab1
----
102
2176
2720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT ALL - - col1 + + col0 DIV col0 - col2 FROM tab2 cor0
----
-20
34
5
skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - - col1 + + col0 / col0 - col2 FROM tab2 cor0
----
-20
34
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4239
SELECT - cor0.col2 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-4239
SELECT - cor0.col2 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * col0 * + col1 col2 FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT ALL - 3 DIV col1 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - 3 / col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col0 + - ( col0 ) FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT - cor0.col2 * - ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4244
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + ( - cor0.col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + - cor0.col2 * col1 * ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + col1 * col0 * + col1 FROM tab1
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 88 * col1 FROM tab1 cor0
----
1144
2288
880
query I rowsort
SELECT - - col2 + + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT ALL - - ( col1 ) * col0 + + ( ( + col0 ) ) DIV ( col0 * col0 ) AS col2 FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - - ( col1 ) * col0 + + ( ( + col0 ) ) / ( col0 * col0 ) AS col2 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT - col2 DIV + 19 + cor0.col2 AS col1 FROM tab2 AS cor0
----
25
26
36
skipif mysql # not compatible
query I rowsort label-4252
SELECT - col2 / + 19 + cor0.col2 AS col1 FROM tab2 AS cor0
----
25
26
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT DISTINCT + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 + + col0 + + col0 * - ( + col1 ) col2 FROM tab2 AS cor0
----
-1273
-219
-4533
query I rowsort
SELECT - 98 * col1 * + 62 FROM tab2 AS cor0
----
-103292
-188356
-358484
query I rowsort
SELECT ALL - 4 + col2 FROM tab2
----
22
23
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT - 70 DIV - col0 - - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
3
3
skipif mysql # not compatible
query I rowsort label-4257
SELECT - 70 / - col0 - - col1 / col1 AS col2 FROM tab0 AS cor0
----
1
3
3
query I rowsort
SELECT - 60 + col0 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT col1 - col0 * + cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + col2 + col0 * + 85 - + col0 FROM tab0 AS cor0
----
2049
2941
7558
query I rowsort
SELECT ALL + col0 * cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT DISTINCT - 62 * + col2 AS col1 FROM tab0 cor0
----
-2046
-5084
-62
query I rowsort
SELECT + cor0.col1 + col1 * + cor0.col0 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL + col1 + cor0.col2 * + 64 FROM tab1 AS cor0
----
3482
3658
6157
query I rowsort
SELECT ALL col0 * + col1 + ( 65 ) * col2 AS col2 FROM tab0 AS cor0
----
13429
3460
4209
query I rowsort
SELECT - + col1 + col2 * + 76 FROM tab1 AS cor0
----
4078
4322
7283
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4268
SELECT ALL + col2 - - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + col2 - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT ALL + - col1 * - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + - col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - ( + col1 ) col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + col0 - col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT DISTINCT - col2 DIV - 56 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - col2 / - 56 AS col0 FROM tab2 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4275
SELECT - col1 DIV 60 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4275
SELECT - col1 / 60 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + + 30 FROM tab2 AS cor0
----
-48
-49
23
query I rowsort
SELECT DISTINCT + col2 - col2 * - col0 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + 57 + col0 FROM tab0 cor0
----
146
81
92
query I rowsort
SELECT - col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL ( - 89 ) FROM tab0
----
-89
-89
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col0 * tab2.col2 * - col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT - 26 * col2 FROM tab0 cor0
----
-2132
-26
-858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT DISTINCT - col0 + - 2 FROM tab0 AS cor0
----
-26
-37
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT DISTINCT + col1 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + col1 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + 82 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT ALL col0 * col1 DIV + col1 AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL col0 * col1 / + col1 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + + col0 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - 95 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT col1 + 30 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT DISTINCT - col1 * + 16 + col2 FROM tab1 AS cor0
----
-103
-112
-362
onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT DISTINCT + cor0.col2 * 39 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-35
-53
skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + cor0.col2 * 39 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-35
-53
query I rowsort
SELECT DISTINCT 26 FROM tab1, tab0 AS cor0
----
26
query I rowsort
SELECT col0 + 69 AS col0 FROM tab2
----
147
148
76
query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 52 col1 FROM tab2
----
78
79
90
query I rowsort
SELECT + col2 + col0 * - col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT - col1 - - col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT ALL ( col0 ) DIV col0 + + ( + col0 ) + ( 75 * col0 ) AS col1 FROM tab1 AS cor0
----
229
4865
6081
skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL ( col0 ) / col0 + + ( + col0 ) + ( 75 * col0 ) AS col1 FROM tab1 AS cor0
----
229
4865
6081
onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT - + ( cor0.col2 ) + + cor0.col1 DIV 23 AS col1 FROM tab0 cor0
----
-30
-79
3
skipif mysql # not compatible
query I rowsort label-4306
SELECT - + ( cor0.col2 ) + + cor0.col1 / 23 AS col1 FROM tab0 cor0
----
-30
-79
3
query I rowsort
SELECT + + col2 + - col1 * 12 + col1 FROM tab2 AS cor0
----
-149
-314
-623
query I rowsort
SELECT DISTINCT - ( + col1 ) - col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT col0 + col0 - col1 AS col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT DISTINCT 71 + - col1 AS col0 FROM tab1
----
45
58
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT 75 DIV 21 AS col1 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-4311
SELECT 75 / 21 AS col1 FROM tab2
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT DISTINCT + 68 DIV 11 + tab1.col2 + col0 * col1 FROM tab1
----
1142
138
703
skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + 68 / 11 + tab1.col2 + col0 * col1 FROM tab1
----
1142
138
703
onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT + tab1.col1 DIV - col0 AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4313
SELECT + tab1.col1 / - col0 AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT col0 + col0 * - ( col2 ) FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + + ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT - 46 * col0 FROM tab1
----
-138
-2944
-3680
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * - col0 + col1 * - col0 FROM tab2 AS cor0
----
-10764
-273
-7663
query I rowsort
SELECT ALL col2 - col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL 28 + col1 AS col0 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT ALL - - 80 + + col1 - col0 AS col0 FROM tab2 cor0
----
104
18
61
query I rowsort
SELECT DISTINCT 1 * - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL cor0.col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + + col1 + + col2 * + 97 FROM tab0 AS cor0
----
194
3287
8045
onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT ALL col2 + col0 DIV - col1 + - 27 AS col2 FROM tab1 AS cor0
----
24
27
63
skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL col2 + col0 / - col1 + - 27 AS col2 FROM tab1 AS cor0
----
24
27
63
query I rowsort
SELECT 97 * col1 * - ( col2 ) FROM tab1
----
-121056
-136188
-55290
query I rowsort
SELECT DISTINCT tab2.col0 + - col2 + + col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT DISTINCT + col0 DIV col0 + + col1 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + col0 / col0 + + col1 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT col0 * col0 * + 35 AS col2 FROM tab2
----
1715
212940
218435
query I rowsort
SELECT - ( - col2 ) * col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 23 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT DISTINCT col2 * col1 + - 34 + 46 * + col1 AS col1 FROM tab0
----
11614
4525
6760
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - 46 + + cor0.col1 + 24 * col1 AS col2 FROM tab1 AS cor0
----
204
279
604
query I rowsort
SELECT 11 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT - - col0 * - col2 * + 59 + col2 FROM tab1 AS cor0
----
-215175
-453024
-9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT + + col1 DIV cor0.col1 + 22 col1 FROM tab2 AS cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4337
SELECT + + col1 / cor0.col1 + 22 col1 FROM tab2 AS cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + - CAST ( col1 AS REAL ) + + col0 col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL + + col0 * + col0 * 87 AS col0 FROM tab2 cor0
----
4263
529308
542967
query I rowsort
SELECT cor0.col0 * ( + col0 ) + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT - cor0.col0 DIV + cor0.col1 + + ( - col1 + + ( + 67 ) ) * - col0 * col1 FROM tab1 cor0
----
-3198
-36486
-56166
skipif mysql # not compatible
query I rowsort label-4341
SELECT - cor0.col0 / + cor0.col1 + + ( - col1 + + ( + 67 ) ) * - col0 * col1 FROM tab1 cor0
----
-3198
-36486
-56166
query I rowsort
SELECT - ( - col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT ALL CAST( - col1 AS SIGNED ) + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL CAST ( - col1 AS INTEGER ) + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + 52 * 93 FROM tab0
----
4836
4836
4836
onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT + + 20 DIV - 68 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4345
SELECT + + 20 / - 68 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 41 AS col1 FROM tab1 AS cor0
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT col0 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4347
SELECT col0 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col0 FROM tab0 AS cor0
----
-50
query I rowsort
SELECT ALL ( 92 ) * col0 + - 77 FROM tab1 AS cor0
----
199
5811
7283
query I rowsort
SELECT DISTINCT 2 * + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 23 * - col1 + - col2 AS col1 FROM tab0 cor0
----
1945
2011
2230
query I rowsort
SELECT ALL - ( 41 ) + col2 AS col0 FROM tab0 AS cor0
----
-40
-8
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4354
SELECT CAST( NULL AS SIGNED ) * ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4354
SELECT CAST ( NULL AS INTEGER ) * ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL col1 * - col1 + + col2 * col1 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT - cor0.col0 + - 91 AS col0 FROM tab0 AS cor0
----
-115
-126
-180
query I rowsort
SELECT DISTINCT + + cor0.col0 - ( col1 ) FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT DISTINCT + 67 DIV 12 AS col1 FROM tab2 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + 67 / 12 AS col1 FROM tab2 AS cor0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4360
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 64 + - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 64 + - col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT col0 DIV 18 AS col1 FROM tab0 AS cor0
----
1
1
4
skipif mysql # not compatible
query I rowsort label-4361
SELECT col0 / 18 AS col1 FROM tab0 AS cor0
----
1
1
4
query I rowsort
SELECT + col1 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT DISTINCT + - col0 + + cor0.col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + - col0 + + cor0.col0 / + cor0.col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT + + cor1.col2 * + 49 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e91f4cfbc386fa43d54f1864f48b48e8
query I rowsort
SELECT 75 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT + + col1 * - 83 + cor0.col2 FROM tab0 AS cor0
----
-7105
-7471
-8050
query I rowsort
SELECT - 57 - col1 AS col0 FROM tab0 cor0
----
-143
-148
-154
query I rowsort
SELECT + + col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col1 + 74 AS col0 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col2 * col1 + - 65 * + tab2.col0 FROM tab2
----
-3536
-4489
382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4372
SELECT - tab0.col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4372
SELECT - tab0.col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 + - 99 AS col0 FROM tab0
----
7297
8182
9310
query I rowsort
SELECT col2 * tab0.col1 * + col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT - + cor0.col0 + 44 FROM tab0 AS cor0
----
-45
20
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT + 44 - + 95 DIV col1 FROM tab2 AS cor0
----
39
41
43
skipif mysql # not compatible
query I rowsort label-4376
SELECT + 44 - + 95 / col1 FROM tab2 AS cor0
----
39
41
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col1 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT - 64 * + col2 FROM tab0
----
-2112
-5248
-64
query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT - col1 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - col2 * + 60 FROM tab2 AS cor0
----
-1560
-1620
-2280
query I rowsort
SELECT - col0 * col2 * - 57 AS col1 FROM tab2 AS cor0
----
10773
115596
171114
onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT col1 DIV + col2 + + 39 * + col1 FROM tab0
----
3356
3550
3880
skipif mysql # not compatible
query I rowsort label-4383
SELECT col1 / + col2 + + 39 * + col1 FROM tab0
----
3356
3550
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 78 col2 FROM tab1 cor0
----
132
135
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4385
SELECT - col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4385
SELECT - col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * cor0.col2 - - col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4387
SELECT CAST( + col0 AS SIGNED ) * col2 + 33 AS col1 FROM tab0
----
68
7331
825
skipif mysql # not compatible
query I rowsort label-4387
SELECT CAST ( + col0 AS INTEGER ) * col2 + 33 AS col1 FROM tab0
----
68
7331
825
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) * col1 - col0 * col0 FROM tab1 cor0
----
-1413
-4666
-7648
query I rowsort
SELECT + cor0.col1 - - 36 FROM tab2 AS cor0
----
53
67
95
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
query I rowsort
SELECT + ( - col1 ) + cor0.col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + ( 18 ) FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - col2 * 28 FROM tab1 AS cor0
----
-1512
-1596
-2688
onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT ALL - - 84 DIV - col1 + cor0.col0 DIV + 33 AS col2 FROM tab1 AS cor0
----
-3
-4
-7
skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - - 84 / - col1 + cor0.col0 / + 33 AS col2 FROM tab1 AS cor0
----
-3
-4
-7
query I rowsort
SELECT DISTINCT + - 43 * + col0 AS col0 FROM tab2 AS cor0
----
-301
-3354
-3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT + ( col1 ) + col2 DIV CAST( - 30 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
25
9
skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + ( col1 ) + col2 / CAST ( - 30 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
25
9
query I rowsort
SELECT ALL 76 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT col1 * + col2 - 12 FROM tab0
----
2826
7450
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col0 FROM tab0 AS cor0
----
49
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL col0 * - col1 * col1 + col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT DISTINCT 65 FROM tab1, tab1 cor0, tab1 cor1
----
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * 64 col1 FROM tab1 AS cor0
----
1664
640
832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4404
SELECT ALL - cor0.col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - cor0.col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * 90 FROM tab2 AS cor0
----
1530
2790
5310
onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT + col2 DIV - 47 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4406
SELECT + col2 / - 47 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT ALL cor0.col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL cor0.col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT 29 * + col1 AS col1 FROM tab2
----
1711
493
899
query I rowsort
SELECT 69 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + - col1 * + col1 + ( - 74 ) * col1 * col2 FROM tab2 AS cor0
----
-116997
-48093
-62899
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + col0 * - col2 + col1 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT ALL - 1 + - col1 * col0 FROM tab0 cor0
----
-2065
-3396
-8100
query I rowsort
SELECT - - col0 * cor0.col1 + + 59 FROM tab2 cor0
----
1402
276
4661
query I rowsort
SELECT ALL 38 + col0 FROM tab2 AS cor0
----
116
117
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT - col0 * col1 DIV + ( + 80 ) FROM tab1 AS cor0
----
-13
-8
0
skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - col0 * col1 / + ( + 80 ) FROM tab1 AS cor0
----
-13
-8
0
query I rowsort
SELECT ALL + col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 * + col2 * cor0.col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4420
SELECT DISTINCT + + cor0.col1 * - CAST( col1 * + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-10982
-25947
-90506
skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT + + cor0.col1 * - CAST ( col1 * + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - + col1 * col0 * 8 FROM tab0 cor0
----
-16512
-27160
-64792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + + col0 * + 77 + tab2.col2 col1 FROM tab2
----
6103
6192
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT CAST( 39 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( 39 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - - col2 + + col1 * 8 FROM tab2 AS cor0
----
174
275
498
query I rowsort
SELECT DISTINCT + + 45 + - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7351
-8236
-9364
query I rowsort
SELECT DISTINCT - 90 * + col0 FROM tab1
----
-270
-5760
-7200
query I rowsort
SELECT ALL + ( 97 ) FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT ALL 48 * 72 + col0 AS col1 FROM tab0 AS cor0
----
3480
3491
3545
onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT ALL col1 DIV - tab2.col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL col1 / - tab2.col1 FROM tab2
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT ALL CAST( col0 AS SIGNED ) * cor0.col2 - 65 * - ( cor0.col0 ) FROM tab0 AS cor0
----
13083
2310
2352
skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL CAST ( col0 AS INTEGER ) * cor0.col2 - 65 * - ( cor0.col0 ) FROM tab0 AS cor0
----
13083
2310
2352
onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT ALL - - 82 + 80 DIV - col0 col1 FROM tab1 AS cor0
----
56
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - - 82 + 80 / - col0 col1 FROM tab1 AS cor0
----
56
81
81
query I rowsort
SELECT ALL cor0.col1 - - 55 FROM tab1 cor0
----
65
68
81
query I rowsort
SELECT - col0 + + col1 + col2 FROM tab1
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT DISTINCT - col1 - + col2 * col0 DIV col1 FROM tab2
----
-193
-37
-93
skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT - col1 - + col2 * col0 / col1 FROM tab2
----
-193
-37
-93
query I rowsort
SELECT ALL + 88 + col0 * ( - col1 ) FROM tab2 AS cor0
----
-1255
-129
-4514
query I rowsort
SELECT DISTINCT + + ( + col2 ) * + ( + 99 ) + col0 FROM tab1 AS cor0
----
5349
5707
9584
query I rowsort
SELECT - col2 * + cor0.col1 + col2 - - col1 FROM tab2 cor0
----
-1449
-591
-779
query I rowsort
SELECT - col0 * tab0.col1 * col2 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - col1 + + 65 AS col0 FROM tab2
----
34
48
6
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col1 * + 69 * - col2 AS col1 FROM tab0
----
-198660
-522340
-6790
query I rowsort
SELECT + cor0.col0 + - col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT 73 + col1 FROM tab2 AS cor0
----
104
132
90
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
-3
-64
-80
query I rowsort
SELECT + + 7 * - col2 AS col1 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT ALL - 15 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT + 27 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT - 47 DIV - col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4448
SELECT - 47 / - col1 FROM tab2
----
0
1
2
query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
99
query I rowsort
SELECT ALL 54 + + col1 * 23 AS col0 FROM tab0
----
2032
2147
2285
query I rowsort
SELECT DISTINCT - - 49 * - col0 + + col1 FROM tab2 AS cor0
----
-312
-3763
-3854
onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT + 88 DIV - col2 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4452
SELECT + 88 / - col2 FROM tab1
----
-1
-1
0
query I rowsort
SELECT + 95 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL tab2.col0 * ( ( col0 ) ) AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - + 61 * col1 AS col1 FROM tab0 cor0
----
-5246
-5551
-5917
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab2, tab0 cor0
----
1
33
82
query I rowsort
SELECT 52 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT 35 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - col2 * - 5 FROM tab0 AS cor0
----
165
410
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT ALL + - ( cor0.col2 ) * col2 + - ( col2 ) DIV cor0.col1 + 87 AS col0 FROM tab1 cor0
----
-2831
-3167
-9136
skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + - ( cor0.col2 ) * col2 + - ( col2 ) / cor0.col1 + 87 AS col0 FROM tab1 cor0
----
-2831
-3167
-9136
query I rowsort
SELECT col2 + - col1 * col1 * + col0 FROM tab0 AS cor0
----
-177471
-329314
-736927
query I rowsort
SELECT + 27 * + col1 AS col1 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT DISTINCT - + col0 * 51 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT - - cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col0 * col1 + + col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL - col0 - + col0 * col0 AS col1 FROM tab1 AS cor0 WHERE + col2 < ( - cor0.col1 )
----
query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT NULL <= - col1
----
query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NULL >= NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * + col0 - + col0 * - col0 AND ( NULL )
----
query I rowsort
SELECT ALL + tab2.col1 * + col1 AS col2 FROM tab2
----
289
3481
961
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + col2 + col1 / - col1 ) > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT tab1.col0 DIV col2 - + col0 * tab1.col0 AS col2 FROM tab1
----
-4095
-6400
-9
skipif mysql # not compatible
query I rowsort label-4473
SELECT tab1.col0 / col2 - + col0 * tab1.col0 AS col2 FROM tab1
----
-4095
-6400
-9
query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + col0 * col0 ) >= NULL
----
query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab2 WHERE NOT - col0 + col1 > NULL
----
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----
query I rowsort
SELECT ALL col1 + col1 * col0 * + col0 AS col1 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT + col2 + col1 * + col0 FROM tab2
----
1381
244
4628
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * col1 > ( NULL )
----
query I rowsort
SELECT + col1 * - col2 + col1 * + tab0.col1 AS col2 FROM tab0
----
4558
819
9312
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT col0 DIV col0 - - col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4482
SELECT col0 / col0 - - col2 FROM tab0
----
2
34
83
query I rowsort
SELECT - + cor0.col2 + + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * - col1 * col1 AS col1 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT + col2 * + col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - + col2 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL col1 * col0 FROM tab0 WHERE NOT ( - col0 * - col0 + + col1 ) IN ( col1 )
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( - col0 * + col1 ) IN ( - col2 )
----
query I rowsort
SELECT + cor0.col2 * ( 65 ) + col0 AS col2 FROM tab1 AS cor0
----
3513
3769
6320
query I rowsort
SELECT ALL - col1 + 66 * + col1 AS col1 FROM tab0 AS cor0
----
5590
5915
6305
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 - - CAST ( col0 + + col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
21
234
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4492
SELECT DISTINCT + col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col1 + + ( 42 ) * - col1 AS col0 FROM tab1 cor0
----
-1118
-430
-559
query I rowsort
SELECT + + cor0.col2 + 90 AS col0 FROM tab0 cor0
----
123
172
91
query I rowsort
SELECT DISTINCT - col2 * - col1 * 80 AS col0 FROM tab2 AS cor0
----
122720
51680
66960
query I rowsort
SELECT DISTINCT - col1 + - 3 * 18 FROM tab0 AS cor0
----
-140
-145
-151
query I rowsort
SELECT DISTINCT + - col2 * - 10 * col2 + col1 * - 15 AS col2 FROM tab1 AS cor0
----
28770
32340
91965
onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT DISTINCT - + col0 DIV col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT - + col0 / col1 FROM tab2 cor0
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 8 + + tab0.col2 AS col2 FROM tab0
----
41
9
90
query I rowsort
SELECT - - 31 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 cor0, tab1 cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4504
SELECT DISTINCT + cor0.col1 * - CAST( + col0 AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + cor0.col1 * - CAST ( + col0 AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT DISTINCT cor0.col1 DIV col0 + - 22 FROM tab1 cor0
----
-14
-22
skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT cor0.col1 / col0 + - 22 FROM tab1 cor0
----
-14
-22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 * ( 32 ) + + col2 AS col0 FROM tab0 AS cor0
----
1121
2930
801
query I rowsort
SELECT + + col2 * + ( - 64 ) FROM tab1 AS cor0
----
-3456
-3648
-6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col1 col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT col2 + - col0 * + col1 - col0 FROM tab1
----
-1024
-27
-647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * col0 col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT - tab2.col1 * col0 DIV tab2.col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4512
SELECT - tab2.col1 * col0 / tab2.col0 FROM tab2
----
-17
-31
-59
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE ( col1 * col1 ) NOT IN ( col1 * - col2 - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT - col0 + - col2 * tab2.col2 AS col1 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT ALL col1 + + col1 + col2 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT ALL - col0 * tab1.col0 * col2 AS col1 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT col0 + + col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL col1 + - tab0.col0 - col0 AS col1 FROM tab0
----
-87
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT col1 * + tab1.col2 DIV col2 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4521
SELECT col1 * + tab1.col2 / col2 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL col1 * + col0 + col0 / - col1 AS col2 FROM tab2 WHERE NULL IN ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT + col1 DIV tab0.col1 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4523
SELECT + col1 / tab0.col1 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 + + col1 + + col2 * - tab1.col0 * + col2 AS col2 FROM tab1
----
-207862
-737187
-8719
query I rowsort
SELECT ALL - col0 * - col1 * col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col0 * + col0 - col2 FROM tab2
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4528
SELECT ALL - CAST( + 62 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - CAST ( + 62 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT + tab1.col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT 86 + col1 FROM tab1
----
112
96
99
query I rowsort
SELECT - col1 * + col0 - + ( + col1 + - col1 ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + 60 + col1 FROM tab0
----
146
151
157
query I rowsort
SELECT ALL 73 * + col1 + + cor0.col0 * - 62 FROM tab2 AS cor0
----
-3657
-529
1829
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab2 AS cor3
----
243 values hashing to 81e3dd730ac65459b3cfedb9321b6b6e
query I rowsort
SELECT ALL + col0 * 51 - - col1 * + col1 AS col0 FROM tab1
----
3364
4249
829
onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT col1 - + col2 DIV col2 AS col0 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-4537
SELECT col1 - + col2 / col2 AS col0 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT ALL col0 * col2 - + 93 FROM tab2
----
1935
2909
96
query I rowsort
SELECT - col1 * 10 AS col2 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT DISTINCT cor1.col0 * 80 FROM tab1, tab1 AS cor0, tab0 cor1
----
1920
2800
7120
query I rowsort
SELECT ALL - + 20 FROM tab1 cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT - col2 + - col0 * + tab1.col1 * - col2 FROM tab1
----
36423
4158
99744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4543
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col2 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + + ( 12 ) AS col0 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT - 57 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd
onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT + 26 - + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
22
26
26
skipif mysql # not compatible
query I rowsort label-4547
SELECT + 26 - + col1 / + col0 AS col2 FROM tab2 AS cor0
----
22
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + col0 + ( col0 ) * + col1 col0 FROM tab0
----
15888
46270
713068
query I rowsort
SELECT ALL + - 10 * + col1 FROM tab2 cor0
----
-170
-310
-590
query I rowsort
SELECT ALL col2 * + ( + cor0.col2 + cor0.col1 ) FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT - + col1 DIV - col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4552
SELECT - + col1 / - col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 + + col1 * 60 FROM tab1 AS cor0
----
1557
536
700
query I rowsort
SELECT DISTINCT col0 * 38 AS col2 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT ALL + col2 * - ( col0 ) + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) + col0 * col0 AS col1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT - - col0 * ( - 84 ) * col0 AS col2 FROM tab0 AS cor0
----
-102900
-48384
-665364
query I rowsort
SELECT DISTINCT tab0.col1 + + cor0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
9 values hashing to c2f36d52ae4f05bff875d8467d8b2161
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - + col1 + + 76 * col0 FROM tab2 AS cor0
----
501
5869
5987
onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT - cor0.col0 * 59 DIV col1 FROM tab1 AS cor0
----
-363
-377
-6
skipif mysql # not compatible
query I rowsort label-4561
SELECT - cor0.col0 * 59 / col1 FROM tab1 AS cor0
----
-363
-377
-6
query I rowsort
SELECT - ( + 88 ) * col0 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT + ( 35 ) * col1 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT - 56 * + col0 + + 21 FROM tab0 AS cor0
----
-1323
-1939
-4963
query I rowsort
SELECT col0 * + col2 + 34 FROM tab1 AS cor0
----
196
3682
7714
query I rowsort
SELECT + 87 + col2 FROM tab0 AS cor0
----
120
169
88
query I rowsort
SELECT ALL - - 16 * + col0 AS col2 FROM tab1 cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT 47 + - col0 AS col1 FROM tab0
----
-42
12
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + + 31 * col0 col1 FROM tab2
----
220
2421
2452
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT CAST( ( - col2 ) AS SIGNED ) + 40 * - col2 * + col0 AS col0 FROM tab0
----
-1401
-292002
-31713
skipif mysql # not compatible
query I rowsort label-4571
SELECT CAST ( ( - col2 ) AS INTEGER ) + 40 * - col2 * + col0 AS col0 FROM tab0
----
-1401
-292002
-31713
query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 * + col0 AS col1 FROM tab2
----
10686
266
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - tab1.col0 ) * col0 + + col0 col0 FROM tab1
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT col1 * col1 * - ( + tab0.col2 ) FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 26 * + tab1.col0 + + col2 FROM tab1
----
132
1721
2176
query I rowsort
SELECT DISTINCT + 78 * col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT + - col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + col1 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + 35 + col2 * + col1 FROM tab2 cor0
----
1569
681
872
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * ( + col0 ) FROM tab0 AS cor0
----
-70
-7387
-816
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - 24 AS col2 FROM tab1
----
-24
-24
-24
query I rowsort
SELECT - col1 * col0 + col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT + 56 - + 8 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108
query I rowsort
SELECT col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - 80 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT DISTINCT + 45 + + col2 * col1 - - col2 FROM tab2 AS cor0
----
1605
729
909
onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT DISTINCT - + cor0.col1 * col1 + 57 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-7422
-8370
-9445
skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - + cor0.col1 * col1 + 57 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-7422
-8370
-9445
query I rowsort
SELECT DISTINCT ( 71 ) AS col0 FROM tab0
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT + 16 * col1 DIV col1 AS col2 FROM tab0 AS cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-4591
SELECT + 16 * col1 / col1 AS col2 FROM tab0 AS cor0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4592
SELECT DISTINCT col1 * + col2 * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT col1 * + col2 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - 12 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1331
205
4590
onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT + + col0 DIV 74 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4594
SELECT + + col0 / 74 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col0 * 4 AS col0 FROM tab0
----
140
356
96
query I rowsort
SELECT + 74 - 11 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4597
SELECT - col0 * + CAST( col0 AS SIGNED ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-4597
SELECT - col0 * + CAST ( col0 AS INTEGER ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4598
SELECT - col1 * - CAST( NULL AS SIGNED ) + + ( - col1 + + col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4598
SELECT - col1 * - CAST ( NULL AS INTEGER ) + + ( - col1 + + col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + - col1 + ( + 54 ) * - col2 AS col0 FROM tab0 AS cor0
----
-151
-1868
-4519
query I rowsort
SELECT - + col0 - 90 FROM tab2 cor0
----
-168
-169
-97
query I rowsort
SELECT + - col0 + ( + col0 * - col1 + - 66 ) AS col1 FROM tab1 AS cor0
----
-1186
-147
-770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab1 cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT - 91 DIV col0 FROM tab2 cor0
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-4604
SELECT - 91 / col0 FROM tab2 cor0
----
-1
-1
-13
query I rowsort
SELECT + cor0.col2 - - 90 * + 12 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to b7cd6a8ce587e24ea8b7dea267bc6080
query I rowsort
SELECT + col2 * 20 AS col2 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT ALL - tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 46 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT + + col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - col2 * - 9 AS col0 FROM tab2 AS cor0
----
234
243
342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT ALL - col2 * col2 * col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - col2 * col2 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 79 AS col2 FROM tab0 cor0
----
165
170
176
query I rowsort
SELECT ALL - ( 4 ) * col2 * + 52 + + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-5441
-5620
-7883
query I rowsort
SELECT ALL - - cor0.col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL 54 + col0 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT col0 + 88 * cor0.col1 FROM tab0 AS cor0
----
7592
8097
8571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 51 col1 FROM tab2 AS cor0
----
-27
-28
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 95 col2 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - col0 * + 50 + col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT - ( + 38 ) * col0 - + col0 AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT DISTINCT - - ( 75 ) * + col2 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT + ( col0 ) + col1 * ( - 63 ) * col2 AS col0 FROM tab2 AS cor0
----
-40619
-52724
-96564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4623
SELECT ALL + + CAST( NULL AS DECIMAL ) + cor0.col1 + cor0.col0 * + col0 * - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + + CAST ( NULL AS REAL ) + cor0.col1 + cor0.col0 * + col0 * - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 - col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - col0 * + ( col1 ) - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL - col1 * + ( - col2 ) - + cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT + col0 + - col0 * ( - col1 ) DIV col0 - - 66 AS col1 FROM tab0
----
176
198
246
skipif mysql # not compatible
query I rowsort label-4630
SELECT + col0 + - col0 * ( - col1 ) / col0 - - 66 AS col1 FROM tab0
----
176
198
246
query I rowsort
SELECT - col2 * 48 * + 29 - + col0 * ( - col2 + + col2 ) FROM tab0
----
-114144
-1392
-45936
query I rowsort
SELECT ALL col1 * + col1 + - tab0.col1 FROM tab0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT DISTINCT tab0.col1 DIV + col0 + - 27 * col2 AS col2 FROM tab0
----
-2213
-25
-888
skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT tab0.col1 / + col0 + - 27 * col2 AS col2 FROM tab0
----
-2213
-25
-888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT ALL - tab0.col2 * CAST( + col1 AS SIGNED ) - col2 AS col2 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - tab0.col2 * CAST ( + col1 AS INTEGER ) - col2 AS col2 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - CAST ( + col0 AS REAL ) - col2 / - 17 AS col2 FROM tab1
----
-4093
-6
-6395
query I rowsort
SELECT ALL - 31 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT + cor0.col0 - - ( col2 ) DIV col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4637
SELECT + cor0.col0 - - ( col2 ) / col2 FROM tab1 AS cor0
----
4
65
81
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + + 70 AS col1 FROM tab2 AS cor0
----
1604
716
907
query I rowsort
SELECT DISTINCT - - col1 * col1 * col2 + + 14 FROM tab2 AS cor0
----
10996
25961
90520
query I rowsort
SELECT + 59 + col0 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
221
3707
7739
query I rowsort
SELECT - 55 * col1 * + 99 FROM tab2 cor0
----
-168795
-321255
-92565
query I rowsort
SELECT ALL 3 + col1 FROM tab2 AS cor0
----
20
34
62
query I rowsort
SELECT ALL 85 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT - 0 + col0 DIV col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4645
SELECT - 0 + col0 / col0 FROM tab2
----
1
1
1
query I rowsort
SELECT 26 * col0 + 89 FROM tab1
----
167
1753
2169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2
----
79
79
79
query I rowsort
SELECT ALL + 31 AS col1 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - ( + col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 46 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 + col0 col0 FROM tab1 AS cor0
----
1044
1354
2551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT ALL 75 * cor0.col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL 75 * cor0.col0 / + col0 AS col0 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT ALL + + col1 * col1 + - col0 AS col0 FROM tab1 cor0
----
36
673
89
query I rowsort
SELECT DISTINCT + ( - 31 ) AS col0 FROM tab1 AS cor0
----
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4656
SELECT ALL - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 59 * - col1 FROM tab1 cor0
----
-1534
-590
-767
onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col1 AS col1 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col1 AS col1 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4660
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 78 * - col1 FROM tab1
----
1014
2028
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT 63 * 38 DIV - col1 AS col1 FROM tab0 AS cor0
----
-24
-26
-27
skipif mysql # not compatible
query I rowsort label-4662
SELECT 63 * 38 / - col1 AS col1 FROM tab0 AS cor0
----
-24
-26
-27
query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT ( col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2, tab0 cor0
----
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4666
SELECT ALL CAST( NULL AS SIGNED ) / ( col1 * + col1 ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL CAST ( NULL AS INTEGER ) / ( col1 * + col1 ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col2 + 64 ) AS col1 FROM tab1
----
-32
10
7
query I rowsort
SELECT cor0.col2 * + cor0.col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL - col0 DIV - col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - col0 / - col0 FROM tab2
----
1
1
1
query I rowsort
SELECT - col2 * + col1 + 95 * - cor0.col0 + - ( col0 * - col1 + + 34 ) FROM tab0 AS cor0
----
-3088
-61
-7852
query I rowsort
SELECT ALL - col2 * + cor0.col0 + - col0 * - col2 + + col0 AS col0 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT DISTINCT cor0.col2 DIV + 40 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT cor0.col2 / + 40 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 27 + + col2 col0 FROM tab2 AS cor0
----
103
79
81
query I rowsort
SELECT + + 35 + col1 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT - 5 + 82 + - col2 AS col0 FROM tab2 AS cor0
----
39
50
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - col1 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 53 * - col2 AS col0 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT col2 + - ( 64 ) FROM tab0 AS cor0
----
-31
-63
18
query I rowsort
SELECT ALL col2 * - col2 + col1 + col1 AS col0 FROM tab2 AS cor0
----
-1410
-558
-667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT ALL - + col0 + CAST( ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - + col0 + CAST ( ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT - ( cor0.col1 ) DIV cor1.col0 + 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9692ee8b94c2153fe600b958f2b6fdc3
skipif mysql # not compatible
query I rowsort label-4682
SELECT - ( cor0.col1 ) / cor1.col0 + 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9692ee8b94c2153fe600b958f2b6fdc3
query I rowsort
SELECT + 7 * - col2 AS col1 FROM tab2
----
-182
-189
-266
query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + 90 AS col1 FROM tab2
----
90
90
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 97 * tab2.col2 col2 FROM tab2
----
2600
2626
3765
query I rowsort
SELECT - col2 + - 8 AS col1 FROM tab1
----
-104
-62
-65
query I rowsort
SELECT + 96 - 87 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT ALL col1 * col1 DIV - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL col1 * col1 / - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col1 + + 48 AS col0 FROM tab0
----
134
139
145
query I rowsort
SELECT DISTINCT col2 + 3 AS col0 FROM tab1
----
57
60
99
query I rowsort
SELECT DISTINCT - ( tab0.col0 * col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT 3 * ( col1 ) AS col0 FROM tab1
----
30
39
78
query I rowsort
SELECT DISTINCT ( col2 ) * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col2 * - col0 + + cor0.col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
14104
1914
37
query I rowsort
SELECT col2 * + 70 FROM tab0
----
2310
5740
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4697
SELECT + 94 DIV + 77 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4697
SELECT + 94 / + 77 FROM tab0
----
1
1
1
query I rowsort
SELECT - cor0.col0 + + 83 AS col0 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT + 77 * - col1 AS col0 FROM tab2 AS cor0
----
-1309
-2387
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT ALL col2 - + tab1.col1 DIV - col0 AS col1 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL col2 - + tab1.col1 / - col0 AS col1 FROM tab1
----
57
62
96
query I rowsort
SELECT 80 * col1 - ( + col2 ) FROM tab2 AS cor0
----
1322
2453
4694
query I rowsort
SELECT DISTINCT - - 73 * col2 * 43 FROM tab2 AS cor0
----
119282
81614
84753
query I rowsort
SELECT DISTINCT 7 FROM tab0 cor0
----
7
query I rowsort
SELECT 61 * + col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * - 19 + - col2 * + col0 FROM tab2 AS cor0
----
-322
-3510
-4503
query I rowsort
SELECT ALL - + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 * - col1 + col0 col2 FROM tab1 AS cor0
----
-1141
-376
-492
query I rowsort
SELECT DISTINCT 10 * + col2 + + tab1.col0 AS col1 FROM tab1
----
1040
543
634
query I rowsort
SELECT + cor0.col0 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1
query I rowsort
SELECT DISTINCT + 26 + - col0 * 42 FROM tab2
----
-268
-3250
-3292
query I rowsort
SELECT - col0 + + col0 * tab2.col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT DISTINCT + ( col0 ) + 46 + col1 FROM tab2
----
142
183
84
query I rowsort
SELECT + 95 - - col1 * col0 AS col1 FROM tab0 AS cor0
----
2159
3490
8194
query I rowsort
SELECT ALL - 99 * col0 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT DISTINCT ( col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - col0 * + col0 + 1 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240
query I rowsort
SELECT DISTINCT - + col2 * col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT 13 DIV + col0 AS col2 FROM tab1
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4718
SELECT 13 / + col0 AS col2 FROM tab1
----
0
0
4
query I rowsort
SELECT ALL col0 * 76 + col0 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT DISTINCT + col0 * col2 * + cor0.col1 + col0 * - 78 + ( col1 ) AS col0 FROM tab1 AS cor0
----
31498
4004
93613
query I rowsort
SELECT + col2 * col2 + - cor0.col1 * col0 * 76 FROM tab0 AS cor0
----
-155775
-258019
-608800
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT - cor0.col2 DIV 63 + 71 FROM tab1 AS cor0
----
70
71
71
skipif mysql # not compatible
query I rowsort label-4722
SELECT - cor0.col2 / 63 + 71 FROM tab1 AS cor0
----
70
71
71
query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col0 * col1 + col0 AS col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - - col1 * + col2 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-3298
-637
774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col0 + col1 * + col2 col0 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT tab0.col2 + 85 FROM tab0
----
118
167
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * ( col1 ) col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT - - cor0.col2 DIV 28 + 41 * + col1 FROM tab0 AS cor0
----
3527
3733
3977
skipif mysql # not compatible
query I rowsort label-4729
SELECT - - cor0.col2 / 28 + 41 * + col1 FROM tab0 AS cor0
----
3527
3733
3977
query I rowsort
SELECT ALL - col2 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) - col2 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT DISTINCT + + col1 + col0 + 5 FROM tab0 AS cor0
----
115
137
185
query I rowsort
SELECT ALL - 85 - - col2 FROM tab1
----
-28
-31
11
query I rowsort
SELECT ALL - col1 * col2 - - col2 AS col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT ALL - - col1 + + col1 DIV + ( - col2 ) FROM tab0 cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - - col1 + + col1 / + ( - col2 ) FROM tab0 cor0
----
0
84
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4736
SELECT col2 / CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4736
SELECT col2 / CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4737
SELECT col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + cor0.col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - 51 * col1 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col2 * - col2 * 19 col0 FROM tab0 AS cor0
----
-127667
-20667
16
query I rowsort
SELECT - - col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - 71 + 85 * + col1 AS col0 FROM tab1 AS cor0
----
1034
2139
779
query I rowsort
SELECT DISTINCT + + ( + col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) + - col2 + col0 * col0 FROM tab2 AS cor0
----
53
6117
6220
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4747
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT DISTINCT + col2 * col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + col2 * col2 / col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col2 + col0 * 18 AS col1 FROM tab1 AS cor0
----
108
1209
1536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * 48 col1 FROM tab1 cor0
----
2595
2800
4688
query I rowsort
SELECT col0 * 5 AS col2 FROM tab0 AS cor0
----
120
175
445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4753
SELECT + col0 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-4753
SELECT + col0 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - col0 * 70 FROM tab1 AS cor0
----
210
4480
5600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 * col1 col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - col1 + + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT - col2 + + 64 * ( + col1 + col0 ) DIV col1 FROM tab1 AS cor0
----
17
361
416
skipif mysql # not compatible
query I rowsort label-4758
SELECT - col2 + + 64 * ( + col1 + col0 ) / col1 FROM tab1 AS cor0
----
17
361
416
query I rowsort
SELECT + - col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col0 + col0 * col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + + col1 + - ( 23 ) AS col0 FROM tab0 AS cor0
----
63
68
74
query I rowsort
SELECT 38 * - col2 FROM tab2 cor0
----
-1026
-1444
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col2 FROM tab1, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT + 45 * + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT ALL + 65 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT - 40 * col2 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT DISTINCT - - 77 * col0 + + col2 FROM tab1 AS cor0
----
285
4985
6256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab2, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab2, tab0 AS cor0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
query I rowsort
SELECT - 55 * + col2 FROM tab1
----
-2970
-3135
-5280
query I rowsort
SELECT col1 * col2 + col1 * - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT 76 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT ( - col1 ) * + ( + tab2.col1 * - tab2.col0 ) FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT DISTINCT + col0 DIV col0 + col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + col0 / col0 + col2 FROM tab1
----
55
58
97
query I rowsort
SELECT col1 + - col2 * 73 + + col2 AS col0 FROM tab1
----
-3862
-4094
-6899
query I rowsort
SELECT + col2 * col1 + + 43 FROM tab0
----
140
2881
7505
query I rowsort
SELECT ALL - 69 - col2 * - 25 FROM tab1 AS cor0
----
1281
1356
2331
onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT DISTINCT - col0 * + col1 + + CAST( + ( col0 ) + col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-2064
-3395
-8098
skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - col0 * + col1 + + CAST ( + ( col0 ) + col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-2064
-3395
-8098
query I rowsort
SELECT 81 + + col0 FROM tab1
----
145
161
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT ALL ( col0 ) + + col1 DIV - 85 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL ( col0 ) + + col1 / - 85 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT 89 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT + tab2.col1 * tab2.col1 AS col2 FROM tab2
----
289
3481
961
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( col1 ) AND NOT ( NULL ) NOT IN ( col0 )
----
query I rowsort
SELECT + col0 * - col0 * col0 AS col1 FROM tab1
----
-262144
-27
-512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT + cor0.col0 DIV - col2 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
639
78
skipif mysql # not compatible
query I rowsort label-4786
SELECT + cor0.col0 / - col2 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
639
78
query I rowsort
SELECT ALL - - col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col2 * - 83 FROM tab0
----
-2739
-6806
-83
query I rowsort
SELECT ALL - tab0.col1 * tab0.col2 * col2 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab2, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col0 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT - 5 + - tab0.col0 FROM tab0
----
-29
-40
-94
query I rowsort
SELECT DISTINCT 6 * - 78 FROM tab0
----
-468
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT - + ( + col2 ) + col2 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4796
SELECT + CAST( col2 + + col1 AS SIGNED ) AS col2 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-4796
SELECT + CAST ( col2 + + col1 AS INTEGER ) AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * 37 AS col1 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT ALL - + col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 39 * + cor0.col1 + col0 FROM tab0 AS cor0
----
3378
3638
3818
query I rowsort
SELECT + ( + col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 3 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-54
-93
query I rowsort
SELECT DISTINCT col1 + col0 * col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
177614
329447
737189
query I rowsort
SELECT 56 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-1729
-3226
-873
query I rowsort
SELECT - + ( - col1 ) AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT CAST( 57 AS SIGNED ) - - col0 * ( col2 ) FROM tab2 AS cor0
----
2085
246
3059
skipif mysql # not compatible
query I rowsort label-4805
SELECT CAST ( 57 AS INTEGER ) - - col0 * ( col2 ) FROM tab2 AS cor0
----
2085
246
3059
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + - ( + ( col2 ) ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT + col2 DIV + 56 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4808
SELECT + col2 / + 56 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 - + 38 AS col2 FROM tab2 AS cor0
----
-64
-65
-76
query I rowsort
SELECT - 53 * + cor0.col0 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 65d748aea6b4714e22236c5dc21c1d7f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT ALL - 40 DIV - col0 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - 40 / - col0 FROM tab2
----
0
0
5
query I rowsort
SELECT DISTINCT - + 45 AS col0 FROM tab2 AS cor0
----
-45
query I rowsort
SELECT - - col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4815
SELECT ( - col0 ) + CAST( NULL AS DECIMAL ) / + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4815
SELECT ( - col0 ) + CAST ( NULL AS REAL ) / + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 51 * col2 AS col1 FROM tab1 cor0
----
2754
2907
4896
query I rowsort
SELECT DISTINCT + - 76 AS col0 FROM tab2 AS cor0
----
-76
query I rowsort
SELECT 32 * col0 AS col1 FROM tab0 AS cor0
----
1120
2848
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * tab1.col2 - + col0 col1 FROM tab1
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT ( + tab1.col2 ) DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4820
SELECT ( + tab1.col2 ) / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT + tab2.col0 - + tab2.col2 AS col2 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 38 col0 FROM tab0
----
124
129
135
query I rowsort
SELECT ALL col0 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT + - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4824
SELECT + - cor0.col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col2 * 64 ) AS col1 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT col0 * ( - 60 ) FROM tab0
----
-1440
-2100
-5340
query I rowsort
SELECT + - col0 + + ( 96 ) FROM tab2 AS cor0
----
17
18
89
query I rowsort
SELECT col1 + 37 AS col0 FROM tab2 cor0
----
54
68
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - col2 * - 4 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT - col1 * ( + col2 + col1 ) AS col1 FROM tab2
----
-1798
-5015
-935
query I rowsort
SELECT col2 * + col1 + col1 AS col0 FROM tab1
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4833
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 * + cor0.col2 * 93 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 * + cor0.col2 * 93 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col2 + + col2 - - col1 * col0 FROM tab0 AS cor0
----
2130
3397
8263
query I rowsort
SELECT - col0 + 18 * + col2 AS col1 FROM tab2
----
390
479
605
query I rowsort
SELECT - 75 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4837
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col1 - col0 * cor0.col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - ( - col1 ) * + col2 * col1 + col0 FROM tab0 cor0
----
244092
679131
9444
query I rowsort
SELECT - col1 * 67 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 4 * col2 col0 FROM tab1 AS cor0
----
216
228
384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT DISTINCT CAST( 58 AS SIGNED ) + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-7240
-734
23
skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT CAST ( 58 AS INTEGER ) + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-7240
-734
23
query I rowsort
SELECT DISTINCT col1 + + col1 * col0 AS col0 FROM tab1 cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2 AS cor0
----
74
query I rowsort
SELECT ALL - 34 * col2 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT ALL - col1 + - 0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col1 + + 43 * - col0 FROM tab1 AS cor0
----
-103
-2742
-3427
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 26 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT - - col1 * col0 + cor0.col1 AS col0 FROM tab1 cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT ALL + col2 + - col2 * CAST( + col1 AS SIGNED ) + col2 FROM tab2
----
-1482
-570
-783
skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + col2 + - col2 * CAST ( + col1 AS INTEGER ) + col2 FROM tab2
----
-1482
-570
-783
query I rowsort
SELECT DISTINCT - 0 + col1 AS col0 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 * - 58 col0 FROM tab2 AS cor0
----
-375
-4465
-4565
query I rowsort
SELECT col1 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT - - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4857
SELECT - - col0 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT + col0 DIV cor0.col0 + 50 AS col0 FROM tab0 AS cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-4858
SELECT + col0 / cor0.col0 + 50 AS col0 FROM tab0 AS cor0
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4859
SELECT ALL + + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( 82 ) col0 FROM tab0 AS cor0
----
-115
-164
-83
query I rowsort
SELECT DISTINCT + col1 + 91 * ( + cor0.col0 ) AS col0 FROM tab1 cor0
----
299
5834
7293
query I rowsort
SELECT + - col1 * ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 57 * 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2c27257281e89867a96e990912566b70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 65 col2 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT DISTINCT - - cor0.col0 DIV 5 FROM tab0 AS cor0
----
17
4
7
skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - - cor0.col0 / 5 FROM tab0 AS cor0
----
17
4
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT - col2 + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4868
SELECT - col2 + - col0 / cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col0 * 98 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT - col2 * - 76 AS col1 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ALL + 44 + - col0 AS col1 FROM tab1
----
-20
-36
41
query I rowsort
SELECT ALL - tab0.col2 + - col2 * 84 FROM tab0
----
-2805
-6970
-85
query I rowsort
SELECT col1 + - col1 + ( col2 ) * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col1 * tab1.col1 + - 21 AS col2 FROM tab1
----
-121
-190
-697
query I rowsort
SELECT - 61 * + col2 FROM tab1
----
-3294
-3477
-5856
query I rowsort
SELECT tab2.col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - + col0 - col1 * col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT DISTINCT + cor0.col2 + cor0.col2 DIV 61 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + cor0.col2 + cor0.col2 / 61 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT ALL + 50 AS col2 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT + col1 * col0 + - col2 + - col2 FROM tab0 AS cor0
----
1998
3393
7935
onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT DISTINCT - - col0 + + col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT - - col0 + + col0 / - ( + col0 ) FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + col2 * col1 * col1 AS col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL + + col2 + 32 AS col0 FROM tab1 AS cor0
----
128
86
89
query I rowsort
SELECT DISTINCT + - col0 + 20 AS col2 FROM tab2 cor0
----
-58
-59
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4886
SELECT DISTINCT + col2 * - col2 * - col0 + - col2 - + CAST( col2 AS SIGNED ) * col0 * - col0 FROM tab2 AS cor0
----
210886
351196
6399
skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + col2 * - col2 * - col0 + - col2 - + CAST ( col2 AS INTEGER ) * col0 * - col0 FROM tab2 AS cor0
----
210886
351196
6399
query I rowsort
SELECT col1 * + 18 + - cor0.col1 FROM tab2 cor0
----
1003
289
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT ALL col2 + col2 * col2 - - col1 DIV 79 FROM tab1 AS cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL col2 + col2 * col2 - - col1 / 79 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - 96 - - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 9abcc494bbcdfc634ef4316d0a2a1025
query I rowsort
SELECT ALL 50 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab1 AS cor0
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4892
SELECT + - cor0.col0 + + ( col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-4892
SELECT + - cor0.col0 + + ( col2 ) / col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT + - col1 + - 48 + - col2 FROM tab1 AS cor0
----
-115
-128
-157
query I rowsort
SELECT col2 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 + cor0.col1 * - col2 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT + + col1 * + col2 + col0 + - col2 DIV cor0.col2 AS col0 FROM tab1 cor0
----
1327
1406
633
skipif mysql # not compatible
query I rowsort label-4897
SELECT + + col1 * + col2 + col0 + - col2 / cor0.col2 AS col0 FROM tab1 cor0
----
1327
1406
633
query I rowsort
SELECT ALL - ( tab2.col2 ) * col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL 18 FROM tab0 cor0
----
18
18
18
query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 75 * col0 AS col1 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT ALL col2 * - 68 AS col0 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT DISTINCT + 90 * col0 + col0 AS col1 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT + + col0 + + col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - col0 * 10 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT ALL + 78 + + 58 FROM tab0 cor0
----
136
136
136
query I rowsort
SELECT ALL 96 + 45 * col2 FROM tab2 AS cor0
----
1266
1311
1806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT - col0 * col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-4908
SELECT - col0 * col0 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-103
-367
query I rowsort
SELECT DISTINCT - - 62 + ( - col2 ) FROM tab0 AS cor0
----
-20
29
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT CAST( NULL AS SIGNED ) * cor0.col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4910
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 89 AS col0 FROM tab2 AS cor0
----
-89
-89
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT ( + col0 ) - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - 28 * col1 + col1 * cor0.col1 + col1 FROM tab1 AS cor0
----
-170
-182
-26
query I rowsort
SELECT + ( col1 ) * + col0 + - col2 AS col1 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT - - 98 DIV col2 FROM tab0 AS cor0
----
1
2
98
skipif mysql # not compatible
query I rowsort label-4916
SELECT - - 98 / col2 FROM tab0 AS cor0
----
1
2
98
query I rowsort
SELECT - ( + col0 ) + - ( + col2 ) FROM tab0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + cor2.col2 FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab1 cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT 49 * + col2 AS col1 FROM tab1 cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT col2 * - ( col2 ) * col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col1 * col0 * ( - col0 ) AS col2 FROM tab1
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4923
SELECT DISTINCT CAST( col0 * - col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT CAST ( col0 * - col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT ALL CAST( - 99 AS SIGNED ) * col1 AS col0 FROM tab2
----
-1683
-3069
-5841
skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL CAST ( - 99 AS INTEGER ) * col1 AS col0 FROM tab2
----
-1683
-3069
-5841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * - 74 col1 FROM tab2
----
-518
-5772
-5846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col2 FROM tab0, tab0 AS cor0
----
73
query I rowsort
SELECT DISTINCT - ( 30 ) * - col0 AS col0 FROM tab1 AS cor0
----
1920
2400
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col0 FROM tab1
----
-20
-26
-52
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c
query I rowsort
SELECT - col2 * - cor0.col2 * col0 AS col0 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT col2 + - col1 * col0 * col0 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT ALL + 86 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
2295
2353
3285
query I rowsort
SELECT ALL - + 18 * 54 - col0 FROM tab1 AS cor0
----
-1036
-1052
-975
query I rowsort
SELECT DISTINCT + + ( - col0 ) - col2 * - col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT 47 + + col2 AS col2 FROM tab1 AS cor0
----
101
104
143
query I rowsort
SELECT ALL ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 * + 1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 95 - 39 AS col0 FROM tab1 AS cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 64 * - col1 col0 FROM tab0 AS cor0
----
-5480
-5735
-6173
query I rowsort
SELECT ALL 52 + tab0.col0 * + 12 AS col0 FROM tab0
----
1120
340
472
query I rowsort
SELECT col0 + cor0.col1 * + 65 FROM tab0 AS cor0
----
5614
6004
6340
query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - col1 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT + col1 DIV ( 25 * - col1 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4944
SELECT + col1 / ( 25 * - col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 * ( - 2 ) + + col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col2 * - 58 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT - - col0 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col0 ) col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 36 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
36
query I rowsort
SELECT + - cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL col0 * ( ( - col1 ) ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT - col1 + - ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + col0 + + 67 AS col1 FROM tab1 AS cor0
----
131
147
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col1 * tab0.col0 + tab0.col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + 77 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT ALL col2 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL col2 / - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( + 2 ) AS col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL + cor0.col1 + - 62 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 14a299bbb736d221d6cdebb02a14b755
query I rowsort
SELECT col2 - 16 FROM tab0
----
-15
17
66
query I rowsort
SELECT - col0 * col1 + 19 AS col0 FROM tab1
----
-1021
-59
-621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT DISTINCT - tab2.col0 + - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - tab2.col0 + - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT cor0.col1 * + col0 * - cor0.col2 + + ( + cor0.col0 ) FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL ( col1 ) + + 40 * ( cor0.col2 ) FROM tab1 AS cor0
----
2186
2290
3853
query I rowsort
SELECT ALL col0 * + col1 - - col0 * col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 - + col2 * + 93 col0 FROM tab2 AS cor0
----
-2191
-2294
2184
query I rowsort
SELECT DISTINCT - col1 * - col0 + 49 FROM tab0 AS cor0
----
2113
3444
8148
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT 42 DIV col0 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-4973
SELECT 42 / col0 + col2 / col0 AS col2 FROM tab2 AS cor0
----
0
0
9
query I rowsort
SELECT ALL + + 63 + + col0 FROM tab1 AS cor0
----
127
143
66
query I rowsort
SELECT ALL + col1 - ( col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 4 * + col1 + col0 * - col1 + + 82 FROM tab0
----
-1638
-2925
-7653
onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT - col0 DIV - 25 FROM tab1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4977
SELECT - col0 / - 25 FROM tab1
----
0
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT ALL 9 * + col1 DIV col1 + + col1 AS col1 FROM tab2
----
26
40
68
skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 9 * + col1 / col1 + + col1 AS col1 FROM tab2
----
26
40
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT DISTINCT + + col0 * col0 + col2 + + 44 DIV cor0.col1 FROM tab0 AS cor0
----
1226
609
8003
skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + + col0 * col0 + col2 + + 44 / cor0.col1 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col2 + + col2 * 72 * - col2 FROM tab0 AS cor0
----
-484046
-71
-78375
query I rowsort
SELECT DISTINCT col0 + + cor0.col2 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 38 + col2 * + 36 FROM tab0 AS cor0
----
1226
2990
74
query I rowsort
SELECT ALL 75 * cor0.col1 + + cor0.col2 + ( - cor0.col2 ) FROM tab2 AS cor0
----
1275
2325
4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT DISTINCT + col0 + col2 DIV + cor0.col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + col0 + col2 / + cor0.col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * 15 col0 FROM tab2 cor0
----
412
468
649
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 - 95 FROM tab2 AS cor0
----
-1438
-312
-4697
query I rowsort
SELECT col0 * col2 + col1 * col1 AS col0 FROM tab1 cor0
----
3748
7849
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col0 + col1 col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT + + col2 * - col2 - + col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT col1 + 88 AS col2 FROM tab1
----
101
114
98
query I rowsort
SELECT - + cor0.col0 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT DISTINCT ( + col0 ) * col2 + CAST( NULL AS SIGNED ) * tab0.col1 + + tab0.col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT ( + col0 ) * col2 + CAST ( NULL AS INTEGER ) * tab0.col1 + + tab0.col0 FROM tab0
----
NULL
query I rowsort
SELECT 95 * col1 FROM tab1
----
1235
2470
950
query I rowsort
SELECT DISTINCT col2 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col2 * 56 - + cor0.col2 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT ( cor0.col2 ) + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 + 31 * col0 AS col2 FROM tab2 AS cor0
----
244
2444
2487
query I rowsort
SELECT - col1 + 4 * - col1 FROM tab1 cor0
----
-130
-50
-65
query I rowsort
SELECT + cor0.col0 + 91 * - col2 AS col1 FROM tab2 AS cor0
----
-2288
-2450
-3379
onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT DISTINCT - + col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - + col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT ALL + ( 22 ) + - col0 DIV 89 FROM tab2 AS cor0
----
22
22
22
skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL + ( 22 ) + - col0 / 89 FROM tab2 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT ALL + - CAST( NULL AS SIGNED ) * ( - cor0.col2 ) - 4 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + - CAST ( NULL AS INTEGER ) * ( - cor0.col2 ) - 4 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 99 + col1 FROM tab1 AS cor0
----
1000
1300
2600
query I rowsort
SELECT DISTINCT + - col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - 64 + + 80 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - col1 * - col1 * - cor0.col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab2 AS cor0
----
66
query I rowsort
SELECT DISTINCT col1 + col0 * + ( 31 ) FROM tab0 AS cor0
----
1182
2850
830
query I rowsort
SELECT DISTINCT - 5 * col2 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL col2 * - 66 + col0 + - col0 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT ALL + + cor0.col2 + cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT col1 * - ( - col2 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5015
SELECT + tab1.col2 - col2 * - CAST( col2 AS SIGNED ) FROM tab1
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-5015
SELECT + tab1.col2 - col2 * - CAST ( col2 AS INTEGER ) FROM tab1
----
2970
3306
9312
query I rowsort
SELECT + + col2 * + col1 * + cor0.col2 AS col2 FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT col1 + + 4 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
2763
2947
5793
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT col0 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5018
SELECT col0 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT cor0.col1 + 90 AS col2 FROM tab1 AS cor0
----
100
103
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT + col1 DIV CAST( - col0 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5020
SELECT + col1 / CAST ( - col0 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col0 * cor1.col1 - cor0.col2 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
9 values hashing to b1aab23df53b8b48a0a08293c8f2fa24
query I rowsort
SELECT + 75 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - - 97 * col2 AS col2 FROM tab1 cor0
----
5238
5529
9312
query I rowsort
SELECT ALL - cor0.col1 + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT - 70 * col2 + + col0 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2311
-5741
-71
skipif mysql # not compatible
query I rowsort label-5026
SELECT - 70 * col2 + + col0 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2311
-5741
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT col2 * + 69 FROM tab0 AS cor0
----
2277
5658
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5029
SELECT col2 * CAST( 63 * + col0 AS SIGNED ) FROM tab0 AS cor0
----
2205
459774
49896
skipif mysql # not compatible
query I rowsort label-5029
SELECT col2 * CAST ( 63 * + col0 AS INTEGER ) FROM tab0 AS cor0
----
2205
459774
49896
query I rowsort
SELECT 62 * col0 AS col0 FROM tab1
----
186
3968
4960
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT cor0.col1 DIV cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
skipif mysql # not compatible
query I rowsort label-5032
SELECT cor0.col1 / cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT ALL + col0 * - col1 * col0 + cor0.col0 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-234
-40961
-83200
skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + col0 * - col1 * col0 + cor0.col0 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-234
-40961
-83200
query I rowsort
SELECT ALL cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col0 * 22 + + col0 * - ( 72 ) AS col1 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5036
SELECT DISTINCT CAST( 51 AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
51
skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT CAST ( 51 AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
51
query I rowsort
SELECT ALL + - cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - 70 AS col0 FROM tab2 cor0
----
-70
-70
-70
query I rowsort
SELECT - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 * - col2 * + col1 + tab2.col2 - - 27 FROM tab2
----
-119599
-50969
-5805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col2 FROM tab2
----
0
query I rowsort
SELECT + col2 * + ( + col0 ) AS col0 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT - col2 DIV + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5043
SELECT - col2 / + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT - - cor0.col1 + col2 * col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1208
6897
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - ( + col0 ) * + col0 col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT tab0.col2 DIV + col1 + - 98 * + col0 AS col1 FROM tab0
----
-2352
-3430
-8722
skipif mysql # not compatible
query I rowsort label-5046
SELECT tab0.col2 / + col1 + - 98 * + col0 AS col1 FROM tab0
----
-2352
-3430
-8722
query I rowsort
SELECT + cor0.col1 * col0 + + cor0.col0 * + col0 FROM tab1 cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT - + ( col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - 24 + cor0.col2 FROM tab1 AS cor0
----
30
33
72
query I rowsort
SELECT + col2 * 6 FROM tab1
----
324
342
576
query I rowsort
SELECT 92 + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 29fea481a8cf945b45bf55990a832251
query I rowsort
SELECT + col0 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5053
SELECT ALL - - CAST( NULL AS SIGNED ) * + 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( 11 ) * col2 + - col1 FROM tab0 cor0
----
-108
-449
-993
query I rowsort
SELECT ALL - - ( - col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT DISTINCT - col0 DIV 14 AS col0 FROM tab1 AS cor0
----
-4
-5
0
skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - col0 / 14 AS col0 FROM tab1 AS cor0
----
-4
-5
0
query I rowsort
SELECT ALL tab2.col1 * - 3 FROM tab2
----
-177
-51
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT DISTINCT tab0.col2 + + col0 DIV + tab0.col2 AS col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT tab0.col2 + + col0 / + tab0.col2 AS col2 FROM tab0
----
33
36
83
query I rowsort
SELECT - - col0 * 22 AS col2 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT DISTINCT + 78 + - col2 * col2 FROM tab0 AS cor0
----
-1011
-6646
77
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) + - col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT - 27 + col0 * col0 FROM tab0 AS cor0
----
1198
549
7894
query I rowsort
SELECT - + col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT ALL + - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + - col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * col0 col2 FROM tab0 AS cor0
----
105
267
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 + - cor0.col1 col0 FROM tab0 AS cor0
----
-108
-113
-119
onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT DISTINCT + col2 * + col2 + col1 DIV + 73 + + col2 FROM tab2 AS cor0
----
1482
702
756
skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + col2 * + col2 + col1 / + 73 + + col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT DISTINCT 77 - + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT 77 - + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 * + col2 * 72 FROM tab1 cor0
----
11664
262656
552960
query I rowsort
SELECT ALL 8 * - col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT 20 * + cor0.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c78a74fcce2c8a7b46774c5a06b63a8d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT col2 * 77 * + col0 + col1 DIV - col2 AS col1 FROM tab1
----
12474
280896
591360
skipif mysql # not compatible
query I rowsort label-5072
SELECT col2 * 77 * + col0 + col1 / - col2 AS col1 FROM tab1
----
12474
280896
591360
query I rowsort
SELECT + ( col2 ) * + col0 + + tab1.col1 AS col1 FROM tab1
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT DISTINCT - tab0.col1 + + col2 + + col2 DIV 65 FROM tab0
----
-53
-8
-96
skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - tab0.col1 + + col2 + + col2 / 65 FROM tab0
----
-53
-8
-96
query I rowsort
SELECT col2 + + ( cor0.col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col2 * col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - + col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - - cor0.col1 + - ( 24 ) FROM tab1 AS cor0
----
-11
-14
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col2 * + 18 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL - col1 * - ( + col1 * - col1 ) AS col1 FROM tab1 cor0
----
-1000
-17576
-2197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT ALL col0 * + CAST( + 10 + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-5304
-5451
21
skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL col0 * + CAST ( + 10 + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-5304
-5451
21
query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) + + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 - col0 col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + - cor0.col1 * 89 FROM tab2 AS cor0
----
-1513
-2759
-5251
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) + col2 * + col2 / + 14 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) + col2 * + col2 / + 14 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 41 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL 89 AS col0 FROM tab0 cor0
----
89
89
89
query I rowsort
SELECT ALL + col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col0 + - col1 + col2 FROM tab2
----
100
3
45
query I rowsort
SELECT - col2 + + col0 * 66 AS col0 FROM tab0
----
1551
2309
5792
query I rowsort
SELECT - 43 * - col2 AS col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT - 32 + - col0 FROM tab0 AS cor0
----
-121
-56
-67
query I rowsort
SELECT ALL + - 57 FROM tab1 AS cor0
----
-57
-57
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT - + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5095
SELECT - + cor0.col1 / + col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + col2 * - 36 FROM tab1 AS cor0
----
-1944
-2052
-3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT ALL - + tab1.col2 DIV + tab1.col1 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 21811631b5c0826c9240c5375e83ee0f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - + tab1.col2 / + tab1.col1 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 21811631b5c0826c9240c5375e83ee0f
query I rowsort
SELECT DISTINCT - 46 * col2 FROM tab1
----
-2484
-2622
-4416
query I rowsort
SELECT + ( - ( col1 ) ) + + col1 * cor0.col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + ( col1 ) + - col2 + - 1 FROM tab0 AS cor0
----
52
8
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT - - 50 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5101
SELECT - - 50 / col2 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT DISTINCT col1 DIV ( - col0 ) + col2 AS col2 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT col1 / ( - col0 ) + col2 AS col2 FROM tab2
----
23
26
38
query I rowsort
SELECT 30 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( col2 ) col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + tab1.col1 + + col1 * - col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL - 34 + - 39 AS col2 FROM tab0 AS cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - - cor0.col0 * 9 + col2 FROM tab0 AS cor0
----
249
316
883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT - CAST( NULL AS DECIMAL ) / col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5108
SELECT - CAST ( NULL AS REAL ) / col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( 2 ) FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL + - 99 + col1 FROM tab1 AS cor0
----
-73
-86
-89
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 + col2 FROM tab0 AS cor0
----
-33
42
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL - col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + 39 * + tab0.col1 FROM tab0
----
3354
3549
3783
query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + - col1 * col0 + col1 * - col1 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT + cor0.col2 * col0 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT 13 + - col0 AS col2 FROM tab0
----
-11
-22
-76
query I rowsort
SELECT + 48 * col0 * col0 FROM tab1
----
196608
307200
432
onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT - col1 DIV col1 - - col0 AS col2 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-5120
SELECT - col1 / col1 - - col0 AS col2 FROM tab2
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * + col0 col2 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT + + col1 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + ( col1 ) * col2 + - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + col0 * + ( col0 ) * tab2.col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT ALL 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT ALL - col1 * 69 * ( col1 ) AS col0 FROM tab0
----
-510324
-571389
-649221
onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT + + col1 * CAST( - col0 AS SIGNED ) - - col2 * + col1 DIV + col1 FROM tab2 cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort label-5127
SELECT + + col1 * CAST ( - col0 AS INTEGER ) - - col2 * + col1 / + col1 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT - - col2 * - col0 - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT 97 + 70 - col0 FROM tab1
----
103
164
87
query I rowsort
SELECT - col1 * + col2 + - col0 * col1 FROM tab0 cor0
----
-15561
-3492
-4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 19 AS col1 FROM tab1 cor0
----
19
19
19
query I rowsort
SELECT DISTINCT col2 + + col1 * - col0 * col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT DISTINCT col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col2 * - ( + col0 ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5136
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5136
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * + 98 AS col1 FROM tab0 AS cor0
----
3234
8036
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5138
SELECT cor0.col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5138
SELECT cor0.col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col2 + - col2 * + ( col0 ) FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col1 + 12 AS col2 FROM tab0 AS cor0
----
-74
-79
-85
query I rowsort
SELECT ALL - col1 + + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL + col1 * 96 AS col0 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT + col0 + col2 * - 91 AS col0 FROM tab1 AS cor0
----
-4911
-5123
-8656
query I rowsort
SELECT DISTINCT + - col1 * + col1 + - 57 AS col0 FROM tab0 AS cor0
----
-7453
-8338
-9466
query I rowsort
SELECT + col0 * + 17 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-4758
-4898
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT DISTINCT col0 + - 60 DIV - 85 AS col1 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT col0 + - 60 / - 85 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT tab2.col2 + + col1 * col0 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col2 * 5 + cor0.col0 AS col1 FROM tab1 cor0
----
273
349
560
query I rowsort
SELECT ALL col0 * 79 AS col2 FROM tab1 cor0
----
237
5056
6320
query I rowsort
SELECT ALL + col2 * tab0.col0 * - col1 AS col0 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT ALL col0 + col2 DIV - col2 + col2 FROM tab1
----
120
175
56
skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL col0 + col2 / - col2 + col2 FROM tab1
----
120
175
56
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT ALL col2 * - ( + 9 ) * - col1 + col1 + + col1 FROM tab1
----
11258
12688
5150
onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT ( cor0.col1 ) * col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-5154
SELECT ( cor0.col1 ) * col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT DISTINCT - - col2 * col2 * + 52 FROM tab1 cor0
----
151632
168948
479232
query I rowsort
SELECT col1 * col1 - 46 * - col2 FROM tab1 AS cor0
----
2722
3160
4585
query I rowsort
SELECT ALL + 8 - - 63 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT DISTINCT + col1 - + col0 FROM tab0 cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 21 col2 FROM tab2
----
-14
57
58
query I rowsort
SELECT ALL + 36 + + col1 FROM tab0
----
122
127
133
query I rowsort
SELECT col2 - col0 * - col1 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT col0 + + col0 + col2 * tab0.col2 AS col1 FROM tab0
----
1137
6902
71
query I rowsort
SELECT DISTINCT + 45 + - col0 * 68 + + col0 FROM tab2
----
-424
-5181
-5248
query I rowsort
SELECT ALL - ( + tab0.col2 * - tab0.col0 ) - - 59 FROM tab0
----
7357
851
94
query I rowsort
SELECT ALL + 26 + col1 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT DISTINCT - + 18 FROM tab0, tab1, tab2 AS cor0
----
-18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT - - col0 - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5167
SELECT - - col0 - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + tab2.col1 * + col2 * + 83 - - tab2.col0 * col0 * + tab2.col0 AS col2 FROM tab2
----
546657
601874
69814
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + 67 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL + 96 + + tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c27473f42398ce0e9d671ad0cfbc06e
query I rowsort
SELECT ALL - col2 + - 29 AS col0 FROM tab0 AS cor0
----
-111
-30
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5173
SELECT + + col1 * + CAST( NULL AS SIGNED ) - col1 / col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5173
SELECT + + col1 * + CAST ( NULL AS INTEGER ) - col1 / col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * col0 + + 68 AS col0 FROM tab2 AS cor0
----
-6016
-6173
19
query I rowsort
SELECT DISTINCT - + col0 + col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT - - col0 + col0 * + col0 * col0 FROM tab0 AS cor0
----
13848
42910
705058
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT DISTINCT - cor0.col1 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - cor0.col1 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 - col0 * - cor0.col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ( 14 ) AS col1 FROM tab0
----
14
14
14
query I rowsort
SELECT ALL - 13 * + col1 AS col2 FROM tab1
----
-130
-169
-338
query I rowsort
SELECT DISTINCT + 63 + col2 AS col1 FROM tab1 AS cor0
----
117
120
159
query I rowsort
SELECT 16 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
-122880
-2592
-58368
query I rowsort
SELECT DISTINCT 32 * + col2 AS col2 FROM tab0 AS cor0
----
1056
2624
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT ALL + col2 DIV - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + col2 / - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + - ( - col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + - 83 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897
query I rowsort
SELECT DISTINCT - col0 * 31 FROM tab1 AS cor0
----
-1984
-2480
-93
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ALL + ( col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + + col2 * cor0.col1 + col2 * - col0 FROM tab1 AS cor0
----
-3078
-6432
1242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 - col2 col2 FROM tab2 AS cor0
----
26
37
38
query I rowsort
SELECT DISTINCT - 63 + - col1 FROM tab2 AS cor0
----
-122
-80
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT ALL 27 DIV - col1 + 95 col1 FROM tab1 AS cor0
----
93
93
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 27 / - col1 + 95 col1 FROM tab1 AS cor0
----
93
93
94
query I rowsort
SELECT 34 AS col1 FROM tab2 cor0
----
34
34
34
query I rowsort
SELECT ALL col2 + col2 * ( col0 + col0 ) AS col0 FROM tab0 AS cor0
----
14678
1617
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT + col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5196
SELECT + col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 * + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 80 + col0 * - col0 FROM tab2 AS cor0
----
-6004
-6161
31
query I rowsort
SELECT DISTINCT col0 * 19 FROM tab1
----
1216
1520
57
query I rowsort
SELECT - + col1 + - col0 * + col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT + col0 * col0 * + cor0.col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT tab1.col2 * col1 - col2 AS col0 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL + 39 - cor0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 897fe54b6f63770bf9c8cc853614f2a9
query I rowsort
SELECT ALL col2 * 69 AS col0 FROM tab0
----
2277
5658
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT CAST( - col0 + + col1 AS SIGNED ) AS col2 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-5205
SELECT CAST ( - col0 + + col1 AS INTEGER ) AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT - + 71 AS col0 FROM tab0 AS cor0
----
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT ( col0 ) + col0 DIV ( + 39 ) AS col2 FROM tab2 AS cor0
----
7
80
81
skipif mysql # not compatible
query I rowsort label-5208
SELECT ( col0 ) + col0 / ( + 39 ) AS col2 FROM tab2 AS cor0
----
7
80
81
query I rowsort
SELECT + - col1 * col2 + + col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT ALL + + 50 * - 93 FROM tab0 AS cor0
----
-4650
-4650
-4650
query I rowsort
SELECT ALL + 0 + ( + col0 ) * - 25 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - 86 * col0 FROM tab0 cor0
----
-2064
-3010
-7654
query I rowsort
SELECT + - 33 * + col1 AS col2 FROM tab1 AS cor0
----
-330
-429
-858
query I rowsort
SELECT + cor0.col0 + - col0 * + ( + col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + col0 * 57 FROM tab0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT DISTINCT col1 DIV - 61 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT col1 / - 61 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - + col2 * 41 + ( - cor0.col2 ) - + col1 * col0 FROM tab2 AS cor0
----
-1351
-2939
-5694
query I rowsort
SELECT ALL col2 * col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT + col1 * cor0.col0 DIV - 22 + cor0.col0 + + ( + col1 ) * col1 * - 95 FROM tab0 AS cor0
----
-702689
-786974
-893974
skipif mysql # not compatible
query I rowsort label-5221
SELECT + col1 * cor0.col0 / - 22 + cor0.col0 + + ( + col1 ) * col1 * - 95 FROM tab0 AS cor0
----
-702689
-786974
-893974
query I rowsort
SELECT ALL col2 * 46 AS col0 FROM tab1 AS cor0
----
2484
2622
4416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) + col2 * col1 / + ( col2 ) col2 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) + col2 * col1 / + ( col2 ) col2 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT - col1 + + CAST( col2 + - col0 AS SIGNED ) * 50 FROM tab1 AS cor0
----
-360
2524
787
skipif mysql # not compatible
query I rowsort label-5224
SELECT - col1 + + CAST ( col2 + - col0 AS INTEGER ) * 50 FROM tab1 AS cor0
----
-360
2524
787
query I rowsort
SELECT + - col2 + - 45 AS col0 FROM tab2 AS cor0
----
-71
-72
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT ALL - + col1 * - CAST( 39 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3354
3549
3783
skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - + col1 * - CAST ( 39 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3354
3549
3783
query I rowsort
SELECT ALL - + col1 * + 45 FROM tab0 AS cor0
----
-3870
-4095
-4365
query I rowsort
SELECT col1 * ( cor0.col0 * col1 ) + - cor0.col2 * col0 AS col1 FROM tab1 cor0
----
1866
2752
5840
query I rowsort
SELECT cor0.col2 + 35 FROM tab0 AS cor0
----
117
36
68
query I rowsort
SELECT - - col0 + cor0.col2 + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7453
8452
9445
query I rowsort
SELECT + - col2 * + col1 * + 37 + col1 FROM tab1 AS cor0
----
-21080
-46163
-51922
query I rowsort
SELECT ALL + col1 + - 75 FROM tab1
----
-49
-62
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5233
SELECT + 66 + + col1 DIV - col0 FROM tab2 AS cor0
----
62
66
66
skipif mysql # not compatible
query I rowsort label-5233
SELECT + 66 + + col1 / - col0 FROM tab2 AS cor0
----
62
66
66
query I rowsort
SELECT ( - col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 39 + 58 FROM tab2 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * - 98 col1 FROM tab0 AS cor0
----
-8820
-8820
-8820
query I rowsort
SELECT DISTINCT - 21 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-117
-75
-78
query I rowsort
SELECT - - col1 * col1 - - col0 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL col2 * cor0.col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - - 56 * - col2 + + col2 * - 75 FROM tab2 AS cor0
----
-3406
-3537
-4978
onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT - 41 + - 29 DIV col2 col2 FROM tab0 AS cor0
----
-41
-41
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5241
SELECT - 41 + - 29 / col2 col2 FROM tab0 AS cor0
----
-41
-41
-70
query I rowsort
SELECT DISTINCT + 24 + + 28 FROM tab2 AS cor0
----
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - tab1.col0 col0 FROM tab1
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5244
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + + col1 + 19 FROM tab1 AS cor0
----
29
32
45
query I rowsort
SELECT 97 AS col0 FROM tab0 cor0
----
97
97
97
query I rowsort
SELECT + 63 AS col0 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
query I rowsort
SELECT + 78 AS col2 FROM tab1
----
78
78
78
query I rowsort
SELECT - + 59 * - col0 FROM tab2 cor0
----
413
4602
4661
query I rowsort
SELECT cor0.col1 * cor0.col1 - 18 FROM tab2 AS cor0
----
271
3463
943
query I rowsort
SELECT 9 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - col1 + cor0.col0 + - col1 FROM tab0 AS cor0
----
-148
-159
-93
query I rowsort
SELECT - col2 - + col0 AS col2 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col1 * col2 + col2 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
-133
-14842
-3663
onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT DISTINCT - col2 DIV col2 + col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT - col2 / col2 + col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT - col2 * - col2 * - col2 + col0 AS col1 FROM tab1 cor0
----
-157461
-185129
-884656
query I rowsort
SELECT DISTINCT - + col2 + col2 * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + + col2 * col2 + col0 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + + col0 * col1 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT ALL col2 DIV + col2 + + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL col2 / + col2 + + col1 FROM tab1 AS cor0
----
11
14
27
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col1 BETWEEN ( + col2 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 - - cor0.col1 * - col2 col1 FROM tab2 AS cor0
----
-1397
-550
-799
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( - col0 )
----
query I rowsort
SELECT ALL col1 * col1 + - col1 - col2 FROM tab0
----
7277
8108
9311
query I rowsort
SELECT - tab0.col0 + + col2 - tab0.col1 * - col1 FROM tab0
----
7405
8274
9375
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col1 FROM tab2 cor0
----
-251
-3455
-934
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL col2 * col0 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL >= cor0.col2
----
query I rowsort
SELECT ALL + col2 * + col2 + col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT - col2 * + col1 + + col2 * col0 FROM tab1
----
-1242
3078
6432
query I rowsort
SELECT ALL - col1 * col1 * col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + col1 * col0 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 * + tab0.col2 )
----
query I rowsort
SELECT DISTINCT tab0.col2 * col1 + tab0.col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + col0 + + col1 * - col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL + - 17 + - col2 * + 76 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-106695
-43327
-94852
query I rowsort
SELECT + 51 + col1 * + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7447
8332
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT ALL - col0 DIV col0 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - col0 / col0 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT col1 - - tab1.col2 * + col0 * - col2 FROM tab1
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT tab0.col0 DIV - col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5286
SELECT tab0.col0 / - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 + col0 * - col2 - + col2 FROM tab1 WHERE NOT ( col1 ) <= NULL
----
query I rowsort
SELECT - col1 * col1 + col0 * 68 FROM tab0
----
-2229
-5764
-7029
query I rowsort
SELECT tab2.col1 * + col0 + ( col1 + col2 ) AS col0 FROM tab2
----
1398
275
4687
onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT 39 DIV col0 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-5290
SELECT 39 / col0 FROM tab2
----
0
0
5
query I rowsort
SELECT ALL col0 + col2 * ( col2 ) * + col0 FROM tab0
----
26160
598525
70
query I rowsort
SELECT DISTINCT - col2 + - col2 * col1 AS col0 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + ( col0 ) + + 33 * - col2 FROM tab1
----
-1779
-1817
-3088
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + + col0 + col1 * 96 AS col0 FROM tab2 AS cor0
----
1711
2983
5742
query I rowsort
SELECT ALL col2 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT DISTINCT + col2 * col0 - - ( - col0 ) DIV - col0 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + col2 * col0 - - ( - col0 ) / - col0 FROM tab0 AS cor0
----
36
7299
793
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - tab0.col1 - - col1 )
----
query I rowsort
SELECT + col0 * - col1 * + col2 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 * + tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT DISTINCT - col1 + col2 DIV - col1 FROM tab2
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - col1 + col2 / - col1 FROM tab2
----
-19
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT + col0 DIV + col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5302
SELECT + col0 / + col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col2 * + col0 * + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + col0 + col2 * col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT col1 * col1 + + col2 + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-413
-674
-983
query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 - + tab2.col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col0 + + col0 - col1 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + tab0.col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + + col1 * - col2 FROM tab0
----
-774
3298
637
query I rowsort
SELECT col2 * - col2 + col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE col0 BETWEEN - col0 + col2 AND NULL
----
query I rowsort
SELECT tab0.col0 + - tab0.col1 AS col1 FROM tab0 WHERE ( NULL ) IN ( col0 )
----
query I rowsort
SELECT DISTINCT + col0 + col1 * + col0 * - col0 FROM tab2
----
-106018
-1512
-358878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 * col0 col1 FROM tab0
----
1226
14645
1665
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - col0 AND NULL
----
query I rowsort
SELECT ALL + col2 - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----
query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col2 FROM tab1
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col2 FROM tab1 WHERE NOT + col2 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT DISTINCT + col0 - col2 DIV + col0 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + col0 - col2 / + col0 FROM tab0
----
23
35
89
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT ALL cor0.col2 DIV + 66 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL cor0.col2 / + 66 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT ALL + cor0.col1 + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3a6894d70dd3d5c057c48ad75eef24c4
query I rowsort
SELECT ALL col2 + col0 * + col2 * + col2 FROM tab1
----
207993
737376
8802
query I rowsort
SELECT + + col2 + 63 FROM tab0 AS cor0
----
145
64
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab0.col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + - tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + cor0.col1 * + 71 * col1 AS col2 FROM tab1 AS cor0
----
11999
47996
7100
query I rowsort
SELECT - 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT 8 FROM tab1, tab1 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL + col2 * - 47 AS col1 FROM tab0
----
-1551
-3854
-47
query I rowsort
SELECT + cor0.col0 * + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT DISTINCT 83 + col1 AS col2 FROM tab0 cor0
----
169
174
180
query I rowsort
SELECT - 69 * col2 FROM tab0 AS cor0
----
-2277
-5658
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT DISTINCT CAST( NULL AS SIGNED ) * 34 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 34 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * col1 * col0 FROM tab2 AS cor0
----
106080
1488
358897
query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab0, tab2 AS cor0
----
78
query I rowsort
SELECT + 59 * col2 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT + 2 * - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT col2 * col1 - 19 FROM tab0 AS cor0
----
2819
7443
78
query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 13 - col1 FROM tab2 cor0
----
-18
-4
-46
query I rowsort
SELECT ALL col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col2 * 0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * ( col0 ) FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT col2 DIV col1 - + 49 FROM tab0 AS cor0
----
-49
-49
-49
skipif mysql # not compatible
query I rowsort label-5349
SELECT col2 / col1 - + 49 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT DISTINCT - tab0.col0 + + 22 FROM tab1, tab2, tab0 cor0, tab0
----
-13
-2
-67
query I rowsort
SELECT - cor0.col2 + - cor0.col0 * col0 FROM tab2 cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col2 FROM tab2 AS cor0
----
78
query I rowsort
SELECT ALL - + col1 + 5 * 47 AS col2 FROM tab2 AS cor0
----
176
204
218
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + ( cor0.col2 + col2 ) * col2 col0 FROM tab2 cor0
----
1274
1451
2809
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col1 * col1 - 59 AS col1 FROM tab0 AS cor0
----
7337
8222
9350
query I rowsort
SELECT col0 + cor0.col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - cor0.col0 + ( col1 ) * col2 * - col1 FROM tab1 AS cor0
----
-16304
-36507
-5764
query I rowsort
SELECT cor0.col0 * 7 FROM tab2 cor0
----
49
546
553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT + + col1 + CAST( NULL AS SIGNED ) + 64 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5360
SELECT + + col1 + CAST ( NULL AS INTEGER ) + 64 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * 30 * - col1 FROM tab2 AS cor0
----
19380
25110
46020
query I rowsort
SELECT col1 + - 26 + col0 AS col2 FROM tab1 AS cor0
----
3
48
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT + 3 DIV - col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5363
SELECT + 3 / - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT - 79 DIV + col0 FROM tab1
----
-1
-26
0
skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - 79 / + col0 FROM tab1
----
-1
-26
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + cor0.col0 + col0 col0 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT - col2 * - 9 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT ALL - col2 * + col0 * col1 - + col1 AS col0 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT - col0 - + ( + col1 ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT - col1 + + col1 * col1 DIV - col0 FROM tab2 AS cor0
----
-103
-168
-20
skipif mysql # not compatible
query I rowsort label-5369
SELECT - col1 + + col1 * col1 / - col0 FROM tab2 AS cor0
----
-103
-168
-20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5370
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + cor0.col1 * + col1 + + cor0.col0 AS col2 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT - 46 + + col0 + - cor0.col2 * 26 * col0 FROM tab0 AS cor0
----
-189705
-20614
-921
query I rowsort
SELECT DISTINCT ( 9 ) + col1 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT ALL col2 * 93 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT ALL + - 51 + col0 FROM tab2 AS cor0
----
-44
27
28
query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab1 AS cor0
----
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5377
SELECT ALL ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT - cor0.col1 + + 22 - - cor0.col1 * - ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-3470
-664187
-68176
query I rowsort
SELECT DISTINCT 84 * + 45 + col2 + - 20 FROM tab1 AS cor0
----
3814
3817
3856
query I rowsort
SELECT ALL + tab1.col2 * tab1.col2 + + col0 AS col2 FROM tab1
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col1 + - col2 col0 FROM tab1 cor0
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col1 + - col2 col0 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL - + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + + ( - col2 ) * 33 * - col1 col2 FROM tab1
----
18880
41254
46402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT + CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5385
SELECT + CAST ( NULL AS REAL ) * + col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5386
SELECT DISTINCT col0 * ( - col2 ) * + CAST( 59 + - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-27720
-840
218940
skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT col0 * ( - col2 ) * + CAST ( 59 + - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-27720
-840
218940
query I rowsort
SELECT + 72 * - 84 AS col1 FROM tab2 AS cor0
----
-6048
-6048
-6048
query I rowsort
SELECT ALL + 0 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 - 26 FROM tab1 AS cor0
----
-13
-16
0
query I rowsort
SELECT DISTINCT 6 * + col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT ALL + col2 * - 13 FROM tab1 AS cor0
----
-1248
-702
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT ALL - - 17 + + 38 DIV col1 FROM tab0 AS cor0
----
17
17
17
skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - - 17 + + 38 / col1 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT + 91 + + col2 AS col2 FROM tab1 AS cor0
----
145
148
187
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT DISTINCT - + col0 DIV col2 + col1 FROM tab1 cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - + col0 / col2 + col1 FROM tab1 cor0
----
13
26
9
query I rowsort
SELECT DISTINCT + 47 * cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
1161
1646
4265
query I rowsort
SELECT col1 * + col2 * col2 + + 18 AS col2 FROM tab1
----
119826
32508
75834
onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT ALL 37 + col0 DIV - col1 + + 77 * col1 AS col0 FROM tab2
----
1342
2424
4579
skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL 37 + col0 / - col1 + + 77 * col1 AS col0 FROM tab2
----
1342
2424
4579
query I rowsort
SELECT - cor0.col1 + + cor0.col2 * col1 * col1 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT ALL - ( - col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col0 + + col0 * - col2 * col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5402
SELECT DISTINCT + + cor0.col2 + + col1 * CAST( + ( col0 ) AS SIGNED ) FROM tab0 cor0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + + cor0.col2 + + col1 * CAST ( + ( col0 ) AS INTEGER ) FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - 60 * col2 AS col2 FROM tab2 AS cor0
----
-1560
-1620
-2280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + 42 col0 FROM tab2 AS cor0
----
-1302
-2478
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + ( + cor0.col0 * ( cor0.col1 ) ) col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT ALL - col1 + + CAST( NULL AS DECIMAL ) / cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - col1 + + CAST ( NULL AS REAL ) / cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - 22 AS col2 FROM tab2 AS cor0
----
-572
-594
-836
query I rowsort
SELECT - col0 * col2 * - 41 AS col0 FROM tab2 AS cor0
----
123082
7749
83148
query I rowsort
SELECT DISTINCT col2 + 32 FROM tab2 AS cor0
----
58
59
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 21 * col0 col0 FROM tab0 AS cor0
----
1960
590
832
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col2 * - col1 - cor0.col0 * + col1 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT - col2 * ( - col1 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - col2 + col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL - col2 * + 99 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT + col0 * 70 + 9 FROM tab1 AS cor0
----
219
4489
5609
query I rowsort
SELECT cor0.col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT + cor0.col2 DIV 58 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5422
SELECT + cor0.col2 / 58 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col2 + - 82 * 34 * + col1 AS col2 FROM tab2 AS cor0
----
-164466
-47358
-86401
onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT ALL - col0 + col2 * col2 DIV col1 FROM tab0 AS cor0
----
-12
-16
-35
skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - col0 + col2 * col2 / col1 FROM tab0 AS cor0
----
-12
-16
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT col2 * ( + cor0.col0 ) DIV col0 + + ( 45 ) FROM tab0 AS cor0
----
127
46
78
skipif mysql # not compatible
query I rowsort label-5425
SELECT col2 * ( + cor0.col0 ) / col0 + + ( 45 ) FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT DISTINCT - - cor0.col1 * + ( 46 ) FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 95 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT + col1 * 47 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT DISTINCT - col1 * + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - col1 * + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( + col1 ) * - 45 FROM tab1 AS cor0
----
-1170
-450
-585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + cor0.col1 col0 FROM tab1 AS cor0
----
42
45
58
query I rowsort
SELECT DISTINCT + + 51 FROM tab0 AS cor0
----
51
query I rowsort
SELECT DISTINCT - 68 - col2 AS col1 FROM tab2
----
-106
-94
-95
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - 50 - + col1 AS col0 FROM tab0
----
-136
-141
-147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + - ( - col0 ) col1 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 + + col1 AS col1 FROM tab0
----
2117
3491
8108
query I rowsort
SELECT col0 + - col0 + 31 FROM tab1
----
31
31
31
query I rowsort
SELECT ALL + 50 * - col2 + + 57 + col2 AS col0 FROM tab2
----
-1217
-1266
-1805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab2.col2 + 22 col0 FROM tab2
----
-19
-30
42
query I rowsort
SELECT DISTINCT + col0 * col1 + - ( col2 + - col1 ) AS col0 FROM tab1
----
50
593
957
query I rowsort
SELECT ALL - - col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + col0 * col1 + ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT col0 * - col1 + ( - col1 ) FROM tab1
----
-104
-1053
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT DISTINCT col0 * col2 + + CAST( 45 * col1 + + CAST( + col2 AS SIGNED ) * - col0 AS SIGNED ) FROM tab0
----
3870
4095
4365
skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT col0 * col2 + + CAST ( 45 * col1 + + CAST ( + col2 AS INTEGER ) * - col0 AS INTEGER ) FROM tab0
----
3870
4095
4365
query I rowsort
SELECT - ( + col2 ) + + col0 - + ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT - + 57 DIV - 73 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5451
SELECT - + 57 / - 73 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - 81 ) - col2 AS col1 FROM tab0 AS cor0
----
-114
-163
-82
query I rowsort
SELECT + cor0.col0 - + col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT 41 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5454
SELECT 41 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab0.col2 * ( + col0 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - 88 * tab2.col2 FROM tab2
----
-2288
-2376
-3344
query I rowsort
SELECT + - col2 - - col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT ALL - CAST( NULL AS SIGNED ) + 59 * col1 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - CAST ( NULL AS INTEGER ) + 59 * col1 col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT CAST( NULL AS SIGNED ) / - 5 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5459
SELECT CAST ( NULL AS INTEGER ) / - 5 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5460
SELECT - CAST( NULL AS SIGNED ) + col2 / - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5460
SELECT - CAST ( NULL AS INTEGER ) + col2 / - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + 67 + col0 * ( 77 ) AS col1 FROM tab1 cor0
----
12592
3849
8747
query I rowsort
SELECT ALL - col2 * ( + col1 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT 14 + col0 * ( tab0.col0 ) AS col1 FROM tab0
----
1239
590
7935
query I rowsort
SELECT col0 * tab0.col1 * col0 AS col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - + cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + + col1 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - - cor0.col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 * - ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col2 + + col2 * 65 * + col2 AS col2 FROM tab2 AS cor0
----
43914
47358
93822
query I rowsort
SELECT - cor0.col2 + - 3 * 2 FROM tab2 AS cor0
----
-32
-33
-44
query I rowsort
SELECT DISTINCT tab1.col2 * ( + 79 ) * + col0 AS col1 FROM tab1
----
12798
288192
606720
query I rowsort
SELECT DISTINCT + col0 * 96 * + col1 FROM tab0
----
198144
325920
777504
query I rowsort
SELECT + - cor0.col2 * col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + 34 * cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
1146
2877
69
query I rowsort
SELECT + - ( 23 ) * - col0 AS col0 FROM tab0 AS cor0
----
2047
552
805
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT DISTINCT + ( 77 ) * col2 + ( + cor0.col2 ) + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
175
2576
6397
skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + ( 77 ) * col2 + ( + cor0.col2 ) + cor0.col1 / + col2 FROM tab0 AS cor0
----
175
2576
6397
query I rowsort
SELECT + col0 + - ( col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL tab1.col2 * 12 * 27 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 2e9b3ad50362fbdc822439bf5480a1ca
query I rowsort
SELECT 5 + - col0 + col1 * col1 FROM tab2 AS cor0
----
215
3408
959
onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT + col2 + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5481
SELECT + col2 + col0 / + col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 63 * + col1 + col1 FROM tab2 AS cor0
----
-1054
-1922
-3658
onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT 16 DIV + cor0.col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5483
SELECT 16 / + cor0.col1 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( 75 ) * + cor0.col2 + + 97 col0 FROM tab2 AS cor0
----
-108203
-50603
-54578
query I rowsort
SELECT - col1 + ( + 28 ) AS col1 FROM tab2 AS cor0
----
-3
-31
11
query I rowsort
SELECT ALL + col2 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + ( col1 ) + - col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - col2 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + + 65 * col0 + + col0 + - 24 AS col2 FROM tab0 AS cor0
----
1560
2286
5850
query I rowsort
SELECT ALL + cor0.col2 * - col2 + + 70 FROM tab1 AS cor0
----
-2846
-3179
-9146
onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT ALL + - col0 + - col1 DIV - col0 col0 FROM tab1 cor0
----
-64
-80
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + - col0 + - col1 / - col0 col0 FROM tab1 cor0
----
-64
-80
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT ALL - col0 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - col0 + col0 / col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL - col2 - - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - 79 * col1 FROM tab0
----
-6794
-7189
-7663
query I rowsort
SELECT DISTINCT 27 + tab2.col0 AS col2 FROM tab2
----
105
106
34
query I rowsort
SELECT + 2 + - col1 AS col1 FROM tab0
----
-84
-89
-95
query I rowsort
SELECT - ( col1 * - tab0.col1 ) + + col1 FROM tab0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT ALL + col0 + - cor0.col0 DIV - 56 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + col0 + - cor0.col0 / - 56 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + 24 + col1 AS col1 FROM tab1 cor0
----
34
37
50
query I rowsort
SELECT DISTINCT - col0 * - col1 + ( cor0.col0 ) FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - 27 * - col2 FROM tab0 AS cor0
----
2214
27
891
query I rowsort
SELECT + - 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT DISTINCT - - col1 * + col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - 27 FROM tab2, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL - col2 - col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col0 + - col2 * + col1 FROM tab0 cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * - col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL 97 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 50 * + 90 + - col0 col0 FROM tab1 AS cor0
----
242997
256436
431920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT col2 + CAST( NULL AS SIGNED ) + - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5513
SELECT col2 + CAST ( NULL AS INTEGER ) + - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - tab1.col1 + col0 + col2 * col2 FROM tab1
----
3413
3595
9465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 77 col1 FROM tab0
----
110
159
78
query I rowsort
SELECT DISTINCT + tab1.col1 + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL - ( ( col1 ) ) + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col1 + ( col2 + col1 ) AS col2 FROM tab2 AS cor0
----
-1449
-591
-779
skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col1 + ( col2 + col1 ) AS col2 FROM tab2 AS cor0
----
-1449
-591
-779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 45 col2 FROM tab1 AS cor0
----
45
query I rowsort
SELECT DISTINCT 95 * + cor0.col2 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT DISTINCT + col1 * col2 * + tab0.col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 + - 3 + - col2 AS col2 FROM tab2
----
-24
1
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT DISTINCT - + CAST( 40 AS SIGNED ) col0 FROM tab0 cor0
----
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - + CAST ( 40 AS INTEGER ) col0 FROM tab0 cor0
----
-40
query I rowsort
SELECT ALL - col2 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - cor0.col1 + col1 + col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT DISTINCT + - ( + col2 ) DIV cor0.col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT + - ( + col2 ) / cor0.col1 FROM tab0 cor0
----
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab2 AS cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL col1 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL col1 * col2 / col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab1 cor0
----
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT ALL 72 DIV - col0 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL 72 / - col0 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT ALL + col0 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col1 * col2 + ( + 16 ) AS col0 FROM tab1 AS cor0
----
-1232
-1388
-554
onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT DISTINCT - ( + col1 ) DIV 90 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - ( + col1 ) / 90 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 47 * - col0 AS col2 FROM tab2 AS cor0
----
-329
-3666
-3713
query I rowsort
SELECT - col2 * - col2 + ( col1 ) FROM tab1 cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT - cor0.col2 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - cor0.col2 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
-26
-31
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT - col0 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5538
SELECT - col0 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + col2 col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT DISTINCT col0 * col0 * col2 + - col1 DIV col1 + + tab2.col0 * + col1 AS col0 FROM tab2
----
1539
162785
238500
skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT col0 * col0 * col2 + - col1 / col1 + + tab2.col0 * + col1 AS col0 FROM tab2
----
1539
162785
238500
onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT DISTINCT - - col1 DIV - 25 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - - col1 / - 25 FROM tab2 AS cor0
----
-1
-2
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
query I rowsort
SELECT ALL - col2 + - 81 AS col2 FROM tab2 AS cor0
----
-107
-108
-119
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 - + col0 * col2 AS col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT + 78 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * - cor0.col1 col2 FROM tab0 cor0
----
-1204
-1274
-1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 90 * - col2 - cor0.col2 * - col0 col1 FROM tab1 AS cor0
----
16416
5076
8835
query I rowsort
SELECT - 66 * - col2 + + col2 + 51 AS col1 FROM tab2 AS cor0
----
1793
1860
2597
query I rowsort
SELECT - 24 * + cor0.col0 FROM tab2 AS cor0
----
-168
-1872
-1896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col1 + ( - col0 ) col1 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT DISTINCT col2 + ( - 91 ) AS col1 FROM tab1
----
-34
-37
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT - col2 * CAST( NULL AS DECIMAL ) / - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5554
SELECT - col2 * CAST ( NULL AS REAL ) / - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col2 + 4 + - col0 AS col2 FROM tab0
----
-1109
-32
-6809
query I rowsort
SELECT - col0 * 8 + - 16 FROM tab1
----
-40
-528
-656
query I rowsort
SELECT DISTINCT - col2 - + tab2.col2 * col1 AS col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + col0 * + 80 + - col0 + + tab1.col1 FROM tab1
----
263
5066
6333
query I rowsort
SELECT col0 * 7 AS col0 FROM tab0
----
168
245
623
query I rowsort
SELECT ALL - col2 * - 4 + col1 * tab1.col1 FROM tab1
----
328
553
892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5561
SELECT DISTINCT - col1 * + col2 + 23 * col1 + + CAST( col2 AS SIGNED ) col0 FROM tab2
----
-151
-217
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - col1 * + col2 + 23 * col1 + + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
-151
-217
-97
query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT cor0.col0 * col1 * 32 FROM tab0 AS cor0
----
108640
259168
66048
query I rowsort
SELECT col2 * 82 AS col1 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT + + col0 * 35 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT col1 + + 35 * col1 FROM tab1 cor0
----
360
468
936
query I rowsort
SELECT - + 76 * - col2 * - col1 FROM tab0 AS cor0
----
-215688
-567112
-7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT - 94 DIV cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-5568
SELECT - 94 / cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT DISTINCT 74 * cor0.col0 - + col2 AS col2 FROM tab0 AS cor0
----
1743
2589
6504
query I rowsort
SELECT + + ( + 3 ) AS col2 FROM tab0 AS cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL + - 86 + - col1 DIV + col1 - ( col2 * col2 ) FROM tab2 AS cor0
----
-1531
-763
-816
skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + - 86 + - col1 / + col1 - ( col2 * col2 ) FROM tab2 AS cor0
----
-1531
-763
-816
query I rowsort
SELECT DISTINCT + 37 * col1 AS col0 FROM tab2 cor0
----
1147
2183
629
query I rowsort
SELECT + 88 * - col0 AS col0 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT col2 * col2 - col0 AS col1 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT 10 FROM tab0, tab1 AS cor0, tab1 cor1
----
10
query I rowsort
SELECT ALL + 47 * tab2.col1 FROM tab2
----
1457
2773
799
query I rowsort
SELECT - + col0 + + 87 * + 42 FROM tab1 AS cor0
----
3574
3590
3651
query I rowsort
SELECT ALL + 16 AS col1 FROM tab0
----
16
16
16
query I rowsort
SELECT - + col0 * + 65 FROM tab2 cor0
----
-455
-5070
-5135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL cor0.col0 + + col0 * 7 AS col0 FROM tab2 AS cor0
----
56
624
632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT ALL - - col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 82 * - tab1.col0 AS col2 FROM tab1
----
-246
-5248
-6560
query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0, tab2 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT + tab2.col0 + col1 * col0 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT CAST( 30 AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif mysql # not compatible
query I rowsort label-5586
SELECT CAST ( 30 AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT col1 + + ( - 85 ) FROM tab0
----
1
12
6
query I rowsort
SELECT - col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + ( + 60 ) * col0 col2 FROM tab2 AS cor0
----
393
4654
4702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT ALL col1 DIV - cor0.col0 + CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL col1 / - cor0.col0 + CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col1 col2 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT DISTINCT + 94 + col0 FROM tab2
----
101
172
173
query I rowsort
SELECT - 22 + col1 FROM tab1 AS cor0
----
-12
-9
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5597
SELECT ALL - col2 / + col1 + - CAST( NULL AS SIGNED ) * + col2 / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - col2 / + col1 + - CAST ( NULL AS INTEGER ) * + col2 / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 * col2 + - col1 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-3150
-44209
-92416
query I rowsort
SELECT + - 27 AS col0 FROM tab0 AS cor0
----
-27
-27
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT ALL + ( + col1 ) + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + ( + col1 ) + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT + col1 DIV + cor0.col0 + ( col2 * - col1 ) AS col1 FROM tab0 AS cor0
----
-2835
-7461
-95
skipif mysql # not compatible
query I rowsort label-5602
SELECT + col1 / + cor0.col0 + ( col2 * - col1 ) AS col1 FROM tab0 AS cor0
----
-2835
-7461
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5603
SELECT + + col0 * cor0.col1 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
skipif mysql # not compatible
query I rowsort label-5603
SELECT + + col0 * cor0.col1 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL tab2.col0 * col0 + - tab2.col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT DISTINCT - tab2.col2 + col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - col1 * col1 * col1 AS col1 FROM tab0 cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT col1 * col2 DIV cor0.col2 + - col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
177590
329412
737100
skipif mysql # not compatible
query I rowsort label-5609
SELECT col1 * col2 / cor0.col2 + - col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT - - col2 + + cor0.col1 * col2 * - col0 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 + col0 * + col1 FROM tab2
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT col2 + col2 DIV + tab1.col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-5614
SELECT col2 + col2 / + tab1.col1 FROM tab1
----
103
56
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * col0 + col0 * - col2 col1 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT ALL + col2 * col2 + tab1.col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT col2 + + col0 * + col1 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL + + cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab0 cor0
----
58
58
58
query I rowsort
SELECT cor0.col2 * col1 + - col0 + - col1 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT - 7 * col1 * - col2 FROM tab0 AS cor0
----
19866
52234
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT + col2 + + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-5622
SELECT + col2 + + col1 / + col0 AS col0 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT ( + col0 ) * col0 + + col0 * + col2 + - cor0.col2 FROM tab1 cor0
----
117
13984
7687
query I rowsort
SELECT ALL 91 AS col1 FROM tab2 AS cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT col1 DIV - cor0.col0 - col0 col2 FROM tab0 AS cor0
----
-27
-37
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5625
SELECT col1 / - cor0.col0 - col0 col2 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT - + ( - cor0.col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT cor0.col1 + + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-5627
SELECT cor0.col1 + + cor0.col2 / - col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT DISTINCT + - 68 * + col1 * col0 FROM tab2 cor0
----
-14756
-312936
-91324
onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT ALL + 17 DIV col0 col0 FROM tab1
----
0
0
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 17 / col0 col0 FROM tab1
----
0
0
5
query I rowsort
SELECT ( col2 ) * - col0 - col0 * col0 AS col1 FROM tab2
----
-238
-8112
-9243
query I rowsort
SELECT - 45 * - 50 - + tab2.col1 AS col0 FROM tab2
----
2191
2219
2233
query I rowsort
SELECT - col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT - CAST( 83 * + col0 AS SIGNED ) FROM tab2
----
-581
-6474
-6557
skipif mysql # not compatible
query I rowsort label-5634
SELECT - CAST ( 83 * + col0 AS INTEGER ) FROM tab2
----
-581
-6474
-6557
onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT DISTINCT - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - col2 / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + 40 - - col0 FROM tab0
----
129
64
75
query I rowsort
SELECT - col1 + - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-113
-196
-69
query I rowsort
SELECT col1 * col1 + - cor0.col1 + col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + - col0 * + col1 * + col2 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col0 + + tab2.col1 + col2 AS col0 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT DISTINCT col1 * col2 + + tab0.col1 * + col2 - + col2 DIV - col1 AS col1 FROM tab0
----
14924
194
5676
skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT col1 * col2 + + tab0.col1 * + col2 - + col2 / - col1 AS col1 FROM tab0
----
14924
194
5676
query I rowsort
SELECT DISTINCT col1 + - col2 + + col1 FROM tab0
----
100
139
193
query I rowsort
SELECT col1 * col2 * + col1 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 + col0 * col0 - - col2 * + col0 FROM tab1
----
14093
197
7754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT tab0.col2 * col1 DIV + tab0.col2 - col0 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-5645
SELECT tab0.col2 * col1 / + tab0.col2 - col0 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT DISTINCT col2 DIV tab2.col1 AS col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT col2 / tab2.col1 AS col1 FROM tab2
----
0
2
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * + col2 col1 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT ALL + col0 * - col2 - col2 * + col0 AS col2 FROM tab0
----
-14596
-1584
-70
query I rowsort
SELECT col0 * col1 * + col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT tab0.col2 * + col0 * + col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col1 + col1 AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT - col2 + + col1 * + col1 * + col1 AS col2 FROM tab0
----
636023
753489
912672
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( - col0 + + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT tab0.col1 * col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT col2 + - tab0.col0 * + col0 AS col1 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT col1 * + col1 - - col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT - col1 DIV + col0 + col2 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-5658
SELECT - col1 / + col0 + col2 FROM tab1
----
46
57
96
query I rowsort
SELECT ALL col0 * + col2 - + col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL col2 + - col0 * col1 AS col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col2 * col1 NOT IN ( - col2 + + tab1.col1 * col0 * col0 )
----
query I rowsort
SELECT DISTINCT + col0 + col0 + tab1.col0 FROM tab1
----
192
240
9
query I rowsort
SELECT DISTINCT tab2.col2 + col1 * col1 FROM tab2 WHERE ( + col2 * + col1 * col2 - col0 ) BETWEEN col2 - + col2 AND + col2 * + col0 + col1 * - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT DISTINCT col1 DIV tab2.col0 col2 FROM tab2
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT col1 / tab2.col0 col2 FROM tab2
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT - col2 DIV - col1 + - tab0.col2 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5665
SELECT - col2 / - col1 + - tab0.col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 + col0 * + col0 * cor0.col1 col1 FROM tab1 AS cor0
----
342
41074
83392
query I rowsort
SELECT ALL - + col0 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col2 * + col1 * - cor0.col0 col1 FROM tab1 AS cor0
----
-2808
-35910
-98592
query I rowsort
SELECT ALL cor0.col0 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + cor0.col0 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col0 - col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col1 * col1 + + col1 * col2 FROM tab1
----
1079
470
728
query I rowsort
SELECT DISTINCT col0 * - col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-118728
-49450
-720720
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
query I rowsort
SELECT ALL - col2 * tab1.col2 - + col2 AS col1 FROM tab1
----
-2970
-3306
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT col1 + col2 + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1357
1484
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col2 FROM tab0 AS cor0 WHERE NULL >= ( + col0 * col1 - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT DISTINCT + col0 + - col2 DIV + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1169
-1402
-507
skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + col0 + - col2 / + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1169
-1402
-507
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT - 15 * - col0 FROM tab0
----
1335
360
525
query I rowsort
SELECT - 80 + + 33 AS col0 FROM tab2 AS cor0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 98 col1 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT 34 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 72 - + col1 FROM tab0
----
-14
-19
-25
query I rowsort
SELECT 46 * col2 FROM tab1 cor0
----
2484
2622
4416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT DISTINCT col0 + CAST( - 23 AS SIGNED ) * - col1 - col2 col0 FROM tab1 cor0
----
237
283
547
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT col0 + CAST ( - 23 AS INTEGER ) * - col1 - col2 col0 FROM tab1 cor0
----
237
283
547
query I rowsort
SELECT ALL col0 - col0 * + ( col2 + + col1 * - 5 ) FROM tab0 AS cor0
----
16975
33286
9552
query I rowsort
SELECT 8 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * - 75 col0 FROM tab2
----
-108300
-50700
-54675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 68 col2 FROM tab2 AS cor0
----
106
94
95
query I rowsort
SELECT 27 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 - - cor0.col2 col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + + col2 * - 84 + + 66 AS col2 FROM tab2 AS cor0
----
-2118
-2202
-3126
onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT - + 26 DIV - col2 + - col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5697
SELECT - + 26 / - col2 + - col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col0 * 50 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT + 37 + cor0.col1 DIV - col0 col0 FROM tab0 AS cor0
----
34
35
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5699
SELECT + 37 + cor0.col1 / - col0 col0 FROM tab0 AS cor0
----
34
35
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5700
SELECT CAST( NULL AS SIGNED ) + + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5700
SELECT CAST ( NULL AS INTEGER ) + + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 - - 49 col1 FROM tab1, tab1 cor0
----
31
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT 31 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL col2 + 97 AS col2 FROM tab0
----
130
179
98
query I rowsort
SELECT + col2 + 98 AS col0 FROM tab0
----
131
180
99
query I rowsort
SELECT ALL + 57 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT - - col1 * col2 + + col1 - col1 DIV + 49 AS col1 FROM tab0 AS cor0
----
193
2923
7552
skipif mysql # not compatible
query I rowsort label-5707
SELECT - - col1 * col2 + + col1 - col1 / + 49 AS col1 FROM tab0 AS cor0
----
193
2923
7552
query I rowsort
SELECT col0 + 75 AS col2 FROM tab0 AS cor0
----
110
164
99
query I rowsort
SELECT - cor0.col1 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 70 * 61 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to be016dacecb35922a28e2772c719a9cd
query I rowsort
SELECT ALL - col2 * - col1 * + col0 AS col0 FROM tab1 cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT - CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5712
SELECT - CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( tab1.col0 ) * - tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + cor0.col1 * col1 * - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT ALL 70 AS col1 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT ALL - - 74 AS col2 FROM tab1 cor0
----
74
74
74
query I rowsort
SELECT - 59 * col0 FROM tab0 AS cor0
----
-1416
-2065
-5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT - col1 + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-5718
SELECT - col1 + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2 AS cor0
----
65
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL cor0.col1 + - col2 * - 37 * col2 AS col0 FROM tab0 AS cor0
----
134
248879
40379
query I rowsort
SELECT ALL col1 * 83 AS col2 FROM tab2
----
1411
2573
4897
query I rowsort
SELECT DISTINCT - 82 FROM tab2, tab1, tab2 AS cor0
----
-82
query I rowsort
SELECT 66 * tab1.col0 FROM tab1
----
198
4224
5280
query I rowsort
SELECT ALL cor0.col0 * + 57 AS col0 FROM tab1 cor0
----
171
3648
4560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT DISTINCT - - col1 DIV + cor0.col1 AS col0 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT - - col1 / + cor0.col1 AS col0 FROM tab1 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT ALL cor0.col1 * ( col2 ) * + col2 + + cor0.col2 DIV cor0.col0 AS col0 FROM tab0 cor0
----
611884
93655
97
skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL cor0.col1 * ( col2 ) * + col2 + + cor0.col2 / cor0.col0 AS col0 FROM tab0 cor0
----
611884
93655
97
query I rowsort
SELECT DISTINCT - ( col1 * + 17 + 41 ) AS col0 FROM tab2
----
-1044
-330
-568
query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0
----
-56
query I rowsort
SELECT + 84 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT + CAST( tab2.col0 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif mysql # not compatible
query I rowsort label-5731
SELECT + CAST ( tab2.col0 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - col1 * 29 AS col1 FROM tab1 AS cor0
----
-290
-377
-754
query I rowsort
SELECT ALL - 42 * + col0 - col2 * + col2 FROM tab0
----
-10462
-1471
-2097
query I rowsort
SELECT ALL ( col2 ) + - col0 AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL col2 + + cor0.col2 * - ( 95 ) AS col0 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT DISTINCT + 61 + + col2 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT ALL 96 + col2 AS col2 FROM tab1
----
150
153
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT - tab0.col2 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5738
SELECT - tab0.col2 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col1 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + cor0.col1 * col0 - 35 * cor0.col1 AS col0 FROM tab2 cor0
----
-868
2537
748
query I rowsort
SELECT DISTINCT - - 90 + + col2 FROM tab0 cor0
----
123
172
91
query I rowsort
SELECT DISTINCT + - col0 * - 75 FROM tab2 AS cor0
----
525
5850
5925
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5743
SELECT - - col0 * - CAST( NULL AS SIGNED ) + - 77 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5743
SELECT - - col0 * - CAST ( NULL AS INTEGER ) + - 77 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - 21 FROM tab0 cor0
----
-1869
-504
-735
query I rowsort
SELECT ALL - col2 * + col2 + 82 * cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1617
81
query I rowsort
SELECT + col0 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - + col0 * col2 * ( col0 * col0 ) FROM tab2 AS cor0
----
-12338352
-18735482
-9261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 39 * - col0 + - col1 col0 FROM tab1 AS cor0
----
-142282
-299533
-6344
query I rowsort
SELECT DISTINCT + + col2 * - col1 + + 5 * col2 AS col2 FROM tab1 AS cor0
----
-1134
-285
-768
query I rowsort
SELECT - col1 * 4 + + col0 FROM tab1 AS cor0
----
-101
24
28
query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5752
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT ALL cor0.col0 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL cor0.col0 / ( col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT + col0 + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5754
SELECT + col0 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * col1 - 57 col2 FROM tab2
----
1286
160
4545
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * - CAST ( 11 AS REAL ) + - col1 FROM tab1 AS cor0
----
1043
568
617
query I rowsort
SELECT + col0 * + 38 + + col2 AS col2 FROM tab1 AS cor0
----
168
2489
3136
query I rowsort
SELECT ALL - col1 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + - ( - col2 ) * cor0.col1 - + 17 FROM tab2 AS cor0
----
1517
629
820
query I rowsort
SELECT ALL - ( 37 ) FROM tab0 cor0
----
-37
-37
-37
query I rowsort
SELECT ALL col1 * + 94 FROM tab1 AS cor0
----
1222
2444
940
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT DISTINCT ( col2 ) DIV col0 col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT ( col2 ) / col0 col2 FROM tab0 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5764
SELECT + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT + 3 + 64 * col0 DIV - 56 AS col2 FROM tab2 AS cor0
----
-5
-86
-87
skipif mysql # not compatible
query I rowsort label-5765
SELECT + 3 + 64 * col0 / - 56 AS col2 FROM tab2 AS cor0
----
-5
-86
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 53 col2 FROM tab0 AS cor0
----
-20
-52
29
query I rowsort
SELECT - 6 * + col2 FROM tab2 AS cor0
----
-156
-162
-228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5768
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 78 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 78 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 91 * col2 AS col0 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT + 17 * + col1 AS col0 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT col1 + - ( - cor0.col1 ) * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL ( col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col0 * cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + 86 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT ( 48 ) AS col1 FROM tab2
----
48
query I rowsort
SELECT 55 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + cor1.col1 + + 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f3348d674699c644ffdfdd68a8e398d3
query I rowsort
SELECT - + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col1 + col1 * - cor0.col2 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT 32 * col2 AS col1 FROM tab1 AS cor0
----
1728
1824
3072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 44 col1 FROM tab2
----
70
71
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT + - 52 DIV - col0 FROM tab1 AS cor0
----
0
0
17
skipif mysql # not compatible
query I rowsort label-5784
SELECT + - 52 / - col0 FROM tab1 AS cor0
----
0
0
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ( col2 ) + ( + 1 * - col0 ) FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col2 + 73 * col0 FROM tab0 AS cor0
----
1785
2556
6579
query I rowsort
SELECT ALL + col2 * col0 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - - 79 * - col1 FROM tab1 AS cor0
----
-1027
-2054
-790
query I rowsort
SELECT + - 16 AS col0 FROM tab1 AS cor0
----
-16
-16
-16
query I rowsort
SELECT + 90 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL - 75 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT ALL 46 AS col2 FROM tab1
----
46
46
46
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - cor0.col2 * + 88 AS col2 FROM tab1 cor0
----
-4752
-5016
-8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT ALL + col1 * col0 + - col2 DIV + col0 + + ( + cor0.col2 ) FROM tab0 AS cor0
----
2096
3396
8181
skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + col1 * col0 + - col2 / + col0 + + ( + cor0.col2 ) FROM tab0 AS cor0
----
2096
3396
8181
query I rowsort
SELECT + - col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5799
SELECT - + cor0.col2 * + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5799
SELECT - + cor0.col2 * + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT cor0.col0 * ( 79 ) + - col2 DIV CAST( 40 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1896
2765
7029
skipif mysql # not compatible
query I rowsort label-5800
SELECT cor0.col0 * ( 79 ) + - col2 / CAST ( 40 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1896
2765
7029
query I rowsort
SELECT + + col0 * col2 + col1 * col2 * + 3 - - cor0.col0 FROM tab0 AS cor0
----
29773
361
9330
query I rowsort
SELECT DISTINCT + 90 FROM tab1, tab1 AS cor0, tab0 cor1
----
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT col1 * - col1 DIV col1 AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5804
SELECT col1 * - col1 / col1 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + 54 AS col1 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT + tab1.col2 * - col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + + col1 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + + col1 + + ( + cor0.col0 ) - + col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - ( col2 * - col0 ) AS col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT DISTINCT + ( + col1 ) DIV + col2 + - 45 FROM tab1 AS cor0
----
-45
skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT + ( + col1 ) / + col2 + - 45 FROM tab1 AS cor0
----
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT ALL - - cor0.col2 * 80 DIV + col2 + col1 + col1 AS col2 FROM tab1 AS cor0
----
100
106
132
skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - - cor0.col2 * 80 / + col2 + col1 + col1 AS col2 FROM tab1 AS cor0
----
100
106
132
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to dc112f70fecc29a6e605a39541192f43
query I rowsort
SELECT - - col1 + col2 * ( 59 ) AS col0 FROM tab2 cor0
----
1593
1624
2259
query I rowsort
SELECT - 32 * cor0.col1 + 93 - col2 FROM tab2 AS cor0
----
-1821
-489
-926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col2 + - ( col2 ) * col2 col2 FROM tab2 AS cor0
----
-1389
-591
-671
onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT col0 - + col2 * col0 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5816
SELECT col0 - + col2 * col0 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT 11 * col0 + + ( col2 ) FROM tab2
----
104
884
907
query I rowsort
SELECT + col2 - + col1 * + 33 AS col1 FROM tab1 AS cor0
----
-273
-333
-804
query I rowsort
SELECT col1 - - cor0.col0 * 51 FROM tab2 AS cor0
----
388
4037
4046
query I rowsort
SELECT DISTINCT + col0 + + 97 * col0 * col2 FROM tab1 AS cor0
----
15717
353920
745040
query I rowsort
SELECT col1 * + 13 FROM tab2
----
221
403
767
query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col2 + + ( - col2 ) * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT cor2.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 + col2 * - 88 FROM tab2 cor0
----
-2314
-2403
-3382
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199
query I rowsort
SELECT - col1 * - ( cor0.col2 * col1 ) - cor0.col2 FROM tab0 AS cor0
----
244035
678960
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT DISTINCT + col2 + - CAST( - 11 AS SIGNED ) FROM tab1 AS cor0
----
107
65
68
skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + col2 + - CAST ( - 11 AS INTEGER ) FROM tab1 AS cor0
----
107
65
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ALL col2 * ( col2 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL col2 * ( col2 ) / - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col0 * col0 - cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab1, tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * col1 col1 FROM tab0 cor0
----
7740
8190
8730
query I rowsort
SELECT 90 + - col1 AS col2 FROM tab2
----
31
59
73
query I rowsort
SELECT ALL - ( + col2 ) * + col0 * + ( - col2 ) AS col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT 97 - 50 * - col0 AS col2 FROM tab0
----
1297
1847
4547
query I rowsort
SELECT + + col0 * - 23 AS col2 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT DISTINCT + 18 * 7 FROM tab2 AS cor0
----
126
query I rowsort
SELECT - - col2 * + 82 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT + 12 * col2 AS col1 FROM tab0 cor0
----
12
396
984
query I rowsort
SELECT col0 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT DISTINCT + + 77 DIV - col2 FROM tab0 AS cor0
----
-2
-77
0
skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + + 77 / - col2 FROM tab0 AS cor0
----
-2
-77
0
query I rowsort
SELECT 81 + cor0.col0 AS col1 FROM tab1 cor0
----
145
161
84
query I rowsort
SELECT ALL col0 * - col1 + - 11 * col2 FROM tab2 AS cor0
----
-1761
-4888
-514
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT DISTINCT + - 41 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
13
skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT + - 41 / - col0 AS col0 FROM tab1 AS cor0
----
0
13
query I rowsort
SELECT ALL + + 4 * col2 * + 21 AS col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT - col0 * cor0.col1 * + 56 FROM tab1 cor0
----
-35840
-4368
-58240
query I rowsort
SELECT 45 + + col1 * col0 FROM tab1
----
1085
123
685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5849
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + tab1.col1 * + col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - 95 * col1 AS col2 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT cor1.col2 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + col2 * col2 + col0 * 45 FROM tab0 AS cor0
----
10729
1576
2169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT ( tab2.col1 + + col2 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 + 9 FROM tab2
----
-69
-70
2
query I rowsort
SELECT ALL col2 * - col0 + col2 AS col1 FROM tab2
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 47dab5b5a76245bf04f8d92d033f9af6
query I rowsort
SELECT ALL + 90 * + 46 FROM tab0 AS cor0
----
4140
4140
4140
query I rowsort
SELECT DISTINCT + - 81 AS col0 FROM tab2 cor0
----
-81
query I rowsort
SELECT DISTINCT - 46 + col0 AS col1 FROM tab0
----
-11
-22
43
query I rowsort
SELECT + 60 + - col1 AS col0 FROM tab2
----
1
29
43
query I rowsort
SELECT 11 - - col0 FROM tab2
----
18
89
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT 24 DIV - tab2.col1 - col0 col0 FROM tab2
----
-7
-78
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5866
SELECT 24 / - tab2.col1 - col0 col0 FROM tab2
----
-7
-78
-80
query I rowsort
SELECT DISTINCT col1 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5868
SELECT DISTINCT + 42 / - cor0.col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + 42 / - cor0.col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 11 * - tab1.col2 AS col1 FROM tab1
----
1056
594
627
query I rowsort
SELECT + tab0.col2 * col1 * + 77 + - col0 * col2 AS col2 FROM tab0
----
217734
567276
7434
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - + cor0.col2 * 29 * col1 FROM tab1 AS cor0
----
-16530
-36192
-40716
query I rowsort
SELECT ALL + col1 + - ( 55 * - col2 ) AS col2 FROM tab1 AS cor0
----
2996
3145
5293
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + - col1 + + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5876
SELECT DISTINCT col1 - + ( - col0 + + col2 ) * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1293
-1541
571
skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT col1 - + ( - col0 + + col2 ) * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1293
-1541
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT ALL col2 + 7 DIV col0 FROM tab2 AS cor0
----
26
28
38
skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL col2 + 7 / col0 FROM tab2 AS cor0
----
26
28
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * - col0 * col2 col1 FROM tab2 AS cor0
----
-1354
-158243
-237175
query I rowsort
SELECT DISTINCT - col0 + ( - col2 + - col1 ) * + ( ( col1 ) ) FROM tab0 AS cor0
----
-10258
-15832
-9541
onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT ALL + + col1 + col1 DIV ( - col0 * col0 ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + + col1 + col1 / ( - col0 * col0 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT DISTINCT - col1 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT - col1 / + col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 42 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab0 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT + col2 * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5885
SELECT + col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * 36 AS col0 FROM tab1 AS cor0
----
-108
-2304
-2880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * 47 AS col0 FROM tab1 AS cor0
----
2538
2679
4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT ALL + col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + - 83 + - col1 * col2 FROM tab1 cor0
----
-1331
-1487
-653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL - ( - col1 ) * + 30 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT - cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 * + col1 + 39 * 56 + col0 * + col2 FROM tab0 AS cor0
----
10372
11628
17763
onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT ALL + col2 + col0 DIV + col0 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + col2 + col0 / + col0 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT + + 90 + - col0 AS col0 FROM tab1 AS cor0
----
10
26
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5898
SELECT - CAST( + cor1.col0 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif mysql # not compatible
query I rowsort label-5898
SELECT - CAST ( + cor1.col0 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT col0 DIV col2 AS col1 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT col0 / col2 AS col1 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT + 29 + + col1 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT + - ( - col0 ) * - col0 + + col0 * col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - 55 AS col2 FROM tab1 cor0
----
55
55
55
query I rowsort
SELECT - 56 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1848
-4592
-56
query I rowsort
SELECT 20 + - col0 AS col2 FROM tab2
----
-58
-59
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-5905
SELECT DISTINCT col0 DIV - tab0.col1 + - col1 + 90 AS col2 FROM tab0
----
-1
-7
4
skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT col0 / - tab0.col1 + - col1 + 90 AS col2 FROM tab0
----
-1
-7
4
query I rowsort
SELECT - cor0.col2 + + col2 * - 70 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT ALL + + cor0.col2 * cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837
query I rowsort
SELECT - 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 95 * col1 col0 FROM tab0 cor0
----
-8170
-8645
-9215
query I rowsort
SELECT 98 + + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1441
315
4700
query I rowsort
SELECT col2 + col1 - + col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + 0 * + col0 * col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5913
SELECT + CAST( - 55 AS SIGNED ) + cor0.col2 * - col2 + 39 AS col1 FROM tab1 AS cor0
----
-2932
-3265
-9232
skipif mysql # not compatible
query I rowsort label-5913
SELECT + CAST ( - 55 AS INTEGER ) + cor0.col2 * - col2 + 39 AS col1 FROM tab1 AS cor0
----
-2932
-3265
-9232
query I rowsort
SELECT cor0.col0 * col1 * + cor0.col2 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 73 col1 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT - 18 + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0aad33a74766f76c060add1839cbc818
query I rowsort
SELECT + col2 + - col0 * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5918
SELECT - - CAST( ( - col0 ) AS SIGNED ) * + 88 FROM tab2 AS cor0
----
-616
-6864
-6952
skipif mysql # not compatible
query I rowsort label-5918
SELECT - - CAST ( ( - col0 ) AS INTEGER ) * + 88 FROM tab2 AS cor0
----
-616
-6864
-6952
query I rowsort
SELECT DISTINCT + - 16 AS col0 FROM tab1 AS cor0
----
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5920
SELECT ALL cor0.col1 * - CAST( 36 AS SIGNED ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d0b15a4e3aecae8319e46ae6f8d9e95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL cor0.col1 * - CAST ( 36 AS INTEGER ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d0b15a4e3aecae8319e46ae6f8d9e95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT DISTINCT - col1 DIV + col1 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - col1 / + col1 AS col0 FROM tab1
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5922
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5923
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - 29 ) - + cor0.col0 * 42 FROM tab1, tab0 AS cor0
----
-1441
-3709
-979
query I rowsort
SELECT DISTINCT + + 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT ALL - tab1.col0 DIV 7 AS col2 FROM tab1
----
-11
-9
0
skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - tab1.col0 / 7 AS col2 FROM tab1
----
-11
-9
0
query I rowsort
SELECT DISTINCT + + col0 * 86 + col2 FROM tab0 AS cor0
----
2097
3011
7736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5928
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5929
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 - ( col0 ) * - cor0.col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT + ( + ( + col0 ) ) + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT cor0.col0 * + 59 * cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
11151
119652
177118
query I rowsort
SELECT DISTINCT col0 * col2 + + 14 FROM tab2
----
203
2042
3016
query I rowsort
SELECT ALL tab0.col1 + col1 AS col0 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT - ( col0 ) DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5935
SELECT - ( col0 ) / col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + - 38 + col0 AS col2 FROM tab2 AS cor0
----
-31
40
41
query I rowsort
SELECT DISTINCT - 90 + col2 FROM tab2 AS cor0
----
-52
-63
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 * + cor0.col2 col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - 82 * + col0 FROM tab1 AS cor0
----
-246
-5248
-6560
query I rowsort
SELECT DISTINCT - col2 * + col1 * - col1 + col0 + - col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT tab0.col0 * - 8 FROM tab0, tab0 AS cor0
----
-192
-280
-712
onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT + 80 DIV col0 - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-21
-33
-89
skipif mysql # not compatible
query I rowsort label-5943
SELECT + 80 / col0 - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-21
-33
-89
query I rowsort
SELECT + ( - cor0.col1 ) * col0 + col1 * cor0.col1 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT + col1 * col2 + 71 AS col1 FROM tab0
----
168
2909
7533
query I rowsort
SELECT + + col2 * - col0 + + col2 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5947
SELECT - + col0 * - CAST( + ( - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5947
SELECT - + col0 * - CAST ( + ( - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT ALL + cor0.col1 DIV col1 + 73 AS col0 FROM tab1 AS cor0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + cor0.col1 / col1 + 73 AS col0 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT ALL - col0 + - ( - col1 * + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL col0 + ( col2 ) * + col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - col0 * col2 * 54 FROM tab1 AS cor0
----
-196992
-414720
-8748
query I rowsort
SELECT ALL + cor0.col2 + + 53 FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT DISTINCT - col1 + + 81 * 26 FROM tab2 cor0
----
2047
2075
2089
query I rowsort
SELECT DISTINCT + col2 + + col2 + 92 FROM tab1 cor0
----
200
206
284
query I rowsort
SELECT DISTINCT - col2 + col0 * 13 AS col1 FROM tab0 AS cor0
----
1075
279
454
query I rowsort
SELECT ALL 74 * col2 AS col0 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT ALL - + 26 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-2028
-2054
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col0 - ( col1 + + 47 ) FROM tab0
----
-109
-109
-49
query I rowsort
SELECT ALL - cor0.col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5961
SELECT + - cor0.col2 + + cor0.col0 * + 90 * ( col0 ) + CAST( - col0 + + cor0.col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
4565
549484
564575
skipif mysql # not compatible
query I rowsort label-5961
SELECT + - cor0.col2 + + cor0.col0 * + 90 * ( col0 ) + CAST ( - col0 + + cor0.col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
4565
549484
564575
onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT cor0.col0 DIV - 69 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5962
SELECT cor0.col0 / - 69 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 91 * - col1 AS col2 FROM tab2
----
-1547
-2821
-5369
query I rowsort
SELECT 33 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT + col1 + + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ( col0 ) * + col1 + + ( + col0 ) FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 + + 57 FROM tab2 AS cor0
----
-2
26
40
query I rowsort
SELECT ALL - col1 - + col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL ( col1 ) * col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 92 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT ALL + + ( - ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 76 * col1 AS col0 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT ALL - - ( + col2 ) + - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT 61 * col1 AS col2 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT - 26 + - 57 AS col0 FROM tab2 AS cor0
----
-83
-83
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT ALL + col2 DIV + col1 + + tab2.col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + col2 / + col1 + + tab2.col2 FROM tab2
----
26
27
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT ALL - col2 DIV + col1 - tab1.col2 FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - col2 / + col1 - tab1.col2 FROM tab1
----
-103
-56
-62
query I rowsort
SELECT ALL tab1.col0 - tab1.col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT - 35 + - 7 * - tab0.col0 FROM tab0
----
133
210
588
query I rowsort
SELECT - + col0 * ( - cor0.col2 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - 86 + col0 FROM tab2 cor0
----
-7
-79
-8
query I rowsort
SELECT ALL col0 + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - ( + col0 ) * + col2 + + 14 FROM tab1 AS cor0
----
-148
-3634
-7666
onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT col1 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5988
SELECT col1 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL + + col1 + col2 * col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - 91 * + col2 AS col1 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( + 29 ) FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT + col0 * ( col2 ) + - 10 * col0 FROM tab0 AS cor0
----
-315
552
6408
query I rowsort
SELECT DISTINCT + + ( + 16 ) * col2 FROM tab0 AS cor0
----
1312
16
528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT - col2 * col1 + + col2 + ( + cor0.col1 + col2 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5995
SELECT - col2 * col1 + + col2 + ( + cor0.col1 + col2 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 19 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT DISTINCT + col0 + - tab2.col1 * col1 DIV col1 AS col0 FROM tab2
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + col0 + - tab2.col1 * col1 / col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - 25 FROM tab2, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT 96 * 96 FROM tab2
----
9216
9216
9216
query I rowsort
SELECT 7 * + 56 FROM tab0
----
392
392
392
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT + ( + col2 ) + + col1 DIV + ( - col2 ) AS col2 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-6002
SELECT + ( + col2 ) + + col1 / + ( - col2 ) AS col2 FROM tab0
----
-96
31
81
query I rowsort
SELECT DISTINCT ( 8 ) * col0 + - col0 AS col2 FROM tab0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT - 50 DIV - col0 + col0 AS col0 FROM tab0
----
26
36
89
skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - 50 / - col0 + col0 AS col0 FROM tab0
----
26
36
89
query I rowsort
SELECT 17 * 29 FROM tab1
----
493
493
493
query I rowsort
SELECT DISTINCT + 60 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1
29
43
query I rowsort
SELECT ALL - 16 AS col1 FROM tab0 cor0
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT + col2 + col1 DIV - col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6008
SELECT + col2 + col1 / - col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT + - col0 + col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - + cor0.col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - 56 + - col1 AS col2 FROM tab2 AS cor0
----
-115
-73
-87
query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col2 + col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
100893
37130
4316
query I rowsort
SELECT - col0 * - col1 * - col2 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT 58 * - col0 FROM tab1
----
-174
-3712
-4640
query I rowsort
SELECT col0 + + col2 * 67 * - col0 FROM tab1 cor0
----
-10851
-244352
-514480
query I rowsort
SELECT - 93 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-4
-58
-69
query I rowsort
SELECT - - col0 * col1 + 3 FROM tab1 AS cor0
----
1043
643
81
query I rowsort
SELECT - col2 + - col1 + col2 * col1 AS col0 FROM tab1 cor0
----
1139
1324
503
query I rowsort
SELECT - - 21 AS col0 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT ALL col1 * CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * 46 AS col2 FROM tab1 cor0
----
-138
-2944
-3680
query I rowsort
SELECT ALL col1 * + col2 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - col2 - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col2 + ( - 48 ) AS col0 FROM tab1 cor0
----
48
6
9
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + + col1 * 73 FROM tab0 AS cor0
----
6278
6643
7081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 * - 91 + + 58 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 6e03643d331437ada93c6fd82629e2a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT DISTINCT + ( col1 ) - col2 DIV ( - 10 ) AS col0 FROM tab1 AS cor0
----
15
22
31
skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT + ( col1 ) - col2 / ( - 10 ) AS col0 FROM tab1 AS cor0
----
15
22
31
query I rowsort
SELECT - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * col1 - - tab1.col0 * + col1 AS col2 FROM tab1
----
1209
740
754
query I rowsort
SELECT ALL - 66 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT - 54 * - col1 + col2 FROM tab2 AS cor0
----
1701
3212
956
query I rowsort
SELECT ( + cor0.col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL + col2 DIV col1 AS col0 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + col2 / col1 AS col0 FROM tab2 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 * col1 + 43 col2 FROM tab0 AS cor0
----
244111
679085
9452
query I rowsort
SELECT DISTINCT + 41 + + 9 AS col2 FROM tab1 AS cor0
----
50
query I rowsort
SELECT ALL + - col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT + 60 + col0 DIV + col0 FROM tab2 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-6039
SELECT + 60 + col0 / + col0 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT - 46 * + col1 * cor0.col2 FROM tab2 cor0
----
-29716
-38502
-70564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT - col1 * col1 * CAST( NULL AS SIGNED ) + - cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6041
SELECT - col1 * col1 * CAST ( NULL AS INTEGER ) + - cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 96 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - 45 + - col2 * + 34 AS col2 FROM tab0 AS cor0
----
-1167
-2833
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col2 col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT + cor0.col1 DIV - cor0.col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6045
SELECT + cor0.col1 / - cor0.col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT 14 AS col1 FROM tab0 AS cor0
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col1 + col1 * 31 FROM tab2 cor0
----
1888
544
992
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + col0 * + col2 + - col0 * col1 FROM tab0 cor0
----
-1272
-3360
-801
query I rowsort
SELECT DISTINCT col0 * + 18 FROM tab2 AS cor0
----
126
1404
1422
onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT - col0 DIV ( ( col2 ) ) + - col1 AS col2 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-6052
SELECT - col0 / ( ( col2 ) ) + - col1 AS col2 FROM tab1 AS cor0
----
-11
-13
-26
query I rowsort
SELECT - col1 * 29 FROM tab0 cor0
----
-2494
-2639
-2813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-55
query I rowsort
SELECT ALL - col0 - ( cor0.col1 * col2 ) FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + cor0.col0 + + 38 FROM tab1 AS cor0
----
102
118
41
query I rowsort
SELECT col0 * col1 + - col1 * + col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT - col0 * + col2 * cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT 89 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL - 26 + + col0 AS col1 FROM tab1 cor0
----
-23
38
54
query I rowsort
SELECT ALL + col1 + + ( col2 ) * col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - ( 44 * + tab0.col0 ) FROM tab0, tab0 cor0
----
9 values hashing to f024707751a24a77949dac9d596e9ce6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
72
query I rowsort
SELECT col1 * col1 + 35 * 12 * col1 - - ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
43549
46583
50150
query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 + + col2 col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL cor0.col0 + + col0 * + 28 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT ALL - col1 + - col1 + col2 AS col2 FROM tab1
----
2
37
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col0 col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT DISTINCT col1 - - tab2.col1 DIV + ( tab2.col0 ) FROM tab2
----
17
35
59
skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT col1 - - tab2.col1 / + ( tab2.col0 ) FROM tab2
----
17
35
59
query I rowsort
SELECT ALL - col0 + + col1 * col1 AS col0 FROM tab1
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT - 76 DIV col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0
skipif mysql # not compatible
query I rowsort label-6073
SELECT - 76 / col2 AS col0 FROM tab0 AS cor0
----
-2
-76
0
query I rowsort
SELECT - col1 + + col1 - - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 72 + col1 FROM tab1
----
82
85
98
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) + col0 AS col2 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * 27 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7581a2ef7efd668e72a74432a2e2e3a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT + 31 DIV col1 + + col2 AS col0 FROM tab1
----
55
60
98
skipif mysql # not compatible
query I rowsort label-6078
SELECT + 31 / col1 + + col2 AS col0 FROM tab1
----
55
60
98
query I rowsort
SELECT + 55 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + ( + col1 ) * + col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
-7120
-744
35
query I rowsort
SELECT DISTINCT - col0 - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT DISTINCT CAST( col0 AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - + 24 * + col1 AS col1 FROM tab2 cor0
----
-1416
-408
-744
query I rowsort
SELECT + 37 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
228
2827
2906
query I rowsort
SELECT DISTINCT ( col1 ) * col1 * col2 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
244092
679131
9444
query I rowsort
SELECT - + ( 31 ) * col0 + - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-147
-2041
-2576
query I rowsort
SELECT DISTINCT col1 * - 15 FROM tab1
----
-150
-195
-390
query I rowsort
SELECT DISTINCT - col1 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + col1 + + col0 * col1 * col0 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT cor0.col1 + - 83 + - col2 FROM tab2 AS cor0
----
-104
-50
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT ALL 63 * col0 + + CAST( + 31 AS SIGNED ) FROM tab2 AS cor0
----
472
4945
5008
skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL 63 * col0 + + CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
----
472
4945
5008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT DISTINCT - 53 + - col0 DIV col2 FROM tab1
----
-53
-54
skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - 53 + - col0 / col2 FROM tab1
----
-53
-54
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - cor0.col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col0 + ( 34 ) * - col0 FROM tab0
----
-1155
-2937
-792
query I rowsort
SELECT 11 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT cor0.col0 + ( col1 ) * col1 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
22948
271622
6761
query I rowsort
SELECT ALL - col2 + 72 FROM tab2 AS cor0
----
34
45
46
query I rowsort
SELECT - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT DISTINCT - - cor0.col0 * - 82 AS col2 FROM tab2 AS cor0
----
-574
-6396
-6478
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6103
SELECT ALL + + col0 + + CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + + col0 + + CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * col1 - col1 * + col0 FROM tab1 AS cor0
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 78 col0 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT 39 - - 19 * col0 AS col0 FROM tab2 cor0
----
1521
1540
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT ALL col2 * - ( + col0 ) + col0 DIV + ( col0 ) AS col2 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL col2 * - ( + col0 ) + col0 / + ( col0 ) AS col2 FROM tab1
----
-161
-3647
-7679
query I rowsort
SELECT ALL - ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT - CAST( NULL AS SIGNED ) * - col1 + + col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6109
SELECT - CAST ( NULL AS INTEGER ) * - col1 + + col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL ( 16 ) FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216
query I rowsort
SELECT col1 + tab0.col2 * - col1 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL tab2.col0 + + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab0, tab0 AS cor0
----
-79
query I rowsort
SELECT ALL + col1 + ( + col0 ) FROM tab1
----
29
74
93
query I rowsort
SELECT + ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 - ( - col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + 72 + - col2 + col0 AS col1 FROM tab1 AS cor0
----
21
56
79
query I rowsort
SELECT + 71 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT + - 21 + + col1 AS col1 FROM tab1 AS cor0
----
-11
-8
5
query I rowsort
SELECT 12 * ( col0 ) FROM tab1
----
36
768
960
query I rowsort
SELECT + col2 * - col1 * col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + 0 * col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT 19 + ( - col0 ) AS col1 FROM tab2
----
-59
-60
12
query I rowsort
SELECT - col0 * - cor0.col2 + - cor0.col1 * - col0 * col2 + col1 FROM tab0 AS cor0
----
3527
671507
68990
query I rowsort
SELECT + 29 * - cor0.col0 + - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to eaee983a75af0318f48eb2dbcaa0af02
query I rowsort
SELECT 2 * + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT - 10 + tab0.col1 FROM tab0
----
76
81
87
query I rowsort
SELECT ALL - 57 AS col2 FROM tab2
----
-57
-57
-57
query I rowsort
SELECT - col1 * - col0 + + 36 FROM tab1
----
1076
114
676
query I rowsort
SELECT col0 * - 44 FROM tab0 cor0
----
-1056
-1540
-3916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT ALL - 47 FROM tab0
----
-47
-47
-47
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 cor2, tab2 cor3
----
13122 values hashing to 96c8bf5f6ccbbf8b912a6de6a5a72be0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col0 * - col0 * - tab2.col1 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT + col0 * 48 FROM tab2 AS cor0
----
336
3744
3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT - col0 * + CAST( 14 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1246
-336
-490
skipif mysql # not compatible
query I rowsort label-6138
SELECT - col0 * + CAST ( 14 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1246
-336
-490
query I rowsort
SELECT - - col0 * ( col2 + col2 ) FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT ALL - col2 + - ( ( + col0 ) ) * cor0.col0 AS col2 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT - - col0 * 24 AS col0 FROM tab0 cor0
----
2136
576
840
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL 87 + - cor0.col1 * + col1 + - 85 AS col1 FROM tab2 AS cor0
----
-287
-3479
-959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 + - col1 col0 FROM tab2 AS cor0
----
26
54
68
query I rowsort
SELECT ALL - cor0.col2 * col2 + 35 AS col0 FROM tab2 AS cor0
----
-1409
-641
-694
query I rowsort
SELECT - + 29 FROM tab0 cor0
----
-29
-29
-29
query I rowsort
SELECT ALL ( cor0.col0 ) * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT col2 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL + 44 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ( + col0 ) + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col0 * - col1 + + ( - ( col2 ) ) * col1 + - col1 FROM tab2 AS cor0
----
-1085
-2006
-6195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * col2 col0 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT - col2 + - cor0.col0 + 50 FROM tab0 AS cor0
----
-121
-7
14
query I rowsort
SELECT col0 * + col2 * + tab1.col2 + - col2 + + col1 * - col2 * - col0 AS col0 FROM tab1
----
12906
244359
837024
query I rowsort
SELECT + cor0.col2 * - col1 - col0 * col0 FROM tab2 AS cor0
----
-6887
-7618
-886
query I rowsort
SELECT col2 + 49 FROM tab0 cor0
----
131
50
82
query I rowsort
SELECT ALL + 23 * col2 * col0 AS col2 FROM tab2 AS cor0
----
4347
46644
69046
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 4b145ce61881e246723968d1ac787ac2
query I rowsort
SELECT ALL + ( ( cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - col1 * cor0.col0 - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT - 21 + 96 + - tab2.col2 AS col1 FROM tab2
----
37
48
49
query I rowsort
SELECT DISTINCT - col2 * 21 - col0 AS col2 FROM tab0 cor0
----
-1811
-56
-717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT + + 8 DIV + col0 - + col2 FROM tab2 AS cor0
----
-26
-26
-38
skipif mysql # not compatible
query I rowsort label-6165
SELECT + + 8 / + col0 - + col2 FROM tab2 AS cor0
----
-26
-26
-38
query I rowsort
SELECT ALL - - ( - 95 ) * + col0 + ( - 76 + cor0.col0 ) FROM tab1 AS cor0
----
-358
-6092
-7596
onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT DISTINCT ( col0 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT ( col0 ) / - col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 62 AS col1 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT - + 72 + col0 FROM tab2 AS cor0
----
-65
6
7
query I rowsort
SELECT + 48 * + cor0.col1 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-3268
-3913
-4753
query I rowsort
SELECT + 8 + col2 FROM tab1 AS cor0
----
104
62
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6172
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT ALL 56 * - col1 DIV col1 + 78 FROM tab2 AS cor0
----
22
22
22
skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL 56 * - col1 / col1 + 78 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT - 13 + - col2 AS col0 FROM tab0 AS cor0
----
-14
-46
-95
query I rowsort
SELECT + - 79 AS col1 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + 68 * col0 FROM tab1 cor0
----
204
4352
5440
query I rowsort
SELECT ALL + ( - col2 ) * col1 - col2 AS col2 FROM tab1
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6178
SELECT DISTINCT col1 DIV - col0 + + col1 AS col0 FROM tab2 cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT col1 / - col0 + + col1 AS col0 FROM tab2 cor0
----
17
27
59
query I rowsort
SELECT + cor0.col1 * 28 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT DISTINCT + - cor0.col1 * - 3 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 * cor0.col0 * col1 + col0 * col2 FROM tab0 AS cor0
----
185692
338759
752588
onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT DISTINCT - col2 * col2 DIV - col1 AS col0 FROM tab0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - col2 * col2 / - col1 AS col0 FROM tab0
----
0
12
73
skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 * + col1 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 75 * col1 + + cor0.col1 FROM tab0 cor0
----
6536
6916
7372
query I rowsort
SELECT + col1 * - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + col1 + + 3 * - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT col2 * 98 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL - + 35 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT + ( + cor0.col2 ) + col2 + col2 * col0 FROM tab2 AS cor0
----
2080
243
3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT + col0 + - CAST( NULL AS DECIMAL ) * 12 * tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6194
SELECT + col0 + - CAST ( NULL AS REAL ) * 12 * tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 27 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT 96 + col2 * col2 * col2 FROM tab2
----
17672
19779
54968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 * ( - col2 ) col1 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL + 50 + col1 FROM tab0 AS cor0
----
136
141
147
query I rowsort
SELECT - col0 + - 53 AS col2 FROM tab1 AS cor0
----
-117
-133
-56
query I rowsort
SELECT ALL cor0.col1 - + ( + 48 ) AS col1 FROM tab2 AS cor0
----
-17
-31
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT col2 * + col1 DIV + tab2.col1 + col1 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-6201
SELECT col2 * + col1 / + tab2.col1 + col1 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT + + col2 + + cor0.col2 DIV + col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6202
SELECT + + col2 + + cor0.col2 / + col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL ( + 63 ) FROM tab1
----
63
63
63
query I rowsort
SELECT 76 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL - 53 FROM tab1
----
-53
-53
-53
query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6208
SELECT ALL + cor0.col0 + - col1 * col2 + + CAST( + 19 + + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1069
-1379
-423
skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + cor0.col0 + - col1 * col2 + + CAST ( + 19 + + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1069
-1379
-423
query I rowsort
SELECT ALL - - 19 - - 4 * - col2 AS col1 FROM tab1 AS cor0
----
-197
-209
-365
onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT DISTINCT 85 DIV + col1 + + cor0.col0 * col2 + - col2 FROM tab2 AS cor0
----
164
2003
2969
skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT 85 / + col1 + + cor0.col0 * col2 + - col2 FROM tab2 AS cor0
----
164
2003
2969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6211
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col1 * 59 FROM tab1 AS cor0
----
1537
654
847
skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col1 * 59 FROM tab1 AS cor0
----
1537
654
847
query I rowsort
SELECT DISTINCT - col0 + col2 + + col1 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + 53 AS col1 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT ALL - - 75 * + col2 AS col2 FROM tab2 AS cor0
----
1950
2025
2850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6215
SELECT DISTINCT - ( + col0 ) + + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - ( + col0 ) + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + + 19 + col1 AS col2 FROM tab0 AS cor0
----
105
110
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT ALL - 78 DIV col1 - ( - 25 ) AS col1 FROM tab1 AS cor0
----
18
19
22
skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL - 78 / col1 - ( - 25 ) AS col1 FROM tab1 AS cor0
----
18
19
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 68 col1 FROM tab2 AS cor0
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - 27 + col0 col0 FROM tab0 AS cor0
----
-201385
-2584
-76602
query I rowsort
SELECT - 54 + - col1 AS col1 FROM tab2 AS cor0
----
-113
-71
-85
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 51 * + col1 AS REAL ) - ( col1 ) AS col1 FROM tab1
----
1300
500
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT + 92 + col0 * + col1 FROM tab1 AS cor0
----
1132
170
732
query I rowsort
SELECT - + 63 * + col1 * 95 FROM tab1 AS cor0
----
-155610
-59850
-77805
query I rowsort
SELECT - 58 AS col0 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT + ( + col2 ) * col1 AS col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT + - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6227
SELECT + - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6228
SELECT + col0 + CAST( NULL AS SIGNED ) * 25 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6228
SELECT + col0 + CAST ( NULL AS INTEGER ) * 25 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 53 * cor0.col0 AS col0 FROM tab1 AS cor0
----
193344
407040
8586
query I rowsort
SELECT - col0 + + 27 AS col2 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT ALL - 62 + + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e6f7724bc8a5283df949e61cd6531055
query I rowsort
SELECT - - col1 + + col2 * col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - col1 * - 74 * col1 + - col1 + col0 FROM tab0 AS cor0
----
547242
612792
696204
query I rowsort
SELECT DISTINCT - col0 + - 64 FROM tab1
----
-128
-144
-67
query I rowsort
SELECT col0 + col1 + col1 * + col0 AS col0 FROM tab1
----
107
1133
714
query I rowsort
SELECT - col2 + ( col1 ) * col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 + + col1 AS col0 FROM tab0
----
-673
-7125
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6238
SELECT col2 * CAST( col0 * + col1 + ( col2 ) AS SIGNED ) AS col0 FROM tab0
----
3396
670842
69201
skipif mysql # not compatible
query I rowsort label-6238
SELECT col2 * CAST ( col0 * + col1 + ( col2 ) AS INTEGER ) AS col0 FROM tab0
----
3396
670842
69201
query I rowsort
SELECT ALL tab0.col1 + tab0.col0 AS col1 FROM tab0
----
110
132
180
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 974a92f740f5f08d18564d29c05f7692
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab1 AS cor0
----
53
query I rowsort
SELECT - + ( + 7 ) * col1 AS col1 FROM tab0 AS cor0
----
-602
-637
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 * - col0 col1 FROM tab0 cor0
----
-1958
-528
-770
query I rowsort
SELECT DISTINCT - 93 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-279
-5952
-7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT ALL + cor0.col1 DIV + col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL + cor0.col1 / + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + + col0 + col1 * 63 - - col1 * ( + col1 * col2 ) AS col0 FROM tab1 AS cor0
----
17123
38145
6394
query I rowsort
SELECT + col2 * - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + - col2 AS col1 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT ALL col1 + 45 * col2 AS col1 FROM tab2
----
1229
1246
1727
query I rowsort
SELECT ALL + - col2 + ( - col1 ) * cor0.col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + + col1 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col1 * 31 AS col0 FROM tab0 AS cor0
----
2666
2821
3007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( cor0.col2 ) col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - cor0.col1 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 - + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 + 8 AS col0 FROM tab0 cor0
----
32
43
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col2 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT ALL col0 * 45 AS col1 FROM tab1
----
135
2880
3600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 34 col1 FROM tab2
----
1054
2006
578
query I rowsort
SELECT ALL + col1 * col1 * - col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + col1 * + col0 col0 FROM tab0 AS cor0
----
1972
3303
8007
query I rowsort
SELECT DISTINCT + col2 + col2 - - col0 * + 38 FROM tab0 cor0
----
1332
3546
978
query I rowsort
SELECT + 42 + col2 AS col0 FROM tab2 AS cor0
----
68
69
80
query I rowsort
SELECT DISTINCT col1 * col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - + 60 + + col1 FROM tab2 AS cor0
----
-1
-29
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6266
SELECT DISTINCT - col1 * - cor0.col2 + + col1 * CAST( + cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
1798
5015
935
skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - col1 * - cor0.col2 + + col1 * CAST ( + cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
1798
5015
935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT - - CAST( - col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-6267
SELECT - - CAST ( - col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT 64 FROM tab1, tab1 cor0, tab0 AS cor1
----
64
query I rowsort
SELECT col0 * ( col1 ) * + col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL - col2 + + 32 FROM tab2
----
-6
5
6
query I rowsort
SELECT DISTINCT - - 14 AS col0 FROM tab0 AS cor0
----
14
query I rowsort
SELECT ALL - col1 + cor0.col2 AS col0 FROM tab1 cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 9 * - col2 * col1 col0 FROM tab1 AS cor0
----
-11232
-12636
-5130
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT 21 DIV - col0 AS col2 FROM tab1 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-6274
SELECT 21 / - col0 AS col2 FROM tab1 AS cor0
----
-7
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT - 29 DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6275
SELECT - 29 / col0 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT + tab1.col1 DIV col2 + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6276
SELECT + tab1.col1 / col2 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT 38 * + col1 + + ( tab2.col0 * col0 ) + - 63 FROM tab2
----
1164
6824
8263
query I rowsort
SELECT - 8 - + col0 FROM tab1
----
-11
-72
-88
query I rowsort
SELECT DISTINCT + + col0 * + 23 + col1 * - col2 FROM tab0 AS cor0
----
-2286
-5415
708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6280
SELECT + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6280
SELECT + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 39 * col2 AS col1 FROM tab1
----
2106
2223
3744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col0 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT ALL - 73 * + col2 FROM tab2
----
-1898
-1971
-2774
query I rowsort
SELECT ALL + + col1 * col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - col2 + 75 AS col1 FROM tab0
----
-7
42
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT ALL CAST( 31 AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL CAST ( 31 AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + 24 + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 405a6e181948af789c5f99066032918c
query I rowsort
SELECT DISTINCT - - col1 * 30 AS col2 FROM tab1 cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT - - col1 * col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-6290
SELECT - - col1 * col1 / - col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
query I rowsort
SELECT ALL + + col0 * + col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - + col0 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT DISTINCT - col0 DIV cor0.col0 + col0 * + col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - col0 / cor0.col0 + col0 * + col1 FROM tab1 AS cor0
----
1039
639
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT ALL col0 + col0 * 70 + + col1 DIV col1 FROM tab1 AS cor0
----
214
4545
5681
skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL col0 + col0 * 70 + + col1 / col1 FROM tab1 AS cor0
----
214
4545
5681
query I rowsort
SELECT col1 - 41 FROM tab1 AS cor0
----
-15
-28
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT ALL col0 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * 73 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT ALL - 15 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT ALL + + col0 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT DISTINCT col0 + ( col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT col0 + ( col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT - + ( cor0.col1 ) * - col2 + 24 * - 6 AS col1 FROM tab0 AS cor0
----
-47
2694
7318
query I rowsort
SELECT ALL + 10 + 71 AS col0 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT - + 64 * - 87 * - col1 + - cor0.col2 AS col0 FROM tab2 cor0
----
-172635
-328538
-94694
onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT DISTINCT - col2 * col1 - - col0 DIV - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - col2 * col1 - - col0 / - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * 82 col0 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT - + col0 * cor0.col1 * - col1 + + 12 AS col1 FROM tab2 AS cor0
----
22843
271530
6739
query I rowsort
SELECT col0 * - 39 + cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-11570
-3000
-4760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT + col0 DIV - 82 + col0 * + 4 AS col1 FROM tab0 AS cor0
----
140
355
96
skipif mysql # not compatible
query I rowsort label-6311
SELECT + col0 / - 82 + col0 * + 4 AS col1 FROM tab0 AS cor0
----
140
355
96
query I rowsort
SELECT ALL + col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL 91 + col2 * 8 FROM tab1 AS cor0
----
523
547
859
query I rowsort
SELECT DISTINCT + ( col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
128
47
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT 91 - col0 * col2 AS col2 FROM tab0
----
-701
-7207
56
query I rowsort
SELECT 72 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ALL 33 * col2 + + cor0.col2 * col0 FROM tab0 cor0
----
10004
1881
68
query I rowsort
SELECT ALL - col1 * + cor0.col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT 38 * col1 FROM tab2 AS cor0
----
1178
2242
646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT ALL ( col1 ) + + col1 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL ( col1 ) + + col1 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 66 * - 66 AS col1 FROM tab1 AS cor0
----
-4356
query I rowsort
SELECT 15 * col0 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT ALL - - col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + + col2 * + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL - + 9 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049
query I rowsort
SELECT + - cor0.col0 * + 69 FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT ( 17 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT - 21 * 12 + + col1 * + 17 AS col1 FROM tab1
----
-31
-82
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 45 FROM tab0, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL - tab1.col2 + col0 DIV - 11 FROM tab1
----
-103
-54
-62
skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - tab1.col2 + col0 / - 11 FROM tab1
----
-103
-54
-62
query I rowsort
SELECT + + 19 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col0 * 91 FROM tab0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT - cor0.col0 * - 54 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT - - col2 * 51 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT col0 * 82 AS col0 FROM tab1
----
246
5248
6560
query I rowsort
SELECT - col1 * + 83 * - col2 FROM tab2
----
127322
53618
69471
query I rowsort
SELECT - col2 + col0 * ( + col0 ) + + 6 FROM tab1 AS cor0
----
-39
4045
6310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6343
SELECT + - col1 + - CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6343
SELECT + - col1 + - CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT + - 17 DIV + col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6344
SELECT + - 17 / + col1 FROM tab1 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + 64 col0 FROM tab0 AS cor0
----
6
6
6
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT col1 * - col2 - col1 AS col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT - 18 + + 82 AS col1 FROM tab0
----
64
64
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT CAST( col0 + col0 AS SIGNED ) AS col2 FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-6349
SELECT CAST ( col0 + col0 AS INTEGER ) AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT + 0 * 77 - col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + cor1.col2 + - 60 AS col2 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 168dba2c5978b8b0e8b3da95d0759119
query I rowsort
SELECT + ( col2 ) * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * - col0 + - 60 * + col0 FROM tab0 AS cor0
----
-864
-875
2581
query I rowsort
SELECT + col0 * cor0.col0 - + 68 * col0 FROM tab2 cor0
----
-427
780
869
query I rowsort
SELECT DISTINCT - 79 * + tab1.col1 AS col1 FROM tab1
----
-1027
-2054
-790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc
query I rowsort
SELECT + col1 * col1 - ( - cor0.col2 + + col0 ) AS col0 FROM tab2 AS cor0
----
248
3429
981
query I rowsort
SELECT - - 2 * col2 + 84 FROM tab2 AS cor0
----
136
138
160
query I rowsort
SELECT - col2 * + cor0.col0 + - cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT ALL - col2 + col2 * col2 DIV col2 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - col2 + col2 * col2 / col2 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT col1 DIV col1 + 28 FROM tab2
----
29
29
29
skipif mysql # not compatible
query I rowsort label-6361
SELECT col1 / col1 + 28 FROM tab2
----
29
29
29
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT - 24 DIV - col0 - col0 AS col1 FROM tab2
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-6363
SELECT - 24 / - col0 - col0 AS col1 FROM tab2
----
-4
-78
-79
query I rowsort
SELECT tab2.col1 - 12 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fe9133bcabc648a6930b1894471288a6
query I rowsort
SELECT ALL + - col0 * + col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col2 * + col0 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col1 + + 45 FROM tab1 AS cor0
----
19
32
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * + 12 col0 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT ALL - + cor0.col0 + - ( ( + col0 ) ) FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col0 * + ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col0 + + ( - col2 * col1 ) FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + + col1 * + 19 FROM tab0 cor0
----
1634
1729
1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT + col0 + + col1 DIV 42 AS col1 FROM tab2 AS cor0
----
7
79
79
skipif mysql # not compatible
query I rowsort label-6376
SELECT + col0 + + col1 / 42 AS col1 FROM tab2 AS cor0
----
7
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT DISTINCT - - col2 DIV 43 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT - - col2 / 43 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT 34 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT col2 * - col0 + + col2 * col1 AS col2 FROM tab0
----
164
2046
62
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT col1 * - col2 IN ( + col2 * - col0 / col2 )
----
1
33
82
query I rowsort
SELECT DISTINCT col1 / col1 AS col0 FROM tab2 WHERE ( col1 ) <> col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab0
----
110
132
180
query I rowsort
SELECT tab0.col0 - - col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT + col2 + + col0 * + col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT tab0.col2 + + col2 * - col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col2 * col0 * col1 + col1 FROM tab2
----
-119593
-51017
-5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 9 + col0 * - 8 AS col1 FROM tab1 cor0
----
-33
-521
-649
query I rowsort
SELECT DISTINCT col1 + + col2 * + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN col0 * col2 + col1 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL col0 + col0 DIV col1 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL col0 + col0 / col1 FROM tab2
----
7
79
83
query I rowsort
SELECT ALL col0 * - tab1.col1 + + col2 * + col1 FROM tab1
----
-70
1326
208
onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL col1 + tab0.col2 DIV col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL col1 + tab0.col2 / col1 FROM tab0
----
86
91
97
query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col2
----
query I rowsort
SELECT tab1.col1 * + tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT tab1.col0 + col2 * col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL - col1 + col2 * + col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT col1 - col2 * col0 AS col0 FROM tab0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT - + col2 DIV col0 col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6400
SELECT - + col2 / col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) + + col0 * 57 AS col2 FROM tab0 AS cor0
----
1454
2092
5164
query I rowsort
SELECT + 35 AS col2 FROM tab0 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL 73 + cor0.col0 FROM tab1 AS cor0
----
137
153
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT - 58 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-6405
SELECT - 58 / col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5
query I rowsort
SELECT ALL col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 92 * + col0 FROM tab1 AS cor0
----
-276
-5888
-7360
query I rowsort
SELECT 89 - + col2 * - tab2.col1 * col1 AS col1 FROM tab2
----
11071
26036
90595
query I rowsort
SELECT DISTINCT col2 + 14 FROM tab2
----
40
41
52
query I rowsort
SELECT 6 - - 97 FROM tab0
----
103
103
103
query I rowsort
SELECT col1 + + 69 AS col2 FROM tab0
----
155
160
166
query I rowsort
SELECT DISTINCT ( 10 ) AS col1 FROM tab2
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT DISTINCT - col1 + col1 DIV col1 + 20 AS col2 FROM tab2
----
-10
-38
4
skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - col1 + col1 / col1 + 20 AS col2 FROM tab2
----
-10
-38
4
query I rowsort
SELECT + 35 * col2 AS col0 FROM tab0
----
1155
2870
35
query I rowsort
SELECT col1 - col0 * - col0 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT 12 * - col0 AS col0 FROM tab1 cor0
----
-36
-768
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT ALL - - 82 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
27
skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - - 82 / + col0 AS col0 FROM tab1 AS cor0
----
1
1
27
query I rowsort
SELECT col1 * + col1 * col0 AS col2 FROM tab0 cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) + + cor0.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 24 col1 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT DISTINCT cor0.col2 + - cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-40
-41
-51
-52
-53
19
20
31
query I rowsort
SELECT - 60 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT + cor0.col2 * + CAST( 55 AS SIGNED ) col1 FROM tab1 AS cor0
----
2970
3135
5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6424
SELECT + cor0.col2 * + CAST ( 55 AS INTEGER ) col1 FROM tab1 AS cor0
----
2970
3135
5280
query I rowsort
SELECT ( 64 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT col2 + tab1.col0 + + col2 AS col0 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL col2 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT + ( col1 ) DIV col0 + col0 AS col1 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-6428
SELECT + ( col1 ) / col0 + col0 AS col1 FROM tab0
----
27
37
90
query I rowsort
SELECT - tab2.col2 + col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + col0 * 72 FROM tab0
----
1728
2520
6408
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 55 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL - col2 * 47 AS col1 FROM tab2 cor0
----
-1222
-1269
-1786
query I rowsort
SELECT DISTINCT + - ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - 68 AS col0 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + 58 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT col0 * cor0.col2 * + col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + - col1 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT - cor0.col1 * - cor0.col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col2 FROM tab2 AS cor0
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT - - 50 DIV - 70 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6443
SELECT - - 50 / - 70 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL + 0 DIV - 43 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + 0 / - 43 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT - 74 DIV - 87 + - col0 - cor0.col0 FROM tab2 cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-6445
SELECT - 74 / - 87 + - col0 - cor0.col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + - 63 * col0 AS col2 FROM tab1 cor0
----
-189
-4032
-5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL + col0 DIV + ( - cor0.col1 * col1 + + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + col0 / + ( - cor0.col1 * col1 + + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 5 + + col0 AS col0 FROM tab1 AS cor0
----
69
8
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT tab0.col1 - + ( - col2 ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT tab0.col0 + 28 * col1 * + col2 FROM tab0
----
209025
2751
79488
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ( + col1 ) * + col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT DISTINCT CAST( NULL AS SIGNED ) * - tab0.col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - tab0.col0 FROM tab0
----
NULL
query I rowsort
SELECT + col1 + cor0.col0 * cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
262154
512013
53
query I rowsort
SELECT ALL - 76 * 40 + - col2 AS col1 FROM tab2
----
-3066
-3067
-3078
query I rowsort
SELECT DISTINCT ( col1 ) + col1 * - col1 + col1 AS col1 FROM tab0
----
-7224
-8099
-9215
query I rowsort
SELECT + - cor0.col2 + - 39 * + cor0.col0 FROM tab2 AS cor0
----
-300
-3068
-3119
query I rowsort
SELECT DISTINCT + 79 * 38 * col0 FROM tab0
----
105070
267178
72048
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL <= - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 FROM tab0 WHERE + col0 * col2 + + col2 * col1 NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col0 + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT col2 DIV - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6466
SELECT col2 / - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT - col1 - - col0 * col2 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT col2 * col1 + + col2 - + col0 DIV col0 AS col2 FROM tab0
----
2870
7543
97
skipif mysql # not compatible
query I rowsort label-6468
SELECT col2 * col1 + + col2 - + col0 / col0 AS col2 FROM tab0
----
2870
7543
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 * col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col2 * + tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col0 - + col1 * - col2 col1 FROM tab2 cor0
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT DISTINCT - - col1 DIV col0 AS col2 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - - col1 / col0 AS col2 FROM tab2 cor0
----
0
4
query I rowsort
SELECT + - col1 + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL col0 * col0 + - tab0.col0 * tab0.col1 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL col0 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - col2 * 84 AS col1 FROM tab1 AS cor0
----
-4536
-4788
-8064
query I rowsort
SELECT ALL + + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - - ( 76 ) * + col1 FROM tab0 cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT 16 + + 65 FROM tab0, tab1, tab2 AS cor0
----
81
query I rowsort
SELECT - 32 - tab2.col1 FROM tab2
----
-49
-63
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6483
SELECT ALL ( - col1 + + tab0.col2 ) DIV + col0 AS col0 FROM tab0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL ( - col1 + + tab0.col2 ) / + col0 AS col0 FROM tab0
----
-2
-2
0
query I rowsort
SELECT - col0 * 98 AS col2 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 48 * - 40 + - col2 AS col0 FROM tab1 AS cor0
----
1824
1863
1866
query I rowsort
SELECT ALL + 45 + col1 * + col0 FROM tab1
----
1085
123
685
query I rowsort
SELECT + col1 + + col1 + + tab2.col0 AS col0 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL col1 + + col0 * col0 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT DISTINCT tab1.col1 DIV ( - tab1.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT tab1.col1 / ( - tab1.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 51 + col0 col1 FROM tab1 AS cor0
----
-22
23
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + col2 ) col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + - col1 * + 4 + - col0 AS col0 FROM tab1 cor0
----
-104
-107
-132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT DISTINCT + col2 + CAST( col0 + + col0 AS SIGNED ) FROM tab2 cor0
----
182
196
41
skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + col2 + CAST ( col0 + + col0 AS INTEGER ) FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT ALL - col2 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - + col0 + 30 FROM tab0 AS cor0
----
-5
-59
6
query I rowsort
SELECT col0 * - col2 + 1 + + cor0.col0 FROM tab1 AS cor0
----
-158
-3583
-7599
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL - col1 + 28 AS col2 FROM tab1 AS cor0
----
15
18
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + col2 col2 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT + col1 + 42 DIV ( col1 ) FROM tab1 AS cor0
----
14
16
27
skipif mysql # not compatible
query I rowsort label-6501
SELECT + col1 + 42 / ( col1 ) FROM tab1 AS cor0
----
14
16
27
query I rowsort
SELECT ALL col0 + + ( col0 * col2 ) + - ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
14849
167
3654
onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT + col2 * + 44 + col1 * col1 DIV 58 FROM tab0 AS cor0
----
1579
206
3750
skipif mysql # not compatible
query I rowsort label-6503
SELECT + col2 * + 44 + col1 * col1 / 58 FROM tab0 AS cor0
----
1579
206
3750
query I rowsort
SELECT DISTINCT - + col1 - - 74 AS col2 FROM tab1 AS cor0
----
48
61
64
query I rowsort
SELECT DISTINCT col0 * 34 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT cor0.col0 * + 71 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT - + cor0.col0 * col0 + 22 + + col2 AS col2 FROM tab2 AS cor0
----
-6036
-6181
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 + + cor0.col2 * col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 + cor0.col1 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT DISTINCT - col2 DIV col0 + + col1 * col0 FROM tab1 AS cor0
----
1039
60
640
skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - col2 / col0 + + col1 * col0 FROM tab1 AS cor0
----
1039
60
640
onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT ALL - 18 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - 18 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + 22 * col0 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT ALL - - col1 * 54 - col2 FROM tab1 AS cor0
----
1350
483
606
query I rowsort
SELECT ( col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * tab1.col0 * + col0 + col2 FROM tab1
----
262201
512096
81
query I rowsort
SELECT ALL col0 + + ( - 17 ) AS col1 FROM tab0
----
18
7
72
query I rowsort
SELECT ALL - cor0.col1 + col2 * 95 FROM tab2 AS cor0
----
2411
2534
3593
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - + ( col2 ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col2 * col2 + 56 FROM tab2 AS cor0
----
1500
732
785
query I rowsort
SELECT DISTINCT - 78 * + col1 AS col2 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT DISTINCT 66 * + cor0.col2 FROM tab0 AS cor0
----
2178
5412
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT + col2 DIV - col0 + - cor0.col0 * + 29 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-697
skipif mysql # not compatible
query I rowsort label-6527
SELECT + col2 / - col0 + - cor0.col0 * + 29 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-697
query I rowsort
SELECT ALL - 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT + col1 * + cor0.col2 + 62 AS col2 FROM tab2 AS cor0
----
1596
708
899
query I rowsort
SELECT ALL ( - 48 ) FROM tab1
----
-48
-48
-48
query I rowsort
SELECT + 83 * tab2.col1 + + col1 * - 13 * col1 FROM tab2
----
-2346
-40356
-9920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL 40 FROM tab0 cor0
----
40
40
40
query I rowsort
SELECT + + 44 - col0 FROM tab2 AS cor0
----
-34
-35
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + col2 col2 FROM tab0 AS cor0
----
63
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT - - 47 - + col1 DIV + col1 FROM tab1 AS cor0
----
46
46
46
skipif mysql # not compatible
query I rowsort label-6537
SELECT - - 47 - + col1 / + col1 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT + col0 - col2 * + col0 AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT - col1 * - col1 + + tab2.col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL 18 * col1 + ( + col0 ) FROM tab2 AS cor0
----
1140
385
565
query I rowsort
SELECT DISTINCT 85 - col1 * - col1 FROM tab2 AS cor0
----
1046
3566
374
query I rowsort
SELECT + + cor0.col2 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + 71 * col1 + + col1 * col1 + col1 AS col0 FROM tab0
----
13588
14833
16393
query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT - CAST( - 7 AS SIGNED ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif mysql # not compatible
query I rowsort label-6545
SELECT - CAST ( - 7 AS INTEGER ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT + 90 DIV - col1 + - col0 FROM tab1
----
-6
-73
-86
skipif mysql # not compatible
query I rowsort label-6546
SELECT + 90 / - col1 + - col0 FROM tab1
----
-6
-73
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT - col1 DIV col0 + - col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-6547
SELECT - col1 / col0 + - col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT DISTINCT - col1 * + col0 * - col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT tab2.col2 * ( col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col1 * - col2 * - col2 + ( col2 ) FROM tab1 AS cor0
----
119904
32547
75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT DISTINCT + cor0.col2 + col0 DIV 77 FROM tab2 cor0
----
27
39
skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + cor0.col2 + col0 / 77 FROM tab2 cor0
----
27
39
query I rowsort
SELECT ( - col0 ) + - col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT DISTINCT - 78 * + 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4680
query I rowsort
SELECT + 96 + + col1 * - ( col1 ) * col1 FROM tab2 AS cor0
----
-205283
-29695
-4817
onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT + col0 DIV col0 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6557
SELECT + col0 / col0 AS col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - 45 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ALL + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + tab0.col2 + - tab0.col0 * col2 * - col0 FROM tab0
----
1226
19041
649604
query I rowsort
SELECT - + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col0 * 16 - col1 * col1 FROM tab1 AS cor0
----
-1124
-1449
-724
query I rowsort
SELECT ALL + cor0.col1 * - 96 - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-11094
-16198
-9409
query I rowsort
SELECT ALL + - col2 * 78 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT col2 * + 33 FROM tab1 AS cor0
----
1782
1881
3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT + 25 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6568
SELECT + 25 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col0 * 58 + + col0 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT - ( col2 ) + cor0.col2 - 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-63
query I rowsort
SELECT - col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 95 col2 FROM tab0
----
13
62
94
query I rowsort
SELECT - + col0 * - col0 * col0 - + col0 FROM tab0 AS cor0
----
13800
42840
704880
query I rowsort
SELECT + ( - 3 ) * + col0 - + ( 38 + + col2 ) AS col2 FROM tab2 AS cor0
----
-298
-313
-86
query I rowsort
SELECT 57 * - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-4878
-5098
-5494
query I rowsort
SELECT - 45 + col1 - + col0 * + tab2.col0 * tab2.col1 AS col2 FROM tab2
----
-106125
-1533
-358942
query I rowsort
SELECT - 3 * col1 FROM tab1 cor0
----
-30
-39
-78
query I rowsort
SELECT - 0 * ( - col0 ) AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - 40 * col2 FROM tab2 cor0
----
-1040
-1080
-1520
query I rowsort
SELECT DISTINCT - - 68 + col2 FROM tab0 AS cor0
----
101
150
69
query I rowsort
SELECT DISTINCT - + 15 * - 14 + col2 * ( - 85 ) AS col1 FROM tab2 AS cor0
----
-2000
-2085
-3020
query I rowsort
SELECT ( - 20 ) FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL ( + cor0.col0 ) + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + 60 + col2 AS col1 FROM tab2 AS cor0
----
86
87
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT + col2 + + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6586
SELECT + col2 + + col0 / - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT ALL cor0.col1 + - col1 DIV 18 FROM tab2 AS cor0
----
17
30
56
skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL cor0.col1 + - col1 / 18 FROM tab2 AS cor0
----
17
30
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT DISTINCT - 7 DIV cor0.col0 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - 7 / cor0.col0 col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT - + col1 * + col2 + + col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-194
-2840
-7463
skipif mysql # not compatible
query I rowsort label-6589
SELECT - + col1 * + col2 + + col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-194
-2840
-7463
query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT 48 - + ( - col0 ) AS col2 FROM tab1
----
112
128
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT + - col1 DIV - col1 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6592
SELECT + - col1 / - col1 AS col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT + col2 * - 51 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab2 cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT DISTINCT - tab0.col0 * + 31 FROM tab0, tab1, tab2 cor0
----
-1085
-2759
-744
query I rowsort
SELECT ALL cor0.col2 + cor0.col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT + 11 DIV col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6597
SELECT + 11 / col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6599
SELECT + CAST( - 50 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
skipif mysql # not compatible
query I rowsort label-6599
SELECT + CAST ( - 50 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ( + col2 ) * col2 AS col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT 43 + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
43
43
47
skipif mysql # not compatible
query I rowsort label-6601
SELECT 43 + col1 / + col0 AS col0 FROM tab2 AS cor0
----
43
43
47
query I rowsort
SELECT 78 - + col1 * - 30 AS col1 FROM tab2
----
1008
1848
588
query I rowsort
SELECT tab2.col1 + + tab2.col2 FROM tab2
----
55
58
85
query I rowsort
SELECT col1 * - col0 + + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + 23 + - col1 FROM tab2 cor0
----
-36
-8
6
query I rowsort
SELECT + col2 * 53 FROM tab1
----
2862
3021
5088
onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT col0 * col0 DIV tab1.col1 FROM tab1
----
0
409
492
skipif mysql # not compatible
query I rowsort label-6608
SELECT col0 * col0 / tab1.col1 FROM tab1
----
0
409
492
query I rowsort
SELECT col1 * 77 AS col1 FROM tab0
----
6622
7007
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT + 77 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
25
skipif mysql # not compatible
query I rowsort label-6610
SELECT + 77 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * col0 col2 FROM tab2 AS cor0
----
-315
-3510
-3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6612
SELECT + ( + ( cor0.col2 ) ) + + CAST( col0 AS SIGNED ) + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504
skipif mysql # not compatible
query I rowsort label-6612
SELECT + ( + ( cor0.col2 ) ) + + CAST ( col0 AS INTEGER ) + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT + + col0 * ( + cor0.col1 ) + col2 - 46 FROM tab1 AS cor0
----
1090
651
86
query I rowsort
SELECT 88 * + col2 AS col2 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT - 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col2 * 45 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT ALL + ( - 72 ) FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT - - 82 AS col2 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT - col2 + + col2 * + col1 + + col0 AS col2 FROM tab2
----
1586
687
817
onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT DISTINCT - 1 * 26 + col2 DIV col2 FROM tab0
----
-25
skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - 1 * 26 + col2 / col2 FROM tab0
----
-25
query I rowsort
SELECT 76 AS col1 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f
query I rowsort
SELECT ALL 79 + + tab0.col2 AS col0 FROM tab0
----
112
161
80
query I rowsort
SELECT DISTINCT + 78 FROM tab0, tab2, tab1 AS cor0
----
78
query I rowsort
SELECT ALL - col0 * - 69 + col2 * col2 * col2 FROM tab0
----
2416
37593
557509
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col0 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL col0 * + col1 * - col2 + + 74 * col1 FROM tab0 AS cor0
----
-61748
-657384
3783
query I rowsort
SELECT ALL - col2 * ( - cor0.col1 ) FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT col0 DIV 3 + - col0 + col1 AS col1 FROM tab1
----
-33
-41
24
skipif mysql # not compatible
query I rowsort label-6630
SELECT col0 / 3 + - col0 + col1 AS col1 FROM tab1
----
-33
-41
24
query I rowsort
SELECT + 62 + + col2 * col0 FROM tab0 AS cor0
----
7360
854
97
query I rowsort
SELECT - - col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + 77 AS col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - - 85 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
59
72
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT DISTINCT + 77 DIV - col0 + - 53 * - col1 AS col2 FROM tab2 AS cor0
----
1632
3127
901
skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + 77 / - col0 + - 53 * - col1 AS col2 FROM tab2 AS cor0
----
1632
3127
901
query I rowsort
SELECT + cor0.col2 * + col0 + + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + col1 + - col2 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT DISTINCT + 72 DIV - col0 + + col2 FROM tab2 AS cor0
----
17
26
38
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 72 / - col0 + + col2 FROM tab2 AS cor0
----
17
26
38
query I rowsort
SELECT ALL - + col1 * - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col2 + + cor0.col2 * - ( col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - 33 + + col0 * + 94 FROM tab0 AS cor0
----
2223
3257
8333
onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT + col0 + col0 DIV col1 col0 FROM tab1 cor0
----
3
70
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6644
SELECT + col0 + col0 / col1 col0 FROM tab1 cor0
----
3
70
86
query I rowsort
SELECT ALL - col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT col2 + col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-6646
SELECT col2 + col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT + ( + col1 ) DIV ( 1 ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6647
SELECT + ( + col1 ) / ( 1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + 60 * tab0.col1 - col1 AS col0 FROM tab0
----
5074
5369
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL col0 DIV - 90 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL col0 / - 90 + - col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 * - 36 col1 FROM tab1 AS cor0
----
296
388
933
query I rowsort
SELECT + 38 + col0 FROM tab1 cor0
----
102
118
41
query I rowsort
SELECT ALL - col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - 67 * - col2 AS col2 FROM tab1 AS cor0
----
3618
3819
6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT - 14 DIV - col1 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6654
SELECT - 14 / - col1 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col2 * + col2 + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT col2 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - col2 + 99 FROM tab2 AS cor0
----
61
72
73
query I rowsort
SELECT + col1 * 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT - - col2 * col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - - col2 * ( - col2 * cor0.col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT col2 + 4 DIV col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT col2 + 4 / col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * - 42 + + col2 AS col0 FROM tab0 AS cor0
----
1041
1471
3820
query I rowsort
SELECT ALL - col1 * col1 + ( - col2 ) * + col1 - + col1 FROM tab0 AS cor0
----
-10320
-15834
-9603
query I rowsort
SELECT col1 * 95 FROM tab2 cor0
----
1615
2945
5605
query I rowsort
SELECT ALL + cor0.col2 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - ( 1 ) * + col1 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + ( 65 ) + + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-7233
-727
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 14 col0 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT ALL - - col0 * - 66 + + col2 FROM tab2 AS cor0
----
-435
-5122
-5176
query I rowsort
SELECT DISTINCT - col0 * 20 AS col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT - 51 * - col0 - col0 AS col2 FROM tab1 cor0
----
150
3200
4000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + - col0 col0 FROM tab0 cor0
----
-50
15
4
query I rowsort
SELECT DISTINCT - col0 - col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT - col0 DIV - col1 - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6674
SELECT - col0 / - col1 - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 * 80 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT + + col0 + 19 + - col0 AS col1 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT - col1 + col2 * + col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT col1 * - 83 + - col2 + col1 FROM tab1 AS cor0
----
-1162
-2186
-877
onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT col2 DIV - tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6679
SELECT col2 / - tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 57 + + tab1.col1 AS col2 FROM tab1
----
67
70
83
query I rowsort
SELECT DISTINCT + col2 * + col1 * 94 AS col1 FROM tab0
----
266772
701428
9118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6682
SELECT cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6682
SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - cor0.col2 + col2 - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT + - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6684
SELECT + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 14 * cor0.col1 - col0 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT - - col0 + + col1 * + col1 - + col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * col2 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-6688
SELECT col2 DIV - ( + col1 ) + cor0.col2 * - col1 * + 77 - + col1 AS col0 FROM tab2 AS cor0
----
-118177
-49761
-64480
skipif mysql # not compatible
query I rowsort label-6688
SELECT col2 / - ( + col1 ) + cor0.col2 * - col1 * + 77 - + col1 AS col0 FROM tab2 AS cor0
----
-118177
-49761
-64480
query I rowsort
SELECT DISTINCT + - col2 + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - 42 + + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d290b34b0c03b277e91e684355bf07d3
query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2, tab2 AS cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT - col0 DIV 6 AS col0 FROM tab2 AS cor0
----
-1
-13
-13
skipif mysql # not compatible
query I rowsort label-6692
SELECT - col0 / 6 AS col0 FROM tab2 AS cor0
----
-1
-13
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT ALL CAST( + 15 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
104
39
50
skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL CAST ( + 15 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 72 AS col0 FROM tab2 cor0
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - ( - 23 ) AS col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT ALL cor0.col1 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + - col1 * - cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + 0 + col1 * + col2 FROM tab2 cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + - col1 * CAST ( + ( - col0 ) AS REAL ) AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - ( - tab1.col0 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab2, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - - col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 68 + + col2 * + 41 FROM tab1 AS cor0
----
2282
2405
4004
query I rowsort
SELECT + 24 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT DISTINCT + cor0.col1 * 99 FROM tab2, tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT + 71 AS col2 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT + 44 AS col1 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT ALL + 7 FROM tab2
----
7
7
7
query I rowsort
SELECT DISTINCT col0 - + ( 90 ) AS col2 FROM tab1 AS cor0
----
-10
-26
-87
query I rowsort
SELECT + 62 * - col0 AS col2 FROM tab2 cor0
----
-434
-4836
-4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT - + 56 DIV + col0 col0 FROM tab1 cor0
----
-18
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6713
SELECT - + 56 / + col0 col0 FROM tab1 cor0
----
-18
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 AS cor0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT ALL CAST( NULL AS SIGNED ) * col0 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL CAST ( NULL AS INTEGER ) * col0 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 44 col1 FROM tab0
----
1056
1540
3916
query I rowsort
SELECT 19 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1558
-19
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT - col0 DIV col1 + - col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6719
SELECT - col0 / col1 + - col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 72 * ( + tab0.col0 ) * tab0.col2 + col2 * + col2 FROM tab0
----
-2519
-518732
-55935
onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT ALL - col0 * + col0 + col0 DIV + tab1.col2 FROM tab1
----
-4095
-6400
-9
skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - col0 * + col0 + col0 / + tab1.col2 FROM tab1
----
-4095
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col0 col2 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT ALL - col1 DIV col0 + col1 * col0 * col0 FROM tab2
----
106097
1515
358956
skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - col1 / col0 + col1 * col0 * col0 FROM tab2
----
106097
1515
358956
query I rowsort
SELECT DISTINCT + tab1.col0 * col2 + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL + col0 * + tab1.col2 * + col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT col2 * col2 * col1 AS col0 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT col2 DIV - col0 + col2 FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-6727
SELECT col2 / - col0 + col2 FROM tab1
----
36
57
95
query I rowsort
SELECT - col1 FROM tab1 WHERE + col0 >= NULL
----
query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT col1 * col0 + col2 DIV + col0 col1 FROM tab2
----
1343
220
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6730
SELECT col1 * col0 + col2 / + col0 col1 FROM tab2
----
1343
220
4602
query I rowsort
SELECT ALL - col0 * col1 + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL col1 * col1 * col0 + - col0 * col0 * - col1 AS col2 FROM tab0
----
1457820
227040
448140
query I rowsort
SELECT - - 22 + + col1 * col2 AS col2 FROM tab1 cor0
----
1270
1426
592
query I rowsort
SELECT - 87 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1048
-3568
-376
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 + - col0 col2 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT ALL col0 * - col0 + - col2 - - col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab2.col1 * col1 * col2 + col0 + + col0 * + col1 FROM tab2 WHERE ( NULL ) <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col1 col2 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col2 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( col2 )
----
query I rowsort
SELECT ALL + col2 + + col1 * - col2 + col2 AS col1 FROM tab1
----
-1056
-1296
-456
query I rowsort
SELECT ALL + tab0.col2 + tab0.col2 FROM tab0 WHERE ( + col0 * col0 + - col1 ) NOT IN ( + col2 * - col0 )
----
164
2
66
query I rowsort
SELECT 20 + + col0 * col1 FROM tab2 AS cor0
----
1363
237
4622
query I rowsort
SELECT + - 53 * - col2 + + 83 AS col1 FROM tab1 AS cor0
----
2945
3104
5171
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT ALL - col1 * + col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + + col2 - + col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + cor0.col1 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT col0 DIV col1 + col0 * col0 FROM tab2
----
49
6085
6245
skipif mysql # not compatible
query I rowsort label-6750
SELECT col0 / col1 + col0 * col0 FROM tab2
----
49
6085
6245
query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 * col2 - - col2 * col1 FROM tab2
----
1019
3484
3569
onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT tab2.col2 * - col1 + + col2 - tab2.col1 DIV + col1 FROM tab2
----
-1509
-609
-811
skipif mysql # not compatible
query I rowsort label-6752
SELECT tab2.col2 * - col1 + + col2 - tab2.col1 / + col1 FROM tab2
----
-1509
-609
-811
query I rowsort
SELECT - col2 * col2 + - col0 AS col2 FROM tab2
----
-1523
-736
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT ALL - tab0.col1 DIV + col1 + col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - tab0.col1 / + col1 + col2 FROM tab0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col2 col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NOT NULL BETWEEN tab1.col1 AND ( + col0 / + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT ALL - tab0.col1 DIV + tab0.col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL - tab0.col1 / + tab0.col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col2 * col1 - + col0 NOT BETWEEN col2 AND - col2
----
query I rowsort
SELECT DISTINCT + col0 - col1 AS col2 FROM tab0
----
-2
-62
query I rowsort
SELECT + 41 * col0 AS col2 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT 56 * cor0.col0 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT ALL - col1 - - col0 * + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT cor0.col1 + + cor1.col2 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 1fa18cbfcccda263f7b810e83e3d150c
query I rowsort
SELECT ALL + 52 + col1 * col1 FROM tab0 AS cor0
----
7448
8333
9461
query I rowsort
SELECT ALL - + cor0.col0 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL cor0.col0 + 74 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3a9b61ff2fbe0ed09e14d53789018cc8
query I rowsort
SELECT col0 * + 27 + - tab0.col2 FROM tab0
----
2321
615
944
query I rowsort
SELECT col1 + col2 + col0 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + col2 + col2 + col0 AS col1 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + 41 + + col0 FROM tab0
----
130
65
76
query I rowsort
SELECT DISTINCT - + 23 - + col1 FROM tab0 AS cor0
----
-109
-114
-120
query I rowsort
SELECT + ( ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 AS col1 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT col2 DIV 76 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6775
SELECT col2 / 76 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT + tab0.col0 DIV col2 col1 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6776
SELECT + tab0.col0 / col2 col1 FROM tab0
----
0
1
35
query I rowsort
SELECT 85 + - col1 FROM tab0 cor0
----
-1
-12
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col0 FROM tab2 AS cor0
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + 23 col0 FROM tab1
----
-1225
-1381
-547
query I rowsort
SELECT DISTINCT 66 * + col0 + + col0 * - 8 + + col0 AS col2 FROM tab2
----
413
4602
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - ( tab2.col0 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT ( col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + + 55 AS col2 FROM tab0 AS cor0
----
55
query I rowsort
SELECT ALL - ( - col0 ) * ( - 2 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT + col2 + col0 DIV - 91 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6786
SELECT + col2 + col0 / - 91 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + ( - col2 ) AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - + col1 + - cor0.col1 * ( + col1 + - 80 ) FROM tab1 AS cor0
----
1378
690
858
query I rowsort
SELECT cor0.col0 + - 25 AS col0 FROM tab0 AS cor0
----
-1
10
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 39 col0 FROM tab1 AS cor0
----
1014
390
507
query I rowsort
SELECT DISTINCT + + col0 + + 27 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT DISTINCT col0 * - ( col2 ) * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 39 col2 FROM tab0 AS cor0
----
1365
3471
936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * + cor0.col0 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * + cor0.col0 + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 95 AS col1 FROM tab1 cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT - + col0 * col2 + - col0 + cor0.col2 FROM tab1 AS cor0
----
-111
-3655
-7664
query I rowsort
SELECT - ( ( col2 ) ) * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 * + 30 FROM tab1 AS cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT 39 * col2 * cor0.col0 + + col2 DIV cor0.col2 col0 FROM tab1 AS cor0
----
142273
299521
6319
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6801
SELECT 39 * col2 * cor0.col0 + + col2 / cor0.col2 col0 FROM tab1 AS cor0
----
142273
299521
6319
query I rowsort
SELECT - col0 * cor0.col2 + - col2 - - col0 AS col1 FROM tab1 AS cor0
----
-213
-3641
-7696
query I rowsort
SELECT + - ( cor0.col1 ) - + col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - - col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * - 12 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT ALL + col1 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col0 + 29 AS col2 FROM tab1 cor0
----
-35
-51
26
query I rowsort
SELECT col1 + - col1 * 26 FROM tab0
----
-2150
-2275
-2425
query I rowsort
SELECT DISTINCT + 13 * + col2 AS col2 FROM tab1
----
1248
702
741
query I rowsort
SELECT DISTINCT + 41 * tab1.col2 + - 28 * col0 + col1 * - col0 FROM tab1
----
-95
2052
656
query I rowsort
SELECT DISTINCT col2 * - col2 + + col1 + - 92 FROM tab2
----
-1519
-709
-790
query I rowsort
SELECT + 4 * col2 AS col2 FROM tab0
----
132
328
4
query I rowsort
SELECT ALL 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + + cor0.col2 + - 66 * - col2 * + col2 FROM tab0 AS cor0
----
443866
67
71907
query I rowsort
SELECT + + col1 + + 71 AS col1 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL + col0 - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 - col2 * col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT col2 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6819
SELECT col2 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - tab1.col1 * col2 * + col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - + cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT tab1.col1 * + col0 * + col0 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col2 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col0 + - col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-22592
-24469
-39806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col0 FROM tab1 AS cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * col0 + - col1 col1 FROM tab2 AS cor0
----
249
3061
3143
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + 21 * col2 - col1 FROM tab1 AS cor0
----
1108
1187
2003
query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL tab1.col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 88 + col0 * col2 AS col0 FROM tab1 AS cor0
----
3560
74
7592
query I rowsort
SELECT ALL + ( - col2 ) * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col0 + - col2 * - 76 * - col1 FROM tab1 AS cor0
----
-106707
-43384
-94928
query I rowsort
SELECT ALL + - 37 * col0 * 24 AS col2 FROM tab1 AS cor0
----
-2664
-56832
-71040
query I rowsort
SELECT - cor0.col2 * col2 + cor0.col1 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT - ( + col2 ) * cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + 59 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - - col0 + col1 + + col0 FROM tab1 cor0
----
138
173
32
query I rowsort
SELECT DISTINCT col1 * + col0 * - col1 + col2 FROM tab0 cor0
----
-177471
-329314
-736927
query I rowsort
SELECT ALL cor0.col0 * + col1 + ( cor0.col0 ) + col2 AS col0 FROM tab0 AS cor0
----
2121
3431
8270
query I rowsort
SELECT ALL + - col2 + - 7 FROM tab2 AS cor0
----
-33
-34
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6844
SELECT + col1 * + CAST( col1 AS SIGNED ) FROM tab1
----
100
169
676
skipif mysql # not compatible
query I rowsort label-6844
SELECT + col1 * + CAST ( col1 AS INTEGER ) FROM tab1
----
100
169
676
query I rowsort
SELECT + cor0.col0 * - col1 * + col0 + col2 - + 52 FROM tab1 cor0
----
-232
-40955
-83156
onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT cor0.col2 + + 29 DIV col1 AS col2 FROM tab2 cor0
----
26
27
39
skipif mysql # not compatible
query I rowsort label-6846
SELECT cor0.col2 + + 29 / col1 AS col2 FROM tab2 cor0
----
26
27
39
query I rowsort
SELECT DISTINCT - + col2 + - 84 * + col0 AS col0 FROM tab0 AS cor0
----
-2049
-2941
-7558
query I rowsort
SELECT ALL - - col0 + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + - col1 - col0 col2 FROM tab2 cor0
----
1348
539
691
query I rowsort
SELECT DISTINCT - + col1 + col2 * + col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + col1 - + 48 AS col0 FROM tab1 AS cor0
----
-22
-35
-38
query I rowsort
SELECT ALL - 73 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - ( - col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( 28 * - col0 ) FROM tab2
----
-196
-2184
-2212
query I rowsort
SELECT + ( - 42 ) + tab1.col1 FROM tab1
----
-16
-29
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6857
SELECT CAST( NULL AS SIGNED ) + col2 * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6857
SELECT CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( col2 ) + col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT + - CAST( NULL AS SIGNED ) * col2 + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6859
SELECT + - CAST ( NULL AS INTEGER ) * col2 + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 84 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT ALL - col1 + - col2 * - cor0.col0 DIV col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - col1 + - col2 * - cor0.col0 / col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT ALL + ( - col2 ) DIV - col1 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + ( - col2 ) / - col1 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT ALL col2 DIV col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL col2 / col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT + + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - - cor0.col2 * - col2 + - 77 FROM tab0 AS cor0
----
-1166
-6801
-78
query I rowsort
SELECT - 37 AS col2 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 * - ( col2 ) + 41 * - cor0.col2 FROM tab1 AS cor0
----
-235809
-2700
-618336
query I rowsort
SELECT + col2 * + col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) + + col2 * col0 col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL 70 * col1 AS col1 FROM tab2 cor0
----
1190
2170
4130
query I rowsort
SELECT DISTINCT ( col1 ) * col0 + col1 + - col2 FROM tab0 AS cor0
----
2117
3491
8108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT ALL + - ( col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + - ( col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 2 * - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col1 + col2 * + 47 * 99 AS col1 FROM tab0 AS cor0
----
153635
381637
4750
query I rowsort
SELECT DISTINCT + - 66 AS col0 FROM tab0 AS cor0
----
-66
query I rowsort
SELECT ALL - ( col2 ) * ( col0 ) + - col2 * col0 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT + ( 4 ) - + col2 * col0 AS col2 FROM tab2
----
-185
-2024
-2998
onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT ALL col0 + col1 DIV - ( - col1 ) FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL col0 + col1 / - ( - col1 ) FROM tab1 AS cor0
----
4
65
81
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT + tab1.col0 DIV tab1.col2 + - col2 * col1 FROM tab1
----
-1248
-1404
-569
skipif mysql # not compatible
query I rowsort label-6880
SELECT + tab1.col0 / tab1.col2 + - col2 * col1 FROM tab1
----
-1248
-1404
-569
query I rowsort
SELECT DISTINCT + 0 * + col1 FROM tab2
----
0
query I rowsort
SELECT - col2 + 50 AS col0 FROM tab1 cor0
----
-4
-46
-7
query I rowsort
SELECT DISTINCT + - ( 56 ) * - col0 FROM tab0 cor0
----
1344
1960
4984
query I rowsort
SELECT + col0 + - 77 * + col0 AS col1 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT col2 * + col2 * col0 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + 51 * col2 AS col0 FROM tab1 AS cor0
----
2754
2907
4896
query I rowsort
SELECT - - 2 * ( col1 ) AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + 54 * col1 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT + + col0 + - ( - cor0.col0 ) * col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + col1 + + ( + col1 ) + tab2.col1 FROM tab2
----
177
51
93
query I rowsort
SELECT ALL 4 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT ALL - col0 * 98 + + col0 + col2 AS col2 FROM tab1
----
-237
-6151
-7664
query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col1 FROM tab1
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6894
SELECT ALL + CAST( NULL AS SIGNED ) * 15 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + CAST ( NULL AS INTEGER ) * 15 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 73 * + tab2.col2 AS col2 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to fd5ac40d47629e37ab1adbd7df3c7291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab0.col0 col0 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT DISTINCT CAST( - col1 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT DISTINCT col1 * ( - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT col1 * ( - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ( 41 ) FROM tab2 cor0
----
41
41
41
query I rowsort
SELECT DISTINCT + + ( - col1 ) * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - ( - 5 ) * + col0 FROM tab1 AS cor0
----
15
320
400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT col0 DIV 67 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6903
SELECT col0 / 67 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - col1 + 91 * + col0 AS col0 FROM tab2 AS cor0
----
606
7039
7172
query I rowsort
SELECT col0 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT ALL - - CAST( + col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - - CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + tab1.col2 + 78 AS col1 FROM tab1, tab0, tab1 AS cor0
----
132
135
174
query I rowsort
SELECT 20 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT DISTINCT - - col1 * 37 + col2 FROM tab1 AS cor0
----
1016
427
577
onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT + ( - col1 ) + - col0 DIV 72 FROM tab2 AS cor0
----
-18
-31
-60
skipif mysql # not compatible
query I rowsort label-6910
SELECT + ( - col1 ) + - col0 / 72 FROM tab2 AS cor0
----
-18
-31
-60
query I rowsort
SELECT ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + ( + cor0.col2 ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - - 24 + + col2 FROM tab0 AS cor0
----
106
25
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT - col0 DIV - col1 + + cor0.col0 * - col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-6914
SELECT - col0 / - col1 + + cor0.col0 * - col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + col1 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + 70 FROM tab0 cor0
----
70
70
70
query I rowsort
SELECT DISTINCT - ( + col1 ) * 55 - ( + col2 ) FROM tab2 cor0
----
-1732
-3271
-973
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 * col1 + col2 - 93 AS col1 FROM tab0 AS cor0
----
2004
3303
8088
query I rowsort
SELECT 37 + + cor0.col0 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT col0 * col2 + + col0 + 24 FROM tab0 cor0
----
7411
840
94
query I rowsort
SELECT col0 - + col1 * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + - col2 - + cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + col2 * + cor0.col0 + col2 + col2 AS col1 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT col0 + col2 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + col0 + - col1 * 29 + 46 FROM tab1 AS cor0
----
-180
-251
-705
query I rowsort
SELECT ALL + 40 * col1 AS col0 FROM tab0
----
3440
3640
3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * + ( - col0 ) * col2 + cor0.col0 AS col0 FROM tab0 cor0
----
-26112
-598347
0
query I rowsort
SELECT ALL 43 * col0 AS col1 FROM tab1
----
129
2752
3440
onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT + ( - tab2.col0 ) DIV + col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6931
SELECT + ( - tab2.col0 ) / + col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - - col2 * + col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT - col1 * col1 DIV - col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6934
SELECT - col1 * col1 / - col1 AS col0 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT CAST( NULL AS SIGNED ) + 22 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6935
SELECT CAST ( NULL AS INTEGER ) + 22 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 * - 70 + - col1 * cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-618254
-6887
-99674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6937
SELECT + tab1.col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6937
SELECT + tab1.col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - ( col0 ) - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT 73 + + col2 * col0 FROM tab2
----
2101
262
3075
query I rowsort
SELECT ALL + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT + col2 DIV col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6941
SELECT + col2 / col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 84 * - tab0.col1 FROM tab0
----
7224
7644
8148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6943
SELECT - tab0.col2 + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6943
SELECT - tab0.col2 + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL + col2 * - col0 * ( - 9 ) AS col2 FROM tab1
----
1458
32832
69120
query I rowsort
SELECT + 50 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT col0 - col2 * col1 * col1 FROM tab2 AS cor0
----
-10903
-25940
-90428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 - col2 col1 FROM tab1 cor0
----
-48
64
71
query I rowsort
SELECT DISTINCT + 89 + - 45 - + col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-52
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - - 15 + col2 * + col0 - col1 FROM tab0 AS cor0
----
-47
721
7222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col0 col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6952
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6952
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT ALL - col1 * + col1 + + col0 + CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-619
21
7
skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - col1 * + col1 + + col0 + CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-619
21
7
query I rowsort
SELECT ALL + col2 * + col1 * - col1 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT - col1 * col1 - col2 FROM tab2
----
-327
-3507
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT DISTINCT CAST( + 13 AS SIGNED ) AS col2 FROM tab2
----
13
skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT CAST ( + 13 AS INTEGER ) AS col2 FROM tab2
----
13
query I rowsort
SELECT + tab1.col1 + + tab1.col0 FROM tab1
----
29
74
93
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
query I rowsort
SELECT col1 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + - 61 AS col0 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT + 84 * + col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 35 * - col1 col2 FROM tab0 AS cor0
----
-3096
-3276
-3492
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT tab2.col0 - + col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col1 + col1 FROM tab1
----
106
122
77
query I rowsort
SELECT - ( + cor1.col2 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT col0 * + col0 * + col0 + tab0.col1 * + 54 FROM tab0
----
18468
48113
709883
query I rowsort
SELECT + col1 * ( ( tab0.col1 ) ) + + col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + - col0 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + + col1 * 93 FROM tab1 cor0
----
1209
2418
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT DISTINCT + col0 DIV + 45 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + col0 / + 45 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT col2 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + col0 * + 15 AS col1 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT ALL - col0 * - col1 + - 58 FROM tab0 cor0
----
2006
3337
8041
onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT ALL col1 * 46 + cor0.col0 DIV + cor0.col0 + col0 * 25 FROM tab1 AS cor0
----
1272
2061
2599
skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL col1 * 46 + cor0.col0 / + cor0.col0 + col0 * 25 FROM tab1 AS cor0
----
1272
2061
2599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT DISTINCT + - col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT + - col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * 23 AS col0 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT - col1 * - col1 - col0 * col1 * col0 FROM tab1 AS cor0
----
-40860
-83031
442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6984
SELECT + col0 * + CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-6984
SELECT + col0 * + CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + col0 * - 87 FROM tab0 AS cor0
----
-2088
-3045
-7743
onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT ( cor0.col2 ) DIV - 37 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea
skipif mysql # not compatible
query I rowsort label-6988
SELECT ( cor0.col2 ) / - 37 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT CAST( 13 AS SIGNED ) FROM tab1 AS cor0
----
13
13
13
skipif mysql # not compatible
query I rowsort label-6989
SELECT CAST ( 13 AS INTEGER ) FROM tab1 AS cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + col0 * + col2 col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - + col2 * + 4 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT - ( + col2 ) * col1 * + 57 FROM tab0 AS cor0
----
-161766
-425334
-5529
query I rowsort
SELECT - col1 * 44 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT ALL + + col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT DISTINCT - 64 DIV - col1 - col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - 64 / - col1 - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col0 - - col0 * 28 FROM tab1 cor0
----
1856
2320
87
query I rowsort
SELECT + cor0.col2 * cor0.col1 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - cor0.col2 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT DISTINCT - ( col1 ) + - ( col1 ) DIV col0 FROM tab1 cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT - ( col1 ) + - ( col1 ) / col0 FROM tab1 cor0
----
-10
-13
-34
query I rowsort
SELECT DISTINCT - col0 - col0 * + ( + col1 * cor0.col0 + + col0 ) FROM tab0 AS cor0
----
-120085
-50136
-728821
query I rowsort
SELECT cor0.col1 - - col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 42 + col1 * - col2 FROM tab2
----
-1492
-604
-795
onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT DISTINCT col0 DIV + col0 + col0 * col0 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT col0 / + col0 + col0 * col0 FROM tab0
----
1226
577
7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT DISTINCT - col2 * col0 + 16 DIV - col1 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7681
skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - col2 * col0 + 16 / - col1 AS col0 FROM tab1 AS cor0
----
-162
-3649
-7681
query I rowsort
SELECT ALL 24 FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad
query I rowsort
SELECT ALL - ( + col1 ) * - col0 - - col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7007
SELECT ALL col2 / col1 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL col2 / col1 - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 95 + cor0.col1 * - ( 78 ) FROM tab1 AS cor0
----
-1109
-2123
-875
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 * + cor0.col1 * 73 + - col1 FROM tab1 AS cor0
----
12324
49322
7290
query I rowsort
SELECT ALL + col0 + tab2.col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col1 * + col1 + + 49 AS col1 FROM tab2
----
1010
338
3530
query I rowsort
SELECT + - col1 * ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT + col0 DIV - col1 - - col1 * - col2 FROM tab1 AS cor0
----
-1254
-1404
-576
skipif mysql # not compatible
query I rowsort label-7014
SELECT + col0 / - col1 - - col1 * - col2 FROM tab1 AS cor0
----
-1254
-1404
-576
query I rowsort
SELECT - - 82 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT ALL - 73 + tab2.col0 * + ( 10 ) FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 5d4c02b56e96eb813c30d87ac54d9aa7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + 24 col1 FROM tab1
----
-408
-408
-408
query I rowsort
SELECT + 53 * + tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ba73d29416090885ac8228d4a00d831e
query I rowsort
SELECT - 42 AS col2 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT + col1 DIV + col1 + + 75 * - col0 AS col0 FROM tab0 AS cor0
----
-1799
-2624
-6674
skipif mysql # not compatible
query I rowsort label-7021
SELECT + col1 / + col1 + + 75 * - col0 AS col0 FROM tab0 AS cor0
----
-1799
-2624
-6674
query I rowsort
SELECT ALL + col1 + ( col2 ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col2 * - 98 + + 49 + col1 FROM tab0
----
244
3369
8176
query I rowsort
SELECT DISTINCT - + col2 * + 40 + - col2 + + col1 AS col0 FROM tab0 cor0
----
-1267
-3271
56
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT + - ( col0 ) * cor0.col0 DIV - ( 51 ) + - col0 FROM tab2 AS cor0
----
-7
41
43
skipif mysql # not compatible
query I rowsort label-7026
SELECT + - ( col0 ) * cor0.col0 / - ( 51 ) + - col0 FROM tab2 AS cor0
----
-7
41
43
query I rowsort
SELECT + ( - col1 ) * col2 + - col0 * col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT + + col1 + 77 FROM tab0 cor0
----
163
168
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT - CAST( NULL AS DECIMAL ) * 70 - col2 * cor0.col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7029
SELECT - CAST ( NULL AS REAL ) * 70 - col2 * cor0.col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + ( cor0.col1 ) + - col1 * 96 * col0 + col2 FROM tab0 AS cor0
----
-198025
-325822
-777331
query I rowsort
SELECT tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT 6 - 7 FROM tab0
----
-1
query I rowsort
SELECT ( 77 ) + col1 AS col1 FROM tab2
----
108
136
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7035
SELECT DISTINCT - CAST( NULL AS SIGNED ) + tab1.col0 - + col1 * col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + tab1.col0 - + col1 * col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * col2 + col2 + col2 * tab2.col1 col1 FROM tab2
----
1274
266
567
query I rowsort
SELECT - 35 + + 47 + col0 FROM tab0
----
101
36
47
query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL 34 - - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0128779f8823effaa7a1a7cba9eba31d
query I rowsort
SELECT DISTINCT - - col1 + col2 - col1 * 2 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col0 + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 61 ) * + cor0.col0 col2 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT ALL + ( col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 24 + col0 FROM tab2 AS cor0
----
102
103
31
query I rowsort
SELECT ALL col0 + col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 9 + - col2 AS col1 FROM tab2 AS cor0
----
-35
-36
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT ALL 74 DIV col0 AS col2 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL 74 / col0 AS col2 FROM tab0 AS cor0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col2 col0 FROM tab0 cor0
----
-1353
-3362
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 27 - - col2 * col1 FROM tab1
----
1275
1431
597
query I rowsort
SELECT ALL - - col2 * cor0.col0 + - 53 AS col0 FROM tab0 AS cor0
----
-18
7245
739
query I rowsort
SELECT - + col2 + + 95 * 64 FROM tab2 AS cor0
----
6042
6053
6054
query I rowsort
SELECT ALL + tab0.col2 * 57 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1d6306f216c759692cd9a50966ae3340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 1 col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT cor0.col2 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 + + col0 * 85 * - col1 FROM tab1 cor0
----
-54410
-6656
-88413
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 57 + col2 - + col2 FROM tab0 AS cor0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT DISTINCT + ( cor0.col0 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + ( cor0.col0 ) / + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + 26 * col2 FROM tab2 AS cor0
----
1277
1663
4157
query I rowsort
SELECT ALL + col2 * + col1 - ( col0 ) FROM tab1 cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) - - col2 col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7063
SELECT ALL - 90 * - col1 - - CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7764
8279
8765
skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 90 * - col1 - - CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7764
8279
8765
query I rowsort
SELECT - col1 * + col1 + 97 FROM tab1 AS cor0
----
-3
-579
-72
query I rowsort
SELECT DISTINCT + + col1 * col0 + 59 AS col0 FROM tab1 AS cor0
----
1099
137
699
query I rowsort
SELECT ALL - + col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col1 FROM tab2
----
5
query I rowsort
SELECT ( 31 ) * - col1 AS col2 FROM tab1
----
-310
-403
-806
query I rowsort
SELECT col0 + + 65 * col1 + - 67 AS col2 FROM tab1
----
1626
647
858
query I rowsort
SELECT DISTINCT - 85 * + col2 FROM tab1 cor0
----
-4590
-4845
-8160
skipif mysql # not compatible
query I rowsort
SELECT 38 * - col2 + CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-2026
-2156
-3635
query I rowsort
SELECT + 65 + + col0 FROM tab0 cor0
----
100
154
89
query I rowsort
SELECT ALL + + cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT - col2 + cor0.col2 DIV - 52 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-7074
SELECT - col2 + cor0.col2 / - 52 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT - col0 + 3 FROM tab0 AS cor0
----
-21
-32
-86
query I rowsort
SELECT ALL + col1 + col1 * 31 FROM tab1
----
320
416
832
query I rowsort
SELECT - 12 + + col0 * col1 AS col1 FROM tab1
----
1028
628
66
query I rowsort
SELECT DISTINCT + cor0.col0 + + 46 * - col0 AS col1 FROM tab2 cor0
----
-315
-3510
-3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7079
SELECT ALL col1 + + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL col1 + + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 * col2 col0 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT DISTINCT col2 * + 92 * - col0 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT col2 * + 92 * - col0 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + col0 * col0 * col0 col1 FROM tab1 AS cor0
----
262208
30
512080
query I rowsort
SELECT ALL + 20 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT col2 * ( + ( col0 ) + 85 ) AS col1 FROM tab2
----
2484
4238
6232
query I rowsort
SELECT - 68 + - 45 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 2be54cb93d702b9e2abc6b3bd889ebbe
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
query I rowsort
SELECT - - ( - 0 ) AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 + tab2.col0 AS col1 FROM tab2
----
1561
763
780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT ALL CAST( - col1 AS SIGNED ) + + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL CAST ( - col1 AS INTEGER ) + + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 + 78 * + tab0.col1 * - col1 FROM tab0
----
-576855
-645836
-733901
query I rowsort
SELECT ALL + 83 + col2 FROM tab1
----
137
140
179
query I rowsort
SELECT ALL + cor0.col0 - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3
query I rowsort
SELECT DISTINCT ( ( - cor0.col1 ) ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ( - 25 ) + col0 + col0 * cor0.col2 * col1 FROM tab0 AS cor0
----
3405
664182
68111
query I rowsort
SELECT 89 * col2 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT ALL col2 * col2 + - col2 AS col1 FROM tab2
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 * cor0.col1 + col1 col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT - + col0 * col2 + + col1 - - ( col0 + col1 ) FROM tab2 AS cor0
----
-120
-1832
-2889
query I rowsort
SELECT ALL - - ( 49 ) AS col1 FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT col1 + tab0.col1 + + col2 AS col1 FROM tab0
----
195
205
264
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - - 25 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT - cor0.col0 + - col1 - + 10 * ( - col0 + - col0 ) * - col2 FROM tab2 AS cor0
----
-3818
-40697
-60136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT DISTINCT - + col0 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - + col0 / - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 11 * col1 + + 1 * cor0.col2 * col2 AS col0 FROM tab1 cor0
----
3202
3359
9359
query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab2 AS cor0
----
99
query I rowsort
SELECT col2 * + col1 + + col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) + + col2 * 30 AS col2 FROM tab2 AS cor0
----
-203
-3822
593
query I rowsort
SELECT ALL col1 + - 34 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT DISTINCT col0 * ( cor0.col0 ) + col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL - col0 + - 91 * col1 AS col2 FROM tab1 AS cor0
----
-1263
-2369
-974
query I rowsort
SELECT ALL - + cor0.col1 + - 19 AS col2 FROM tab1 AS cor0
----
-29
-32
-45
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL cor0.col2 * 10 + + col1 FROM tab1 AS cor0
----
566
580
973
query I rowsort
SELECT 55 * + col2 AS col0 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT ALL + - 65 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-124
-82
-96
query I rowsort
SELECT DISTINCT - + col2 * 79 AS col0 FROM tab2 cor0
----
-2054
-2133
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + cor0.col1 * - col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT - - ( 54 ) + col0 - col0 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - col2 * - 93 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-134292
-62868
-67797
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT - 58 + col2 DIV + col0 + col1 AS col2 FROM tab2 AS cor0
----
-24
-41
1
skipif mysql # not compatible
query I rowsort label-7122
SELECT - 58 + col2 / + col0 + col1 AS col2 FROM tab2 AS cor0
----
-24
-41
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT + col2 DIV col1 + col0 - - ( + col0 ) FROM tab2 AS cor0
----
14
156
160
skipif mysql # not compatible
query I rowsort label-7123
SELECT + col2 / col1 + col0 - - ( + col0 ) FROM tab2 AS cor0
----
14
156
160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 35 col0 FROM tab2 AS cor0
----
1330
910
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 27 * col2 col0 FROM tab1
----
1404
1482
2496
query I rowsort
SELECT DISTINCT + col2 * + 6 * + tab0.col0 AS col2 FROM tab0
----
210
43788
4752
query I rowsort
SELECT + 59 * - col2 FROM tab1 AS cor0
----
-3186
-3363
-5664
query I rowsort
SELECT - - col1 * - col0 - col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + col1 + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + col1 - + col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - col2 - ( - col1 * col0 ) AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT tab1.col1 * col2 * col0 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - 78 * + col0 + 9 AS col2 FROM tab1
----
-225
-4983
-6231
onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT col2 DIV + 88 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7134
SELECT col2 / + 88 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 + + 86 FROM tab0 AS cor0
----
110
121
175
query I rowsort
SELECT ALL + - ( - ( + col0 ) ) + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - ( + 81 ) + col1 + col2 FROM tab2 cor0
----
-23
-26
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7138
SELECT DISTINCT CAST( NULL AS SIGNED ) + 48 * + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 48 * + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 65 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 51 col2 FROM tab0
----
4386
4641
4947
query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - + 76 * - col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL 44 * + tab2.col0 FROM tab2
----
308
3432
3476
query I rowsort
SELECT ALL - 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT DISTINCT + 54 * + cor0.col0 AS col1 FROM tab1 cor0
----
162
3456
4320
query I rowsort
SELECT col2 + col0 * ( - col2 * - col0 ) AS col2 FROM tab2 AS cor0
----
1350
158210
237196
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT DISTINCT 38 DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT 38 / - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort
SELECT - 12 * + col0 - CAST ( - col2 AS REAL ) * col0 AS col0 FROM tab2
----
105
1092
2054
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 - + col0 col0 FROM tab1
----
-1
-62
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT tab1.col1 - - col1 * col1 DIV - tab1.col1 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7151
SELECT tab1.col1 - - col1 * col1 / - tab1.col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + - cor0.col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7153
SELECT - + cor0.col1 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7153
SELECT - + cor0.col1 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + + 29 AS col1 FROM tab0
----
115
120
126
query I rowsort
SELECT DISTINCT + col0 * 29 AS col2 FROM tab1
----
1856
2320
87
query I rowsort
SELECT ALL col1 * + 84 FROM tab2 AS cor0
----
1428
2604
4956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT DISTINCT + + col2 DIV 51 + - col2 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + + col2 / 51 + - col2 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT ALL col1 * 81 + + col0 FROM tab0 AS cor0
----
6990
7460
7892
query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a66faf44289070d88fd26bbc9bf34e3
query I rowsort
SELECT ALL + + cor0.col1 * 78 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT DISTINCT + col1 * col2 * col1 AS col0 FROM tab2 cor0
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7163
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + col2 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + col2 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 + 12 FROM tab0 AS cor0
----
103
109
98
query I rowsort
SELECT DISTINCT col1 + + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 40 * 55 + col2 FROM tab1
----
-2104
-2143
-2146
query I rowsort
SELECT + 98 * + 27 AS col0 FROM tab0 AS cor0
----
2646
2646
2646
query I rowsort
SELECT - col2 * 53 + - col1 AS col2 FROM tab1 cor0
----
-2888
-3031
-5101
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT CAST( + col0 AS SIGNED ) * col0 + - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
skipif mysql # not compatible
query I rowsort label-7169
SELECT CAST ( + col0 AS INTEGER ) * col0 + - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT 22 + - col2 FROM tab2 AS cor0
----
-16
-4
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT DISTINCT 48 DIV + 5 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT 48 / + 5 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
9
query I rowsort
SELECT DISTINCT - 20 FROM tab1, tab1 AS cor0
----
-20
query I rowsort
SELECT DISTINCT 73 + col0 AS col1 FROM tab1 cor0
----
137
153
76
query I rowsort
SELECT DISTINCT col2 * tab0.col2 * - col1 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT + col0 * - cor0.col2 * col1 + - col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-7175
SELECT + col0 * - cor0.col2 * col1 + - col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT ALL - tab0.col2 * tab0.col1 DIV - col1 + ( - col1 ) AS col0 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - tab0.col2 * tab0.col1 / - col1 + ( - col1 ) AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col0 + + 88 + cor0.col2 FROM tab1 AS cor0
----
104
139
81
query I rowsort
SELECT + + cor0.col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - 53 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
1773
4435
88
query I rowsort
SELECT DISTINCT + col1 * - 93 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1129
-2415
-866
query I rowsort
SELECT - 31 + col2 FROM tab2 cor0
----
-4
-5
7
query I rowsort
SELECT - 65 * col2 + 31 FROM tab0 AS cor0
----
-2114
-34
-5299
query I rowsort
SELECT + 61 * - col0 AS col1 FROM tab0 AS cor0
----
-1464
-2135
-5429
skipif mysql # not compatible
query I rowsort
SELECT + 20 * - col0 * - CAST ( + 53 AS REAL ) + cor0.col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
40495
758458
93552
query I rowsort
SELECT + 12 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT - 91 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-2
-91
skipif mysql # not compatible
query I rowsort label-7186
SELECT - 91 / + cor0.col2 FROM tab0 AS cor0
----
-1
-2
-91
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col0 * 12 col0 FROM tab0 cor0
----
14700
6912
95052
onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT - - col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7189
SELECT - - col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 74 * + col2 + - col1 FROM tab0 AS cor0
----
-23
2356
5977
query I rowsort
SELECT ALL + col2 + - ( col1 + + col1 ) AS col0 FROM tab1 AS cor0
----
2
37
70
query I rowsort
SELECT ALL - col0 * col1 + - col2 + cor0.col1 FROM tab2 AS cor0
----
-1364
-213
-4569
query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * + ( + col0 ) * col0 + + col2 AS col1 FROM tab0
----
13857
42876
705051
query I rowsort
SELECT DISTINCT + + col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + cor0.col2 - ( + cor0.col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col1 * col1 * + 5 FROM tab2 AS cor0
----
1445
17405
4805
query I rowsort
SELECT ALL - cor0.col0 + + ( - col2 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - + col2 * col2 * col1 FROM tab0 cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT ALL - - cor0.col0 DIV col0 + - col2 + col1 FROM tab1 AS cor0
----
-27
-46
-82
skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL - - cor0.col0 / col0 + - col2 + col1 FROM tab1 AS cor0
----
-27
-46
-82
query I rowsort
SELECT DISTINCT - + col2 - - col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col0 + - 72 FROM tab0 AS cor0
----
-37
-48
17
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - ( + 6 ) * - col2 AS col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT 3 - + col0 AS col1 FROM tab0 AS cor0
----
-21
-32
-86
query I rowsort
SELECT - + ( - cor0.col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col1 + - col1 - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1261
-195
-6906
query I rowsort
SELECT col2 + + col1 * + col2 - + col1 FROM tab2 AS cor0
----
1501
667
833
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 * - 64 FROM tab2 AS cor0
----
-448
-4992
-5056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7214
SELECT + CAST( NULL AS SIGNED ) * - col0 + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7214
SELECT + CAST ( NULL AS INTEGER ) * - col0 + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 32 ) + - col2 FROM tab2 AS cor0
----
-6
5
6
query I rowsort
SELECT ALL - - 6 * col1 AS col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT + col0 * tab1.col1 * col1 FROM tab1
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7218
SELECT CAST( NULL AS SIGNED ) + - tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7218
SELECT CAST ( NULL AS INTEGER ) + - tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col2 * col0 ) FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7220
SELECT - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7220
SELECT - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT DISTINCT 46 + col2 DIV ( + col1 ) AS col0 FROM tab2
----
46
48
skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT 46 + col2 / ( + col1 ) AS col0 FROM tab2
----
46
48
query I rowsort
SELECT ALL 38 AS col0 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT + - col2 + + col0 * col0 * col0 FROM tab0 AS cor0
----
13791
42874
704887
query I rowsort
SELECT ALL + 10 * col2 AS col0 FROM tab0
----
10
330
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT + col2 DIV + 1 + col2 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-7225
SELECT + col2 / + 1 + col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL - col1 * - 98 AS col0 FROM tab1 AS cor0
----
1274
2548
980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 67 col2 FROM tab1 cor0
----
1742
670
871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 * col1 col2 FROM tab2 cor0
----
1457
2773
799
query I rowsort
SELECT ALL + - 14 + - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 3463b21edb3b34ad3dd9de5871002a71
query I rowsort
SELECT + + col0 + ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT + - cor0.col1 * - CAST( NULL AS DECIMAL ) + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7232
SELECT + - cor0.col1 * - CAST ( NULL AS REAL ) + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 - 84 FROM tab0, tab1 AS cor0
----
9 values hashing to e9e352a769504bbf3d7c60efae6b2ab5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 + col1 col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col2 * + col0 + + tab0.col2 * tab0.col0 FROM tab0
----
14596
1584
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT CAST( - col2 + col0 AS SIGNED ) AS col0 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-7236
SELECT CAST ( - col2 + col0 AS INTEGER ) AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab2 AS cor0
----
-6
query I rowsort
SELECT ALL + 85 + col2 * col2 FROM tab1 cor0
----
3001
3334
9301
query I rowsort
SELECT DISTINCT ( + col1 + - col0 ) AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + 44 * + col0 AS col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT ALL + col0 + - col2 * - col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ( + col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - 32 + cor0.col0 AS col0 FROM tab2 AS cor0
----
110
111
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL - + col2 DIV - cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - + col2 / - cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL - 68 AS col2 FROM tab2 cor0
----
-68
-68
-68
query I rowsort
SELECT 2 + - 11 - col2 * - col2 AS col2 FROM tab2
----
1435
667
720
query I rowsort
SELECT ALL ( - col1 ) * - col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ( 81 * cor0.col0 ) + 73 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1caa54331d7a0379df3069e08b17f6f4
query I rowsort
SELECT ( + 85 ) AS col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT - col0 + - col0 * ( - 22 ) FROM tab2 AS cor0
----
147
1638
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT - col2 DIV + ( 13 ) AS col0 FROM tab0
----
-2
-6
0
skipif mysql # not compatible
query I rowsort label-7252
SELECT - col2 / + ( 13 ) AS col0 FROM tab0
----
-2
-6
0
query I rowsort
SELECT DISTINCT ( + tab2.col0 ) FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - - 61 + 70 AS col1 FROM tab1 AS cor0
----
131
query I rowsort
SELECT cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - col0 - ( col1 + - col1 ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT + col2 DIV 43 AS col1 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7257
SELECT + col2 / 43 AS col1 FROM tab1
----
1
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7258
SELECT tab0.col0 * + CAST( + col1 AS SIGNED ) FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-7258
SELECT tab0.col0 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 - ( + col0 * - col2 ) FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT + col0 * ( tab2.col1 ) DIV - col0 AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7260
SELECT + col0 * ( tab2.col1 ) / - col0 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 * ( + tab2.col0 ) + col1 * 85 - col0 * col0 FROM tab2
----
-3453
2803
3533
query I rowsort
SELECT DISTINCT tab2.col0 - - 80 * 59 FROM tab2
----
4727
4798
4799
query I rowsort
SELECT ALL col1 - + 39 * + col0 FROM tab0
----
-1268
-3380
-850
query I rowsort
SELECT + col0 * + 35 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT - 29 + - col0 FROM tab2
----
-107
-108
-36
query I rowsort
SELECT + cor0.col2 + cor0.col2 * + cor0.col0 * 45 + + col1 * - col0 FROM tab1 AS cor0
----
163577
344656
7266
query I rowsort
SELECT - + cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7268
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + col0 * + 29 AS col0 FROM tab2 cor0
----
203
2262
2291
query I rowsort
SELECT ALL 70 * col1 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT - 93 + + col0 FROM tab2 AS cor0
----
-14
-15
-86
query I rowsort
SELECT - col2 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - ( col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * col0 * + 17 FROM tab1
----
130560
2754
62016
query I rowsort
SELECT DISTINCT 52 * col0 FROM tab2
----
364
4056
4108
query I rowsort
SELECT DISTINCT - 70 * tab2.col2 AS col2 FROM tab2
----
-1820
-1890
-2660
query I rowsort
SELECT + + 48 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * 80 + + col1 col0 FROM tab1 AS cor0
----
-214
-5110
-6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-7280
SELECT ALL - col0 - ( - 95 ) DIV col0 FROM tab2 cor0
----
-77
-78
6
skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - col0 - ( - 95 ) / col0 FROM tab2 cor0
----
-77
-78
6
query I rowsort
SELECT - cor0.col2 * - 43 FROM tab2 AS cor0
----
1118
1161
1634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col0 FROM tab0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT + col1 DIV col2 - + col0 * - col1 FROM tab0 cor0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-7283
SELECT + col1 / col2 - + col0 * - col1 FROM tab0 cor0
----
2066
3492
8100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT ALL - cor0.col1 * + CAST( cor0.col0 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - cor0.col1 * + CAST ( cor0.col0 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 23 + 57 + tab1.col2 * - 95 FROM tab1, tab1 AS cor0
----
9 values hashing to ff41adcbf0a37e71269b08760ac16aed
query I rowsort
SELECT - col1 * - col1 * col2 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - col0 * ( tab1.col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + tab2.col2 + + tab2.col0 + col1 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + col0 * - 46 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT DISTINCT - + col2 * 3 FROM tab0 cor0
----
-246
-3
-99
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col2 * - col0 + col1 + col1 * - col1 FROM tab0 AS cor0
----
-6518
-892
-9277
query I rowsort
SELECT ALL - col2 + + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL + col0 * - ( 97 ) FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT - col1 + cor0.col2 + - col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT + col2 DIV 59 - + col2 FROM tab1 AS cor0
----
-54
-57
-95
skipif mysql # not compatible
query I rowsort label-7296
SELECT + col2 / 59 - + col2 FROM tab1 AS cor0
----
-54
-57
-95
query I rowsort
SELECT ALL col0 * col1 * col2 + + ( 71 ) * col2 FROM tab0 cor0
----
3466
669940
70455
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 col0 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL - ( + 1 ) + col1 AS col1 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - - col1 - + col0 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT DISTINCT - col0 - - col1 * col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + col1 + 16 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT col1 * - 23 AS col0 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT - 13 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee
onlyif mysql # use DIV operator for integer division
query I rowsort label-7306
SELECT DISTINCT + 47 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + 47 / + col1 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7307
SELECT DISTINCT + col1 * + col0 + - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
15561
3492
4902
skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT + col1 * + col0 + - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - 34 AS col1 FROM tab1 cor0
----
34
34
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 ) * 19 + - cor0.col2 * col1 col0 FROM tab0 AS cor0
----
-2211
-5904
-78
query I rowsort
SELECT DISTINCT 1 * - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 64 * + col2 + + cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1917
3692
5434
query I rowsort
SELECT DISTINCT - 87 - - 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48
query I rowsort
SELECT - 28 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1
-2
10
query I rowsort
SELECT ALL - 15 FROM tab1 cor0
----
-15
-15
-15
query I rowsort
SELECT + cor0.col2 * + cor0.col0 * ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT ALL 72 + cor0.col0 * + 74 AS col1 FROM tab0 cor0
----
1848
2662
6658
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-912
2603
5952
query I rowsort
SELECT DISTINCT 82 * + col2 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT + ( - col1 ) + 97 * + col2 AS col1 FROM tab2 AS cor0
----
2463
2588
3669
onlyif mysql # use DIV operator for integer division
query I rowsort label-7321
SELECT - col0 + cor0.col2 DIV 31 AS col0 FROM tab2 AS cor0
----
-7
-78
-78
skipif mysql # not compatible
query I rowsort label-7321
SELECT - col0 + cor0.col2 / 31 AS col0 FROM tab2 AS cor0
----
-7
-78
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT - col0 DIV 7 col1 FROM tab0 AS cor0
----
-12
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7322
SELECT - col0 / 7 col1 FROM tab0 AS cor0
----
-12
-3
-5
query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + col0 + - col0 * - col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - tab2.col2 + - col0 + - col2 AS col2 FROM tab2
----
-130
-155
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7326
SELECT - CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7326
SELECT - CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 37 + col1 FROM tab1
----
47
50
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7328
SELECT ALL + + CAST( col1 AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + + CAST ( col1 AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT ALL - CAST( NULL AS SIGNED ) * - 92 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CAST ( NULL AS INTEGER ) * - 92 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 6 * - col1 FROM tab1
----
-156
-60
-78
query I rowsort
SELECT DISTINCT col0 * ( - tab2.col0 ) AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - 8 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT - 19 * - 9 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
171
query I rowsort
SELECT ALL + col2 * - 95 * - 17 AS col1 FROM tab1
----
155040
87210
92055
query I rowsort
SELECT - cor0.col2 + - col2 * - ( col0 ) FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - - ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + ( ( col2 ) ) * tab1.col2 * + 23 + col2 AS col1 FROM tab1
----
212064
67122
74784
query I rowsort
SELECT - col1 - + col1 AS col0 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT ( + col1 ) + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 85 * + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-106080
-119340
-48450
query I rowsort
SELECT ALL - ( col2 * + col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 24 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT + 88 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
53
64
query I rowsort
SELECT ALL + ( col2 ) + 37 AS col2 FROM tab2 AS cor0
----
63
64
75
query I rowsort
SELECT 86 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT + cor0.col0 + - col1 * - col2 + + col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT - - col1 * - col0 + + 7 * - col0 FROM tab2 AS cor0
----
-1896
-266
-5148
query I rowsort
SELECT - col1 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + + col0 * + 29 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT col1 * col2 * + tab2.col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT tab1.col0 * - 9 + tab1.col0 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 65c4ce8e3413edd287069769b46c47ed
query I rowsort
SELECT - + col0 * 25 + - ( col2 ) AS col1 FROM tab2 cor0
----
-1976
-2013
-202
query I rowsort
SELECT - + col2 * 1 - col2 * col1 * ( - col0 * col2 + col0 ) AS col1 FROM tab0 AS cor0
----
-1
2179551
53793476
query I rowsort
SELECT DISTINCT + 24 FROM tab1, tab2 AS cor0
----
24
query I rowsort
SELECT - + col2 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7357
SELECT - col1 + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7357
SELECT - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * ( + col2 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( col2 ) * col1 + - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col2 + + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL + col2 * - col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT cor0.col0 + col0 * col2 * - 22 FROM tab0 AS cor0
----
-160467
-17400
-735
query I rowsort
SELECT ALL + col0 * - col0 + - cor0.col2 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT ALL - - 61 AS col1 FROM tab2 AS cor0
----
61
61
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7367
SELECT ALL - CAST( col2 AS SIGNED ) * - col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - CAST ( col2 AS INTEGER ) * - col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 48 col1 FROM tab1
----
58
61
74
query I rowsort
SELECT ALL - col2 * - 76 * + 54 + + col1 AS col1 FROM tab2
----
106763
110839
155969
query I rowsort
SELECT ALL tab1.col1 + - 35 AS col2 FROM tab1
----
-22
-25
-9
query I rowsort
SELECT col0 * col2 * + 56 AS col2 FROM tab2
----
10584
113568
168112
query I rowsort
SELECT + col2 + col0 * col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
13
query I rowsort
SELECT ALL col2 + - ( 28 ) FROM tab2
----
-1
-2
10
query I rowsort
SELECT ALL - col1 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col0 - col0 * ( + col2 * - col0 ) FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT DISTINCT + col1 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + 35 + col1 AS col0 FROM tab1 AS cor0
----
45
48
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT DISTINCT + 3 DIV tab2.col0 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + 3 / tab2.col0 AS col2 FROM tab2
----
0
query I rowsort
SELECT 55 * + tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 75e23f74d8bd3a61d194898f32d88595
query I rowsort
SELECT - 15 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT + col0 * - col1 * col1 AS col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT - - col2 * - col2 * - col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT + col0 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + cor0.col0 + col1 * cor0.col0 + + 97 AS col1 FROM tab1 AS cor0
----
1217
178
801
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + ( 70 ) + col1 FROM tab0 AS cor0
----
16
21
27
query I rowsort
SELECT ALL - - ( cor0.col2 ) * + col1 + ( - col2 + col1 ) FROM tab0 cor0
----
193
2891
7471
query I rowsort
SELECT ALL - 48 + - col2 FROM tab2 AS cor0
----
-74
-75
-86
query I rowsort
SELECT DISTINCT + + 91 * - 31 FROM tab1 cor0
----
-2821
query I rowsort
SELECT - col2 * + 67 AS col2 FROM tab0 cor0
----
-2211
-5494
-67
query I rowsort
SELECT DISTINCT - ( + col0 ) * + col2 + + 55 * col0 FROM tab0 AS cor0
----
-2403
1890
528
query I rowsort
SELECT tab2.col2 * - 32 + tab2.col2 * + tab2.col2 FROM tab2
----
-135
-156
228
query I rowsort
SELECT ALL + - ( + cor0.col2 ) + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + 22 + - col0 FROM tab0
----
-13
-2
-67
query I rowsort
SELECT 34 + 14 AS col1 FROM tab0
----
48
48
48
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col1 * 23 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT ALL 38 + - col2 * 33 * + 77 + + col2 DIV - col0 FROM tab1
----
-137194
-144799
-243899
skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL 38 + - col2 * 33 * + 77 + + col2 / - col0 FROM tab1
----
-137194
-144799
-243899
query I rowsort
SELECT ALL col1 + col0 * 74 * 61 + col2 FROM tab0
----
108455
158088
401919
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7401
SELECT DISTINCT - col0 * CAST( 98 AS SIGNED ) FROM tab1
----
-294
-6272
-7840
skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - col0 * CAST ( 98 AS INTEGER ) FROM tab1
----
-294
-6272
-7840
query I rowsort
SELECT + col1 + tab2.col2 * 72 AS col0 FROM tab2
----
1931
1975
2753
query I rowsort
SELECT ALL + 52 * + 55 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 64ae62900c2ebd2eca089d5b81005b92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT - cor0.col2 * - 93 + col2 DIV - col1 FROM tab2 AS cor0
----
2418
2511
3532
skipif mysql # not compatible
query I rowsort label-7404
SELECT - cor0.col2 * - 93 + col2 / - col1 FROM tab2 AS cor0
----
2418
2511
3532
query I rowsort
SELECT + col0 * - cor0.col0 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT + col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL cor0.col1 * ( col1 ) * col0 AS col0 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + col1 * - col1 + + 78 FROM tab2 AS cor0
----
-211
-3403
-883
query I rowsort
SELECT DISTINCT col1 - + ( col2 ) FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7410
SELECT ALL col0 * + col2 DIV + col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL col0 * + col2 / + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col2 + + 50 AS col2 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT DISTINCT + col1 + 1 - - cor0.col1 FROM tab0 AS cor0
----
173
183
195
query I rowsort
SELECT col0 * + ( - ( col0 ) ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + col1 + + col2 * col1 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col1 * - 13 AS col1 FROM tab2
----
221
403
767
query I rowsort
SELECT DISTINCT col0 * ( col1 ) AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 17 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT + + col0 DIV + 9 + + 12 FROM tab1 AS cor0
----
12
19
20
skipif mysql # not compatible
query I rowsort label-7419
SELECT + + col0 / + 9 + + 12 FROM tab1 AS cor0
----
12
19
20
query I rowsort
SELECT DISTINCT - + col1 + + col1 * + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-1010
-17602
-2210
query I rowsort
SELECT ALL - col0 * 96 * - 29 AS col2 FROM tab1 AS cor0
----
178176
222720
8352
query I rowsort
SELECT col1 * + ( ( + col0 ) ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - col2 - - col1 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + ( 88 ) FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT - - 48 * + col2 + col1 FROM tab0 AS cor0
----
145
1670
4027
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7426
SELECT - CAST( NULL AS SIGNED ) * - 72 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7426
SELECT - CAST ( NULL AS INTEGER ) * - 72 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col1 FROM tab1, tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7428
SELECT - - CAST( - col2 AS SIGNED ) + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-7428
SELECT - - CAST ( - col2 AS INTEGER ) + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT - 95 + + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-94
-94
-94
skipif mysql # not compatible
query I rowsort label-7429
SELECT - 95 + + col1 / col1 AS col0 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT - ( + col2 ) * + col2 * - col2 AS col1 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT + col1 * cor0.col0 + - col1 * + col1 FROM tab2 AS cor0
----
-744
1054
1121
onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT ( col2 ) * 54 DIV + col0 FROM tab2
----
18
208
25
skipif mysql # not compatible
query I rowsort label-7432
SELECT ( col2 ) * 54 / + col0 FROM tab2
----
18
208
25
query I rowsort
SELECT ALL + 76 + col0 AS col1 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT + 4 * col2 FROM tab1
----
216
228
384
query I rowsort
SELECT col1 + - col2 - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT - 34 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL - col1 + 59 * col0 FROM tab2 cor0
----
382
4543
4644
query I rowsort
SELECT DISTINCT - + col2 * ( + 86 ) AS col0 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT + col2 + col2 + ( 19 ) FROM tab1
----
127
133
211
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT + + col2 DIV - 56 FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7440
SELECT + + col2 / - 56 FROM tab1 cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + - col0 - - col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 60 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7443
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 3 * + col1 + - 64 + col1 FROM tab0 AS cor0
----
280
300
324
query I rowsort
SELECT ALL + - 85 * col1 * - 31 FROM tab0 AS cor0
----
226610
239785
255595
query I rowsort
SELECT col1 * - col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + 39 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT DISTINCT col0 - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 * - col2 - 16 AS col0 FROM tab2
----
173
2012
2986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col0 FROM tab2, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT - ( 29 ) * - col1 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT col2 - 46 AS col0 FROM tab0 cor0
----
-13
-45
36
query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - + col2 * 88 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT 73 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
73
query I rowsort
SELECT ALL + col0 * - 65 FROM tab1
----
-195
-4160
-5200
query I rowsort
SELECT DISTINCT ( tab2.col2 ) FROM tab2, tab1 AS cor0
----
26
27
38
query I rowsort
SELECT + - 68 + col1 AS col0 FROM tab1 cor0
----
-42
-55
-58
query I rowsort
SELECT + col2 * - col0 + col1 AS col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT + tab0.col2 DIV ( - col1 + - 5 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7460
SELECT + tab0.col2 / ( - col1 + - 5 ) FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * col0 * col1 AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT - 74 * 5 AS col1 FROM tab0
----
-370
-370
-370
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT - 82 DIV + col0 FROM tab2
----
-1
-1
-11
skipif mysql # not compatible
query I rowsort label-7464
SELECT - 82 / + col0 FROM tab2
----
-1
-1
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT ALL + tab0.col2 * + ( - col2 ) - ( - col0 ) DIV col2 FROM tab0
----
-1089
-6723
34
skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + tab0.col2 * + ( - col2 ) - ( - col0 ) / col2 FROM tab0
----
-1089
-6723
34
query I rowsort
SELECT + + cor0.col2 * + 18 * + col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
131275
14232
595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 78 + - col0 ) * + ( + 69 ) * col0 col0 FROM tab2
----
-41055
-839592
-855807
query I rowsort
SELECT ALL + 60 - + 32 FROM tab2
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT - - 54 DIV + ( cor0.col2 + + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7469
SELECT - - 54 / + ( cor0.col2 + + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 7 * - 41 AS col1 FROM tab1 AS cor0
----
287
query I rowsort
SELECT - + 57 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1482
1539
2166
onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT ALL + col2 + + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + col2 + + col1 / + col1 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + 73 + 69 FROM tab0 AS cor0
----
142
142
142
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - col0 + - col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT + + 73 + - col0 * - ( - col1 * + cor0.col0 ) - col0 AS col0 FROM tab2 AS cor0
----
-106103
-1453
-358961
query I rowsort
SELECT ALL - - ( + col2 ) * - col0 * + col0 AS col1 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL + ( - col1 ) + - col2 * + col1 AS col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT + 69 * + col2 FROM tab2
----
1794
1863
2622
query I rowsort
SELECT ALL + + 30 * + col1 - 52 AS col0 FROM tab2 AS cor0
----
1718
458
878
query I rowsort
SELECT - 94 + col0 FROM tab1 cor0
----
-14
-30
-91
query I rowsort
SELECT - ( - col1 + + tab2.col0 * + col0 ) AS col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
-61
query I rowsort
SELECT DISTINCT - 7 * - col2 FROM tab2 cor0
----
182
189
266
query I rowsort
SELECT ALL 13 AS col2 FROM tab2 AS cor0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT - 16 + - col2 DIV col0 - col1 FROM tab1 AS cor0
----
-26
-30
-60
skipif mysql # not compatible
query I rowsort label-7486
SELECT - 16 + - col2 / col0 - col1 FROM tab1 AS cor0
----
-26
-30
-60
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT col1 * - col1 + 47 AS col1 FROM tab0
----
-7349
-8234
-9362
query I rowsort
SELECT ALL cor0.col1 + ( col2 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col1 + 0 * ( col0 ) FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT ALL - col0 DIV 25 col2 FROM tab1 AS cor0
----
-2
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - col0 / 25 col2 FROM tab1 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + - CAST ( - col0 + col0 * ( - cor0.col1 ) AS REAL ) FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT col0 DIV - 22 col0 FROM tab2 AS cor0
----
-3
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7494
SELECT col0 / - 22 col0 FROM tab2 AS cor0
----
-3
-3
0
query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL 15 * + col0 FROM tab1 AS cor0
----
1200
45
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7497
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 4 * col2 * col0 FROM tab0 AS cor0
----
140
29192
3168
query I rowsort
SELECT ALL 58 + + col1 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT ALL - 14 + - 49 AS col0 FROM tab1 AS cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT + - 69 FROM tab1 AS cor0
----
-69
query I rowsort
SELECT ( + 90 ) * + cor0.col2 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT ALL - + col0 + col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7504
SELECT DISTINCT + col2 + - ( col1 ) * col0 DIV col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT + col2 + - ( col1 ) * col0 / col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + 51 FROM tab2, tab0 AS cor0
----
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7506
SELECT tab0.col2 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7506
SELECT tab0.col2 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + col1 - col1 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL 65 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + 12 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 < ( - cor0.col0 )
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT DISTINCT col1 DIV + col2 - + tab0.col1 AS col0 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT col1 / + col2 - + tab0.col1 AS col0 FROM tab0
----
-84
-90
0
query I rowsort
SELECT + col2 * + col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * - col2 col0 FROM tab0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT DISTINCT - col2 * + col1 + col1 DIV + col2 FROM tab0 AS cor0
----
-2836
-7461
0
skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT - col2 * + col1 + col1 / + col2 FROM tab0 AS cor0
----
-2836
-7461
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7515
SELECT ALL + col0 DIV - col2 + col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + col0 / - col2 + col2 FROM tab0 AS cor0
----
-34
33
81
query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 <= - col0 * + col0 * + col0 + col0 + - col2
----
query I rowsort
SELECT DISTINCT + col1 + - tab2.col0 AS col0 FROM tab2
----
-19
-62
24
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col1 * tab2.col0 + col0 FROM tab2
----
1422
224
4680
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 / + col0 )
----
query I rowsort
SELECT ALL - col1 * - col2 * - col2 - col0 FROM tab2
----
-22606
-24627
-39962
query I rowsort
SELECT DISTINCT - tab2.col1 * col0 * + col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT tab1.col0 + col2 + - tab1.col0 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 AS col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7525
SELECT DISTINCT + + col1 + col2 DIV - col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + + col1 + col2 / - col1 FROM tab2 AS cor0
----
15
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT ALL cor0.col1 * + col0 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
1343
220
4602
skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL cor0.col1 * + col0 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
1343
220
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT col2 * + col1 - - col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col0 * - cor0.col2 - - cor0.col0 * - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT tab0.col1 * col0 * - col2 - - col2 * col0 FROM tab0
----
-3360
-656820
-67320
query I rowsort
SELECT + col2 + - tab2.col0 - col2 * tab2.col0 * + col1 AS col2 FROM tab2
----
-119704
-51075
-5839
query I rowsort
SELECT - tab2.col0 * col0 + - col1 + tab2.col2 * - tab2.col2 FROM tab2
----
-6819
-7702
-809
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT col1 + + col2 DIV - col0 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-7534
SELECT col1 + + col2 / - col0 FROM tab1
----
10
12
8
query I rowsort
SELECT ALL col0 * + tab2.col1 * col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col2 + col0 * cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
1539
160238
240198
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 + - col0 FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT ALL - col1 - + col0 * col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL col1 - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT + col2 DIV col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7540
SELECT + col2 / col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT col2 + col0 + + col1 * + col2 FROM tab2
----
1638
763
871
query I rowsort
SELECT DISTINCT col1 * col0 + + tab1.col2 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - tab2.col2 + - col2 * col2 * + col2 FROM tab2
----
-17602
-19710
-54910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 + col1 * - col2 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * - cor0.col1 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - col2 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT + col1 DIV + col0 + col1 * + tab1.col1 FROM tab1
----
100
169
684
skipif mysql # not compatible
query I rowsort label-7548
SELECT + col1 / + col0 + col1 * + tab1.col1 FROM tab1
----
100
169
684
query I rowsort
SELECT ALL + col1 + col1 * + col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT + col2 * + tab2.col0 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - - col1 * + 62 AS col1 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT col0 * + ( + col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - col0 + cor0.col1 * col0 * col2 AS col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL col2 + col2 * ( + col1 ) + - col1 AS col2 FROM tab1
----
1331
1432
617
query I rowsort
SELECT DISTINCT + 96 + tab2.col1 * col0 AS col1 FROM tab2
----
1439
313
4698
query I rowsort
SELECT - 56 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
query I rowsort
SELECT cor0.col1 * ( cor0.col2 ) * + tab2.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to f280a622a842362712de2470b7492e8b
query I rowsort
SELECT cor0.col1 * + 34 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 415ebb5288da4ad39bce2a37614e97c7
query I rowsort
SELECT + - 91 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 758153d3539e9e15cd3fbcc8dea4823e
query I rowsort
SELECT col0 + - ( - 35 ) FROM tab2 AS cor0
----
113
114
42
query I rowsort
SELECT DISTINCT col0 + - ( col0 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col1 * + ( - 87 * + col1 ) + + cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
642363
713723
818582
query I rowsort
SELECT ALL col0 * + 22 * col0 FROM tab2
----
1078
133848
137302
query I rowsort
SELECT - col0 + + 60 AS col1 FROM tab0 AS cor0
----
-29
25
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7565
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT DISTINCT + col2 * 94 DIV - 71 - col0 AS col2 FROM tab2 AS cor0
----
-112
-129
-42
skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + col2 * 94 / - 71 - col0 AS col2 FROM tab2 AS cor0
----
-112
-129
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7567
SELECT DISTINCT col2 * col0 DIV col1 FROM tab1 WHERE + col2 * col0 NOT IN ( + col0 )
----
364
590
6
skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT col2 * col0 / col1 FROM tab1 WHERE + col2 * col0 NOT IN ( + col0 )
----
364
590
6
query I rowsort
SELECT DISTINCT + col1 + + col2 * - col0 AS col2 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE NULL >= NULL
----
query I rowsort
SELECT + tab2.col1 + - col1 - - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col0 NOT IN ( col1 + col0 )
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 - col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT tab2.col1 + + col0 * tab2.col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT ALL + - 7 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT - + 92 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT 21 * col0 FROM tab1
----
1344
1680
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7579
SELECT ALL - - col2 * - col1 - CAST( 79 * + col1 + 43 AS SIGNED ) FROM tab2 AS cor0
----
-2032
-3329
-6238
skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - - col2 * - col1 - CAST ( 79 * + col1 + 43 AS INTEGER ) FROM tab2 AS cor0
----
-2032
-3329
-6238
query I rowsort
SELECT + col1 * col2 - cor0.col0 * + col0 FROM tab2 cor0
----
-4550
-5595
788
query I rowsort
SELECT + col1 * - col2 + + col2 * col0 FROM tab2 cor0
----
-648
2356
494
query I rowsort
SELECT DISTINCT tab0.col2 + - ( + col2 ) * + col0 * col0 - - tab0.col2 FROM tab0
----
-1223
-18942
-649358
query I rowsort
SELECT ALL + col0 * - ( + col2 ) + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT + - col0 * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col0 * cor0.col0 + + col2 * - col2 * - col0 FROM tab1 AS cor0
----
212032
743680
8757
query I rowsort
SELECT - - col1 * ( - cor0.col2 ) * - col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT col1 * + col2 - + 17 FROM tab2 AS cor0
----
1517
629
820
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT col0 + ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + + col2 * - col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT cor0.col0 + + 55 AS col1 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - ( - col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT DISTINCT - col2 DIV - 96 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - col2 / - 96 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + + col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7597
SELECT + + ( col2 ) + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-7597
SELECT + + ( col2 ) + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + - col2 + - cor0.col2 AS col2 FROM tab0 cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL ( cor0.col1 ) + - ( + cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7601
SELECT col2 - col2 DIV - 10 FROM tab1
----
105
59
62
skipif mysql # not compatible
query I rowsort label-7601
SELECT col2 - col2 / - 10 FROM tab1
----
105
59
62
query I rowsort
SELECT + col0 * + col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL + - col0 + - cor0.col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7604
SELECT DISTINCT - + col1 DIV + col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - + col1 / + col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - col1 * - col1 + col2 AS col2 FROM tab2
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - col2 * col2 col1 FROM tab2
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7607
SELECT col0 DIV col1 + - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7607
SELECT col0 / col1 + - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - col1 - tab2.col1 AS col0 FROM tab2
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7609
SELECT col1 + col2 DIV - col0 AS col2 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-7609
SELECT col1 + col2 / - col0 AS col2 FROM tab1
----
10
12
8
query I rowsort
SELECT col1 * + col0 - + col2 AS col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL - col0 * col2 + col2 * - col2 AS col0 FROM tab1
----
-16896
-3078
-6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT ALL col2 DIV col0 + tab1.col2 DIV tab1.col2 + + tab1.col0 FROM tab1
----
22
65
82
skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL col2 / col0 + tab1.col2 / tab1.col2 + + tab1.col0 FROM tab1
----
22
65
82
query I rowsort
SELECT ALL - 19 + - col2 AS col1 FROM tab1
----
-115
-73
-76
query I rowsort
SELECT ALL + tab0.col1 * tab0.col2 + col0 + - col2 FROM tab0
----
131
2829
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-7615
SELECT DISTINCT + tab2.col0 DIV - 47 + + col1 col0 FROM tab2
----
16
31
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + tab2.col0 / - 47 + + col1 col0 FROM tab2
----
16
31
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7616
SELECT CAST( tab1.col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7616
SELECT CAST ( tab1.col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - 81 * col0 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL - col1 + col0 * + cor0.col2 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT DISTINCT - - col1 DIV + col0 col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT - - col1 / + col0 col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT + + col2 * col0 + col2 + - col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + col1 * + col2 col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0
----
42
query I rowsort
SELECT col0 * - col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT cor0.col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT ALL + col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + col0 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT 64 FROM tab2 cor0
----
64
query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT + 21 + tab0.col1 DIV + col0 + - col2 DIV + ( col1 ) FROM tab0
----
22
23
24
skipif mysql # not compatible
query I rowsort label-7630
SELECT + 21 + tab0.col1 / + col0 + - col2 / + ( col1 ) FROM tab0
----
22
23
24
query I rowsort
SELECT ( ( col2 ) ) * + 74 * 93 AS col1 FROM tab2
----
178932
185814
261516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + col2 + + 87 * col0 FROM tab1 AS cor0
----
315
5625
7056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * + 24 + - col2 * col0 col0 FROM tab1
----
-2592
-6624
894
onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT DISTINCT - col0 + col2 DIV - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-58
skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - col0 + col2 / - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-58
query I rowsort
SELECT 38 * + col0 FROM tab2
----
266
2964
3002
query I rowsort
SELECT DISTINCT col1 + + col1 - ( cor0.col1 ) * col1 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-22797
-271400
-6665
query I rowsort
SELECT DISTINCT tab0.col2 * - 11 FROM tab0
----
-11
-363
-902
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0, tab1 AS cor0
----
46
query I rowsort
SELECT DISTINCT tab1.col0 * + col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col2 * - 42 + - 30 FROM tab0 AS cor0
----
-1416
-3474
-72
query I rowsort
SELECT + 81 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 55 * + col1 col1 FROM tab0 AS cor0
----
-4697
-4923
-5334
query I rowsort
SELECT DISTINCT - - col1 + + 34 FROM tab2 cor0
----
51
65
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT ALL 47 DIV + col1 col2 FROM tab1 AS cor0
----
1
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL 47 / + col1 col2 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT DISTINCT + + col2 * + col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 col0 FROM tab2 cor0
----
-97
query I rowsort
SELECT ALL 76 AS col2 FROM tab2 cor0
----
76
76
76
query I rowsort
SELECT ( + 6 ) + + col2 + ( col0 + + col1 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
16108
2679
4627
query I rowsort
SELECT DISTINCT + 16 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT col2 - 51 FROM tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT - col2 * col2 * + col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + - col0 + - 19 FROM tab2 AS cor0
----
-26
-97
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7655
SELECT DISTINCT tab0.col1 DIV + 40 FROM tab0
----
2
skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT tab0.col1 / + 40 FROM tab0
----
2
query I rowsort
SELECT - ( - col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7657
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
query I rowsort
SELECT - col2 * 7 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT 12 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * col0 + + col0 AS col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 * - 45 AS col0 FROM tab1
----
-135
-2880
-3600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7663
SELECT - - col0 * - col1 + col2 DIV 53 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-7663
SELECT - - col0 * - col1 + col2 / 53 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col2 + 39 AS col1 FROM tab1 AS cor0
----
135
93
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7667
SELECT + col1 * - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7667
SELECT + col1 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 * + 61 + col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT col0 + + col0 * ( col0 ) * - col1 FROM tab1 AS cor0
----
-231
-40896
-83120
query I rowsort
SELECT + col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col0 + - 24 * + col0 AS col1 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT col1 * col0 + + 92 * col2 FROM tab1 AS cor0
----
5046
5884
9872
query I rowsort
SELECT ( - col1 ) * 87 * - col1 AS col1 FROM tab0
----
643452
720447
818583
query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
98
query I rowsort
SELECT col2 * 56 + 9 * col2 AS col0 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
1557
6307
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT ALL col0 * col2 - + col2 DIV - col0 FROM tab0 AS cor0
----
35
7298
793
skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL col0 * col2 - + col2 / - col0 FROM tab0 AS cor0
----
35
7298
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-7678
SELECT ALL - col1 + CAST( - col2 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - col1 + CAST ( - col2 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col1 * - col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
16198
4128
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT DISTINCT col0 DIV - ( + 94 ) + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT col0 / - ( + 94 ) + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7681
SELECT ALL - - col0 - ( - col1 ) DIV + col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - - col0 - ( - col1 ) / + col1 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7682
SELECT - ( - cor1.col0 ) DIV cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3057c8e22bb13229cea0c6df2b11edfe
skipif mysql # not compatible
query I rowsort label-7682
SELECT - ( - cor1.col0 ) / cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3057c8e22bb13229cea0c6df2b11edfe
query I rowsort
SELECT 1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * - col0 col0 FROM tab0
----
2403
648
945
query I rowsort
SELECT ( tab0.col2 ) + 67 FROM tab0
----
100
149
68
query I rowsort
SELECT - tab1.col0 - - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 52 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
52
query I rowsort
SELECT ALL col1 + 98 * col0 - - col1 FROM tab1
----
346
6292
7866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + col0 col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL col1 * + ( - col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + col2 + + col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT + - col2 * - cor0.col1 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT - col1 + - 95 + col0 * - col1 FROM tab2 AS cor0
----
-1455
-343
-4756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 * + col1 col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ( col2 ) + + col0 * 93 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-14958
-339150
-714048
onlyif mysql # use DIV operator for integer division
query I rowsort label-7699
SELECT + ( col0 ) * + col2 DIV col2 + col1 + - col2 * + CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-16131
-36475
-5626
skipif mysql # not compatible
query I rowsort label-7699
SELECT + ( col0 ) * + col2 / col2 + col1 + - col2 * + CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-16131
-36475
-5626
query I rowsort
SELECT ALL - 33 * + 44 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4ab955a49219a5e09b5def987d94a72
query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - 79 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-79
query I rowsort
SELECT ALL + - cor0.col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT + + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7704
SELECT + + cor0.col2 / - col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL + col2 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT cor0.col2 * col0 + - col0 * - cor0.col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL - 73 + cor0.col2 FROM tab0 AS cor0
----
-40
-72
9
query I rowsort
SELECT 26 * + col2 + - 56 AS col2 FROM tab2 cor0
----
620
646
932
query I rowsort
SELECT DISTINCT + 48 * col0 + + col2 FROM tab1 cor0
----
198
3129
3936
query I rowsort
SELECT - col1 - + col1 * col1 FROM tab1
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT ALL + 28 + col0 DIV + col2 AS col2 FROM tab0
----
28
29
63
skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL + 28 + col0 / + col2 AS col2 FROM tab0
----
28
29
63
query I rowsort
SELECT ALL + - col1 * + col0 + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 4 + + col0 * 49 FROM tab1 AS cor0
----
151
3140
3924
query I rowsort
SELECT + 52 * + col0 + cor0.col1 * + 39 FROM tab2 AS cor0
----
1573
4771
6357
query I rowsort
SELECT ALL - - 91 * col1 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
1468
2814
5291
query I rowsort
SELECT DISTINCT - 45 + col0 * + ( 60 ) AS col1 FROM tab0 AS cor0
----
1395
2055
5295
onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT ALL col0 + + col0 DIV + 39 AS col2 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL col0 + + col0 / + 39 AS col2 FROM tab0 AS cor0
----
24
35
91
query I rowsort
SELECT ALL col1 + + 4 FROM tab1 AS cor0
----
14
17
30
query I rowsort
SELECT + col0 * + ( - 37 ) FROM tab1 AS cor0
----
-111
-2368
-2960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 * - 23 + col0 col2 FROM tab0 AS cor0
----
186366
47496
78120
query I rowsort
SELECT ALL - cor0.col0 + 53 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fbfa2a72299656ca3b022d21c1068f8d
query I rowsort
SELECT col0 * 82 + - col1 AS col1 FROM tab0 AS cor0
----
1882
2773
7207
query I rowsort
SELECT DISTINCT ( ( col1 ) ) - cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL ( col2 ) * col0 + 39 FROM tab1 cor0
----
201
3687
7719
onlyif mysql # use DIV operator for integer division
query I rowsort label-7726
SELECT + ( + col2 ) DIV col1 - 13 FROM tab0 AS cor0
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-7726
SELECT + ( + col2 ) / col1 - 13 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL 12 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2076
3407
8111
onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT - tab2.col1 DIV + col0 + + 26 + + col1 col1 FROM tab2
----
43
53
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7728
SELECT - tab2.col1 / + col0 + + 26 + + col1 col1 FROM tab2
----
43
53
85
query I rowsort
SELECT ( - 70 ) * - col0 AS col2 FROM tab0
----
1680
2450
6230
query I rowsort
SELECT ALL col1 + - 98 FROM tab1
----
-72
-85
-88
query I rowsort
SELECT DISTINCT ( col1 ) * col2 + col0 AS col0 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7732
SELECT 52 + - col0 * - col0 DIV - col0 FROM tab1
----
-12
-28
49
skipif mysql # not compatible
query I rowsort label-7732
SELECT 52 + - col0 * - col0 / - col0 FROM tab1
----
-12
-28
49
query I rowsort
SELECT ALL col1 * col2 - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT 33 + 0 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT 11 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT DISTINCT col1 + + ( col2 ) * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - + col1 * 11 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT - cor0.col2 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 38ae4ab6a8fdfcd855d57a73fb99e326
query I rowsort
SELECT ALL - col2 + + col1 * col1 AS col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * + ( col1 ) * col2 - col1 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7744
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL col1 * - 72 FROM tab0
----
-6192
-6552
-6984
query I rowsort
SELECT + ( 34 ) + - col1 FROM tab2
----
-25
17
3
query I rowsort
SELECT + 39 * - ( - col0 ) AS col2 FROM tab1
----
117
2496
3120
query I rowsort
SELECT col2 + col2 * col0 * 20 FROM tab1 AS cor0
----
153696
3294
73017
query I rowsort
SELECT DISTINCT 57 FROM tab2 cor0
----
57
query I rowsort
SELECT ALL 9 * col0 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT DISTINCT 75 * col0 AS col2 FROM tab0
----
1800
2625
6675
query I rowsort
SELECT - 8 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - tab2.col0 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT tab1.col1 * 23 AS col0 FROM tab1
----
230
299
598
query I rowsort
SELECT ALL + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT ( + col0 ) + col0 * - 35 + col2 AS col1 FROM tab0 AS cor0
----
-1189
-2944
-783
query I rowsort
SELECT ALL - col0 + col2 * ( 40 ) * col0 AS col0 FROM tab2 AS cor0
----
120001
7553
81042
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col0 AS col2 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT - cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7760
SELECT - cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT + 9 * col1 FROM tab2 cor0
----
153
279
531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 * + ( col1 ) col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + - 33 * - col1 FROM tab1 AS cor0
----
330
429
858
query I rowsort
SELECT - cor0.col2 * col1 * 26 FROM tab1 AS cor0
----
-14820
-32448
-36504
onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT - col1 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7765
SELECT - col1 / ( col0 ) AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL + 77 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 68 + - col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 68 + - col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 col1 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT + col2 + 48 * cor0.col0 FROM tab0 AS cor0
----
1185
1681
4354
query I rowsort
SELECT - - cor0.col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL 92 * col2 FROM tab0 cor0
----
3036
7544
92
query I rowsort
SELECT ( - col0 ) + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - 7 AS col2 FROM tab0 cor0
----
-7
-7
-7
query I rowsort
SELECT - - cor0.col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT DISTINCT - col2 + 92 AS col1 FROM tab1 AS cor0
----
-4
35
38
query I rowsort
SELECT - cor0.col0 + + col1 * col0 AS col1 FROM tab1 cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col2 ) - col2 * - cor0.col2 col0 FROM tab0 cor0
----
13448
2
2178
query I rowsort
SELECT - col0 * + ( col0 * col0 ) + col1 FROM tab0
----
-13738
-42778
-704878
query I rowsort
SELECT + col1 * + 6 + col0 * col2 FROM tab1 AS cor0
----
318
3708
7758
query I rowsort
SELECT col0 + - 6 AS col1 FROM tab0 AS cor0
----
18
29
83
query I rowsort
SELECT + col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col0 * - col2 + + ( + col1 ) * - col0 * 43 FROM tab1 AS cor0
----
-31168
-3516
-52400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7786
SELECT DISTINCT ( ( col0 ) ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT ( ( col0 ) ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + ( + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT 64 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT - 78 * - cor0.col2 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT ALL - 24 * col0 * + col2 FROM tab0 AS cor0
----
-175152
-19008
-840
query I rowsort
SELECT + + 27 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT + ( - 20 ) * + col0 * 65 FROM tab0 cor0
----
-115700
-31200
-45500
query I rowsort
SELECT DISTINCT - 44 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-103
-61
-75
query I rowsort
SELECT ALL ( 29 ) FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT ALL col1 + + ( tab0.col2 ) DIV col2 + + col0 FROM tab0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL col1 + + ( tab0.col2 ) / col2 + + col0 FROM tab0
----
111
133
181
query I rowsort
SELECT ALL col1 + + col1 * - 20 FROM tab1
----
-190
-247
-494
query I rowsort
SELECT ALL + ( - 66 ) FROM tab2
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + - tab1.col2 col1 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + col0 * - 16 * col2 FROM tab2 AS cor0
----
-3024
-32448
-48032
query I rowsort
SELECT ALL ( + 39 ) AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT - 23 DIV col0 FROM tab1 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-7802
SELECT - 23 / col0 FROM tab1 AS cor0
----
-7
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT - col1 * col1 + + 67 * - col0 + col1 DIV - 74 AS col1 FROM tab2 AS cor0
----
-1430
-5582
-8707
skipif mysql # not compatible
query I rowsort label-7803
SELECT - col1 * col1 + + 67 * - col0 + col1 / - 74 AS col1 FROM tab2 AS cor0
----
-1430
-5582
-8707
query I rowsort
SELECT col1 + + col2 - + 24 FROM tab2
----
31
34
61
query I rowsort
SELECT - - col1 + - col2 - col0 * col0 * col2 FROM tab2 AS cor0
----
-1319
-158151
-237179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7806
SELECT col1 * + CAST( 32 AS SIGNED ) + col1 FROM tab1
----
330
429
858
skipif mysql # not compatible
query I rowsort label-7806
SELECT col1 * + CAST ( 32 AS INTEGER ) + col1 FROM tab1
----
330
429
858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7807
SELECT + col1 + CAST( NULL AS DECIMAL ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7807
SELECT + col1 + CAST ( NULL AS REAL ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * col2 + + col2 * cor0.col2 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT ALL - col2 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - col2 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - + col2 * - 18 AS col2 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT ALL col2 + col2 + - tab1.col2 * + col1 AS col1 FROM tab1
----
-1056
-1296
-456
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1, tab0 AS cor1 WHERE NULL > NULL
----
query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 + + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - cor0.col1 + col1 * - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT ALL + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col0 - ( col1 ) * col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT ALL - col2 DIV + 39 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - col2 / + 39 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT col1 * + col0 + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT - - col1 * + 68 + col0 FROM tab0 AS cor0
----
5872
6277
6631
query I rowsort
SELECT ALL - col1 + 82 FROM tab0 cor0
----
-15
-4
-9
query I rowsort
SELECT cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT DISTINCT + col2 + + 76 * ( col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
166
231
7373
skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + col2 + + 76 * ( col1 ) / col2 AS col0 FROM tab0 AS cor0
----
166
231
7373
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT - cor0.col2 + 73 DIV + 41 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-7826
SELECT - cor0.col2 + 73 / + 41 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7827
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT + 24 DIV - col0 + + col0 * - col2 + col0 FROM tab1 AS cor0
----
-167
-3584
-7600
skipif mysql # not compatible
query I rowsort label-7828
SELECT + 24 / - col0 + + col0 * - col2 + col0 FROM tab1 AS cor0
----
-167
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT DISTINCT + + ( - col2 ) DIV - col0 AS col2 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + + ( - col2 ) / - col0 AS col2 FROM tab2 cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * + col1 col2 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT - col0 - 37 AS col1 FROM tab0
----
-126
-61
-72
query I rowsort
SELECT DISTINCT col0 * - 89 + + col2 AS col0 FROM tab2
----
-596
-6916
-6993
query I rowsort
SELECT ALL - + col0 * + col0 * col2 + + ( cor0.col0 ) + col1 * + 82 FROM tab1 AS cor0
----
-232588
-613254
1649
query I rowsort
SELECT - col2 + - col2 * + 71 AS col0 FROM tab0 AS cor0
----
-2376
-5904
-72
query I rowsort
SELECT - 39 AS col2 FROM tab0 AS cor0
----
-39
-39
-39
query I rowsort
SELECT 3 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT DISTINCT ( + 28 ) AS col1 FROM tab0
----
28
query I rowsort
SELECT ALL + - cor0.col0 * col2 + - 25 AS col0 FROM tab1 AS cor0
----
-187
-3673
-7705
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 cor0, tab0 cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT DISTINCT - 37 - + tab2.col0 AS col0 FROM tab2
----
-115
-116
-44
query I rowsort
SELECT DISTINCT col2 * col0 * col2 + - col0 - - col2 FROM tab2
----
114035
5123
52676
query I rowsort
SELECT DISTINCT + col0 + ( - col2 + col0 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1456
-2751
463
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7843
SELECT ALL cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + + cor0.col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT ALL + cor0.col2 DIV - 99 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + cor0.col2 / - 99 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 51 - - col0 AS col0 FROM tab0
----
140
75
86
query I rowsort
SELECT - col2 * + col2 + tab0.col0 AS col1 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT DISTINCT tab0.col0 - col1 DIV col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT tab0.col0 - col1 / col0 FROM tab0
----
21
33
88
query I rowsort
SELECT ALL + tab2.col2 * tab2.col2 - - ( col1 ) FROM tab2
----
1461
735
760
query I rowsort
SELECT + 95 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - - col1 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col2 + cor0.col0 * + cor0.col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL tab0.col0 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + - col1 * cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col2 + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col0 * + col0 / - tab2.col1 FROM tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT + cor0.col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT + tab0.col2 + + col0 DIV - tab0.col2 AS col0 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-7862
SELECT + tab0.col2 + + col0 / - tab0.col2 AS col0 FROM tab0
----
-34
33
81
query I rowsort
SELECT DISTINCT - col2 * + col1 * tab2.col0 + - col0 AS col1 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT tab2.col2 * - col2 * - col2 FROM tab2
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT + col2 DIV col2 + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7865
SELECT + col2 / col2 + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col1 FROM tab2 WHERE NULL IN ( + tab2.col0 + col2 ) AND NULL NOT BETWEEN col2 * - col0 AND tab2.col2 * - col2
----
query I rowsort
SELECT - col0 * + col1 + col0 FROM tab2
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT ALL col2 * tab0.col0 DIV tab0.col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL col2 * tab0.col0 / tab0.col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - tab1.col1 * col1 + col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT ALL + + cor0.col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col1 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + col1 - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - ( cor0.col2 ) * + col0 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 col2 FROM tab0 cor0
----
-9
-9
-9
query I rowsort
SELECT + col2 + cor0.col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL tab2.col1 * - col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT col1 * - col0 - col0 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT - tab1.col2 + col1 DIV col2 AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7879
SELECT - tab1.col2 + col1 / col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * col0 + - col1 AS col2 FROM tab2
----
1326
186
4543
query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
51
query I rowsort
SELECT ALL + 20 * col1 + - 5 * + 85 AS col2 FROM tab1
----
-165
-225
95
query I rowsort
SELECT DISTINCT + ( 92 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
92
query I rowsort
SELECT ALL 79 + col2 * 92 AS col1 FROM tab1
----
5047
5323
8911
query I rowsort
SELECT ALL + col1 * + col0 + col0 * - col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT + col0 * col0 + col0 AS col2 FROM tab1
----
12
4160
6480
query I rowsort
SELECT col1 * col0 * col1 + col2 AS col0 FROM tab1
----
13616
2082
6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT DISTINCT col0 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT col0 / cor0.col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT col2 + - tab2.col1 + col2 * col2 AS col1 FROM tab2
----
1465
643
725
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 * - col1 + + col0 + col1 / col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 + tab1.col0 col1 FROM tab1
----
192
240
9
query I rowsort
SELECT DISTINCT - col1 + - col0 + + col2 FROM tab0
----
-131
-77
-98
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 - - col0 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - col1 * - col1 * col1 + tab2.col0 * tab2.col0 col1 FROM tab2
----
11116
211437
29813
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( + col1 )
----
query I rowsort
SELECT col0 + col0 * col1 * col2 - + col0 AS col1 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 * tab1.col1 )
----
query I rowsort
SELECT ALL - tab0.col2 + + col0 - - col2 * + col0 AS col1 FROM tab0
----
69
7305
783
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2 WHERE col1 + - col0 * col2 + - col0 / - col0 NOT BETWEEN NULL AND ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT col2 * - col2 + + col2 * col1 DIV col1 AS col0 FROM tab1
----
-2862
-3192
-9120
skipif mysql # not compatible
query I rowsort label-7900
SELECT col2 * - col2 + + col2 * col1 / col1 AS col0 FROM tab1
----
-2862
-3192
-9120
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2 * + col2 + col0 - + col1 * col1 )
----
query I rowsort
SELECT col1 * - col2 * col1 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL ( - col2 ) * 93 + 10 FROM tab2
----
-2408
-2501
-3524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7904
SELECT DISTINCT - col0 * + col1 + + ( + 39 + + col2 ) DIV + col1 FROM tab2
----
-1339
-215
-4601
skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - col0 * + col1 + + ( + 39 + + col2 ) / + col1 FROM tab2
----
-1339
-215
-4601
query I rowsort
SELECT DISTINCT + + 6 * - cor0.col0 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT ALL + 59 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT - ( col1 ) * 36 AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT - 47 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 905cbd63e2561d7f32ce36091d5b526a
query I rowsort
SELECT ( col1 ) * 15 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 + + 75 FROM tab0 cor0
----
173
194
248
onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT DISTINCT + col0 DIV + 15 + 89 FROM tab2 AS cor0
----
89
94
skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + col0 / + 15 + 89 FROM tab2 AS cor0
----
89
94
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col2 * + ( - 8 ) + col2 + - col1 FROM tab0 AS cor0
----
-104
-317
-665
query I rowsort
SELECT ALL - col1 + ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7915
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + col1 / + col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + col1 / + col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT col0 + 33 FROM tab2 cor0
----
111
112
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT DISTINCT + col0 + - 52 DIV + col1 AS col2 FROM tab2 AS cor0
----
6
76
78
skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + col0 + - 52 / + col1 AS col2 FROM tab2 AS cor0
----
6
76
78
query I rowsort
SELECT + 31 * + ( - col2 ) FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT + + col2 * 21 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT ALL + 40 * + col0 + - col0 AS col1 FROM tab1 cor0
----
117
2496
3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7921
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT 83 DIV + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-22
-88
48
skipif mysql # not compatible
query I rowsort label-7922
SELECT 83 / + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-22
-88
48
query I rowsort
SELECT - + 38 * col0 * + col2 - - cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-120317
-7231
-83148
query I rowsort
SELECT ALL + - col2 + - col1 - - col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - 62 FROM tab2 AS cor0
----
-62
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
skipif mysql # not compatible
query I rowsort
SELECT ALL + ( 51 * + col2 ) - CAST ( - col2 + + col2 * col0 AS REAL ) FROM tab1
----
-2688
-684
2646
query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - ( 76 ) FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT col2 - col2 * + col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - cor0.col1 * cor0.col2 - - col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + tab2.col2 - + 45 AS col2 FROM tab2
----
-18
-19
-7
query I rowsort
SELECT 52 * col2 + - col1 + + tab0.col0 * tab0.col0 FROM tab0
----
1180
12094
2206
query I rowsort
SELECT DISTINCT + ( 40 ) AS col1 FROM tab0
----
40
query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab1
----
33
query I rowsort
SELECT ( tab2.col1 ) + + tab2.col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + col1 - + col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 + col1 * - col0 col0 FROM tab1 AS cor0
----
-1109
-147
-709
query I rowsort
SELECT col0 * + col1 - col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - ( + col0 ) * col2 + + col1 AS col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT + 3 * col1 + cor0.col0 FROM tab0 AS cor0
----
282
326
362
onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT ALL + 97 DIV col1 AS col2 FROM tab1 cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + 97 / col1 AS col2 FROM tab1 cor0
----
3
7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - col2 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7947
SELECT 66 * col2 + + tab1.col2 * col0 DIV col2 + col2 * + col2 FROM tab1
----
15632
6483
7075
skipif mysql # not compatible
query I rowsort label-7947
SELECT 66 * col2 + + tab1.col2 * col0 / col2 + col2 * + col2 FROM tab1
----
15632
6483
7075
onlyif mysql # use DIV operator for integer division
query I rowsort label-7948
SELECT ALL + - col1 DIV col1 + + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
5
5
skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + - col1 / col1 + + col0 / + col1 AS col0 FROM tab1 AS cor0
----
-1
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT ALL + col1 + + cor0.col0 DIV col1 AS col1 FROM tab1 cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + col1 + + cor0.col0 / col1 AS col1 FROM tab1 cor0
----
16
19
26
query I rowsort
SELECT + + 66 * col1 FROM tab0 AS cor0
----
5676
6006
6402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * col0 col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - 0 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 * col0 + - col2 + col0 * col1 * - col2 FROM tab1 AS cor0
----
-32889
-4104
-92256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + - col1 col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT col2 * - col2 + col1 * col0 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT ALL + + col2 - - col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col2 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT DISTINCT - - cor0.col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT - - cor0.col1 / - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7959
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * + col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT - + col1 * - cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7963
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 * - col0 - col0 col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 * - col0 - col0 col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * col2 col2 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT DISTINCT + 70 + + col0 FROM tab0 AS cor0
----
105
159
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7967
SELECT - tab0.col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7967
SELECT - tab0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + + 61 * col2 AS col1 FROM tab1 AS cor0
----
3320
3487
5869
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 * col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - + col1 + 23 AS col0 FROM tab1 AS cor0
----
-3
10
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 + + 10 FROM tab0 AS cor0
----
11
43
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7974
SELECT + col2 + - col2 DIV - 55 AS col1 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-7974
SELECT + col2 + - col2 / - 55 AS col1 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT + - 11 * ( col1 + - ( + col1 ) ) * + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * - 36 AS col1 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT - + 17 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-114308
-17
-18513
query I rowsort
SELECT DISTINCT + 20 * + col1 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT DISTINCT + cor1.col1 * cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT CAST( + col2 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7980
SELECT CAST ( + col2 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT 82 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT - col1 - col1 DIV ( col1 ) FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-7982
SELECT - col1 - col1 / ( col1 ) FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL + 83 + + col0 AS col1 FROM tab1 AS cor0
----
147
163
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT ALL + - col1 + + col0 DIV + col1 FROM tab1 AS cor0
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + - col1 + + col0 / + col1 FROM tab1 AS cor0
----
-26
-4
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT 32 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7985
SELECT 32 / col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7986
SELECT ALL - - 66 DIV - col1 + + col1 + + col1 FROM tab2 AS cor0
----
117
31
60
skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - - 66 / - col1 + + col1 + + col1 FROM tab2 AS cor0
----
117
31
60
query I rowsort
SELECT DISTINCT col1 + col1 * - ( 2 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 57 * col2 * - 4 - + col2 * col2 AS col2 FROM tab2 cor0
----
-10108
-6604
-6885
query I rowsort
SELECT - - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT DISTINCT - - col0 + col1 DIV + ( 14 ) AS col2 FROM tab2 AS cor0
----
80
82
9
skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - - col0 + col1 / + ( 14 ) AS col2 FROM tab2 AS cor0
----
80
82
9
query I rowsort
SELECT col1 * - 94 AS col2 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT - col1 * + col1 + + ( + col0 ) FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + col2 + col0 * 74 AS col1 FROM tab1
----
276
4793
6016
query I rowsort
SELECT ALL col0 + - tab2.col0 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 + - cor0.col1 AS col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7996
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - cor0.col1 * - col2 + ( cor0.col2 ) * 50 AS col1 FROM tab1 AS cor0
----
3420
4104
6048
query I rowsort
SELECT - + col2 * - ( - cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + 10 + col2 + col2 FROM tab1
----
118
124
202
query I rowsort
SELECT ALL col1 + - col0 + col1 AS col1 FROM tab1
----
-44
-54
49
query I rowsort
SELECT - - col2 * 66 * 65 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
111566
115857
163058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - 3 col1 FROM tab1 AS cor0
----
-6
-67
-83
query I rowsort
SELECT cor0.col2 - 64 FROM tab0 cor0
----
-31
-63
18
query I rowsort
SELECT + col1 * col2 + ( - col1 ) * + col1 AS col1 FROM tab0 cor0
----
-4558
-819
-9312
query I rowsort
SELECT ALL - cor0.col0 + 30 AS col0 FROM tab1 cor0
----
-34
-50
27
query I rowsort
SELECT DISTINCT 33 * + ( - col1 ) - + ( + 37 ) FROM tab2 AS cor0
----
-1060
-1984
-598
query I rowsort
SELECT + - col0 + + col2 * + cor0.col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + + ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( 78 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL col2 * col0 - col1 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT - - tab2.col0 * tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489
query I rowsort
SELECT + tab0.col1 * - 51 * col2 + - 57 * - col0 FROM tab0
----
-143370
-2952
-375489
query I rowsort
SELECT + 22 + + col1 * col2 FROM tab0 cor0
----
119
2860
7484
query I rowsort
SELECT + col2 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT 85 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2149
3480
8184
query I rowsort
SELECT ALL - 26 * col2 * col0 FROM tab0
----
-189748
-20592
-910
query I rowsort
SELECT - 1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ( - col0 ) * 65 AS col0 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab1, tab0, tab2 AS cor0
----
19
query I rowsort
SELECT DISTINCT + 36 FROM tab1, tab2 AS cor0
----
36
query I rowsort
SELECT DISTINCT col1 + col0 * col0 - + 8 AS col1 FROM tab2
----
6135
6250
72
query I rowsort
SELECT DISTINCT + 6 - + 39 AS col0 FROM tab0
----
-33
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) + - col0 + - col2 AS col1 FROM tab2
----
-134
-163
-65
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 - - col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8026
SELECT - col1 + - cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-8026
SELECT - col1 + - cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
-132
-86
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT + 62 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8027
SELECT + 62 / col1 AS col0 FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT ALL 11 * + cor0.col2 + col1 FROM tab2 AS cor0
----
328
345
435
onlyif mysql # use DIV operator for integer division
query I rowsort label-8029
SELECT ALL - col1 DIV col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - col1 / col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1342
216
4601
query I rowsort
SELECT + col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - 79 AS col2 FROM tab2 cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT + - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8033
SELECT + - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT + ( 81 ) DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8034
SELECT + ( 81 ) / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT ( col2 ) * + col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + + 38 AS col2 FROM tab1 AS cor0
----
38
query I rowsort
SELECT DISTINCT 19 + - col0 * - 21 AS col2 FROM tab2 AS cor0
----
1657
166
1678
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col0 * + 25 AS col2 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT + 34 AS col2 FROM tab1
----
34
34
34
query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT ALL + - col1 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + - col1 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 94 col0 FROM tab1 AS cor0
----
104
107
120
query I rowsort
SELECT DISTINCT - col0 + + 53 AS col0 FROM tab1 AS cor0
----
-11
-27
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-8045
SELECT ALL col1 * + col1 DIV col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL col1 * + col1 / col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + ( + col0 ) + - cor0.col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + + 56 AS col0 FROM tab2 cor0
----
56
56
56
query I rowsort
SELECT DISTINCT + ( 34 ) + cor0.col1 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT + + ( + col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab1 AS cor0
----
-29
query I rowsort
SELECT 33 + col1 AS col0 FROM tab1 AS cor0
----
43
46
59
query I rowsort
SELECT - 60 + + col2 * + col0 AS col1 FROM tab2 cor0
----
129
1968
2942
query I rowsort
SELECT ALL + - cor0.col1 - + col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + - ( - 20 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT ALL - - col1 + + col1 - col2 AS col0 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT ALL + + 66 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1716
-660
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8057
SELECT CAST( + ( col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8057
SELECT CAST ( + ( col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 15 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
15
query I rowsort
SELECT + col0 - ( col2 + col2 ) AS col1 FROM tab0
----
-42
-75
33
query I rowsort
SELECT + 39 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT - - ( + 35 ) FROM tab2 AS cor0
----
35
query I rowsort
SELECT ALL + col2 * 53 AS col2 FROM tab0 AS cor0
----
1749
4346
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8063
SELECT CAST( + 31 AS SIGNED ) FROM tab1 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-8063
SELECT CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - - col1 + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT col2 * + 22 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ALL - - 64 * - ( - cor0.col0 ) + + col2 + ( col0 ) AS col2 FROM tab1 cor0
----
249
4217
5296
onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT DISTINCT ( + col2 ) * col1 + col0 + col1 * col0 DIV ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
1341
1433
644
skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT ( + col2 ) * col1 + col0 + col1 * col0 / ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT DISTINCT + col2 * col0 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col0 + col2 * - 96 AS col0 FROM tab0
----
-3144
-61
-7783
query I rowsort
SELECT + 40 + - col0 * + ( tab2.col1 ) AS col2 FROM tab2
----
-1303
-177
-4562
query I rowsort
SELECT - col1 * - col1 + - 93 * - col2 AS col0 FROM tab2 AS cor0
----
3472
3823
5899
query I rowsort
SELECT - 16 * - col1 FROM tab0 AS cor0
----
1376
1456
1552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8073
SELECT tab2.col1 + + col0 - + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8073
SELECT tab2.col1 + + col0 - + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col2 * 9 AS col1 FROM tab1
----
486
513
864
query I rowsort
SELECT cor0.col0 + 17 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1081
368
534
query I rowsort
SELECT DISTINCT col0 + + ( + col1 ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 * - 23 AS col2 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT - col2 * + 67 AS col1 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT DISTINCT col2 * - 88 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT ALL col2 DIV - cor0.col0 + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
168
658
skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL col2 / - cor0.col0 + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
168
658
query I rowsort
SELECT ALL - cor0.col0 + 72 * 70 FROM tab0 AS cor0
----
4951
5005
5016
query I rowsort
SELECT - + 83 * col1 + - ( + col2 ) * + col0 FROM tab1 AS cor0
----
-2320
-4478
-8759
query I rowsort
SELECT - col0 + col2 * - 46 FROM tab2 AS cor0
----
-1249
-1274
-1827
query I rowsort
SELECT + col1 + 49 + col2 AS col2 FROM tab2
----
104
107
134
query I rowsort
SELECT ALL + 42 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT + 80 * + col0 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT - 81 + col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-2109
-270
-3083
query I rowsort
SELECT DISTINCT 4 FROM tab2, tab2 AS cor0
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8089
SELECT ALL CAST( col1 AS SIGNED ) + col2 * + 7 FROM tab1
----
404
409
685
skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL CAST ( col1 AS INTEGER ) + col2 * + 7 FROM tab1
----
404
409
685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8090
SELECT ALL + CAST( + 99 AS SIGNED ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + CAST ( + 99 AS INTEGER ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT col1 * cor0.col0 - + 95 FROM tab1 AS cor0
----
-17
545
945
query I rowsort
SELECT col0 * - cor0.col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT ALL - - cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - - cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8096
SELECT + CAST( NULL AS SIGNED ) + 16 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8096
SELECT + CAST ( NULL AS INTEGER ) + 16 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - col1 + - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - 91 * + cor0.col0 AS col1 FROM tab1 cor0
----
-273
-5824
-7280
query I rowsort
SELECT ALL + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 14 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT + ( - 45 ) FROM tab1
----
-45
-45
-45
query I rowsort
SELECT - col0 * + 56 FROM tab0 AS cor0
----
-1344
-1960
-4984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8103
SELECT CAST( NULL AS DECIMAL ) * - col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8103
SELECT CAST ( NULL AS REAL ) * - col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( - 33 ) * + col2 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 AS col1 FROM tab2, tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8106
SELECT ALL CAST( NULL AS SIGNED ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL CAST ( NULL AS INTEGER ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 82 + col0 AS col2 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT + + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 * + col1 - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8110
SELECT DISTINCT - col2 * cor0.col2 - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - col2 * cor0.col2 - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT + + 67 - - col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT - 16 * - cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e90b95a95e4b993ac5912b795bf5d3ef
query I rowsort
SELECT ALL - 72 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT - + cor0.col2 * 97 AS col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 82 * col0 * - 4 AS col0 FROM tab2
----
2296
25584
25912
query I rowsort
SELECT ALL - tab1.col1 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e13b0ded89320c7f6f4b5a15db1fe2be
query I rowsort
SELECT DISTINCT + 6 * + col0 * col0 + col1 FROM tab0 AS cor0
----
3542
47617
7447
query I rowsort
SELECT + col2 + - 73 FROM tab2 AS cor0
----
-35
-46
-47
query I rowsort
SELECT DISTINCT - 76 FROM tab0 cor0
----
-76
query I rowsort
SELECT - - 5 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT + CAST( - col1 AS SIGNED ) DIV - col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8122
SELECT + CAST ( - col1 AS INTEGER ) / - col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + + 17 * col0 AS col1 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT ALL - 68 * col2 AS col2 FROM tab1 AS cor0
----
-3672
-3876
-6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-8125
SELECT DISTINCT - 68 + - col1 DIV + col0 FROM tab2 AS cor0
----
-68
-72
skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - 68 + - col1 / + col0 FROM tab2 AS cor0
----
-68
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT ALL col0 DIV CAST( col2 AS SIGNED ) FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL col0 / CAST ( col2 AS INTEGER ) FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab1, tab2 cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-57
query I rowsort
SELECT DISTINCT col2 - col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT DISTINCT - + col1 + + CAST( 99 AS SIGNED ) FROM tab1 AS cor0
----
73
86
89
skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - + col1 + + CAST ( 99 AS INTEGER ) FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT ALL + col2 + + col0 - - col0 * col1 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT col1 + - col0 * - col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL col2 * 71 + ( + col0 ) - 9 FROM tab2 AS cor0
----
1915
1915
2768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8134
SELECT ALL + - CAST( + 30 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + - CAST ( + 30 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT col2 + col1 * col1 * - col1 + col2 AS col2 FROM tab2
----
-205327
-29737
-4837
query I rowsort
SELECT - ( 64 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT DISTINCT + + col2 * 20 + + col2 * col0 FROM tab1 AS cor0
----
1242
4788
9600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8139
SELECT - + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8139
SELECT - + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * + 60 + col1 AS col1 FROM tab0 AS cor0
----
157
2066
5011
query I rowsort
SELECT - col0 * - 81 AS col0 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT + 94 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL col2 + - ( col2 ) AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col1 * 75 col1 FROM tab2 AS cor0
----
-21675
-261075
-72075
query I rowsort
SELECT ALL - ( col2 ) + col0 + col2 * col0 FROM tab1
----
111
3655
7664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL col1 * - col0 + col1 AS col0 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT + cor0.col0 * 64 * - col2 FROM tab0 AS cor0
----
-2240
-467072
-50688
query I rowsort
SELECT - ( cor0.col2 ) * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + ( col0 ) * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 55 + + col1 AS col1 FROM tab0 AS cor0
----
141
146
152
query I rowsort
SELECT ALL + + cor0.col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT col1 + + cor0.col0 * 42 AS col1 FROM tab1 AS cor0
----
152
2698
3373
query I rowsort
SELECT - 40 + + col0 AS col0 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT cor0.col0 + + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + col2 + col2 * - 98 FROM tab1 AS cor0
----
-5238
-5529
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * cor0.col2 col1 FROM tab0 AS cor0
----
-297
-738
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8161
SELECT col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8161
SELECT col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 41 + col0 + - col0 FROM tab0 AS cor0
----
41
41
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT DISTINCT cor0.col0 * - col1 - CAST( col2 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1302
-237
-4550
skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT cor0.col0 * - col1 - CAST ( col2 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1302
-237
-4550
query I rowsort
SELECT - 72 AS col0 FROM tab0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8166
SELECT DISTINCT + + col2 + - cor0.col0 DIV col1 + col2 FROM tab1 AS cor0
----
108
186
skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT + + col2 + - cor0.col0 / col1 + col2 FROM tab1 AS cor0
----
108
186
query I rowsort
SELECT - + 13 + col2 FROM tab1 AS cor0
----
41
44
83
query I rowsort
SELECT ALL - + 70 AS col2 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT ALL + 66 + col1 AS col0 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT DISTINCT ( + col1 ) * + 27 FROM tab1 AS cor0
----
270
351
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT col1 * + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8171
SELECT col1 * + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + col0 * + col1 ) + ( - col1 ) AS col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - 89 * col0 FROM tab2
----
-623
-6942
-7031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT - 43 * + col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * col2 FROM tab0 cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + col2 * + col0 * ( + col0 * - col2 ) AS col2 FROM tab1 AS cor0
----
-13307904
-26244
-58982400
query I rowsort
SELECT + - 71 AS col2 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT - cor0.col0 * - col2 AS col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - ( ( col0 ) ) * cor0.col0 col0 FROM tab1 AS cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort
SELECT - + col0 * CAST ( cor0.col2 AS REAL ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 + cor0.col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col0 * col1 col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL - cor0.col0 + ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * - ( col2 + + col0 * col0 ) FROM tab2 AS cor0
----
-106743
-2356
-360490
onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT + col0 * col0 DIV 38 FROM tab1 AS cor0
----
0
107
168
skipif mysql # not compatible
query I rowsort label-8186
SELECT + col0 * col0 / 38 FROM tab1 AS cor0
----
0
107
168
query I rowsort
SELECT DISTINCT - + col0 * + ( 20 ) FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT - col0 * - 64 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT - col0 * 73 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT 22 * + col1 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT ALL - col2 * + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + - 2 * col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - - 92 * - col0 + col0 FROM tab2 AS cor0
----
-637
-7098
-7189
onlyif mysql # use DIV operator for integer division
query I rowsort label-8194
SELECT DISTINCT 49 DIV 83 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT 49 / 83 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL 59 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1284
-158
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8196
SELECT - CAST( NULL AS SIGNED ) * + col1 + cor0.col0 * col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8196
SELECT - CAST ( NULL AS INTEGER ) * + col1 + cor0.col0 * col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 - + col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT DISTINCT - - 92 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
92
94
skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - - 92 + col2 / col1 AS col1 FROM tab2 AS cor0
----
92
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT ALL + + col2 DIV 90 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + + col2 / 90 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 53 + cor0.col2 * col1 AS col2 FROM tab2 cor0
----
1481
593
784
query I rowsort
SELECT ALL - 41 + col1 AS col1 FROM tab0 AS cor0
----
45
50
56
query I rowsort
SELECT ALL + 18 AS col1 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL + col2 * + ( col2 ) * + col0 - 92 AS col1 FROM tab2
----
113984
5011
52636
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT col2 DIV + ( 53 + + col2 ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8204
SELECT col2 / + ( 53 + + col2 ) AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8205
SELECT col1 * - col2 * - col2 + - CAST( + ( + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
611793
93568
skipif mysql # not compatible
query I rowsort label-8205
SELECT col1 * - col2 * - col2 + - CAST ( + ( + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab0 AS cor0
----
-40
query I rowsort
SELECT - col0 * - col0 - ( col0 ) AS col1 FROM tab2
----
42
6006
6162
query I rowsort
SELECT tab1.col1 + + col2 - + col2 FROM tab1
----
10
13
26
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0, tab1 cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT cor2.col2 FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8211
SELECT cor0.col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8211
SELECT cor0.col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + col1 * col2 + tab2.col2 + col2 AS col1 FROM tab2
----
1586
722
891
query I rowsort
SELECT + ( 97 ) AS col1 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT ( + col1 ) * col2 + tab2.col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT - col0 + - col0 + col2 AS col1 FROM tab0
----
-15
-69
-96
query I rowsort
SELECT - 51 FROM tab2, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT - col2 + - 92 * col1 FROM tab1 AS cor0
----
-1292
-2446
-977
query I rowsort
SELECT - cor0.col1 * 32 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col0 * ( col2 + 61 ) FROM tab1 AS cor0
----
1205760
18630
430464
query I rowsort
SELECT DISTINCT + col2 + - ( + col2 * + col1 ) FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + + col1 + ( + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + - col1 + - 5 FROM tab2 AS cor0
----
-22
-36
-64
query I rowsort
SELECT + col2 * + ( col2 ) + col2 * + col0 AS col0 FROM tab1 cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT - 28 + - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-106
-107
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - col2 + - 31 * + ( col2 ) AS col1 FROM tab2
----
-1216
-832
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * col0 + - cor0.col1 * - 76 col0 FROM tab0 AS cor0
----
6920
7932
8340
onlyif mysql # use DIV operator for integer division
query I rowsort label-8229
SELECT - col0 * col2 DIV ( col2 ) col2 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8229
SELECT - col0 * col2 / ( col2 ) col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col2 + + 28 FROM tab2
----
54
55
66
query I rowsort
SELECT ( + tab2.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - col0 + + col2 * + col0 AS col2 FROM tab2
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * col0 col2 FROM tab0
----
1608
2345
5963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f
query I rowsort
SELECT + cor0.col1 * + col0 * + col0 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT ALL col2 * 89 FROM tab1
----
4806
5073
8544
query I rowsort
SELECT - 59 * + 49 FROM tab0
----
-2891
-2891
-2891
query I rowsort
SELECT ALL 50 * + cor0.col1 * + ( - cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to a4a5f380d6c12a28a6825b429636eef7
query I rowsort
SELECT - ( col2 * - 1 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - ( col2 ) * - tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col0 + - col1 * 89 AS col2 FROM tab1
----
-1077
-2311
-826
query I rowsort
SELECT + ( - 84 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 * - 20 col1 FROM tab1 AS cor0
----
-12800
-1560
-20800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8244
SELECT ALL cor0.col0 + - col1 * + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL cor0.col0 + - col1 * + CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT + + col1 + - cor0.col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8245
SELECT + + col1 + - cor0.col1 / - col1 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT col2 * - cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col2 + - 53 FROM tab0 AS cor0
----
-135
-54
-86
query I rowsort
SELECT - col1 * cor0.col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT tab0.col0 * col0 * tab0.col1 - - col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT + col0 * 30 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT DISTINCT - cor0.col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - - col1 * 86 * col2 FROM tab1 AS cor0
----
107328
120744
49020
query I rowsort
SELECT DISTINCT 35 - - 28 FROM tab1, tab2 AS cor0
----
63
query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT CAST( - 96 AS SIGNED ) DIV col0 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-8255
SELECT CAST ( - 96 AS INTEGER ) / col0 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT col2 + col1 - col1 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT - + cor0.col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8257
SELECT - + cor0.col1 / col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8258
SELECT + col0 + + col0 * + CAST( ( - col1 ) AS SIGNED ) * 50 AS col2 FROM tab2 AS cor0
----
-10843
-230022
-67071
skipif mysql # not compatible
query I rowsort label-8258
SELECT + col0 + + col0 * + CAST ( ( - col1 ) AS INTEGER ) * 50 AS col2 FROM tab2 AS cor0
----
-10843
-230022
-67071
onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT - col0 * col2 DIV + CAST( - col0 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-8259
SELECT - col0 * col2 / + CAST ( - col0 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + 41 * col2 FROM tab0 cor0
----
1353
3362
41
query I rowsort
SELECT - - 8 * cor0.col1 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT 76 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT + tab0.col1 * + 61 AS col0 FROM tab0
----
5246
5551
5917
query I rowsort
SELECT ALL 15 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 14 col2 FROM tab0
----
-1204
-1274
-1358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8266
SELECT ALL + CAST( NULL AS SIGNED ) * - 43 + + col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + CAST ( NULL AS INTEGER ) * - 43 + + col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 98 - + col0 * + col0 FROM tab2 AS cor0
----
-5986
-6143
49
query I rowsort
SELECT 16 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * 94 col2 FROM tab1 AS cor0
----
3102
query I rowsort
SELECT ALL + 68 * 52 + col1 FROM tab1 AS cor0
----
3546
3549
3562
query I rowsort
SELECT + col1 - - ( + 50 ) AS col0 FROM tab1
----
60
63
76
query I rowsort
SELECT col1 + - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8274
SELECT - + CAST( - 49 AS SIGNED ) FROM tab0 AS cor0
----
49
49
49
skipif mysql # not compatible
query I rowsort label-8274
SELECT - + CAST ( - 49 AS INTEGER ) FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT ALL + 5 FROM tab0, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL + 88 * col0 AS col1 FROM tab2
----
616
6864
6952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8277
SELECT + CAST( col1 * col0 AS SIGNED ) + + CAST( + col1 AS SIGNED ) * - tab2.col2 AS col1 FROM tab2
----
-620
3068
697
skipif mysql # not compatible
query I rowsort label-8277
SELECT + CAST ( col1 * col0 AS INTEGER ) + + CAST ( + col1 AS INTEGER ) * - tab2.col2 AS col1 FROM tab2
----
-620
3068
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * + 68 * + col0 col0 FROM tab0
----
2380
496264
53856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - 45 col1 FROM tab0
----
1485
3690
45
query I rowsort
SELECT col0 * - tab0.col1 * + col1 AS col2 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + col0 * + col1 - - col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT tab0.col0 - + col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL - 0 - - col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 + - col2 - + col0 AS col0 FROM tab0
----
-253
-37
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8285
SELECT col2 + col1 + CAST( - 2 AS SIGNED ) AS col2 FROM tab1
----
107
65
78
skipif mysql # not compatible
query I rowsort label-8285
SELECT col2 + col1 + CAST ( - 2 AS INTEGER ) AS col2 FROM tab1
----
107
65
78
query I rowsort
SELECT + 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 cor3
----
243 values hashing to 539b234186ccd208c142df4d0d0bec52
query I rowsort
SELECT - col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252
query I rowsort
SELECT col0 * 14 + - col2 AS col2 FROM tab2 AS cor0
----
1066
1068
71
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 * col0 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT - - col0 * + col2 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL col0 * - 18 * cor0.col0 + - cor0.col1 - ( 74 ) * - col2 AS col1 FROM tab1 AS cor0
----
-108109
-69520
3808
query I rowsort
SELECT - col0 * - col1 + + cor0.col1 * - cor0.col0 * - col1 FROM tab1 AS cor0
----
14560
2106
7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8294
SELECT + col0 DIV 63 + + col0 col2 FROM tab2 AS cor0
----
7
79
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8294
SELECT + col0 / 63 + + col0 col2 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT ALL col0 + - ( - 65 + + col2 ) AS col0 FROM tab2
----
106
117
45
query I rowsort
SELECT ALL 71 FROM tab1, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) + col0 * ( col1 ) + + col0 FROM tab2
----
-1580
2652
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col2 FROM tab0, tab1 AS cor0
----
84
query I rowsort
SELECT ALL col0 + + 99 AS col2 FROM tab0
----
123
134
188
query I rowsort
SELECT cor0.col0 + 69 FROM tab0, tab0 cor0
----
9 values hashing to d9b60e632cb8d73d19971ee816f20c2f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8301
SELECT DISTINCT + - col2 DIV 41 AS col0 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + - col2 / 41 AS col0 FROM tab0 AS cor0
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5
query I rowsort
SELECT 36 FROM tab2, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL + col0 + 76 * 97 AS col2 FROM tab1
----
7375
7436
7452
query I rowsort
SELECT - col2 * ( 20 ) FROM tab0 cor0
----
-1640
-20
-660
query I rowsort
SELECT DISTINCT + col1 * ( 48 ) * + col0 AS col1 FROM tab1 AS cor0
----
30720
3744
49920
query I rowsort
SELECT - + col2 + ( col1 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col1 * 15 * col1 FROM tab0 AS cor0
----
-110940
-124215
-141135
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col2 AS REAL ) col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT ALL + - ( col1 ) + + col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + - ( col1 ) + + col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT ALL + CAST( col0 AS SIGNED ) * - col2 - - col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + CAST ( col0 AS INTEGER ) * - col2 - - col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 31 col0 FROM tab1 AS cor0
----
-23
-26
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8318
SELECT CAST( NULL AS SIGNED ) * + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8318
SELECT CAST ( NULL AS INTEGER ) * + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8319
SELECT DISTINCT + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + col0 / - col0 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL - 76 + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59
query I rowsort
SELECT + - col0 * col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + + col2 * - col2 + 84 * - col0 AS col1 FROM tab2 AS cor0
----
-1317
-7228
-8080
query I rowsort
SELECT DISTINCT - 87 * col1 + - ( 84 ) FROM tab2 AS cor0
----
-1563
-2781
-5217
query I rowsort
SELECT ALL cor0.col1 * 53 FROM tab2, tab0 cor0
----
9 values hashing to d41881370d48f11f7950022107ba33b3
query I rowsort
SELECT DISTINCT + + 47 FROM tab2 AS cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8326
SELECT col1 * col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
268
308
93
skipif mysql # not compatible
query I rowsort label-8326
SELECT col1 * col1 / + col0 AS col2 FROM tab0 AS cor0
----
268
308
93
query I rowsort
SELECT ALL - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT DISTINCT + - col1 DIV col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + - col1 / col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT - ( + col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 * + col2 + - 28 * col2 AS col2 FROM tab2 AS cor0
----
-2756
-4066
-945
query I rowsort
SELECT ALL ( col1 ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab2 cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT ALL - + col2 DIV ( ( col1 ) * + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - + col2 / ( ( col1 ) * + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT ALL - cor0.col0 + + ( + col2 ) DIV - col0 FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - cor0.col0 + + ( + col2 ) / - col0 FROM tab0 AS cor0
----
-25
-35
-89
query I rowsort
SELECT DISTINCT - + col0 * + 40 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT + - col2 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + 54 * + col0 FROM tab2
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT DISTINCT col0 - col2 * CAST( + col1 AS SIGNED ) DIV col0 FROM tab1
----
-465
56
65
skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT col0 - col2 * CAST ( + col1 AS INTEGER ) / col0 FROM tab1
----
-465
56
65
query I rowsort
SELECT 59 * + col0 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT + col1 + + 91 FROM tab0 AS cor0
----
177
182
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT - - col1 DIV 35 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8342
SELECT - - col1 / 35 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) * + 96 AS col2 FROM tab0
----
-3168
-7872
-96
query I rowsort
SELECT ALL + cor0.col0 * 43 FROM tab0, tab2 cor0
----
9 values hashing to 19dab67aab425d7be61650756bbd8a3c
query I rowsort
SELECT + col1 * - ( cor0.col0 ) AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT DISTINCT + CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 61 * col0 + + col2 FROM tab1 AS cor0
----
237
3961
4976
query I rowsort
SELECT DISTINCT + 50 + col2 AS col2 FROM tab0 AS cor0
----
132
51
83
query I rowsort
SELECT + 9 AS col0 FROM tab0 cor0
----
9
9
9
query I rowsort
SELECT ALL - 43 + + 38 * - col1 FROM tab0 AS cor0
----
-3311
-3501
-3729
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT 24 * col2 + col2 + + cor0.col2 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL - 86 + - 50 * + col0 FROM tab0 AS cor0
----
-1286
-1836
-4536
query I rowsort
SELECT 65 * col2 - col2 * ( col2 ) FROM tab2 AS cor0
----
1014
1026
1026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * - col0 col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT - - col2 * col1 + - col2 + 80 * - cor0.col0 FROM tab0 AS cor0
----
-2704
260
885
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ( col0 ) + 50 FROM tab2 AS cor0
----
128
129
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT DISTINCT - col2 DIV cor0.col1 + col2 * 2 FROM tab1 AS cor0
----
106
109
185
skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - col2 / cor0.col1 + col2 * 2 FROM tab1 AS cor0
----
106
109
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 - col0 col2 FROM tab2 AS cor0
----
-19
-20
52
query I rowsort
SELECT + - col2 * col2 + cor0.col0 AS col2 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT 70 DIV col0 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-8363
SELECT 70 / col0 FROM tab2
----
0
0
10
query I rowsort
SELECT + ( - col1 ) + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT col2 * col2 + + ( col2 ) FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col0 + col2 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT + col1 - - col2 * - col0 AS col1 FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + + ( + ( col1 ) ) - + cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + + 61 * col2 - + col1 FROM tab2 AS cor0
----
1527
1616
2301
query I rowsort
SELECT ALL - cor0.col2 * - 73 FROM tab2 cor0
----
1898
1971
2774
query I rowsort
SELECT + 79 FROM tab0, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ( ( + tab0.col2 ) + ( - col0 ) ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT - col2 + col1 * col2 - col1 FROM tab0
----
-1
2719
7289
query I rowsort
SELECT + 61 * 98 * col1 AS col1 FROM tab2
----
101626
185318
352702
query I rowsort
SELECT + ( - col1 ) * tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 - - 61 FROM tab1
----
71
74
87
query I rowsort
SELECT cor0.col1 - - col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - - col2 * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 + col1 + + col2 AS col2 FROM tab1
----
106
122
77
query I rowsort
SELECT col0 * + col0 + col0 * + col1 FROM tab2
----
10686
266
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab1, tab1 cor0
----
23
query I rowsort
SELECT + - col1 * 60 + - ( col2 ) * 19 * col0 FROM tab1 AS cor0
----
-146700
-4638
-69912
query I rowsort
SELECT DISTINCT + col0 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT cor0.col1 * + col0 + - ( + col2 ) - - cor0.col1 * + ( - cor0.col1 ) * ( 71 + + col2 * - col1 ) FROM tab2 AS cor0
----
167480
5097279
736316
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8387
SELECT + col0 + - CAST( + col1 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
164
249
679
skipif mysql # not compatible
query I rowsort label-8387
SELECT + col0 + - CAST ( + col1 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col0 ) * - col1 + 49 FROM tab2 AS cor0
----
-106048
-1470
-358907
query I rowsort
SELECT - col1 + + ( + ( col1 ) ) * 6 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT col2 + + ( - 24 ) * - col2 + + 54 FROM tab1 AS cor0
----
1404
1479
2454
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col2 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + - cor0.col2 - cor0.col1 * - col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + col1 + + col1 * - ( - col2 ) AS col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT ALL ( + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 18 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - + col0 * col0 * col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + + 23 AS col0 FROM tab2 cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + + 16 * - col1 AS col0 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + col2 - ( col0 * + col1 ) AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8402
SELECT DISTINCT col1 DIV col1 + col1 * col0 FROM tab2 cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT col1 / col1 + col1 * col0 FROM tab2 cor0
----
1344
218
4603
query I rowsort
SELECT ALL - 37 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-11
-24
-27
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + - ( col2 ) + - cor0.col1 * 28 * 26 FROM tab0 AS cor0
----
-59032
-61849
-70582
query I rowsort
SELECT ( + cor0.col0 ) + + 62 * col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT DISTINCT 65 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
65
query III rowsort
SELECT * FROM tab0 WHERE - col2 / col1 BETWEEN ( NULL ) AND col1
----
query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab0 WHERE NULL <= NULL
----
query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1 cor0, tab0 cor1
----
17
31
59
query I rowsort
SELECT ALL - col1 + - col2 - - tab1.col0 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT ALL col1 - - tab2.col2 * - col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT tab2.col2 - col2 AS col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8415
SELECT DISTINCT - col1 DIV - col0 - - CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - col1 / - col0 - - CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab0
----
3
36
83
query I rowsort
SELECT DISTINCT 56 - col0 FROM tab1
----
-24
-8
53
query I rowsort
SELECT ALL + col0 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL + - col0 * ( 16 ) AS col1 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT + + col0 + - 59 AS col0 FROM tab1 AS cor0
----
-56
21
5
query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab2
----
33
query I rowsort
SELECT ALL + 11 * tab1.col0 - col2 FROM tab1
----
-21
647
784
query I rowsort
SELECT + 30 + - col2 FROM tab0
----
-3
-52
29
query I rowsort
SELECT DISTINCT ( + 62 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT col0 + col0 DIV col1 col2 FROM tab2
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8424
SELECT col0 + col0 / col1 col2 FROM tab2
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab1.col1 ) col0 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8426
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8426
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8427
SELECT DISTINCT + 96 - + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT + 96 - + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col1 * - 14 + 14 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
-224
-420
-812
query I rowsort
SELECT + cor0.col1 - 85 FROM tab0, tab2 AS cor0
----
9 values hashing to 6943027f08d6eda20a97a88089e35599
query I rowsort
SELECT ALL + - col0 * - col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT col2 * - 78 + - col1 FROM tab0 AS cor0
----
-175
-2660
-6487
onlyif mysql # use DIV operator for integer division
query I rowsort label-8432
SELECT ALL col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 89 col1 FROM tab2 AS cor0
----
-10
-11
-82
query I rowsort
SELECT DISTINCT - col1 + - 32 * + 3 AS col1 FROM tab0 cor0
----
-182
-187
-193
query I rowsort
SELECT - 73 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
query I rowsort
SELECT - 22 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT ALL + col2 + - ( ( + col2 ) + + col2 ) * col1 FROM tab0
----
-14842
-193
-5643
onlyif mysql # use DIV operator for integer division
query I rowsort label-8438
SELECT + tab0.col1 DIV - 5 + col1 AS col1 FROM tab0
----
69
73
78
skipif mysql # not compatible
query I rowsort label-8438
SELECT + tab0.col1 / - 5 + col1 AS col1 FROM tab0
----
69
73
78
query I rowsort
SELECT + + col0 * - ( col1 ) + - col1 - col2 FROM tab0 AS cor0
----
-2183
-3493
-8272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8440
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) / - cor0.col0 + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) / - cor0.col0 + col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col1 - 61 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT + 49 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8443
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - - cor0.col2 + 93 * col2 * col2 AS col0 FROM tab0 AS cor0
----
101310
625414
94
query I rowsort
SELECT + - cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT + 85 * cor0.col2 AS col0 FROM tab2, tab1 cor0
----
4590
4845
8160
query I rowsort
SELECT ALL + 21 * col0 + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1444
1849
739
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT ALL col0 + + cor0.col0 * 61 DIV col1 + col1 FROM tab2 AS cor0
----
217
379
51
skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL col0 + + cor0.col0 * 61 / col1 + col1 FROM tab2 AS cor0
----
217
379
51
query I rowsort
SELECT ALL col0 * + col2 + + col2 * col2 - col2 FROM tab2 AS cor0
----
2678
4408
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + col2 col1 FROM tab2 AS cor0
----
113
114
125
onlyif mysql # use DIV operator for integer division
query I rowsort label-8452
SELECT DISTINCT - col1 - col0 DIV ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - col1 - col0 / ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 + col1 * 46 AS col0 FROM tab0 AS cor0
----
3980
4275
4497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col0 * col2 + 7 AS col0 FROM tab2 AS cor0
----
196
2035
3009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - 53 + col2 AS col2 FROM tab2 AS cor0
----
79
80
91
query I rowsort
SELECT DISTINCT + - col2 - cor0.col0 * + col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT 92 * - col1 FROM tab2 AS cor0
----
-1564
-2852
-5428
onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT + col0 DIV tab1.col1 + - 41 + col2 AS col0 FROM tab1
----
13
22
61
skipif mysql # not compatible
query I rowsort label-8460
SELECT + col0 / tab1.col1 + - 41 + col2 AS col0 FROM tab1
----
13
22
61
query I rowsort
SELECT + col1 * 62 FROM tab1
----
1612
620
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8462
SELECT + 75 + + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8462
SELECT + 75 + + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab2.col0 * 20 * + col2 AS col0 FROM tab2
----
3780
40560
60040
query I rowsort
SELECT + col1 * 47 AS col1 FROM tab1
----
1222
470
611
query I rowsort
SELECT ALL col2 * + ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8466
SELECT ALL col0 + col0 DIV + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL col0 + col0 / + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + ( - ( + col1 ) ) FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * + ( + col2 ) + cor0.col2 col0 FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT 0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + 52 + col0 + col2 AS col1 FROM tab0
----
109
223
88
query I rowsort
SELECT - cor0.col0 - + cor0.col1 * col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT DISTINCT - cor0.col1 * col0 DIV + col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - cor0.col1 * col0 / + col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT - col1 DIV - cor0.col0 + + col0 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-8473
SELECT - col1 / - cor0.col0 + + col0 FROM tab0 cor0
----
27
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT ALL + cor0.col1 + + col0 DIV - 25 AS col1 FROM tab1 AS cor0
----
10
26
8
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + cor0.col1 + + col0 / - 25 AS col1 FROM tab1 AS cor0
----
10
26
8
query I rowsort
SELECT ALL + col0 + - ( 97 ) FROM tab1 AS cor0
----
-17
-33
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8476
SELECT - - col0 + CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-8476
SELECT - - col0 + CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT col0 - + 64 AS col2 FROM tab2 AS cor0
----
-57
14
15
query I rowsort
SELECT + col2 + col2 + 85 FROM tab0
----
151
249
87
query I rowsort
SELECT DISTINCT + col1 * + 94 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT col0 * 17 * cor0.col0 + col2 - - col1 * + cor0.col2 FROM tab1 cor0
----
110144
1611
70259
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8481
SELECT ALL - col1 * + CAST( - col0 AS SIGNED ) col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - col1 * + CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col0 * - col2 - col1 * 77 col1 FROM tab0 AS cor0
----
-14223
-7381
-7503
query I rowsort
SELECT DISTINCT col0 * + 25 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT DISTINCT + + col0 + + col1 * 77 FROM tab2 AS cor0
----
1388
2394
4621
query I rowsort
SELECT + col1 * + 93 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT col0 + col0 * - 34 - - col0 FROM tab1 cor0
----
-2048
-2560
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT - col2 + CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8487
SELECT - col2 + CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT DISTINCT + 99 * 86 DIV - col0 AS col1 FROM tab0 cor0
----
-243
-354
-95
skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + 99 * 86 / - col0 AS col1 FROM tab0 cor0
----
-243
-354
-95
query I rowsort
SELECT ALL + - 32 AS col1 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + col0 * 63 FROM tab1
----
189
4032
5040
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT - - col1 DIV col1 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8492
SELECT - - col1 / col1 col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( - col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT 53 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-8494
SELECT 53 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT - - 20 DIV - 94 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8495
SELECT - - 20 / - 94 col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8496
SELECT ALL + col2 * - 45 + ( col0 ) - + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + col2 * - 45 + ( col0 ) - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8497
SELECT DISTINCT tab2.col2 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT tab2.col2 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 63 col1 FROM tab1
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT - - 8 * + col2 - - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1233
840
8577
query I rowsort
SELECT DISTINCT + tab2.col2 + 16 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
42
43
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT + + cor0.col1 + - col2 * 60 FROM tab2 AS cor0
----
-1501
-1589
-2263
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8503
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8503
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - tab0.col1 * - ( 87 ) AS col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 29f9e13cafc21e2b2319c46a4f1a8dbb
query I rowsort
SELECT - col2 * - tab2.col1 - col2 * - 18 AS col2 FROM tab2
----
1323
1330
2002
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8507
SELECT ALL + CAST( col2 AS SIGNED ) * - col2 - 7 AS col0 FROM tab1
----
-2923
-3256
-9223
skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + CAST ( col2 AS INTEGER ) * - col2 - 7 AS col0 FROM tab1
----
-2923
-3256
-9223
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT + col1 * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col0 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT + 77 * 16 AS col0 FROM tab2 AS cor0
----
1232
1232
1232
query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0, tab1 cor0
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-8514
SELECT DISTINCT + - ( - col2 ) + + col2 DIV cor0.col0 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + - ( - col2 ) + + col2 / cor0.col0 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT DISTINCT - 99 - col2 AS col0 FROM tab2 cor0
----
-125
-126
-137
query I rowsort
SELECT - 0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT ALL + 70 - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + 70 - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT ALL + 74 + col0 AS col2 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT DISTINCT + 76 + - col2 * - 98 AS col1 FROM tab2 AS cor0
----
2624
2722
3800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT DISTINCT + col0 DIV col1 AS col2 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + col0 / col1 AS col2 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - col2 DIV + col1 + col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-8521
SELECT - col2 / + col1 + col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8522
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8522
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 84 FROM tab1 AS cor0
----
-4536
-4788
-8064
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 cor0, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT DISTINCT - - col2 * 6 FROM tab1 AS cor0
----
324
342
576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8527
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + ( 31 ) AS col2 FROM tab0 cor0
----
113
32
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT - - col1 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8529
SELECT - - col1 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 73 * col2 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT DISTINCT + + col0 * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * col1 + 6 col2 FROM tab0 cor0
----
-2058
-3389
-8093
query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 54 AS col1 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT + + col1 * + col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + ( 95 ) AS col0 FROM tab1 AS cor0
----
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT ALL + 73 DIV - col0 FROM tab2 cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + 73 / - col0 FROM tab2 cor0
----
-10
0
0
query I rowsort
SELECT + + 23 * col0 AS col0 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT - col0 + 46 FROM tab0
----
-43
11
22
query I rowsort
SELECT col1 + + 49 FROM tab1
----
59
62
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT DISTINCT - col1 DIV 92 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - col1 / 92 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT ALL + CAST( NULL AS SIGNED ) * 89 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + CAST ( NULL AS INTEGER ) * 89 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 73 * - 40 + + col2 * - col1 AS col1 FROM tab2 cor0
----
-3566
-3757
-4454
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col1 + 60 AS col1 FROM tab2 AS cor0
----
119
77
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 7e665e04e6102323f69d70091871d1d2
query I rowsort
SELECT + 93 * 81 + col2 FROM tab1 AS cor0
----
7587
7590
7629
query I rowsort
SELECT DISTINCT + cor1.col1 * + cor0.col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
9 values hashing to ae10dfda2508149d338269366c35c584
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
17
31
59
query I rowsort
SELECT 34 * - col2 AS col2 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT DISTINCT + 3 * col0 AS col0 FROM tab1
----
192
240
9
query I rowsort
SELECT - + tab1.col0 AS col2 FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT + 23 * col2 + + col1 * + ( + tab2.col1 ) * + tab2.col0 FROM tab2
----
23705
272116
7348
query I rowsort
SELECT 91 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT - col1 * col2 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT cor0.col1 + - 3 FROM tab0 cor0
----
83
88
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - ( - col1 ) col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + - col1 + + ( col1 + - col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 * - col0 + + 35 AS col2 FROM tab1 AS cor0
----
-1005
-43
-605
query I rowsort
SELECT DISTINCT + col0 * ( - 14 ) AS col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT - cor0.col1 * col2 + col2 * - col0 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT ALL - col0 * + ( - col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT + - col2 - ( + col2 ) FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - col0 * + col0 + - 31 AS col0 FROM tab0
----
-1256
-607
-7952
query I rowsort
SELECT DISTINCT col1 * col0 + + ( + 73 ) AS col2 FROM tab2
----
1416
290
4675
query I rowsort
SELECT + ( col1 ) * - 59 - - col0 FROM tab2
----
-1822
-3403
-924
query I rowsort
SELECT ALL - 18 + col0 FROM tab1
----
-15
46
62
query I rowsort
SELECT ALL ( - col0 ) * ( + col2 ) + col0 * - col1 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT ALL 14 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT + 88 + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 04c32dfeb6584e905d02ba83a8cad72e
query I rowsort
SELECT - - 20 AS col0 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( ( - col0 ) ) + - col2 col1 FROM tab2
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT ALL + col0 * + col0 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
4090
6394
9
skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + col0 * + col0 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
4090
6394
9
query I rowsort
SELECT ALL + cor0.col2 * ( col1 ) + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - col1 * + col1 + + col2 * col0 FROM tab1 AS cor0
----
-514
3548
7511
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 0705df526be8eeded96d0c20ae938712
onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT ALL + - col1 DIV col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + - col1 / col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT + col0 DIV - ( - col2 ) + col1 + cor0.col2 FROM tab0 AS cor0
----
119
133
174
skipif mysql # not compatible
query I rowsort label-8580
SELECT + col0 / - ( - col2 ) + col1 + cor0.col2 FROM tab0 AS cor0
----
119
133
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT ALL - - cor0.col2 DIV + ( + col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - - cor0.col2 / + ( + col0 ) FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL col0 * + col2 + + col1 * + cor0.col0 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT - 6 + + col1 FROM tab1 AS cor0
----
20
4
7
query I rowsort
SELECT 58 + + cor0.col1 * + col1 FROM tab0 AS cor0
----
7454
8339
9467
query I rowsort
SELECT - tab0.col1 + 40 FROM tab0
----
-46
-51
-57
query I rowsort
SELECT + 29 * - 33 FROM tab0
----
-957
-957
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT DISTINCT - - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - - cor0.col1 / + col2 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8588
SELECT + col2 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - - col2 * 14 AS col0 FROM tab1 AS cor0
----
1344
756
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col0 FROM tab2
----
97
97
97
query I rowsort
SELECT DISTINCT + ( + tab0.col0 ) * ( + col2 ) - - col1 AS col0 FROM tab0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + - 14 col1 FROM tab0
----
118
166
96
query I rowsort
SELECT DISTINCT + 22 FROM tab2, tab0, tab1 AS cor0
----
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT 10 DIV tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8594
SELECT 10 / tab1.col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab2
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8596
SELECT CAST( NULL AS SIGNED ) + - 85 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( NULL AS INTEGER ) + - 85 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT + col1 + col1 DIV col2 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8597
SELECT + col1 + col1 / col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT 64 * tab2.col1 + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 897eeb67445a4ac6e5dbf6c438d3b180
query I rowsort
SELECT ( 74 ) * - col1 AS col0 FROM tab1
----
-1924
-740
-962
query I rowsort
SELECT ALL ( ( col2 ) ) FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col0 * 23 * col0 AS col0 FROM tab2
----
1127
139932
143543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8602
SELECT CAST( + col2 AS SIGNED ) + col1 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-8602
SELECT CAST ( + col2 AS INTEGER ) + col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8603
SELECT tab2.col1 - - ( + col1 ) * CAST( + 62 AS SIGNED ) col0 FROM tab2
----
1071
1953
3717
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8603
SELECT tab2.col1 - - ( + col1 ) * CAST ( + 62 AS INTEGER ) col0 FROM tab2
----
1071
1953
3717
query I rowsort
SELECT ALL + ( col1 ) * + tab2.col2 AS col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * - col0 col0 FROM tab0 cor0
----
-168
-245
-623
query I rowsort
SELECT - - 74 * col0 * 83 AS col1 FROM tab0 AS cor0
----
147408
214970
546638
query I rowsort
SELECT ALL 31 - col1 FROM tab0
----
-55
-60
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 24 + col2 AS col2 FROM tab2 cor0
----
50
51
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col0 * - ( 13 ) col0 FROM tab0 AS cor0
----
102973
15925
7488
query I rowsort
SELECT + cor0.col1 + + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT DISTINCT + 4 DIV + col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + 4 / + col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + 41 * col2 + - col1 FROM tab1 AS cor0
----
2188
2327
3923
query I rowsort
SELECT ALL + + 33 * - col0 + + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-42
-546
395
query I rowsort
SELECT - - col1 * 28 AS col2 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT + col1 * ( col2 ) + tab1.col1 * + col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT + col0 + cor0.col0 * 83 AS col1 FROM tab1 cor0
----
252
5376
6720
query I rowsort
SELECT + + col0 * - 74 + + col2 AS col1 FROM tab2 AS cor0
----
-491
-5746
-5808
query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT + col1 + - ( col2 ) DIV - cor0.col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-8620
SELECT + col1 + - ( col2 ) / - cor0.col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT ALL + - 52 * ( col2 ) AS col1 FROM tab2 cor0
----
-1352
-1404
-1976
query I rowsort
SELECT + + 5 * 25 FROM tab1 AS cor0
----
125
125
125
query I rowsort
SELECT ALL - 61 AS col2 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL + col0 + 32 + col2 AS col0 FROM tab1 cor0
----
153
208
89
query I rowsort
SELECT DISTINCT col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - + col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8629
SELECT DISTINCT + col1 * CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + col1 * CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 * - 48 * - cor0.col0 FROM tab2 cor0
----
144058
9045
97318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 54 col2 FROM tab2 AS cor0
----
-1674
-3186
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT ALL + col1 + col0 DIV + ( col2 * + col2 ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + col1 + col0 / + ( col2 * + col2 ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8633
SELECT - col0 DIV ( + 41 ) AS col0 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8633
SELECT - col0 / ( + 41 ) AS col0 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT 97 + tab0.col2 FROM tab0
----
130
179
98
query I rowsort
SELECT DISTINCT + + 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
16
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58
query I rowsort
SELECT + 7 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT col1 * - ( 69 * col0 ) FROM tab1 AS cor0
----
-44160
-5382
-71760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8639
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * + col0 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT + - col1 DIV - 74 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8641
SELECT + - col1 / - 74 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab0, tab2 AS cor0
----
-17
query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 * 13 * + tab1.col2 FROM tab1
----
100880
2184
48064
query I rowsort
SELECT - ( + col2 ) * col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL - + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + tab1.col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - cor0.col2 * + col2 col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + + ( 97 ) * - cor0.col1 FROM tab2 AS cor0
----
-1649
-3007
-5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT col2 DIV col2 + + col2 * - tab0.col1 + col2 AS col2 FROM tab0
----
-2804
-7379
-95
skipif mysql # not compatible
query I rowsort label-8649
SELECT col2 / col2 + + col2 * - tab0.col1 + col2 AS col2 FROM tab0
----
-2804
-7379
-95
query I rowsort
SELECT ALL - ( - col0 ) + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8651
SELECT DISTINCT 19 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
1
18
19
skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT 19 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
1
18
19
query I rowsort
SELECT ALL - cor0.col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + tab0.col0 + - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to cf0cd186a6868ff3748fd2b2555743a1
query I rowsort
SELECT ALL + - 75 AS col1 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT DISTINCT - col1 + col2 * 49 FROM tab2 AS cor0
----
1215
1292
1845
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 21 + + col2 col2 FROM tab0 AS cor0
----
-20
12
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT DISTINCT col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT DISTINCT - col1 * - col2 + + 53 * - cor0.col1 * col0 FROM tab0 AS cor0
----
-106554
-179838
-421785
query I rowsort
SELECT - 93 * + cor0.col0 + + 7 AS col0 FROM tab0 cor0
----
-2225
-3248
-8270
query I rowsort
SELECT ALL - col2 * + col1 + 47 AS col2 FROM tab2 cor0
----
-1487
-599
-790
query I rowsort
SELECT col0 * col2 + + col1 * col1 * - col0 FROM tab1 cor0
----
-1866
-2752
-5840
query I rowsort
SELECT ALL + col2 + - col0 * + ( col0 ) FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8666
SELECT + 97 + col0 DIV + col0 FROM tab2 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-8666
SELECT + 97 + col0 / + col0 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT DISTINCT col0 - + col0 DIV - ( + col2 + + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
24
52
89
skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT col0 - + col0 / - ( + col2 + + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
24
52
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT DISTINCT + col1 + - col2 DIV 87 AS col2 FROM tab1 AS cor0
----
10
12
26
skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + col1 + - col2 / 87 AS col2 FROM tab1 AS cor0
----
10
12
26
query I rowsort
SELECT + + col0 + + ( + col2 ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - 25 AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + ( col0 ) col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - - col1 + ( 2 + + col2 ) * + 69 * + 41 AS col2 FROM tab2 AS cor0
----
113177
79271
82072
query I rowsort
SELECT ALL + 76 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - + col2 * - cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - col2 + cor0.col1 * - 34 FROM tab0 AS cor0
----
-2957
-3176
-3299
onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT col2 + + ( 9 ) DIV col0 AS col0 FROM tab2 AS cor0
----
26
28
38
skipif mysql # not compatible
query I rowsort label-8679
SELECT col2 + + ( 9 ) / col0 AS col0 FROM tab2 AS cor0
----
26
28
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT + col0 * + col1 + + col0 * - cor0.col0 - col1 DIV col1 FROM tab1 AS cor0
----
-3457
-5361
68
skipif mysql # not compatible
query I rowsort label-8680
SELECT + col0 * + col1 + + col0 * - cor0.col0 - col1 / col1 FROM tab1 AS cor0
----
-3457
-5361
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col1 * + col1 * + col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + 91 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
146
149
176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT + CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8684
SELECT + CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * - tab2.col2 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) / col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * 35 + col2 - 7 col0 FROM tab2 AS cor0
----
1279
1280
1291
query I rowsort
SELECT ALL + - col0 * + 46 + + col2 FROM tab1 AS cor0
----
-2887
-3584
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8689
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8689
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 41 + + col1 FROM tab0 AS cor0
----
127
132
138
query I rowsort
SELECT col0 + col2 - ( + col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1327
-572
-695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8692
SELECT + ( col0 ) + CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-8692
SELECT + ( col0 ) + CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT - col0 DIV - col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-8693
SELECT - col0 / - col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT - col2 DIV - col0 col1 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8694
SELECT - col2 / - col0 col1 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * - col1 col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL tab2.col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - - col0 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT - col0 - + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8699
SELECT - col0 - + col0 / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + + col1 * col2 * col2 + - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 + col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 * - col0 + + col0 * - cor0.col0 - - col0 AS col1 FROM tab1 AS cor0
----
-4672
-7360
-84
query I rowsort
SELECT ALL tab1.col1 * col2 + col1 * + col1 * - col2 AS col2 FROM tab1
----
-14976
-35100
-5130
query I rowsort
SELECT col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + 87 * + col1 + + col1 FROM tab1 AS cor0
----
1144
2288
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT + 63 DIV + cor0.col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8709
SELECT + 63 / + cor0.col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT 47 * + col1 AS col1 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT - 21 * cor0.col0 + col2 FROM tab0 AS cor0
----
-1787
-471
-734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 93 + col0 ) col1 FROM tab2
----
14
15
86
query I rowsort
SELECT 45 * col2 AS col2 FROM tab1 AS cor0
----
2430
2565
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8714
SELECT DISTINCT + 84 DIV - 16 FROM tab1
----
-5
skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT + 84 / - 16 FROM tab1
----
-5
query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 78 + + col1 AS col2 FROM tab0 AS cor0
----
164
169
175
query I rowsort
SELECT ALL + tab0.col2 * col1 - + col0 AS col0 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT col0 DIV col0 AS col0 FROM tab1 WHERE NOT ( col2 ) IN ( tab1.col2 DIV tab1.col2 )
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8718
SELECT col0 / col0 AS col0 FROM tab1 WHERE NOT ( col2 ) IN ( tab1.col2 / tab1.col2 )
----
1
1
1
query I rowsort
SELECT - col2 + - tab2.col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col2 + col2 AS col0 FROM tab0
----
0
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( col2 ) = NULL
----
query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE + col1 + col2 IN ( col0 + tab1.col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 * col1 + col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + + tab0.col0 IN ( col1 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - col2 + + tab0.col2 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE - col0 * col2 + col1 > ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE tab1.col1 * - col1 + tab1.col2 NOT IN ( col1 * - col2 / col2 + + col2 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 * - tab2.col0 + - col0 AS col1 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT col0 + col0 FROM tab2 WHERE NOT NULL NOT IN ( + col2 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT + col1 * col2 DIV col2 + - col2 - + col0 FROM tab1
----
-111
-163
-31
skipif mysql # not compatible
query I rowsort label-8730
SELECT + col1 * col2 / col2 + - col2 - + col0 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT - col2 + tab2.col0 * - tab2.col2 AS col1 FROM tab2
----
-2054
-216
-3040
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col1 + + col0 * + col1
----
query I rowsort
SELECT ALL + tab0.col1 + - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL - tab1.col0 * col1 + - col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL + col1 * col2 - - col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL <> NULL
----
query I rowsort
SELECT + col1 * cor0.col2 + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT cor0.col1 * - col2 + + col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col0 + - col1 - + col1 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT ALL + col1 - tab1.col1 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + - col1 * col0 * col0 col0 FROM tab1
----
-205
-40886
-83107
query I rowsort
SELECT DISTINCT col0 * + col0 + - col2 * + col1 * + col0 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT ALL - - col0 + 92 FROM tab2 AS cor0
----
170
171
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8744
SELECT + - CAST( - 66 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1716
660
858
skipif mysql # not compatible
query I rowsort label-8744
SELECT + - CAST ( - 66 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT - 7 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT DISTINCT col2 * 91 AS col1 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT ALL - 86 + col1 + - col1 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL - - ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 25 + col1 + - cor0.col1 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT + col2 * 82 * col2 FROM tab1 AS cor0
----
239112
266418
755712
query I rowsort
SELECT ALL 11 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT ALL + - cor0.col0 + - 93 FROM tab0 AS cor0
----
-117
-128
-182
query I rowsort
SELECT - 13 * - 76 FROM tab1 cor0
----
988
988
988
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 AS cor0
----
9
query I rowsort
SELECT ALL 98 * col0 FROM tab1 AS cor0
----
294
6272
7840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - ( - col0 ) col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 + + 91 + col1 FROM tab2
----
125
153
209
query I rowsort
SELECT ALL + 44 + col0 FROM tab1 cor0
----
108
124
47
query I rowsort
SELECT DISTINCT + + 97 * + col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT + - 19 * + col0 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-664
5033
633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8762
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 / - col0 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 / - col0 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + 81 * col1 AS col1 FROM tab0 AS cor0
----
6990
7460
7892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8764
SELECT DISTINCT - CAST( - 19 AS SIGNED ) col1 FROM tab0 cor0
----
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - CAST ( - 19 AS INTEGER ) col1 FROM tab0 cor0
----
19
query I rowsort
SELECT - ( + cor0.col0 ) * + ( - col0 + + col1 ) FROM tab2 AS cor0
----
-168
1482
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-8766
SELECT ALL + 61 * col0 DIV - col2 FROM tab0
----
-2135
-44
-66
skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + 61 * col0 / - col2 FROM tab0
----
-2135
-44
-66
query I rowsort
SELECT + + 92 * col0 AS col2 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT - - 95 * col0 AS col0 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT + 23 FROM tab0, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8770
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
NULL
query I rowsort
SELECT ALL + col2 * - 48 FROM tab1 AS cor0
----
-2592
-2736
-4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-8772
SELECT DISTINCT - + col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - + col2 / cor0.col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col0 - + 4 FROM tab1 AS cor0
----
-68
-7
-84
query I rowsort
SELECT DISTINCT col0 * col0 + - 92 AS col2 FROM tab0 AS cor0
----
1133
484
7829
onlyif mysql # use DIV operator for integer division
query I rowsort label-8776
SELECT ALL + - cor0.col0 DIV 95 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + - cor0.col0 / 95 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT col0 * col1 + CAST( NULL AS SIGNED ) + tab0.col2 * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8777
SELECT col0 * col1 + CAST ( NULL AS INTEGER ) + tab0.col2 * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col0 * col0 + 16 - - col2 AS col0 FROM tab2
----
386
474594
493093
query I rowsort
SELECT ALL - col2 * ( 70 ) + col0 AS col2 FROM tab1
----
-3777
-3926
-6640
query I rowsort
SELECT ALL col0 * tab0.col1 + col2 * tab0.col0 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT - 67 + + tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a19524527efc1889dbac114d7b0f0163
query I rowsort
SELECT ALL col2 + 67 FROM tab0
----
100
149
68
query I rowsort
SELECT ALL - cor0.col1 * ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - col2 * + 21 AS col2 FROM tab0 cor0
----
1722
21
693
query I rowsort
SELECT ALL col2 * col0 + col2 * col0 FROM tab0
----
14596
1584
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8787
SELECT col1 * CAST( + 50 AS SIGNED ) col1 FROM tab1 cor0
----
1300
500
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8787
SELECT col1 * CAST ( + 50 AS INTEGER ) col1 FROM tab1 cor0
----
1300
500
650
query I rowsort
SELECT DISTINCT - col0 * 33 + col1 * - col0 FROM tab0
----
-11036
-2856
-4550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab2.col0 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT - col1 DIV - ( ( col1 ) ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8791
SELECT - col1 / - ( ( col1 ) ) FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - col2 + ( - ( + col2 ) ) FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + - col0 * + 19 + + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1508
-1539
-160
query I rowsort
SELECT tab2.col1 * - col0 * col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + ( - 57 ) AS col0 FROM tab0
----
-57
-57
-57
query I rowsort
SELECT ALL - - col0 - 84 FROM tab0 AS cor0
----
-49
-60
5
query I rowsort
SELECT - 47 * col2 AS col1 FROM tab0
----
-1551
-3854
-47
query I rowsort
SELECT col1 * - 7 AS col0 FROM tab2
----
-119
-217
-413
query I rowsort
SELECT + - 66 + ( - col1 ) FROM tab2 AS cor0
----
-125
-83
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT DISTINCT tab0.col0 DIV col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT tab0.col0 / col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL - 90 FROM tab1
----
-90
-90
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8803
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT DISTINCT + cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * ( - col2 ) col2 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + + cor0.col0 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8808
SELECT - - col2 * CAST( NULL AS SIGNED ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8808
SELECT - - col2 * CAST ( NULL AS INTEGER ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + + col0 - col0 * - col2 AS col2 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8811
SELECT DISTINCT + cor0.col1 - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT + cor0.col1 - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col1 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col0 + 72 * col1 * col0 + col0 FROM tab0 AS cor0
----
148656
244510
583306
query I rowsort
SELECT ALL + tab2.col1 + 55 FROM tab2, tab2 AS cor0
----
9 values hashing to bcf346291241327f0570698dc447a27e
query I rowsort
SELECT - col2 * - col1 - col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT + col0 + col0 * - col0 * tab1.col2 FROM tab1
----
-233408
-483
-614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT + 22 DIV - col1 + + tab1.col2 * + col2 FROM tab1
----
2916
3247
9215
skipif mysql # not compatible
query I rowsort label-8818
SELECT + 22 / - col1 + + tab1.col2 * + col2 FROM tab1
----
2916
3247
9215
query I rowsort
SELECT + col2 + col2 * + 7 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col2 * col1 + ( col2 + - col1 ) FROM tab2 AS cor0
----
1501
667
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT - + col1 + - cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8825
SELECT - + col1 + - cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 34 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-34
query I rowsort
SELECT ALL col1 + + 88 * + col2 FROM tab1 cor0
----
4778
5026
8461
query I rowsort
SELECT DISTINCT col2 + 82 AS col0 FROM tab1 AS cor0
----
136
139
178
query I rowsort
SELECT - col1 * ( + col0 * - col2 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - 21 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * col0 col1 FROM tab0
----
1958
528
770
query I rowsort
SELECT - 26 * col0 + + col1 FROM tab0 AS cor0
----
-2223
-538
-813
query I rowsort
SELECT - - col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - - 10 * - col2 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT + - col1 DIV col1 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8835
SELECT + - col1 / col1 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8836
SELECT + 38 DIV + col2 FROM tab0 AS cor0
----
0
1
38
skipif mysql # not compatible
query I rowsort label-8836
SELECT + 38 / + col2 FROM tab0 AS cor0
----
0
1
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT ALL - col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - col0 / - col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col1 * tab2.col1 + ( + col1 ) FROM tab2
----
306
3540
992
query I rowsort
SELECT DISTINCT 79 * + col1 AS col2 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT - 26 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab1 AS cor0
----
-7
query I rowsort
SELECT ALL 13 * cor0.col1 FROM tab1 cor0
----
130
169
338
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT ALL + col0 DIV + col0 col0 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + col0 / + col0 col0 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT ALL - - col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - - col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - col1 * - 86 AS col2 FROM tab0 AS cor0
----
7396
7826
8342
onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT ALL - col2 DIV + tab1.col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - col2 / + tab1.col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT ALL col1 DIV - cor0.col0 + + col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL col1 / - cor0.col0 + + col0 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT col2 * - 4 AS col2 FROM tab2 AS cor0
----
-104
-108
-152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8849
SELECT DISTINCT col1 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT col1 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * ( col1 * - ( cor0.col0 ) + + col0 ) col0 FROM tab0 cor0
----
-117601
-48993
-712972
query I rowsort
SELECT + + tab0.col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT col2 DIV + col0 + - col2 + - col0 AS col0 FROM tab0
----
-171
-36
-56
skipif mysql # not compatible
query I rowsort label-8853
SELECT col2 / + col0 + - col2 + - col0 AS col0 FROM tab0
----
-171
-36
-56
query I rowsort
SELECT ALL col2 * - col0 * col2 + + ( + col2 ) + 9 AS col2 FROM tab2
----
-114029
-5067
-52693
query I rowsort
SELECT col0 * + col0 - + col2 * + tab0.col2 FROM tab0
----
-513
1197
1224
query I rowsort
SELECT DISTINCT - tab1.col1 * - tab1.col0 + + tab1.col0 * 77 * - col2 AS col0 FROM tab1
----
-12396
-280256
-590320
query I rowsort
SELECT col2 - - col1 * - col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab1, tab0, tab1 cor0
----
56
query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab1 cor0
----
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8860
SELECT ALL CAST( + col0 AS SIGNED ) * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL CAST ( + col0 AS INTEGER ) * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT 48 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
3015
3744
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8862
SELECT ALL - CAST( NULL AS SIGNED ) * col1 * - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 * - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col1 * col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL - col0 * + 56 + col0 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT - col1 * col0 + + cor0.col2 + - col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8868
SELECT ALL - 91 + ( - col0 + - col2 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-92
-92
-97
skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - 91 + ( - col0 + - col2 ) / col1 AS col0 FROM tab2 AS cor0
----
-92
-92
-97
query I rowsort
SELECT + + col0 * 43 + - col1 FROM tab1 AS cor0
----
103
2742
3427
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 81 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8873
SELECT - - CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8873
SELECT - - CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 37 + col2 FROM tab2
----
63
64
75
query I rowsort
SELECT DISTINCT + col0 + 15 AS col1 FROM tab0
----
104
39
50
query I rowsort
SELECT ALL col1 * - col0 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - 9 FROM tab2, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT DISTINCT + tab2.col2 * 78 * col0 + col2 FROM tab2
----
14769
158210
234194
query I rowsort
SELECT col0 * + 31 + - col0 * - col0 + col2 FROM tab0
----
10762
1353
2311
query I rowsort
SELECT ALL tab0.col1 * - col1 * - col2 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + 68 + col1 FROM tab0 AS cor0
----
154
159
165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) + col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8883
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 - - col0 * + 55 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 - - col0 * + 55 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 13 * + col1 + - col2 FROM tab1 AS cor0
----
284
73
73
query I rowsort
SELECT ALL + col1 + col1 * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8886
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT DISTINCT - 17 * + col0 + + col2 DIV + 65 FROM tab1 AS cor0
----
-1088
-1359
-51
skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - 17 * + col0 + + col2 / + 65 FROM tab1 AS cor0
----
-1088
-1359
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 * - 68 AS col2 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT 9 * col2 + + col0 FROM tab1 AS cor0
----
489
577
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8891
SELECT CAST( - col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8891
SELECT CAST ( - col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
SELECT ALL + col1 * 31 + + col2 - - col1 DIV - col1 FROM tab2 AS cor0
----
1854
564
987
skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + col1 * 31 + + col2 - - col1 / - col1 FROM tab2 AS cor0
----
1854
564
987
query I rowsort
SELECT 30 * cor0.col1 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT - 49 * + cor0.col1 AS col0 FROM tab2 cor0
----
-1519
-2891
-833
query I rowsort
SELECT ALL col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + ( + col2 ) * + ( - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8898
SELECT DISTINCT col0 DIV col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT col0 / col0 + col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL + + 45 * col1 AS col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT col1 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL ( + col2 ) * col0 + + ( - col1 ) FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT 35 * col0 AS col2 FROM tab2 AS cor0
----
245
2730
2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT DISTINCT - col1 DIV - cor0.col1 AS col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - col1 / - cor0.col1 AS col2 FROM tab0 cor0
----
1
query I rowsort
SELECT + 80 * + cor0.col0 AS col2 FROM tab2 cor0
----
560
6240
6320
query I rowsort
SELECT ALL 98 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT - + cor0.col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col2 - - ( - col1 ) * col1 * ( - col2 * col0 ) FROM tab2 AS cor0
----
181656
7059494
867616
query I rowsort
SELECT DISTINCT col1 * + col0 - col2 * - col0 AS col1 FROM tab0 cor0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT col1 DIV - 79 + cor0.col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-8910
SELECT col1 / - 79 + cor0.col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 * tab1.col1 * ( 49 * + tab1.col1 ) FROM tab1
----
1788696
279300
794976
query I rowsort
SELECT - col0 + + tab1.col2 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT + + col2 * 94 AS col1 FROM tab2 cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT 2 FROM tab0, tab2 AS cor0
----
2
query I rowsort
SELECT DISTINCT - col2 * col1 + - 27 FROM tab0
----
-124
-2865
-7489
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8916
SELECT CAST( 7 AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
skipif mysql # not compatible
query I rowsort label-8916
SELECT CAST ( 7 AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL col1 + + 67 FROM tab0
----
153
158
164
query I rowsort
SELECT ALL cor1.col1 - tab0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8adecb85b709252c53b855885c9dc448
query I rowsort
SELECT + + 33 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1281
1437
603
query I rowsort
SELECT ( - col0 * tab1.col1 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 - 86 FROM tab0, tab0 AS cor0
----
9 values hashing to 453099f61985034558b645a8c6eda789
query I rowsort
SELECT + 70 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT DISTINCT - - 22 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1357
391
713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 53 + - col2 col2 FROM tab0 AS cor0
----
4525
4741
5140
query I rowsort
SELECT DISTINCT + + col0 + 40 FROM tab1 cor0
----
104
120
43
query I rowsort
SELECT + tab2.col0 * + col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 75 * + col1 * col1 AS col1 FROM tab1
----
-12675
-50700
-7500
query I rowsort
SELECT - 12 * col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT + - col1 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 5 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT ALL + - col0 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0, tab1 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT - col2 + ( - col0 ) * + col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + - col0 col1 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8935
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8935
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - 30 FROM tab2 AS cor0
----
-1140
-780
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 + col1 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT + tab2.col2 * col1 + col1 AS col2 FROM tab2
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT col0 + + 58 - col0 AS col1 FROM tab1
----
58
58
58
query I rowsort
SELECT ALL - col2 * col0 - - col0 * col1 * - col2 AS col1 FROM tab1
----
-107520
-40128
-4374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT col1 + col0 DIV + col1 AS col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-8942
SELECT col1 + col0 / + col1 AS col1 FROM tab2
----
21
31
60
query I rowsort
SELECT - col1 * ( col0 ) + - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT col2 * - 42 AS col0 FROM tab0
----
-1386
-3444
-42
query I rowsort
SELECT - - col2 + ( - 55 ) * col0 * - ( col1 ) - + cor0.col2 FROM tab0 AS cor0
----
113520
186725
445445
query I rowsort
SELECT ALL - + col1 * col1 + + col0 * col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT - col0 - col0 * - col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - - cor0.col2 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 57 col1 FROM tab1 cor0
----
-1482
-570
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-8950
SELECT - ( col0 ) + - col2 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8950
SELECT - ( col0 ) + - col2 / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - + 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT DISTINCT + + ( 19 ) + - col1 DIV col2 FROM tab0 AS cor0
----
-78
17
18
skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + + ( 19 ) + - col1 / col2 FROM tab0 AS cor0
----
-78
17
18
query I rowsort
SELECT - col2 + + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + + 77 FROM tab0 cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT ALL 64 DIV + col0 + col1 FROM tab0 AS cor0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL 64 / + col0 + col1 FROM tab0 AS cor0
----
88
91
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8956
SELECT DISTINCT + + col1 + + col2 - + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT + + col1 + + col2 - + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 * 29 + col2 * - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-126
-614262
-94611
onlyif mysql # use DIV operator for integer division
query I rowsort label-8959
SELECT ALL - col2 * cor0.col0 + - col0 DIV + 15 FROM tab2 AS cor0
----
-189
-2033
-3007
skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - col2 * cor0.col0 + - col0 / + 15 FROM tab2 AS cor0
----
-189
-2033
-3007
query I rowsort
SELECT + col2 * col1 * col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + 78 * cor0.col0 FROM tab1 cor0
----
234
4992
6240
query I rowsort
SELECT - 56 * - col0 FROM tab2 AS cor0
----
392
4368
4424
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 * - cor0.col2 * col2 col0 FROM tab1 cor0
----
-202752
-64152
-71478
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + cor0.col2 * + col0 + col1 FROM tab1 cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - - col2 + cor0.col0 AS col2 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + ( - col2 ) ) col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1
----
44
query I rowsort
SELECT DISTINCT - col1 - tab1.col1 AS col2 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL col1 * col2 - + col2 * + 2 * + col1 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 5 - ( - col0 ) FROM tab2
----
12
83
84
query I rowsort
SELECT + 94 + 37 + col0 FROM tab1
----
134
195
211
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT col2 DIV ( col0 ) AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8974
SELECT col2 / ( col0 ) AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + ( - cor0.col2 ) AS col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT col2 * col0 - 64 * 30 FROM tab2 cor0
----
-1731
108
1082
query I rowsort
SELECT ( + 64 ) FROM tab0
----
64
64
64
query I rowsort
SELECT ( + col2 ) * col1 * col1 + - 37 * + col1 AS col1 FROM tab0
----
240886
5820
675675
onlyif mysql # use DIV operator for integer division
query I rowsort label-8979
SELECT 28 DIV + tab0.col0 col0 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8979
SELECT 28 / + tab0.col0 col0 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT - + 74 DIV - 64 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8980
SELECT - + 74 / - 64 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT col1 - col0 * - col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - col0 + col2 + + 0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col0 * col2 + 0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - 4 + col0 * tab1.col2 + col2 AS col2 FROM tab1
----
212
3701
7772
query I rowsort
SELECT tab2.col2 * + col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT 89 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
29
skipif mysql # not compatible
query I rowsort label-8986
SELECT 89 / col0 AS col1 FROM tab1 AS cor0
----
1
1
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + 86 col1 FROM tab0 AS cor0
----
-11
-2752
-7376
query I rowsort
SELECT col2 * - col2 + - ( cor0.col1 ) - col0 FROM tab1 AS cor0
----
-2945
-3323
-9309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 * col1 col2 FROM tab2 AS cor0
----
-1683
-3069
-5841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 * + col0 col0 FROM tab1 cor0
----
-1664
-2080
-78
skipif mysql # not compatible
query I rowsort
SELECT + + col0 * - col2 - CAST ( col2 * col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
-14596
-1584
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8992
SELECT - - col0 * col1 - col2 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
1039
60
640
skipif mysql # not compatible
query I rowsort label-8992
SELECT - - col0 * col1 - col2 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
1039
60
640
query I rowsort
SELECT DISTINCT - col2 + - col0 * - ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-106135
-1546
-358982
onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT ALL cor0.col0 * cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL cor0.col0 * cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
12
6
87
query I rowsort
SELECT - col0 * col1 - 70 * + col2 FROM tab0 AS cor0
----
-13839
-3465
-4374
query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + 9 * - col1 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( + col1 AS REAL ) AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col0 + + 86 * - col1 AS col2 FROM tab0
----
-7372
-7737
-8307
query I rowsort
SELECT DISTINCT col1 * - ( col0 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 + - ( + 96 + col1 ) AS col0 FROM tab2 AS cor0
----
-100
-129
-75
query I rowsort
SELECT ALL + - col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - col2 * col0 - cor0.col2 * - col2 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT ALL - col0 * 11 AS col2 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT - + col1 * + col1 + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 71 + + col0 + col1 col2 FROM tab2 AS cor0
----
1955
1983
2794
onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT - col0 * - cor0.col1 + 71 DIV col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9008
SELECT - col0 * - cor0.col1 + 71 / col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT - col1 * CAST( NULL AS SIGNED ) * + ( - cor0.col0 + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9009
SELECT - col1 * CAST ( NULL AS INTEGER ) * + ( - cor0.col0 + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9010
SELECT ALL CAST( NULL AS SIGNED ) / - cor0.col1 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL CAST ( NULL AS INTEGER ) / - cor0.col1 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - + ( - col1 + + 63 ) AS col0 FROM tab0 AS cor0
----
117
47
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT DISTINCT + + 77 + + col2 + + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
112
160
175
skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + + 77 + + col2 + + cor0.col1 / + col2 FROM tab0 AS cor0
----
112
160
175
query I rowsort
SELECT DISTINCT - col1 + col1 AS col2 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9014
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9014
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 7 AS col2 FROM tab1 AS cor0
----
-7
-7
-7
query I rowsort
SELECT - ( cor0.col1 + ( + cor0.col0 ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to daf01be24671583522e54ae801342b76
query I rowsort
SELECT col0 + + col1 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * + cor0.col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col0 FROM tab2 AS cor0
----
58
query I rowsort
SELECT ( col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col1 * 67 AS col1 FROM tab1 cor0
----
1742
670
871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + 7 + - ( - col1 ) FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2
----
88
query I rowsort
SELECT DISTINCT + col0 * 18 AS col2 FROM tab0
----
1602
432
630
query I rowsort
SELECT ALL - col1 * 28 AS col0 FROM tab2
----
-1652
-476
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9028
SELECT + CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-9028
SELECT + CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + + 49 AS col0 FROM tab2 cor0
----
49
49
49
query I rowsort
SELECT DISTINCT - - ( ( - col0 ) ) * 32 + - col0 AS col2 FROM tab0 AS cor0
----
-1155
-2937
-792
query I rowsort
SELECT DISTINCT ( - 26 ) + + col2 * 32 AS col0 FROM tab1 cor0
----
1702
1798
3046
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9032
SELECT - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 10 * cor0.col1 AS col0 FROM tab0 AS cor0
----
860
910
970
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab2 cor0
----
17
31
59
query I rowsort
SELECT + col2 + ( col1 + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1513
2134
727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT + col0 DIV + ( col0 ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9039
SELECT + col0 / + ( col0 ) AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 + - col0 + ( - col0 ) * - col2 * + col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL tab1.col0 + tab1.col0 + col2 AS col1 FROM tab1
----
185
256
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT ALL 11 DIV - tab1.col0 + col2 * + 72 FROM tab1
----
3885
4104
6912
skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 11 / - tab1.col0 + col2 * + 72 FROM tab1
----
3885
4104
6912
query I rowsort
SELECT DISTINCT + col2 * tab0.col1 * + 88 FROM tab0
----
249744
656656
8536
query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col2 * 12 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT col0 * - ( - col2 + - tab1.col2 ) AS col2 FROM tab1
----
15360
324
7296
query I rowsort
SELECT - col0 + + cor0.col0 * col0 - col1 AS col0 FROM tab0 AS cor0
----
1093
466
7741
query I rowsort
SELECT ( - col1 ) * - cor0.col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col0 * col0 + cor0.col2 AS col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col2 + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT DISTINCT - col0 * col0 DIV - col0 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - col0 * col0 / - col0 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col1 col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT 73 + col2 + col1 AS col2 FROM tab0 AS cor0
----
171
192
246
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - 56 FROM tab2 AS cor0
----
56
query I rowsort
SELECT ALL + col2 * + col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 * col0 AS col1 FROM tab0 cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9060
SELECT ALL col1 + col0 * + col2 * + col2 - col1 DIV col1 col1 FROM tab2
----
114092
5133
52786
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL col1 + col0 * + col2 * + col2 - col1 / col1 col1 FROM tab2
----
114092
5133
52786
onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT ALL + col2 * + col1 - col0 DIV - col1 FROM tab1
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + col2 * + col1 - col0 / - col1 FROM tab1
----
1254
1404
576
query I rowsort
SELECT + ( - col2 ) * + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 96 + col1 AS col0 FROM tab0 AS cor0
----
-10
-5
1
query I rowsort
SELECT - 64 AS col2 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT ALL + col0 * + col2 * - col1 + col0 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL - ( col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 * 43 * col1 FROM tab2
----
27778
35991
65962
query I rowsort
SELECT 16 FROM tab1, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab2
----
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT col0 DIV 68 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9070
SELECT col0 / 68 col2 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL - col2 * - 48 AS col1 FROM tab2
----
1248
1296
1824
query I rowsort
SELECT + 58 - col1 AS col0 FROM tab2
----
-1
27
41
query I rowsort
SELECT + 40 - + ( col1 + col0 ) FROM tab0
----
-140
-70
-92
query I rowsort
SELECT ALL - cor0.col1 + + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <> + col1
----
query I rowsort
SELECT + col2 * + tab1.col0 * col1 - col0 * + col1 AS col2 FROM tab1
----
35840
4134
98800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * col2 col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - tab1.col0 * + col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 + - col0 + + col2 * + col1 * + col0 AS col1 FROM tab2
----
119633
50972
5883
query I rowsort
SELECT DISTINCT tab0.col2 * + col0 * col2 AS col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col0 + + col2 * - col1 * col2 AS col0 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT ALL col0 * col1 * col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT col0 * col1 * - tab1.col0 FROM tab1
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-9084
SELECT ALL col0 * - col0 DIV col0 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL col0 * - col0 / col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * + col2 + + tab0.col2 col1 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ALL col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9088
SELECT cor0.col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT + col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9089
SELECT + col0 / col1 AS col1 FROM tab2 cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9090
SELECT DISTINCT - cor0.col1 + + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - cor0.col1 + + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT DISTINCT col2 * tab0.col2 + - tab0.col1 AS col0 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL - col0 * + tab0.col1 + + col0 * col0 AS col1 FROM tab0
----
-1488
-178
-2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT - col2 + tab1.col2 * col2 DIV tab1.col1 FROM tab1
----
267
58
612
skipif mysql # not compatible
query I rowsort label-9093
SELECT - col2 + tab1.col2 * col2 / tab1.col1 FROM tab1
----
267
58
612
query I rowsort
SELECT DISTINCT col2 + + tab2.col1 * col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + - cor0.col0 * + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - col0 * col1 * - col1 + - col1 FROM tab0
----
177418
329218
736918
query I rowsort
SELECT ALL + col1 + + col1 * - col2 * col2 AS col0 FROM tab0
----
-611793
-93568
0
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 FROM tab0 cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 * + col2 + - col2 * col2 col1 FROM tab2 AS cor0
----
-23328
-25992
-40560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT ALL col1 DIV col2 - col2 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL col1 / col2 - col2 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col1 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - col2 * 50 AS col2 FROM tab1
----
-2700
-2850
-4800
query I rowsort
SELECT DISTINCT 31 + - 27 FROM tab2, tab0 cor0
----
4
query I rowsort
SELECT DISTINCT ( 49 ) AS col0 FROM tab0, tab1 AS cor0
----
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT DISTINCT + col2 DIV - col0 AS col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + col2 / - col0 AS col0 FROM tab2
----
-3
0
query I rowsort
SELECT + 62 + 5 + + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d707ef9c98c6799c38d1f0842a97d741
query I rowsort
SELECT - col0 + col0 * - col2 AS col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT + col0 + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT col2 + - col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1449
-591
-779
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9112
SELECT - CAST( col0 AS SIGNED ) - - col1 AS col0 FROM tab1
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-9112
SELECT - CAST ( col0 AS INTEGER ) - - col1 AS col0 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9113
SELECT col1 * + col0 + - col1 / col1 + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9113
SELECT col1 * + col0 + - col1 / col1 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 67 + + col0 AS col2 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT - col2 * - cor0.col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL - col2 + col1 AS col1 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + ( col0 * + col0 ) - ( - col0 ) FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT DISTINCT + - 69 DIV - col0 + col0 FROM tab2 AS cor0
----
16
78
79
skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT + - 69 / - col0 + col0 FROM tab2 AS cor0
----
16
78
79
query I rowsort
SELECT col1 * + col1 + - 42 FROM tab1 AS cor0
----
127
58
634
query I rowsort
SELECT DISTINCT + col1 + col1 + ( col0 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-1892
-3201
-7917
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + - col0 + + col1 * col0 * 12 + col2 FROM tab2 AS cor0
----
16075
2624
55172
query I rowsort
SELECT ALL - ( - col0 ) * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * cor0.col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT ALL + ( col0 ) + + col2 * - col1 + - cor0.col1 * - 14 FROM tab2 AS cor0
----
-329
-396
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT - cor0.col1 * col0 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-9128
SELECT - cor0.col1 * col0 + col2 / col0 AS col1 FROM tab1 AS cor0
----
-1039
-60
-640
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT - + 26 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9132
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9132
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col0 * - col1 + - col0 FROM tab2
----
-1422
-224
-4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9134
SELECT col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9134
SELECT col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT - col0 * col2 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col1 + 37 FROM tab2 AS cor0
----
54
68
96
query I rowsort
SELECT 83 * + tab0.col1 * col0 AS col0 FROM tab0
----
171312
281785
672217
query I rowsort
SELECT ALL 15 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
query I rowsort
SELECT 99 * + 33 AS col2 FROM tab0
----
3267
3267
3267
query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + ( - col0 ) + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col0 + + cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9144
SELECT ALL + - ( + ( col0 ) ) * CAST( col0 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + - ( + ( col0 ) ) * CAST ( col0 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( 45 ) FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT col2 * + cor0.col1 - col1 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 62 * + col0 col0 FROM tab1 AS cor0
----
-39680
-4836
-64480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL - col1 + + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT 52 * - col2 * - col1 + col2 FROM tab0
----
147609
388106
5045
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT ALL + col0 + col1 DIV col0 AS col1 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + col0 + col1 / col0 AS col1 FROM tab1
----
11
64
80
query I rowsort
SELECT - 92 * + col0 AS col2 FROM tab0
----
-2208
-3220
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9153
SELECT col1 DIV - col0 + + 26 FROM tab1 AS cor0
----
18
26
26
skipif mysql # not compatible
query I rowsort label-9153
SELECT col1 / - col0 + + 26 FROM tab1 AS cor0
----
18
26
26
query I rowsort
SELECT + + cor0.col2 + col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 23 + 75 AS col2 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL 57 * - 78 FROM tab1
----
-4446
-4446
-4446
query I rowsort
SELECT + ( col2 ) * + col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT col0 * - 60 * col2 FROM tab0 AS cor0
----
-2100
-437880
-47520
query I rowsort
SELECT + + col0 * col0 - 41 AS col0 FROM tab1 AS cor0
----
-32
4055
6359
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col1 col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT - col1 * - col1 - + col1 * - ( - col1 ) AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - tab0.col2 * ( + col0 ) + - tab0.col1 FROM tab0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT DISTINCT + col0 DIV + 38 + + tab1.col1 FROM tab1
----
11
15
26
skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + col0 / + 38 + + tab1.col1 FROM tab1
----
11
15
26
query I rowsort
SELECT + col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT ALL + cor0.col1 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 92 ) * col0 * cor0.col0 col2 FROM tab0 AS cor0
----
112700
52992
728732
query I rowsort
SELECT ( 1 + tab0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to c86fbf0880dadcf9d3206018ed8a57ad
query I rowsort
SELECT DISTINCT col0 * + 10 AS col0 FROM tab2
----
70
780
790
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 58 FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT + col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab0 cor0
----
42
42
42
query I rowsort
SELECT - 97 * - col1 + + col2 FROM tab2 AS cor0
----
1687
3034
5749
query I rowsort
SELECT + + col2 + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT ( - ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + - col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL - + col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + - 79 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL + ( - col0 + col1 ) * + 12 FROM tab1
----
-648
-804
276
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * col2 col2 FROM tab0
----
2013
5002
61
query I rowsort
SELECT DISTINCT + 9 * + 9 FROM tab1
----
81
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 59 AS REAL ) FROM tab1
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT - + col2 DIV - ( + 65 ) + col0 AS col1 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-9190
SELECT - + col2 / - ( + 65 ) + col0 AS col1 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT ALL + - cor0.col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col0 + - col2 + + col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 + col1 * col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT col2 * + col1 + - 61 * col2 FROM tab2
----
-1672
-52
-810
query I rowsort
SELECT DISTINCT ( col1 ) - - ( col0 ) AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT + col0 * 22 AS col0 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT DISTINCT - cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL col0 + 81 AS col0 FROM tab2 cor0
----
159
160
88
query I rowsort
SELECT ALL + + col1 * - col0 + 11 AS col2 FROM tab1 AS cor0
----
-1029
-629
-67
query I rowsort
SELECT ALL + col1 * 7 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
191
4166
6491
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9202
SELECT DISTINCT - col1 * col1 + ( + col0 ) - CAST( NULL AS SIGNED ) * + 95 * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - col1 * col1 + ( + col0 ) - CAST ( NULL AS INTEGER ) * + 95 * + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( tab0.col0 + ( + col0 ) ) FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0 cor0
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT + + col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9205
SELECT + + col0 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 13 + + cor0.col1 FROM tab2 AS cor0
----
30
44
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 89 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
89
query I rowsort
SELECT + - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 59 col1 FROM tab0 AS cor0
----
141
60
92
query I rowsort
SELECT + col0 * 89 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL + col0 * 84 AS col2 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT DISTINCT - col2 * 49 + col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT ALL + col0 + + col2 - col1 FROM tab1 cor0
----
111
163
31
query I rowsort
SELECT col2 * 91 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT - cor0.col2 + ( 34 ) FROM tab1 AS cor0
----
-20
-23
-62
query I rowsort
SELECT ALL + col1 - + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 + 13 AS col1 FROM tab1 AS cor0
----
16
77
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col1 FROM tab0
----
69
69
69
query I rowsort
SELECT + + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col2 - col2 AS col0 FROM tab1
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 - + col1 * + col2 col2 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT DISTINCT col0 + tab2.col0 * + tab2.col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL col1 + col0 - + col2 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT col1 DIV col0 + col2 FROM tab2
----
26
31
38
skipif mysql # not compatible
query I rowsort label-9225
SELECT col1 / col0 + col2 FROM tab2
----
26
31
38
query I rowsort
SELECT - col1 + + col2 + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT col0 + col1 + - col1 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT col1 * + col0 AS col0 FROM tab1 WHERE NOT - col1 - + col2 = NULL
----
query I rowsort
SELECT ALL - col0 * + tab1.col0 AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN + col0 + col0 AND NULL
----
query I rowsort
SELECT - col2 - col0 * + col2 AS col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT + col0 - col0 * - col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col1 * - col0 + + col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + col0 + + col2 * - col2 AS col1 FROM tab1
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT ALL + col2 DIV + col0 + col1 AS col1 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + col2 / + col0 + col1 AS col1 FROM tab2
----
17
34
59
query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 + col1 * + col2 )
----
query I rowsort
SELECT DISTINCT - col1 * col2 * tab2.col1 AS col0 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * - tab0.col0 col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 77 + col0 FROM tab2 AS cor0
----
155
156
84
query I rowsort
SELECT + col1 + col1 * + ( - col0 ) * col2 AS col0 FROM tab2 cor0
----
-119593
-51017
-5828
query I rowsort
SELECT - cor0.col1 + col2 + + 16 FROM tab1 AS cor0
----
44
63
99
query I rowsort
SELECT col0 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL + col2 * 2 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9243
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * - col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * - col1 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT + 12 + 64 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + 8 + - col2 FROM tab2 AS cor0
----
-18
-19
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9246
SELECT ALL + ( col2 ) * + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + ( col2 ) * + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 31 * cor0.col0 + - 30 AS col0 FROM tab1 AS cor0
----
-123
-2014
-2510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT + + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9248
SELECT + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT ALL - ( - col2 ) * col0 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT ALL + - ( + col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - + 3 + col1 * col2 FROM tab0 cor0
----
2835
7459
94
query I rowsort
SELECT + - col1 - + 77 AS col2 FROM tab0 AS cor0
----
-163
-168
-174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - col2 col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT - - col1 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT cor2.col0 FROM tab1, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT col1 * - 53 AS col0 FROM tab0 AS cor0
----
-4558
-4823
-5141
onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT DISTINCT tab1.col2 DIV col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT tab1.col2 / col0 AS col2 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - 6 * - col2 col0 FROM tab2 AS cor0
----
1134
12168
18012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT col1 + - CAST( NULL AS SIGNED ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9261
SELECT col1 + - CAST ( NULL AS INTEGER ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + 31 FROM tab2 AS cor0
----
109
110
38
query I rowsort
SELECT + col2 * + col0 - - tab0.col1 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT + 70 FROM tab1, tab0, tab1 cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT - tab2.col2 + col0 DIV + ( + col1 ) AS col2 FROM tab2
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-9265
SELECT - tab2.col2 + col0 / + ( + col1 ) AS col2 FROM tab2
----
-25
-27
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab1
----
54
54
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col0 FROM tab2
----
10
query I rowsort
SELECT ALL + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT - col2 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9270
SELECT - col2 / - col0 AS col2 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + 48 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
48
query I rowsort
SELECT + + 12 AS col1 FROM tab1 cor0
----
12
12
12
query I rowsort
SELECT cor0.col2 * + ( - col2 ) * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-17498
-19676
-54793
onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT ALL - 27 * tab0.col2 DIV col0 - - col0 * + 49 FROM tab0
----
1139
1715
4337
skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - 27 * tab0.col2 / col0 - - col0 * + 49 FROM tab0
----
1139
1715
4337
query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9276
SELECT ALL - cor0.col2 * + col1 / CAST( NULL AS SIGNED ) + ( cor0.col0 ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - cor0.col2 * + col1 / CAST ( NULL AS INTEGER ) + ( cor0.col0 ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 65 * + col2 + - 21 AS col2 FROM tab2 AS cor0
----
-1711
-1776
-2491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + col2 * tab1.col0 col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + cor0.col2 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT DISTINCT + ( - 28 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-28
query I rowsort
SELECT DISTINCT - col1 * col2 + ( col0 ) FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT col2 * cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT + tab1.col2 DIV - col0 + CAST( 35 AS SIGNED ) FROM tab1
----
17
34
35
skipif mysql # not compatible
query I rowsort label-9283
SELECT + tab1.col2 / - col0 + CAST ( 35 AS INTEGER ) FROM tab1
----
17
34
35
query I rowsort
SELECT ALL 26 AS col1 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT ALL - col1 + - col2 * + 82 * + col2 AS col1 FROM tab2 AS cor0
----
-118425
-55491
-59809
query I rowsort
SELECT - 23 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1467
-699
-752
query I rowsort
SELECT + ( col0 ) + col1 - col2 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT - 81 + col0 - cor0.col2 FROM tab1 AS cor0
----
-132
-74
-97
query I rowsort
SELECT + ( col2 ) * - 15 + 23 * - col1 * + ( + 99 ) AS col2 FROM tab0 AS cor0
----
-196317
-208437
-220884
query I rowsort
SELECT DISTINCT + col2 + - col1 * + col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col0 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT ALL - 31 + col0 FROM tab1 AS cor0
----
-28
33
49
query I rowsort
SELECT ALL + col2 * + col2 + - ( - col0 ) AS col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT col0 * + col2 * - ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-1292
-158125
-237141
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT DISTINCT - col1 DIV - 7 FROM tab2 AS cor0
----
2
4
8
skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - col1 / - 7 FROM tab2 AS cor0
----
2
4
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT col2 + - col0 * col0 FROM tab1
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT col2 + - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9298
SELECT col2 + - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 FROM tab2
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) - - col0 * ( col1 ) col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT 12 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9302
SELECT 12 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT ALL - CAST( col0 AS SIGNED ) * cor0.col0 DIV - 61 FROM tab0 cor0
----
129
20
9
skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - CAST ( col0 AS INTEGER ) * cor0.col0 / - 61 FROM tab0 cor0
----
129
20
9
query I rowsort
SELECT ALL - cor0.col0 + col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9305
SELECT ALL - CAST( cor0.col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( - 10 ) * + col0 AS col1 FROM tab1 AS cor0
----
-30
-640
-800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col0 + tab1.col0 - - tab1.col1 AS col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * - 55 - col1 col2 FROM tab1
----
2229
2242
2245
query I rowsort
SELECT DISTINCT + col2 + + col2 - col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * - col0 + 39 col1 FROM tab0 AS cor0
----
1647
2384
6002
query I rowsort
SELECT - 29 + + col2 AS col1 FROM tab0 AS cor0
----
-28
4
53
query I rowsort
SELECT ALL + - 15 FROM tab0 cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ( 88 ) + col1 + - ( + col1 + col2 ) FROM tab0
----
55
6
87
query I rowsort
SELECT - ( ( col1 ) ) * + 46 + col1 * - col2 FROM tab1
----
-1030
-1846
-2600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( tab0.col2 ) col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 * - col2 - + tab2.col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT - + 30 + + col2 * col2 + + 62 FROM tab1 cor0
----
2948
3281
9248
query I rowsort
SELECT 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0
query I rowsort
SELECT ALL - 1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * - col0 ) col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL 39 * + col0 FROM tab0
----
1365
3471
936
query I rowsort
SELECT DISTINCT + 54 + cor0.col0 FROM tab2, tab0, tab1 cor0
----
118
134
57
query I rowsort
SELECT col0 * 44 + cor0.col1 FROM tab0 AS cor0
----
1142
1637
4007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT - ( + 89 ) FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab1
----
54
query I rowsort
SELECT - + 84 + col0 * 83 FROM tab1 AS cor0
----
165
5228
6556
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT ALL - col0 * + col1 + 56 DIV - col1 col2 FROM tab2 cor0
----
-1346
-218
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - col0 * + col1 + 56 / - col1 col2 FROM tab2 cor0
----
-1346
-218
-4602
query I rowsort
SELECT + + ( + col1 ) * - 58 + col1 AS col1 FROM tab2 AS cor0
----
-1767
-3363
-969
query I rowsort
SELECT ALL - - col2 * col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT DISTINCT - + col1 - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col1 + + ( - col1 ) AS col0 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT DISTINCT + cor0.col2 + + col2 DIV ( cor0.col0 ) FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + cor0.col2 + + col2 / ( cor0.col0 ) FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT + - col2 * col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT DISTINCT - cor0.col0 DIV - col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - cor0.col0 / - col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col1 - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9340
SELECT ALL - col1 + col2 DIV - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL - col1 + col2 / - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - + col1 col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 60 col2 FROM tab2 AS cor0
----
1560
1620
2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT DISTINCT - col1 * col1 + 78 DIV + col0 FROM tab2 AS cor0
----
-289
-3480
-950
skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - col1 * col1 + 78 / + col0 FROM tab2 AS cor0
----
-289
-3480
-950
query I rowsort
SELECT + cor0.col0 * - col0 + + col0 AS col0 FROM tab1 cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT DISTINCT + col1 + 62 DIV col0 FROM tab0 AS cor0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + col1 + 62 / col0 FROM tab0 AS cor0
----
88
91
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT - 66 + col2 DIV + ( + col1 ) + col2 AS col1 FROM tab1
----
-10
-4
37
skipif mysql # not compatible
query I rowsort label-9346
SELECT - 66 + col2 / + ( + col1 ) + col2 AS col1 FROM tab1
----
-10
-4
37
query I rowsort
SELECT 65 + col2 AS col0 FROM tab2
----
103
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT - - col2 * ( + 55 ) DIV + col1 - 42 * 44 AS col0 FROM tab2 AS cor0
----
-1726
-1801
-1824
skipif mysql # not compatible
query I rowsort label-9348
SELECT - - col2 * ( + 55 ) / + col1 - 42 * 44 AS col0 FROM tab2 AS cor0
----
-1726
-1801
-1824
query I rowsort
SELECT + cor0.col2 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col1 + 60 AS col1 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT ALL + cor0.col2 + + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9352
SELECT CAST( NULL AS SIGNED ) + - 61 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9352
SELECT CAST ( NULL AS INTEGER ) + - 61 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 * 20 FROM tab0
----
-1720
-1820
-1940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9354
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9354
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - cor0.col1 * col0 col2 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT 66 * - cor0.col0 + - cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
-199
-4225
-5281
skipif mysql # not compatible
query I rowsort label-9356
SELECT 66 * - cor0.col0 + - cor0.col0 / col0 AS col0 FROM tab1 cor0
----
-199
-4225
-5281
query I rowsort
SELECT col0 * col0 - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - col2 - - col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col2 + ( cor0.col1 + + ( + 47 ) ) FROM tab2 AS cor0
----
102
105
132
query I rowsort
SELECT ALL col1 + + col2 * - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT DISTINCT - 18 + + 20 AS col0 FROM tab1 AS cor0
----
2
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL + - col0 * + 16 FROM tab2 AS cor0
----
-112
-1248
-1264
onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT col0 DIV col1 - col0 * + col0 FROM tab2 AS cor0
----
-49
-6083
-6237
skipif mysql # not compatible
query I rowsort label-9364
SELECT col0 / col1 - col0 * + col0 FROM tab2 AS cor0
----
-49
-6083
-6237
query I rowsort
SELECT - 46 AS col1 FROM tab1 cor0
----
-46
-46
-46
query I rowsort
SELECT - - col2 * + col2 * col1 - + col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT - 97 * col2 AS col0 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT + - col1 * + col0 * + 57 FROM tab0 AS cor0
----
-117648
-193515
-461643
query I rowsort
SELECT - + ( - col1 ) * - 37 FROM tab1 AS cor0
----
-370
-481
-962
query I rowsort
SELECT ALL + 19 AS col0 FROM tab2
----
19
19
19
query I rowsort
SELECT DISTINCT - 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-43
query I rowsort
SELECT - ( ( cor0.col2 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - ( col1 + ( 30 ) * col1 ) FROM tab1
----
-310
-403
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9374
SELECT + col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9374
SELECT + col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 90 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - 93 AS col1 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 78 * col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT + + col1 + - 78 FROM tab0 AS cor0
----
13
19
8
query I rowsort
SELECT - + 27 + + col1 FROM tab2 AS cor0
----
-10
32
4
query I rowsort
SELECT - 47 * col0 AS col2 FROM tab2 AS cor0
----
-329
-3666
-3713
query I rowsort
SELECT 63 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + 58 * col2 + col1 AS col0 FROM tab0 AS cor0
----
155
2000
4847
query I rowsort
SELECT ALL ( + 5 ) FROM tab1 AS cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT DISTINCT CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + 84 AS col0 FROM tab2 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9388
SELECT tab2.col0 DIV 83 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9388
SELECT tab2.col0 / 83 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - + 23 + col1 - 8 AS col0 FROM tab0 cor0
----
55
60
66
query I rowsort
SELECT ( col0 + + tab1.col1 ) AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + ( col0 ) * - cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - 66 + + 77 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT - col2 - col2 AS col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT ALL + + col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + + col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL - col1 + 36 AS col0 FROM tab2 AS cor0
----
-23
19
5
query I rowsort
SELECT - ( + col2 ) * 16 + col0 * col2 AS col1 FROM tab0
----
19
264
5986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9398
SELECT col1 * CAST( NULL AS SIGNED ) * col0 + - col1 - 45 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9398
SELECT col1 * CAST ( NULL AS INTEGER ) * col0 + - col1 - 45 AS col2 FROM tab1
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT col0 DIV tab2.col0 + ( - col1 * - col2 ) - - ( col0 ) * + CAST( col0 AS SIGNED ) FROM tab2
----
6888
7619
887
skipif mysql # not compatible
query I rowsort label-9400
SELECT col0 / tab2.col0 + ( - col1 * - col2 ) - - ( col0 ) * + CAST ( col0 AS INTEGER ) FROM tab2
----
6888
7619
887
query I rowsort
SELECT DISTINCT - col0 + - 85 AS col2 FROM tab1
----
-149
-165
-88
skipif mysql # not compatible
query I rowsort
SELECT + tab0.col0 * CAST ( 18 AS REAL ) AS col0 FROM tab0
----
1602
432
630
query I rowsort
SELECT DISTINCT - col1 - col1 AS col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT DISTINCT col0 + ( - col2 ) DIV - tab0.col2 - - 42 FROM tab0
----
132
67
78
skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT col0 + ( - col2 ) / - tab0.col2 - - 42 FROM tab0
----
132
67
78
query I rowsort
SELECT + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col0 - - ( col2 ) * - cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT - 61 * - 73 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 3db5771de65630f6121c14c977f52151
query I rowsort
SELECT + - col0 - + 41 AS col1 FROM tab2 AS cor0
----
-119
-120
-48
query I rowsort
SELECT DISTINCT + cor0.col1 * ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + col2 * + 92 + + 50 FROM tab0 AS cor0
----
142
3086
7594
query I rowsort
SELECT ALL - cor0.col0 * + 88 + + cor0.col2 FROM tab2 AS cor0
----
-589
-6838
-6914
query I rowsort
SELECT 14 * 58 FROM tab1, tab2 AS cor0
----
9 values hashing to af386fdd423e5cb6a51133a34e7fb39b
query I rowsort
SELECT - col2 + 61 + + 68 * - col0 * ( col2 * + col2 ) FROM tab0
----
-1777220
-2320
-40693669
query I rowsort
SELECT ALL + col2 * cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + + 67 AS col0 FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - ( 16 ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-160
-208
-416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT ALL col1 + col1 * col0 * + CAST( NULL AS SIGNED ) + - 41 * tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL col1 + col1 * col0 * + CAST ( NULL AS INTEGER ) + - 41 * tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 FROM tab2, tab0, tab2 cor0, tab1
----
81 values hashing to adaea38eae032c1639715f21831dd376
onlyif mysql # use DIV operator for integer division
query I rowsort label-9422
SELECT ALL + - ( + cor0.col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + - ( + cor0.col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 46 + - cor0.col0 AS col0 FROM tab1 cor0
----
-18
-34
43
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9425
SELECT DISTINCT + 16 * col2 DIV + col1 FROM tab2 AS cor0
----
13
35
7
skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + 16 * col2 / + col1 FROM tab2 AS cor0
----
13
35
7
query I rowsort
SELECT + col1 * 97 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - 54 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe
query I rowsort
SELECT ALL cor0.col2 * 50 FROM tab2 AS cor0
----
1300
1350
1900
onlyif mysql # use DIV operator for integer division
query I rowsort label-9430
SELECT 64 + + col1 DIV col2 FROM tab0
----
161
65
66
skipif mysql # not compatible
query I rowsort label-9430
SELECT 64 + + col1 / col2 FROM tab0
----
161
65
66
query I rowsort
SELECT - - 82 * col1 FROM tab1 cor0
----
1066
2132
820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * col2 col2 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT DISTINCT col0 * - col0 * - 69 AS col1 FROM tab1 AS cor0
----
282624
441600
621
query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - - 20 * + col2 * - col1 FROM tab0 AS cor0
----
-149240
-1940
-56760
query I rowsort
SELECT - + 79 * - col2 AS col0 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT DISTINCT + - 30 * + col2 + col1 FROM tab1 AS cor0
----
-1594
-1700
-2867
query I rowsort
SELECT DISTINCT - - col2 + 68 FROM tab0 cor0
----
101
150
69
query I rowsort
SELECT DISTINCT col2 + + col2 * 1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9440
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * - ( - col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col0 + ( - col2 ) * col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL col1 + 18 * col1 FROM tab2 AS cor0
----
1121
323
589
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT DISTINCT + col2 + + 41 DIV cor0.col0 FROM tab0 cor0
----
2
34
82
skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + col2 + + 41 / cor0.col0 FROM tab0 cor0
----
2
34
82
query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + col1 - + 19 FROM tab0 AS cor0
----
67
72
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * col2 col2 FROM tab0
----
2838
7052
86
query I rowsort
SELECT - - 24 - - col0 AS col0 FROM tab1 cor0
----
104
27
88
query I rowsort
SELECT + ( - col1 ) + + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + ( - ( + col2 ) ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + 50 + col2 AS col2 FROM tab0
----
132
51
83
query I rowsort
SELECT col0 + + col0 + col0 * 60 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT - 57 * col0 * + ( + col0 ) + + tab0.col0 + + col2 FROM tab0
----
-32775
-451326
-69789
query I rowsort
SELECT ALL 55 * col1 AS col2 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT ALL - cor0.col0 * + col0 + + col0 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col1 * col1 + - col1 + - col1 FROM tab0 AS cor0
----
-7568
-8463
-9603
query I rowsort
SELECT ALL - - 16 * + col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL - 74 FROM tab2
----
-74
-74
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL ( - col2 ) + + col2 * - ( 17 ) FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - col2 + - col2 * CAST ( - col0 + - col1 AS REAL ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + 22 + - cor0.col1 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-110
-7367
-856
onlyif mysql # use DIV operator for integer division
query I rowsort label-9466
SELECT DISTINCT + + 21 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + + 21 / - col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col1 * col2 + + col2 * 40 FROM tab2 AS cor0
----
1917
2166
2574
query I rowsort
SELECT ALL - - col0 * + 41 AS col2 FROM tab2 AS cor0
----
287
3198
3239
query I rowsort
SELECT DISTINCT - + 32 * col2 + col2 AS col0 FROM tab2 cor0
----
-1178
-806
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9470
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9470
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 + + col0 * + col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - + 11 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-10
22
71
query I rowsort
SELECT DISTINCT + + col2 + col1 + col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL - ( - 67 ) * col2 - - col0 * col2 FROM tab2 AS cor0
----
1998
3770
5548
query I rowsort
SELECT DISTINCT + ( + col1 ) + - col0 * cor0.col2 AS col2 FROM tab2 cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 + col0 AS REAL ) AS col0 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * 88 col1 FROM tab1 cor0
----
4752
5016
8448
query I rowsort
SELECT col0 + col2 * col0 * 14 FROM tab2 AS cor0
----
2653
28470
42107
query I rowsort
SELECT ( + 47 ) * col2 AS col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT + - col1 + + col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 17 * + col1 AS col2 FROM tab1
----
170
221
442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL - + 39 + col1 AS col2 FROM tab1 AS cor0
----
-13
-26
-29
query I rowsort
SELECT DISTINCT - 62 + - col2 AS col2 FROM tab1 AS cor0
----
-116
-119
-158
query I rowsort
SELECT ALL 54 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT 65 + cor0.col1 FROM tab1 cor0
----
75
78
91
query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col1 * + ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * col1 * cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT col2 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9491
SELECT col2 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9493
SELECT - col1 DIV + 3 FROM tab2 AS cor0
----
-10
-19
-5
skipif mysql # not compatible
query I rowsort label-9493
SELECT - col1 / + 3 FROM tab2 AS cor0
----
-10
-19
-5
query I rowsort
SELECT + col1 * - ( 51 ) + col0 AS col2 FROM tab0 AS cor0
----
-4362
-4552
-4912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9495
SELECT + col2 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9495
SELECT + col2 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT ALL col2 DIV - 53 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL col2 / - 53 AS col1 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
82
query I rowsort
SELECT DISTINCT col2 * 7 AS col0 FROM tab0
----
231
574
7
query I rowsort
SELECT + 73 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9501
SELECT tab0.col2 DIV - col2 + tab0.col0 * + col1 DIV col1 + - ( col1 * - col0 ) AS col1 FROM tab0
----
2087
3429
8187
skipif mysql # not compatible
query I rowsort label-9501
SELECT tab0.col2 / - col2 + tab0.col0 * + col1 / col1 + - ( col1 * - col0 ) AS col1 FROM tab0
----
2087
3429
8187
onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT DISTINCT col0 * - 28 + 35 DIV col1 col0 FROM tab0
----
-2492
-672
-980
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT col0 * - 28 + 35 / col1 col0 FROM tab0
----
-2492
-672
-980
query I rowsort
SELECT DISTINCT + col0 * - 7 + col2 * col2 FROM tab1
----
2801
2895
8656
query I rowsort
SELECT col2 + + ( col0 ) + tab1.col0 AS col2 FROM tab1
----
185
256
60
query I rowsort
SELECT ALL - col0 * col0 * - 94 - - col0 * - col1 FROM tab1
----
384384
600560
768
query I rowsort
SELECT DISTINCT col2 - + col2 * - 43 * tab0.col1 FROM tab0
----
122067
320948
4172
onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT DISTINCT col1 DIV + col2 - + col2 * col1 FROM tab0
----
-2836
-7461
0
skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT col1 / + col2 - + col2 * col1 FROM tab0
----
-2836
-7461
0
query I rowsort
SELECT - tab2.col0 * + col1 AS col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9509
SELECT ALL + - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col0 - - 98 * + col2 FROM tab1 AS cor0
----
15808
5301
9682
query I rowsort
SELECT - 17 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT + col2 DIV 41 - 40 AS col2 FROM tab2 AS cor0
----
-40
-40
-40
skipif mysql # not compatible
query I rowsort label-9512
SELECT + col2 / 41 - 40 AS col2 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT + + ( + col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col2 + + col1 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col2 + + col1 col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( col2 ) * col2 * - col2 + 7 FROM tab0 AS cor0
----
-35930
-551361
6
query I rowsort
SELECT ALL - + cor0.col1 * - 7 FROM tab2 cor0
----
119
217
413
query I rowsort
SELECT DISTINCT 30 + - 58 FROM tab0 AS cor0
----
-28
query I rowsort
SELECT - ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9519
SELECT CAST( + 57 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-39
0
3
skipif mysql # not compatible
query I rowsort label-9519
SELECT CAST ( + 57 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-39
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + 14 FROM tab2 cor0
----
14
14
14
query I rowsort
SELECT ( - col0 ) + col2 + - col0 FROM tab2 AS cor0
----
-120
-130
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + + 26 col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT - + col0 + 81 FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT - col0 * + col1 + col0 * ( ( + cor0.col0 ) * col1 ) AS col1 FROM tab0 AS cor0
----
115430
47472
712712
query I rowsort
SELECT ALL + 98 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9527
SELECT ALL - 27 + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - 27 + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
-26
-26
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 * cor0.col2 + col0 col2 FROM tab2 AS cor0
----
-1300
-1424
-1935
query I rowsort
SELECT DISTINCT col0 * + 14 AS col0 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT ALL - col0 * + col2 + col1 + - col0 FROM tab2 cor0
----
-165
-2047
-3064
query I rowsort
SELECT cor0.col0 + - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 84 + col1 AS col2 FROM tab2 AS cor0
----
-25
-53
-67
query I rowsort
SELECT ALL + 50 * col2 AS col2 FROM tab1
----
2700
2850
4800
query I rowsort
SELECT ALL 97 * + col2 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT DISTINCT ( col2 ) * col1 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT 15 + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 92bd1b84eff45bee265b432e74f8dc37
query I rowsort
SELECT 58 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT col2 * 30 * col1 FROM tab1 AS cor0
----
17100
37440
42120
query I rowsort
SELECT col2 * 94 * col1 FROM tab1 AS cor0
----
117312
131976
53580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9541
SELECT DISTINCT - + col1 * CAST( col2 AS SIGNED ) col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - + col1 * CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col2 + col2 * - 84 AS col0 FROM tab1 AS cor0
----
-4482
-4731
-7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col1 FROM tab0, tab0 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-9544
SELECT ALL - tab1.col2 + - col2 DIV - 38 col0 FROM tab1
----
-53
-56
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - tab1.col2 + - col2 / - 38 col0 FROM tab1
----
-53
-56
-94
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 66d12da55ea14263893cfc3170a3c57e
query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + 13 * 16 + col0 * tab0.col2 AS col2 FROM tab0
----
1000
243
7506
query I rowsort
SELECT + - 24 + + cor0.col1 FROM tab0 AS cor0
----
62
67
73
query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9551
SELECT DISTINCT CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - 53 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 639c30ad80f8147eddb1a5f768a0a5ec
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col2 FROM tab2
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT ALL - + 86 + col0 / CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - + 86 + col0 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * col2 * 12 col2 FROM tab1 cor0
----
17496
18468
31104
query I rowsort
SELECT - 47 * col1 FROM tab0 cor0
----
-4042
-4277
-4559
query I rowsort
SELECT ALL + 55 * - col1 + - 15 * + col1 FROM tab0 AS cor0
----
-6020
-6370
-6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT - ( - col1 ) + cor0.col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9559
SELECT - ( - col1 ) + cor0.col0 / + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - 71 + col2 * ( + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-36
26065
598365
query I rowsort
SELECT DISTINCT + - 33 AS col1 FROM tab0 AS cor0
----
-33
query I rowsort
SELECT DISTINCT col2 * tab2.col0 + + col2 * - col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col1 * - col2 + col1 FROM tab2
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col0 + - col0 * col2 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - col1 + col2 + + col0 AS col0 FROM tab1
----
111
163
31
query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL IN ( col1 * + tab2.col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT DISTINCT - col0 * col2 DIV + col1 + - col2 FROM tab2
----
-214
-33
-60
skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - col0 * col2 / + col1 + - col2 FROM tab2
----
-214
-33
-60
query I rowsort
SELECT DISTINCT col1 * + col2 * - tab0.col2 - col2 FROM tab0
----
-611966
-93687
-98
query I rowsort
SELECT ALL - col1 + + tab2.col0 * col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + cor0.col0 * + cor0.col0 * + col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col1 >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT ALL + col0 DIV + col0 + + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + col0 / + col0 + + col0 FROM tab0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT DISTINCT col1 * col1 DIV col2 + col1 DIV col2 FROM tab1
----
1
12
skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT col1 * col1 / col2 + col1 / col2 FROM tab1
----
1
12
query I rowsort
SELECT DISTINCT + tab0.col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + + ( col1 ) FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9579
SELECT DISTINCT + col0 DIV col2 + col2 AS col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + col0 / col2 + col2 AS col2 FROM tab0
----
33
36
83
query I rowsort
SELECT col1 * - col1 + - col0 FROM tab1 cor0
----
-164
-249
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 * + cor0.col1 col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
-1456
-2751
463
query I rowsort
SELECT ALL + col0 + col2 * + col1 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col0 + col2 * col0 + - col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col0 * + col0 )
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + cor0.col0 * col0 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 > ( - col2 / + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----
query I rowsort
SELECT - col2 * tab0.col0 * col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 * - col0 * - col0 + + col1 + - col0 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE NOT - col1 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab0.col1 - + col0 * - col0 col2 FROM tab0
----
-1488
-178
-2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab1.col1 * col2 col1 FROM tab1
----
1344
1458
627
query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * - col0 BETWEEN - col1 * col0 AND ( NULL )
----
query I rowsort
SELECT ALL - col2 - col0 AS col0 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT ALL + cor0.col0 * col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + cor0.col0 * col1 / + col1 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - col1 + - col1 * + col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col0 col1 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - ( cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT col1 * - col1 - col0 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT - ( 55 * + col0 ) FROM tab2
----
-385
-4290
-4345
query I rowsort
SELECT - col1 * - cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT ALL CAST( col2 AS SIGNED ) + col0 + - col1 DIV 66 AS col2 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL CAST ( col2 AS INTEGER ) + col0 + - col1 / 66 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT + ( - tab2.col2 ) - + col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT + 78 + tab0.col2 FROM tab0
----
111
160
79
query I rowsort
SELECT + 18 * + col0 + 87 AS col1 FROM tab0 AS cor0
----
1689
519
717
query I rowsort
SELECT DISTINCT - 8 * col1 - col0 FROM tab2 AS cor0
----
-215
-255
-550
query I rowsort
SELECT - - 16 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT + + cor0.col0 * cor0.col0 + - 96 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-726
-7656
-8052
onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT cor0.col1 DIV - col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9611
SELECT cor0.col1 / - col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT 50 + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b9742db8b1bf309580788cf7f58b30d4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 4 + - 44 * col1 col1 FROM tab1 AS cor0
----
-188
-212
-928
query I rowsort
SELECT - col2 * col0 * + cor0.col0 + - col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1260
-19800
-656820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9615
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 * - col1 - col1 AS col1 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT cor0.col2 * + col0 - 78 FROM tab0 AS cor0
----
-43
714
7220
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - + 71 + + col2 - + 52 AS col2 FROM tab2 cor0
----
-85
-96
-97
query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab0 AS cor0
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT + - cor0.col2 DIV cor0.col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9622
SELECT + - cor0.col2 / cor0.col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT DISTINCT + col0 + - col0 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + col0 + - col0 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
3
65
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT ALL + 40 DIV + col1 + + 79 + cor0.col0 FROM tab0 AS cor0
----
103
114
168
skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + 40 / + col1 + + 79 + cor0.col0 FROM tab0 AS cor0
----
103
114
168
query I rowsort
SELECT ALL + 99 * + col1 + - ( cor0.col2 ) FROM tab0 AS cor0
----
8481
8927
9602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - cor0.col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + col2 * + col0 * + col2 AS col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT + 78 * col1 FROM tab0 cor0
----
6708
7098
7566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT ALL - + 61 / - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - + 61 / - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 39 * + col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT + + col2 * - cor0.col1 - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9632
SELECT + + col2 * - cor0.col1 - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT DISTINCT - + col1 DIV col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - + col1 / col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 * cor0.col0 * - 78 AS col1 FROM tab2 AS cor0
----
14742
158184
234156
query I rowsort
SELECT + col2 * + cor0.col0 - ( 28 ) * - col2 * - 87 AS col2 FROM tab0 AS cor0
----
-192454
-2401
-79596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9636
SELECT - col1 * + CAST( NULL AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9636
SELECT - col1 * + CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9637
SELECT col2 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9637
SELECT col2 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + + 68 AS col0 FROM tab1 cor0
----
78
81
94
query I rowsort
SELECT + - col0 * col2 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col0 * col2 + col1 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL - 17 + col1 FROM tab2 AS cor0
----
0
14
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 59 * col2 + + 17 * + col0 col0 FROM tab1 AS cor0
----
3183
4394
6928
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2, tab2 AS cor0
----
-47
query I rowsort
SELECT - 10 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT ALL + col2 * + 89 AS col0 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT DISTINCT + + 68 - 88 FROM tab1 AS cor0
----
-20
query I rowsort
SELECT DISTINCT + - col0 * col0 - col1 FROM tab2 cor0
----
-6143
-6258
-80
query I rowsort
SELECT - 82 + + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
1982
3313
8017
query I rowsort
SELECT + 14 * 8 * - col1 FROM tab0 AS cor0
----
-10192
-10864
-9632
query I rowsort
SELECT DISTINCT - + 44 * + col1 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT DISTINCT - + col2 * 23 AS col2 FROM tab0 cor0
----
-1886
-23
-759
query I rowsort
SELECT ALL col2 * + 82 FROM tab2 cor0
----
2132
2214
3116
query I rowsort
SELECT DISTINCT col1 + - col2 - col0 AS col1 FROM tab2 cor0
----
-100
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT DISTINCT cor0.col2 + 53 DIV - col2 AS col0 FROM tab0 AS cor0
----
-52
32
82
skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT cor0.col2 + 53 / - col2 AS col0 FROM tab0 AS cor0
----
-52
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 26 * cor0.col1 col0 FROM tab1 cor0
----
203
242
622
query I rowsort
SELECT + + 57 * + 99 FROM tab0 AS cor0
----
5643
5643
5643
onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT DISTINCT tab2.col2 DIV - tab2.col1 + + col0 + - col0 col1 FROM tab2
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT tab2.col2 / - tab2.col1 + + col0 + - col0 col1 FROM tab2
----
-2
0
query I rowsort
SELECT DISTINCT + col2 + - ( - 33 * col0 ) AS col1 FROM tab2
----
258
2600
2645
onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT - + 61 DIV - col1 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-9660
SELECT - + 61 / - col1 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT + col1 * tab1.col2 * - ( + col2 ) + + ( - col2 * col2 ) AS col1 FROM tab1
----
-129024
-35739
-78732
query I rowsort
SELECT + col2 + 51 FROM tab1 cor0
----
105
108
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9663
SELECT - CAST( + ( - col2 ) AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-9663
SELECT - CAST ( + ( - col2 ) AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + - col1 * - ( + col2 ) * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + col0 + + col0 * cor0.col0 FROM tab1 cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9666
SELECT ( - 24 ) * + col0 + col1 + - 11 DIV col2 FROM tab1 AS cor0
----
-1526
-1907
-46
skipif mysql # not compatible
query I rowsort label-9666
SELECT ( - 24 ) * + col0 + col1 + - 11 / col2 FROM tab1 AS cor0
----
-1526
-1907
-46
query I rowsort
SELECT DISTINCT + + ( - col1 ) * - col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT ( + col2 ) + + 65 FROM tab1 cor0
----
119
122
161
query I rowsort
SELECT - col0 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9671
SELECT - col0 + - CAST( NULL AS SIGNED ) / + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9671
SELECT - col0 + - CAST ( NULL AS INTEGER ) / + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9672
SELECT DISTINCT + col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT DISTINCT - col0 * ( 99 ) * - col1 FROM tab2 AS cor0
----
132957
21483
455598
query I rowsort
SELECT col1 + - col1 * - col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT 93 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL col1 + - ( + col1 ) * col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL - + col0 + - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col0 + 62 * col2 FROM tab0 AS cor0
----
2070
5173
97
query I rowsort
SELECT ALL + col0 + col2 + col1 FROM tab2
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + + col0 * ( - col0 ) col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT - 55 + - col1 FROM tab2 AS cor0
----
-114
-72
-86
query I rowsort
SELECT ALL + - col0 * + col2 + 73 * + col2 FROM tab0 AS cor0
----
-1312
1617
38
query I rowsort
SELECT col2 + - col1 * col2 * col0 AS col2 FROM tab2 cor0
----
-119626
-50996
-5832
query I rowsort
SELECT + 66 + cor0.col1 * 24 FROM tab1 AS cor0
----
306
378
690
query I rowsort
SELECT - 25 * - col0 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + 85 * + cor0.col1 FROM tab2 AS cor0
----
1445
2635
5015
onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT col2 DIV 84 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9689
SELECT col2 / 84 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9690
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) * + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) * + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 - col2 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9693
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * - col2 + CAST( 8 * - col1 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-32
1582
2904
skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * - col2 + CAST ( 8 * - col1 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-32
1582
2904
query I rowsort
SELECT + ( + col2 ) * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL 49 + tab0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to b91dccb5723d9d27156124752b35585c
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0, tab1 AS cor0
----
85
query I rowsort
SELECT + - col2 + - cor0.col2 * ( + 63 ) * col2 FROM tab1 AS cor0
----
-183762
-204744
-580704
query I rowsort
SELECT col0 * - col2 + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col1 * 25 + col1 * + col2 * col2 FROM tab2
----
21824
24123
38409
query I rowsort
SELECT - cor0.col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col2 * 48 - + col1 col2 FROM tab1 AS cor0
----
2569
2790
4675
query I rowsort
SELECT - 58 + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-109
-51
-74
query I rowsort
SELECT 98 * - ( + tab0.col1 ) AS col0 FROM tab0
----
-8428
-8918
-9506
query I rowsort
SELECT ALL - ( - cor0.col0 ) * 27 FROM tab0 AS cor0
----
2403
648
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 * + col0 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - cor0.col0 * 58 + - ( col1 ) FROM tab2 AS cor0
----
-437
-4583
-4599
query I rowsort
SELECT ALL + ( - col2 ) * + col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT 82 - + col0 * - 54 AS col1 FROM tab1
----
244
3538
4402
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT + - 6 + + col2 DIV + col2 AS col0 FROM tab0 cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-9710
SELECT + - 6 + + col2 / + col2 AS col0 FROM tab0 cor0
----
-5
-5
-5
query I rowsort
SELECT ALL col2 * + tab0.col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - 35 + + col2 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT col2 * + cor0.col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - 67 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT + 31 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - 50 * + col0 FROM tab1
----
-150
-3200
-4000
query I rowsort
SELECT + ( - col0 ) * + col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 50 * - 47 AS col1 FROM tab0 AS cor0
----
-2350
-2350
-2350
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT DISTINCT + cor0.col0 * col2 + - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
70
7299
792
skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + cor0.col0 * col2 + - col0 / - col2 AS col2 FROM tab0 AS cor0
----
70
7299
792
query I rowsort
SELECT - cor2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT ALL + + cor0.col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT ALL col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9723
SELECT - col1 + + CAST( NULL AS DECIMAL ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9723
SELECT - col1 + + CAST ( NULL AS REAL ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 * - col0 - + col2 col2 FROM tab2 AS cor0
----
1327
158217
237137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + - tab2.col2 * + col1 + col2 col2 FROM tab2
----
-1567
-625
-841
query I rowsort
SELECT DISTINCT - ( 15 ) FROM tab2, tab1 AS cor0
----
-15
query I rowsort
SELECT DISTINCT tab2.col1 * - ( - col0 * col2 + ( - col2 ) ) AS col0 FROM tab2
----
121186
51680
6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9729
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 77 + + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ef109e5dc180a8996b99f54555001a45
query I rowsort
SELECT ALL - ( + col2 + col2 ) FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + 92 FROM tab0, tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT - cor0.col0 * cor0.col1 + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1339
-217
-4601
skipif mysql # not compatible
query I rowsort label-9735
SELECT - cor0.col0 * cor0.col1 + col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1339
-217
-4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + col2 ) col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0, tab2 AS cor0
----
-89
query I rowsort
SELECT ( ( tab1.col2 ) ) + col1 + + 71 FROM tab1
----
138
151
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT - 74 DIV + col0 - col1 AS col1 FROM tab0
----
-89
-91
-99
skipif mysql # not compatible
query I rowsort label-9739
SELECT - 74 / + col0 - col1 AS col1 FROM tab0
----
-89
-91
-99
query I rowsort
SELECT ALL - col2 + + col1 - - col2 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 + col2 * tab1.col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT 87 + + tab1.col2 FROM tab1
----
141
144
183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - 5 + + col2 AS col0 FROM tab2 cor0
----
21
22
33
query I rowsort
SELECT - col0 * col1 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1024
-27
-647
query I rowsort
SELECT ALL - 58 * col0 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT ALL 44 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1147
-504
-652
onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT DISTINCT + 38 * col2 DIV 65 AS col1 FROM tab1 cor0
----
31
33
56
skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + 38 * col2 / 65 AS col1 FROM tab1 cor0
----
31
33
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT + col1 + + col2 DIV + col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9749
SELECT + col1 + + col2 / + col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - - col0 + + cor0.col1 * cor0.col0 * + col0 FROM tab1 AS cor0
----
237
41024
83280
query I rowsort
SELECT + 64 AS col0 FROM tab2 cor0
----
64
64
64
query I rowsort
SELECT cor0.col0 + col1 * cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
13600
2031
6464
onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT ALL + col1 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + col1 + col0 / col0 AS col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT + + 55 AS col0 FROM tab2 AS cor0
----
55
query I rowsort
SELECT ALL col1 * col2 + - col2 * - col1 AS col1 FROM tab2
----
1292
1674
3068
query I rowsort
SELECT ALL - col1 + - col1 + col0 AS col1 FROM tab0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9757
SELECT - cor0.col0 DIV + 35 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
skipif mysql # not compatible
query I rowsort label-9757
SELECT - cor0.col0 / + 35 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
query I rowsort
SELECT col0 * col0 * - tab0.col0 FROM tab0
----
-13824
-42875
-704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9759
SELECT + col0 * + col0 + - CAST( tab0.col1 AS SIGNED ) FROM tab0
----
1128
490
7830
skipif mysql # not compatible
query I rowsort label-9759
SELECT + col0 * + col0 + - CAST ( tab0.col1 AS INTEGER ) FROM tab0
----
1128
490
7830
query I rowsort
SELECT - - col0 * - col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT DISTINCT - col2 DIV - col2 - + col2 DIV col1 col1 FROM tab1 AS cor0
----
-1
-4
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - col2 / - col2 - + col2 / col1 col1 FROM tab1 AS cor0
----
-1
-4
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col1 + cor0.col1 * col1 + - col2 FROM tab1 AS cor0
----
53
648
86
query I rowsort
SELECT DISTINCT + col0 * col1 * - col0 AS col0 FROM tab2 cor0
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9765
SELECT ALL - col2 + - CAST( 86 AS SIGNED ) AS col2 FROM tab1 cor0
----
-140
-143
-182
skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - col2 + - CAST ( 86 AS INTEGER ) AS col2 FROM tab1 cor0
----
-140
-143
-182
query I rowsort
SELECT 50 + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d13b74a6250a3d46b136fc3843ac271f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT DISTINCT - + col0 DIV col0 AS col1 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - + col0 / col0 AS col1 FROM tab1 cor0
----
-1
query I rowsort
SELECT + col1 * + ( 83 ) + col1 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT DISTINCT + col1 + + col0 * + col2 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - 48 + - col0 - + 90 AS col2 FROM tab1
----
-141
-202
-218
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 + - col0 col0 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + 66 * col2 col1 FROM tab1 AS cor0
----
3561
3698
6256
query I rowsort
SELECT DISTINCT + - 81 + - cor0.col2 FROM tab2 AS cor0
----
-107
-108
-119
query I rowsort
SELECT ALL - - ( + col0 ) - col2 AS col1 FROM tab2 cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9775
SELECT DISTINCT col0 DIV - col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT col0 / - col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9776
SELECT + - CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9776
SELECT + - CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 * 45 + col2 AS col2 FROM tab2 AS cor0
----
1422
2681
803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 90 + + col0 col0 FROM tab1 AS cor0
----
154
170
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT DISTINCT - ( + 32 ) + cor0.col1 DIV - ( + 63 ) FROM tab2 AS cor0
----
-32
skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - ( + 32 ) + cor0.col1 / - ( + 63 ) FROM tab2 AS cor0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + col2 col2 FROM tab1
----
123
126
165
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT 13 DIV 69 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9782
SELECT 13 / 69 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 + ( + cor0.col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col2 * - 71 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT ALL + 73 FROM tab0 cor0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9786
SELECT - - CAST( + col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-9786
SELECT - - CAST ( + col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + col1 * 45 FROM tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT ALL + + ( col1 ) + col0 * 43 FROM tab0 AS cor0
----
1118
1602
3918
query I rowsort
SELECT ALL - + col1 * - cor0.col1 - col1 AS col2 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT + + 43 * + col0 AS col0 FROM tab0 AS cor0
----
1032
1505
3827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9791
SELECT ALL - CAST( NULL AS SIGNED ) / - 83 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - CAST ( NULL AS INTEGER ) / - 83 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * cor0.col2 * col0 + col1 AS col0 FROM tab0 cor0
----
1322
19094
649613
query I rowsort
SELECT 46 * col0 * - col2 FROM tab2 AS cor0
----
-138092
-8694
-93288
query I rowsort
SELECT DISTINCT + + ( ( col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 44 + col1 AS col0 FROM tab0 cor0
----
42
47
53
query I rowsort
SELECT ALL - ( + col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col2 * - col2 - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT + - 90 * col1 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT + cor0.col1 + - col1 * + col0 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( + 19 ) * col0 FROM tab2 AS cor0
----
-133
-1482
-1501
onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT + col2 DIV - col2 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9802
SELECT + col2 / - col2 AS col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - col1 * 37 + col0 + 6 AS col0 FROM tab2 AS cor0
----
-1134
-2099
-544
query I rowsort
SELECT ALL + 77 - - ( + cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ef109e5dc180a8996b99f54555001a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ( + col1 ) + + col2 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + ( - tab2.col1 ) * + col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT - col2 DIV 35 + col2 * - ( + 0 ) FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9808
SELECT - col2 / 35 + col2 * - ( + 0 ) FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL 37 * + col2 AS col2 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT ALL 59 * + col1 * + ( col0 ) + col2 * - col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
34212
5116
53849
query I rowsort
SELECT DISTINCT col2 * col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col2 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL 13 * col2 FROM tab0 cor0
----
1066
13
429
query I rowsort
SELECT ALL 18 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9815
SELECT ALL - CAST( 79 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - CAST ( 79 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT col2 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-9816
SELECT col2 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col0 + ( cor0.col0 * col1 ) - - col2 FROM tab2 AS cor0
----
1460
251
4706
query I rowsort
SELECT - 15 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT + - cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT - col1 * col0 DIV cor0.col0 col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9820
SELECT - col1 * col0 / cor0.col0 col1 FROM tab1 AS cor0
----
-10
-13
-26
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9822
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT DISTINCT 1 DIV col1 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT 1 / col1 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT cor0.col1 - col1 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9824
SELECT cor0.col1 - col1 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT - + col1 * col1 - + cor0.col0 DIV - 98 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-9825
SELECT - + col1 * col1 - + cor0.col0 / - 98 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + + col1 * - 77 FROM tab1 cor0
----
-1001
-2002
-770
query I rowsort
SELECT + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9829
SELECT + col1 + - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9829
SELECT + col1 + - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + tab0.col2 * - col2 FROM tab0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT ALL col1 DIV - cor0.col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL col1 / - cor0.col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT + + ( + col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 + + col0 + col0 FROM tab2
----
182
196
41
query I rowsort
SELECT + - 24 AS col2 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT ALL - col0 + - 85 * col0 * col2 AS col0 FROM tab1 cor0
----
-13773
-310144
-652880
query I rowsort
SELECT - - col0 * 60 AS col0 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT DISTINCT + + col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9838
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - 35 + + col2 FROM tab2 AS cor0
----
-8
-9
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT ALL + col1 DIV - col0 + + col2 * cor0.col1 * + cor0.col0 AS col1 FROM tab2 cor0
----
119652
51034
5855
skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + col1 / - col0 + + col2 * cor0.col1 * + cor0.col0 AS col1 FROM tab2 cor0
----
119652
51034
5855
query I rowsort
SELECT ALL col1 + 99 * col2 AS col0 FROM tab2
----
2633
2704
3779
query I rowsort
SELECT ALL + ( - ( col1 ) ) * col0 + + tab2.col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ( + col0 ) + + col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9844
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV + col1 + + col2 + col0 * col1 FROM tab2
----
1379
244
4628
skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / + col1 + + col2 + col0 * col1 FROM tab2
----
1379
244
4628
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - ( - col0 ) * col1 + - col1 AS col0 FROM tab2
----
1326
186
4543
query I rowsort
SELECT 60 + - col0 FROM tab0
----
-29
25
36
query I rowsort
SELECT + 18 * + ( col0 ) + + col0 AS col2 FROM tab2
----
133
1482
1501
query I rowsort
SELECT DISTINCT + ( + 77 ) + + tab1.col1 AS col1 FROM tab1
----
103
87
90
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT cor0.col1 * col2 + - col0 - + col0 * + col0 FROM tab0 cor0
----
-1163
-548
2238
onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT + + col1 - - 34 DIV ( col0 ) AS col0 FROM tab1 AS cor0
----
10
13
37
skipif mysql # not compatible
query I rowsort label-9852
SELECT + + col1 - - 34 / ( col0 ) AS col0 FROM tab1 AS cor0
----
10
13
37
query I rowsort
SELECT + col2 + col2 - - cor0.col0 FROM tab2 cor0
----
130
155
61
query I rowsort
SELECT ALL + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col1 + ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 - ( cor0.col0 ) col1 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT col2 * + ( + col2 ) + col2 * cor0.col2 - cor0.col2 FROM tab1 AS cor0
----
18336
5778
6441
query I rowsort
SELECT DISTINCT + + col0 + - col0 * + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + col2 * 54 + - col2 FROM tab0 AS cor0
----
1749
4346
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - col0 * col0 ) col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL + col0 * + ( 13 ) AS col0 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT DISTINCT + + col1 * + 18 AS col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - col1 * + col0 * + tab1.col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col1 * - 49 * - 63 - col0 AS col2 FROM tab2
----
182055
52400
95690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - col2 * ( tab2.col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 * 7 + col0 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
-102
-1152
-1680
query I rowsort
SELECT ALL - 90 + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 496bf2a6317b6d3f1a2b04ff7899c0ba
query I rowsort
SELECT ALL - col1 + - col1 - + col1 * col0 AS col1 FROM tab0
----
-2236
-3589
-8281
query I rowsort
SELECT ALL col1 + + col2 - + tab1.col0 * + tab1.col1 AS col1 FROM tab1
----
-573
-931
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col2 col1 FROM tab1
----
0
query I rowsort
SELECT - col1 + col2 - + col0 AS col2 FROM tab2
----
-11
-111
-58
query I rowsort
SELECT - col0 * - col1 - + col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL + tab0.col1 FROM tab0 WHERE NOT NULL >= col2 * - col1 AND NOT NULL IN ( col0 )
----
query I rowsort
SELECT tab1.col0 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 / col2 ) AND NOT col0 IN ( + col1 * - col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 * - col1 * + tab2.col1 + col2 + col2 )
----
query I rowsort
SELECT DISTINCT - tab2.col2 + col0 + tab2.col1 * col2 FROM tab2
----
1586
687
817
query I rowsort
SELECT DISTINCT + tab1.col1 * col1 * tab1.col1 + - col2 FROM tab1
----
17522
2101
943
query I rowsort
SELECT DISTINCT + - col1 + col1 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 * - col2 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT ALL + col2 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + col2 / - col0 AS col2 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 AS col1 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col1 * + col0 + tab1.col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT 82 - col0 * col2 * - col1 FROM tab0
----
3477
664200
68194
query I rowsort
SELECT ALL cor0.col2 * cor0.col0 - - col0 * - cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18216
-642224
query I rowsort
SELECT 52 * col1 AS col2 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT ALL + - col2 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * + col2 + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
-2719
-7289
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col0 col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - - col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 + col0 * 26 FROM tab1 AS cor0
----
132
1721
2176
query I rowsort
SELECT + - col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + 6 * cor0.col2 - - 89 AS col2 FROM tab2 cor0
----
245
251
317
query I rowsort
SELECT col1 + col1 + ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT 13 * col0 - col0 AS col0 FROM tab0 AS cor0
----
1068
288
420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col1 FROM tab1
----
11
11
11
query I rowsort
SELECT ( + col2 ) * col0 * + col0 AS col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT col2 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - 28 * - col1 AS col1 FROM tab1 AS cor0
----
280
364
728
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7
query I rowsort
SELECT - 97 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT - + 83 * - col1 AS col1 FROM tab1 AS cor0
----
1079
2158
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col1 FROM tab1
----
17
17
17
query I rowsort
SELECT ALL + 32 * 5 FROM tab0
----
160
160
160
query I rowsort
SELECT col0 * + 23 AS col2 FROM tab2 cor0
----
161
1794
1817
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + 50 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT 12 FROM tab0, tab0 cor0
----
12
query I rowsort
SELECT DISTINCT 85 + col1 AS col2 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT DISTINCT - col0 + + tab2.col2 AS col1 FROM tab2
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab0, tab2 AS cor0
----
-7
query I rowsort
SELECT DISTINCT + ( tab2.col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 24 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1367
241
4626
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 + - col0 * - 4 * + col2 FROM tab1 cor0
----
14602
30733
674
query I rowsort
SELECT DISTINCT - 95 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-95
query I rowsort
SELECT + col0 * 83 FROM tab0
----
1992
2905
7387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9924
SELECT ALL tab2.col2 * col2 * + col1 + tab2.col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL tab2.col2 * col2 * + col1 + tab2.col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * 17 col1 FROM tab1
----
1632
918
969
query I rowsort
SELECT + ( + 70 * cor0.col1 ) + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 44bc6b82d0fadcf045c87553cb12b881
query I rowsort
SELECT - col2 * ( 32 + + col2 ) FROM tab0
----
-2145
-33
-9348
onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT + + col1 - + 32 DIV col1 FROM tab2 AS cor0
----
16
30
59
skipif mysql # not compatible
query I rowsort label-9928
SELECT + + col1 - + 32 / col1 FROM tab2 AS cor0
----
16
30
59
query I rowsort
SELECT + ( ( - col2 ) ) * col1 + - col2 AS col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT + col1 * - col0 + cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
-540
-871
598
query I rowsort
SELECT - 78 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-2106
-267
-3080
query I rowsort
SELECT - ( + ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT + - ( + 23 ) + col2 DIV - col1 AS col2 FROM tab0 cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-9933
SELECT + - ( + 23 ) + col2 / - col1 AS col2 FROM tab0 cor0
----
-23
-23
-23
query I rowsort
SELECT ALL ( - 39 ) * + col2 + col0 * + 47 - cor0.col0 FROM tab0 AS cor0
----
-183
1571
896
query I rowsort
SELECT ( col0 ) * + col2 + 80 * col1 FROM tab1 AS cor0
----
2242
4448
8720
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT ALL col0 + + 0 + - 12 AS col1 FROM tab2
----
-5
66
67
query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) * col2 + col2 AS col1 FROM tab1 AS cor0
----
-207879
-737184
-8694
query I rowsort
SELECT col1 * - col2 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9940
SELECT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9940
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 61 * col0 FROM tab1 AS cor0
----
183
3904
4880
query I rowsort
SELECT DISTINCT col2 * - 20 * col0 AS col0 FROM tab2 AS cor0
----
-3780
-40560
-60040
query I rowsort
SELECT ALL - 86 + col1 * - col2 AS col1 FROM tab1
----
-1334
-1490
-656
query I rowsort
SELECT + - ( 14 ) * cor0.col2 + col2 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT ALL - - 83 + + 94 AS col2 FROM tab1 AS cor0
----
177
177
177
query I rowsort
SELECT - - col2 + - 34 FROM tab1 AS cor0
----
20
23
62
query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col2 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col2 * - ( + col0 ) * ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL cor0.col1 * 70 + + 30 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 5b2c730507673f5c8e22ba380af6db84
query I rowsort
SELECT DISTINCT + ( - col2 ) * ( - col1 ) + + col2 + col2 FROM tab2 AS cor0
----
1586
722
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + + cor0.col1 col0 FROM tab0 AS cor0
----
-3
2
8
query I rowsort
SELECT ALL - + col2 * - col0 + col1 - col2 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
19663
19903
57891
query I rowsort
SELECT + col1 * + col1 + 89 AS col1 FROM tab1 AS cor0
----
189
258
765
query I rowsort
SELECT ALL - + ( - cor0.col2 ) - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + 57 + + col0 * + 73 * col2 AS col2 FROM tab0 AS cor0
----
2612
532811
57873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col2 * col2 * - col2 col2 FROM tab1 AS cor0
----
-157490
-185203
-884749
query I rowsort
SELECT DISTINCT + - 31 + + col1 AS col2 FROM tab0 AS cor0
----
55
60
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT + + cor0.col1 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9959
SELECT + + cor0.col1 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + + cor0.col0 * + col1 + - ( col2 ) * + cor0.col0 AS col2 FROM tab1 cor0
----
-3008
-6640
-84
query I rowsort
SELECT ALL + col1 + - ( 55 ) * col2 AS col2 FROM tab0 AS cor0
----
-1729
-4419
42
query I rowsort
SELECT cor0.col2 + - ( + col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col0 * 28 + 93 FROM tab1 AS cor0
----
177
1885
2333
onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT ALL - + col0 + - col1 DIV - 25 col1 FROM tab2 AS cor0
----
-6
-76
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - + col0 + - col1 / - 25 col1 FROM tab2 AS cor0
----
-6
-76
-79
query I rowsort
SELECT DISTINCT + col2 + 75 * 75 - col0 * col1 AS col1 FROM tab1 AS cor0
----
4681
5042
5601
query I rowsort
SELECT col1 * + col0 + + col0 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL col1 * + 29 + + col1 FROM tab0 cor0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT + cor0.col0 + 82 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT - + col2 + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + ( 63 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT col0 * 7 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9974
SELECT - CAST( NULL AS SIGNED ) + + 39 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9974
SELECT - CAST ( NULL AS INTEGER ) + + 39 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + col1 * 91 AS col0 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT DISTINCT + tab2.col1 + tab2.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9978
SELECT - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT ALL 28 DIV + col2 col0 FROM tab0 AS cor0
----
0
0
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL 28 / + col2 col0 FROM tab0 AS cor0
----
0
0
28
query I rowsort
SELECT + col1 + col2 * col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 + + col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT col2 * ( - col2 ) + - col0 * - 38 AS col1 FROM tab0
----
-177
-3342
1329
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( col1 ) + ( ( - tab0.col2 ) + + CAST( NULL AS SIGNED ) ) * col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( col1 ) + ( ( - tab0.col2 ) + + CAST ( NULL AS INTEGER ) ) * col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL - 65 FROM tab1, tab2 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT ALL + CAST( NULL AS SIGNED ) * - 33 + col2 + + 62 * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + CAST ( NULL AS INTEGER ) * - 33 + col2 + + 62 * - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col0 * col0 ) + 47 AS col0 FROM tab0
----
-1178
-529
-7874
query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab1
----
84
query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab0
----
66
query I rowsort
SELECT + 72 + cor0.col2 AS col0 FROM tab2 AS cor0
----
110
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col0 col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + 60 * - col0 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT + 82 * col2 AS col1 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT ALL 43 AS col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT - - 14 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT - + cor0.col1 + col0 * + col0 + col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab2 AS cor0
----
74
query I rowsort
SELECT tab1.col1 + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892