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 ALL 6 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab1 AS cor0
----
36
query I rowsort
SELECT DISTINCT + col1 * - col2 - + ( + cor0.col2 * - col2 ) AS col0 FROM tab1 AS cor0
----
1512
2679
7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + + 42 FROM tab0 cor0
----
42
42
42
query I rowsort
SELECT col0 + - col1 * ( + 71 + + col1 ) * col0 FROM tab1 cor0
----
-51776
-7563
-87280
query I rowsort
SELECT ALL + col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 46 + col1 col2 FROM tab1
----
-17
28
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT ALL col1 DIV 77 - col0 col0 FROM tab0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8
SELECT ALL col1 / 77 - col0 col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT ALL col1 * + col1 + - 33 AS col2 FROM tab0
----
7363
8248
9376
onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT DISTINCT col2 + - 70 + + col0 DIV + col2 AS col0 FROM tab0
----
-34
-37
13
skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT col2 + - 70 + + col0 / + col2 AS col0 FROM tab0
----
-34
-37
13
query I rowsort
SELECT ALL tab2.col0 + 15 FROM tab2
----
22
93
94
query I rowsort
SELECT DISTINCT col2 * col2 - - col2 * col2 * + 16 FROM tab0
----
114308
17
18513
query I rowsort
SELECT ALL col2 - + 8 AS col0 FROM tab2
----
18
19
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-14
SELECT ALL - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - col2 * cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-16
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) * + col2 + col1 / col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) * + col2 + col1 / col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 + 2 FROM tab2 AS cor0
----
-24
-25
-36
query I rowsort
SELECT ALL + col0 + - 64 AS col1 FROM tab2
----
-57
14
15
query I rowsort
SELECT + col0 - ( 0 + - col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-20
SELECT - col2 + + CAST( 65 + col0 * 86 AS SIGNED ) FROM tab0 AS cor0
----
2096
3074
7637
skipif mysql # not compatible
query I rowsort label-20
SELECT - col2 + + CAST ( 65 + col0 * 86 AS INTEGER ) FROM tab0 AS cor0
----
2096
3074
7637
query I rowsort
SELECT ALL 94 + - col1 AS col2 FROM tab0 AS cor0
----
-3
3
8
query I rowsort
SELECT + + ( 97 ) FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT ALL + - col2 + - col2 * - col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - ( 61 ) AS col2 FROM tab0 AS cor0
----
-61
query I rowsort
SELECT DISTINCT col2 * 96 + col2 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT + ( + col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + ( ( + col2 ) ) * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - - 89 AS col1 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT ALL + 34 * col2 AS col1 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT ALL + 79 DIV - col2 + + col2 DIV - 55 col1 FROM tab0 AS cor0
----
-1
-2
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + 79 / - col2 + + col2 / - 55 col1 FROM tab0 AS cor0
----
-1
-2
-79
query I rowsort
SELECT + ( - col2 ) * - cor0.col0 * col1 AS col2 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT col0 * ( + cor0.col0 ) + ( col1 * + col0 + col2 ) FROM tab0 AS cor0
----
16102
2673
4621
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + col0 * - 39 * - col2 AS col0 FROM tab0
----
1365
284622
30888
query I rowsort
SELECT DISTINCT + col2 * tab2.col2 AS col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT DISTINCT col2 DIV + ( - col0 + - col2 ) AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT col2 / + ( - col0 + - col2 ) AS col2 FROM tab2
----
0
query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-38
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-38
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 74 - - col0 AS col1 FROM tab1 cor0
----
138
154
77
query I rowsort
SELECT ALL + 2 * + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 96 AS col0 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT + + 20 FROM tab2 AS cor0
----
20
query I rowsort
SELECT DISTINCT + 0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - col2 * 26 + col2 * col2 * 85 AS col0 FROM tab1 cor0
----
249264
277647
785856
query I rowsort
SELECT - + ( col1 ) * col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL + col1 + + col1 * cor0.col0 * col2 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) - - col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT - - col1 DIV + 91 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - - col1 / + 91 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 16 * col0 * tab0.col2 FROM tab0
----
116768
12672
560
query I rowsort
SELECT - col2 * + col2 * - col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - 71 + - 73 AS col2 FROM tab2 AS cor0
----
-144
-144
-144
query I rowsort
SELECT ALL + + col0 * - col1 * cor0.col2 + - col1 * + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
-3395
-671489
-70864
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - - col0 * col0 - + cor0.col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - 52 * col2 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT ( + col1 ) * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + ( col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - ( - col2 ) * - col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT 76 + - 54 FROM tab0
----
22
query I rowsort
SELECT ALL + 2 + - tab2.col2 + col2 AS col2 FROM tab2
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT + tab1.col0 DIV + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 316abc2f3fee42d3176df5d7d6f325ce
skipif mysql # not compatible
query I rowsort label-64
SELECT + tab1.col0 / + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 316abc2f3fee42d3176df5d7d6f325ce
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-65
SELECT ALL + CAST( - col1 AS SIGNED ) + col2 AS col1 FROM tab1
----
28
47
83
skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + CAST ( - col1 AS INTEGER ) + col2 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col2 + - cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-70
SELECT DISTINCT col2 DIV + 74 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT col2 / + 74 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + cor0.col2 + 29 * col1 AS col2 FROM tab1 cor0
----
347
473
808
query I rowsort
SELECT ( - tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col0 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL + ( col0 * col0 ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * - 65 - col2 FROM tab0
----
-1593
-2276
-5867
query I rowsort
SELECT DISTINCT + col2 * + col0 - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT cor0.col0 + 78 AS col1 FROM tab0 AS cor0
----
102
113
167
query I rowsort
SELECT ALL - col0 - - ( 55 ) FROM tab1 AS cor0
----
-25
-9
52
query I rowsort
SELECT tab2.col0 + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT 61 * col0 AS col0 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT ALL col1 * tab0.col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT - tab0.col0 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-83
SELECT - tab0.col0 / - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ( + tab1.col0 ) AS col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-86
SELECT ALL ( col2 ) DIV 79 + + 44 FROM tab0
----
44
44
45
skipif mysql # not compatible
query I rowsort label-86
SELECT ALL ( col2 ) / 79 + + 44 FROM tab0
----
44
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-87
SELECT + ( + col1 ) * - CAST( + col2 AS SIGNED ) * + col2 + - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-611884
-93655
-97
skipif mysql # not compatible
query I rowsort label-87
SELECT + ( + col1 ) * - CAST ( + col2 AS INTEGER ) * + col2 + - col2 / + col0 AS col1 FROM tab0 AS cor0
----
-611884
-93655
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT + col0 DIV col1 + 86 col2 FROM tab1 AS cor0
----
86
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-88
SELECT + col0 / col1 + 86 col2 FROM tab1 AS cor0
----
86
92
92
query I rowsort
SELECT ALL cor0.col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - tab2.col0 * col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 45 * - 27 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1215
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT - 27 DIV - tab0.col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-93
SELECT - 27 / - tab0.col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT + - col1 + ( - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302
query I rowsort
SELECT ALL col1 + tab2.col0 - - col0 AS col2 FROM tab2
----
175
215
45
query I rowsort
SELECT + + col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + + col0 + 53 * - col2 * + col1 FROM tab0 AS cor0
----
-150390
-395397
-5106
onlyif mysql # use DIV operator for integer division
query I rowsort label-99
SELECT + col1 DIV + col0 col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-99
SELECT + col1 / + col0 col0 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 2 * col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col0 * - 48 + col0 FROM tab1 AS cor0
----
-141
-3008
-3760
query I rowsort
SELECT + col2 * - col1 + + col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col0 * - ( + col2 ) - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT cor0.col2 * 15 + col1 * col2 AS col0 FROM tab0 AS cor0
----
112
3333
8692
query I rowsort
SELECT - - cor0.col1 + 87 + - col1 FROM tab1 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT - + col1 + 43 AS col2 FROM tab0 AS cor0
----
-43
-48
-54
query I rowsort
SELECT - col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + - col2 + 56 FROM tab0 AS cor0
----
-26
23
55
query I rowsort
SELECT DISTINCT + ( 65 ) * col1 * ( 70 ) + col1 AS col0 FROM tab0 cor0
----
391386
414141
441447
onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT - col1 DIV + col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-110
SELECT - col1 / + col0 FROM tab1 cor0
----
-8
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-113
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-113
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + ( - 53 ) FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + - ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - 29 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT - cor0.col0 + + 76 DIV - col2 AS col0 FROM tab0 AS cor0
----
-111
-26
-89
skipif mysql # not compatible
query I rowsort label-118
SELECT - cor0.col0 + + 76 / - col2 AS col0 FROM tab0 AS cor0
----
-111
-26
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT - col0 DIV 49 FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-119
SELECT - col0 / 49 FROM tab1 cor0
----
-1
-1
0
query I rowsort
SELECT - + 26 + col2 AS col2 FROM tab2 AS cor0
----
0
1
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-121
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT + 23 * col1 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
query I rowsort
SELECT 1 * col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 15 FROM tab2 cor0
----
15
15
15
query I rowsort
SELECT + col0 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col1 FROM tab0
----
60
60
60
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + 15 + col1 AS col2 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT DISTINCT - 64 * col0 + col0 FROM tab2 AS cor0
----
-441
-4914
-4977
query I rowsort
SELECT ALL - col2 - col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT 26 * 56 FROM tab0
----
1456
query I rowsort
SELECT DISTINCT - 59 + col0 FROM tab0 AS cor0
----
-24
-35
30
query I rowsort
SELECT DISTINCT - - col1 * + col1 + + col0 - 78 AS col1 FROM tab2 AS cor0
----
290
3481
890
query I rowsort
SELECT DISTINCT + col2 - cor0.col1 * col1 AS col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab1
----
-19
query I rowsort
SELECT ALL + col0 + - 75 * col2 AS col0 FROM tab0 AS cor0
----
-2451
-40
-6061
query I rowsort
SELECT ALL col2 + + ( + 63 ) AS col2 FROM tab0 cor0
----
145
64
96
query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + col2 + - 40 FROM tab2 cor0
----
-13
-14
-2
query I rowsort
SELECT + + col1 * - 19 AS col2 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97
query I rowsort
SELECT ALL - 42 AS col0 FROM tab0
----
-42
-42
-42
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 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + 71 * col0 FROM tab1 cor0
----
213
4544
5680
query I rowsort
SELECT + 98 AS col0 FROM tab2 AS cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab1, tab1 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - - 46 + cor0.col2 * - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5fe2ec51d7aee3240b9285c29aa4b7b7
query I rowsort
SELECT ALL + col2 * + col2 * + tab2.col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT 82 * 62 AS col1 FROM tab1
----
5084
5084
5084
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab2, tab1, tab1 AS cor0, tab0
----
-75
query I rowsort
SELECT - col0 + + 51 * tab1.col1 AS col0 FROM tab1
----
1323
446
583
query I rowsort
SELECT ALL + 67 * + col2 * col0 AS col1 FROM tab0
----
2345
488966
53064
query I rowsort
SELECT DISTINCT - 61 + - tab0.col2 FROM tab0
----
-143
-62
-94
query I rowsort
SELECT col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - 36 * ( - col1 * - 68 ) - + col1 FROM tab2 cor0
----
144373
41599
75857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-160
SELECT ALL + + CAST( 64 AS SIGNED ) FROM tab2 cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + + CAST ( 64 AS INTEGER ) FROM tab2 cor0
----
64
64
64
query I rowsort
SELECT - col0 * 1 + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col0 - col2 * col1 AS col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT - 9 FROM tab2, tab2 cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT 52 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT + tab1.col2 + - 2 FROM tab1
----
52
55
94
query I rowsort
SELECT ALL 92 + col2 FROM tab1
----
146
149
188
query I rowsort
SELECT DISTINCT - col2 + col2 * col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT ALL - ( col1 ) * - col1 + + tab1.col2 FROM tab1
----
157
265
730
query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 45 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT + col2 - + col2 * col2 AS col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT + 10 * 20 AS col0 FROM tab1 AS cor0
----
200
200
200
query I rowsort
SELECT ALL - - ( cor0.col0 ) + cor0.col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col0 * col1 + - col0 * + ( col1 * - col2 ) FROM tab2 AS cor0
----
115050
49691
5642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-175
SELECT DISTINCT CAST( + col1 AS SIGNED ) + + col1 * - 98 AS col1 FROM tab0
----
-8342
-8827
-9409
skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + + col1 * - 98 AS col1 FROM tab0
----
-8342
-8827
-9409
query I rowsort
SELECT col2 - - tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL 93 * + col1 AS col1 FROM tab1
----
1209
2418
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT ALL 37 DIV col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-178
SELECT ALL 37 / col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( - cor0.col1 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1, tab2, tab1 AS cor0
----
-48
query I rowsort
SELECT + + cor0.col1 * - col0 + - ( + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT - - 16 + col2 * + ( ( + col2 ) ) FROM tab2 AS cor0
----
1460
692
745
query I rowsort
SELECT cor0.col2 - - 49 FROM tab1 AS cor0
----
103
106
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT cor0.col2 DIV + cor0.col2 - - ( col0 ) * 31 FROM tab0 AS cor0
----
1086
2760
745
skipif mysql # not compatible
query I rowsort label-184
SELECT cor0.col2 / + cor0.col2 - - ( col0 ) * 31 FROM tab0 AS cor0
----
1086
2760
745
query I rowsort
SELECT ALL + col1 * + 67 AS col1 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT ALL col2 * col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-186
SELECT ALL col2 * col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
80
9
query I rowsort
SELECT - cor0.col0 + 15 AS col1 FROM tab0 AS cor0
----
-20
-74
-9
query I rowsort
SELECT ALL col2 * + 18 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT DISTINCT - - col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + - col1 * + 78 FROM tab0 cor0
----
-6708
-7098
-7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT col2 DIV - 31 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-191
SELECT col2 / - 31 FROM tab1 AS cor0
----
-1
-1
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT ALL - col1 DIV - ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - col1 / - ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * - 84 + col2 AS col1 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT DISTINCT col1 + 5 * + col2 FROM tab1 AS cor0
----
295
296
493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + 83 col2 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT - cor0.col0 + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - 2 * + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9
query I rowsort
SELECT ALL - col2 * ( + cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + col0 * 67 AS col1 FROM tab1 cor0
----
201
4288
5360
query I rowsort
SELECT DISTINCT col2 * - 6 * col1 FROM tab2 AS cor0
----
-3876
-5022
-9204
query I rowsort
SELECT col1 - col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 7 * - col0 AS col0 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 61 col2 FROM tab2 cor0
----
-23
-34
-35
query I rowsort
SELECT ALL - col1 + + col0 - + col1 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT + ( - cor0.col1 ) * col2 - - col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 74 - col1 AS col1 FROM tab2 cor0
----
15
43
57
query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT DISTINCT - cor0.col0 * col1 * col1 + - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-22829
-271518
-6727
skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - cor0.col0 * col1 * col1 + - col2 / - col1 AS col2 FROM tab2 AS cor0
----
-22829
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT DISTINCT - col1 + + col1 DIV 81 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - col1 + + col1 / 81 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - col1 * col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT ALL - 34 DIV col0 + col1 + 38 AS col0 FROM tab2 AS cor0
----
55
65
97
skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 34 / col0 + col1 + 38 AS col0 FROM tab2 AS cor0
----
55
65
97
query I rowsort
SELECT ALL - col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + 8 + + col1 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT ALL + 96 AS col1 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT ALL - - col1 - cor0.col1 * col2 FROM tab0 cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT ALL 51 DIV col0 + 10 FROM tab0 AS cor0
----
10
11
12
skipif mysql # not compatible
query I rowsort label-227
SELECT ALL 51 / col0 + 10 FROM tab0 AS cor0
----
10
11
12
query I rowsort
SELECT DISTINCT + 79 + - cor0.col1 FROM tab1 AS cor0
----
53
66
69
query I rowsort
SELECT DISTINCT + 28 + col1 AS col2 FROM tab1
----
38
41
54
query I rowsort
SELECT + col1 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - cor0.col1 * + col1 + 28 AS col0 FROM tab1 AS cor0
----
-141
-648
-72
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * + 21 AS col0 FROM tab2 AS cor0
----
1298
374
682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-234
SELECT ALL + 38 * + cor0.col2 - CAST( - col1 AS SIGNED ) * + col1 AS col2 FROM tab0 cor0
----
11397
8650
9447
skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + 38 * + cor0.col2 - CAST ( - col1 AS INTEGER ) * + col1 AS col2 FROM tab0 cor0
----
11397
8650
9447
query I rowsort
SELECT ALL + cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + ( col2 ) + 10 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1570
694
874
query I rowsort
SELECT ALL - - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 + + 73 AS col2 FROM tab2 AS cor0
----
100
111
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col2 + - col1 * + col2 col0 FROM tab0 AS cor0
----
-2772
-7298
-95
query I rowsort
SELECT + cor0.col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col0 + ( col0 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - + col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 * col1 col0 FROM tab2 AS cor0
----
1360
248
4661
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col2 * col2 ) OR NOT ( col0 ) IN ( col0 * col0 * cor0.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT + - col2 + - col0 DIV cor0.col2 FROM tab1 cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-246
SELECT + - col2 + - col0 / cor0.col2 FROM tab1 cor0
----
-54
-58
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT + + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-247
SELECT + + col1 / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - tab1.col1 * + col2 AS col1 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab0.col1 col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + tab1.col2 * col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - 93 FROM tab2
----
-93
-93
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + col1 col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - col2 * + col1 * col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + cor0.col1 col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - 38 FROM tab0 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + ( col1 ) AS col0 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - - col2 * + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + 85 + - col0 AS col2 FROM tab0 AS cor0
----
-4
50
61
query I rowsort
SELECT 83 * - col2 FROM tab0
----
-2739
-6806
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT ALL col1 DIV - col0 AS col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-261
SELECT ALL col1 / - col0 AS col2 FROM tab1
----
-8
0
0
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 * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col2 * tab0.col1 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT DISTINCT col1 DIV col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT col1 / col2 AS col2 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT + + col2 DIV + col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-266
SELECT + + col2 / + col0 FROM tab1 cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT DISTINCT + cor0.col1 + - col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + cor0.col1 + - col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT cor0.col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT + - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-269
SELECT + - cor0.col0 / - col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col0 * col1 - col2 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT ALL + tab0.col0 * - col0 FROM tab0
----
-1225
-576
-7921
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( col0 * col0 )
----
query I rowsort
SELECT + col1 * tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT + col1 * + col2 - - col2 FROM tab0
----
2871
7544
98
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + tab2.col0 * tab2.col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT - col0 * + col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col1 - - col0 * tab0.col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col1 + - tab1.col1 FROM tab1 WHERE NULL < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT col0 * + col0 + col1 DIV col0 AS col1 FROM tab0
----
1227
579
7922
skipif mysql # not compatible
query I rowsort label-280
SELECT col0 * + col0 + col1 / col0 AS col1 FROM tab0
----
1227
579
7922
query I rowsort
SELECT DISTINCT - tab2.col1 + tab2.col2 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab1.col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL tab0.col0 * + col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col1 + + col1 IN ( col0 + - col2 - + col1 )
----
3
64
80
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN ( col0 ) AND ( col2 + - col2 )
----
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col1 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT ALL + col1 + col1 * ( - cor0.col1 * + cor0.col1 ) FROM tab0 cor0
----
-635970
-753480
-912576
query I rowsort
SELECT - - 9 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT + 73 DIV col0 FROM tab2 AS cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-291
SELECT + 73 / col0 FROM tab2 AS cor0
----
0
0
10
query I rowsort
SELECT col0 + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 * col0 FROM tab1
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - tab2.col2 col0 FROM tab2
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT - col0 + + col1 * col2 DIV col2 AS col0 FROM tab1
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-295
SELECT - col0 + + col1 * col2 / col2 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col1 + - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col1 FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT ALL col2 * col0 - + col0 AS col1 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col0 * col1 + + tab2.col1 AS col2 FROM tab2
----
1360
248
4661
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - col1 IN ( col0 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT tab2.col2 + + col1 + col0 FROM tab2
----
134
163
65
query I rowsort
SELECT col2 * - col0 * + tab1.col0 AS col2 FROM tab1 WHERE + col1 * col0 - + col0 NOT IN ( - tab1.col2 * col0 - + col1 * + tab1.col2 * - tab1.col0 )
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-303
SELECT DISTINCT col0 DIV - col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT col0 / - col2 FROM tab1
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT ALL col1 DIV + col2 col1 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-304
SELECT ALL col1 / + col2 col1 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL col0 * - col2 + col0 FROM tab2
----
-182
-1950
-2923
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND tab1.col1 * col1 * col2
----
query I rowsort
SELECT DISTINCT col0 + + col2 * col0 * col0 FROM tab2
----
1330
158262
237237
query I rowsort
SELECT DISTINCT + col1 * col0 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0
----
-98
-98
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col0 * - col2 col1 FROM tab2
----
-110
-1949
-2923
query I rowsort
SELECT - 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + - ( col1 ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 4 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2068
3399
8103
query I rowsort
SELECT DISTINCT - 89 FROM tab2 cor0
----
-89
query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 AS cor0
----
-54
query I rowsort
SELECT + + col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL ( - col2 ) * + col0 + - col2 * + col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT + 13 * col2 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT ALL 94 * + col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
8170
8645
9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-321
SELECT DISTINCT + + col1 * col0 + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT + + col1 * col0 + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + 79 AS col1 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT col0 + col2 * 84 FROM tab0 AS cor0
----
119
2796
6977
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT + 83 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-324
SELECT + 83 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd
query I rowsort
SELECT DISTINCT col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col0 * 10 AS col0 FROM tab1 AS cor0
----
30
640
800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-329
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col1 + 27 AS col1 FROM tab1 AS cor0
----
-1221
-1377
-543
query I rowsort
SELECT + col2 - - ( 39 ) * col2 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT DISTINCT - col2 - col1 * - col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT 89 * col1 FROM tab0
----
7654
8099
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - ( - col1 ) col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col2 * - col2 - + 51 * col0 AS col2 FROM tab0
----
-135
-1784
2185
query I rowsort
SELECT col0 * 87 AS col1 FROM tab1 AS cor0
----
261
5568
6960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-337
SELECT DISTINCT CAST( + 41 AS SIGNED ) + col0 * col2 AS col0 FROM tab2 cor0
----
2069
230
3043
skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT CAST ( + 41 AS INTEGER ) + col0 * col2 AS col0 FROM tab2 cor0
----
2069
230
3043
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 DISTINCT 83 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
83
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col0 * + col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT ALL col2 + + 56 AS col0 FROM tab1
----
110
113
152
query I rowsort
SELECT cor1.col2 + + 69 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 765d2fe2a46e1e4f275518010a2391b0
query I rowsort
SELECT + col2 + 41 * col1 AS col0 FROM tab2 AS cor0
----
1298
2445
735
query I rowsort
SELECT ALL + col0 + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT cor0.col2 * 2 + + col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2
----
-11
query I rowsort
SELECT col0 * + 92 + col0 * - col0 FROM tab0
----
1632
1995
267
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - 9 AS col0 FROM tab1 cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col0 + - col0 col1 FROM tab1 AS cor0
----
36416
4209
99760
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT - col0 - col0 DIV col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-354
SELECT - col0 - col0 / col1 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col1 + col1 * tab2.col1 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + ( + col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-357
SELECT DISTINCT + - col2 * col0 * + col0 + CAST( 82 AS SIGNED ) FROM tab1 AS cor0
----
-233390
-404
-614318
skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + - col2 * col0 * + col0 + CAST ( 82 AS INTEGER ) FROM tab1 AS cor0
----
-233390
-404
-614318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-358
SELECT CAST( NULL AS SIGNED ) * col0 + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-358
SELECT CAST ( NULL AS INTEGER ) * col0 + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab1
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab0
----
63
63
63
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
onlyif mysql # use DIV operator for integer division
query I rowsort label-362
SELECT + 67 DIV + col0 + - col0 AS col1 FROM tab0
----
-22
-34
-89
skipif mysql # not compatible
query I rowsort label-362
SELECT + 67 / + col0 + - col0 AS col1 FROM tab0
----
-22
-34
-89
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2, tab1 AS cor0
----
31
query I rowsort
SELECT ALL tab2.col2 * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL 97 * col1 AS col2 FROM tab2
----
1649
3007
5723
query I rowsort
SELECT ALL col0 + - col2 * 7 FROM tab2 AS cor0
----
-104
-182
-187
query I rowsort
SELECT col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-369
SELECT - CAST( NULL AS DECIMAL ) / 44 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-369
SELECT - CAST ( NULL AS REAL ) / 44 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + cor0.col2 * col0 + - 76 * + col0 * col1 FROM tab2 AS cor0
----
-16303
-347724
-99066
query I rowsort
SELECT - 50 FROM tab0, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ALL - tab2.col2 * + 6 + col1 + col1 FROM tab2
----
-100
-194
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT ALL - col0 DIV 84 + - 82 AS col1 FROM tab1
----
-82
-82
-82
skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - col0 / 84 + - 82 AS col1 FROM tab1
----
-82
-82
-82
query I rowsort
SELECT - 45 FROM tab1, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT - col1 DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-377
SELECT - col1 / col1 + col0 AS col2 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT col1 * 83 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT DISTINCT + col2 * + col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col1 + ( + col2 * - col2 ) + col0 FROM tab1
----
-2887
-3175
-9123
query I rowsort
SELECT col1 * - tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT - ( - cor0.col1 ) + - cor0.col0 * CAST( + col1 AS SIGNED ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-573
-931
2
skipif mysql # not compatible
query I rowsort label-382
SELECT - ( - cor0.col1 ) + - cor0.col0 * CAST ( + col1 AS INTEGER ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT ALL + - ( - 67 ) FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * 92 FROM tab1 AS cor0
----
-276
-5888
-7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT DISTINCT col0 * cor0.col2 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT col0 * cor0.col2 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
185
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-388
SELECT - - CAST( col2 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-388
SELECT - - CAST ( col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT DISTINCT - 65 * col2 - + col0 DIV + 89 FROM tab1 AS cor0
----
-3510
-3705
-6240
skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - 65 * col2 - + col0 / + 89 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT + 76 AS col2 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT ALL + 30 AS col2 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT + + col2 * col0 + + cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
193
2061
2981
query I rowsort
SELECT + ( 8 ) + col2 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1144
140
705
query I rowsort
SELECT + col0 + col0 + col2 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL + col1 * 41 + col1 AS col0 FROM tab2 AS cor0
----
1302
2478
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-396
SELECT ALL - 88 DIV 33 + + col0 - + col0 FROM tab2 cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - 88 / 33 + + col0 - + col0 FROM tab2 cor0
----
-2
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + col1 col2 FROM tab2 AS cor0
----
-26
-40
2
query I rowsort
SELECT + - ( col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-401
SELECT + 72 DIV - col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
1035
633
76
skipif mysql # not compatible
query I rowsort label-401
SELECT + 72 / - col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
1035
633
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col1 col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - col2 * cor0.col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT col1 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * 37 * + 46 + col0 AS col1 FROM tab0 AS cor0
----
146951
1772
56982
query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0, tab1 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT DISTINCT + + 23 * col2 + col1 DIV 64 FROM tab0 AS cor0
----
1887
24
760
skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT + + 23 * col2 + col1 / 64 FROM tab0 AS cor0
----
1887
24
760
query I rowsort
SELECT - ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 * + 58 AS col2 FROM tab0 AS cor0
----
1392
2030
5162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-413
SELECT DISTINCT - cor0.col0 DIV col2 + col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT - cor0.col0 / col2 + col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT + + ( + 57 ) FROM tab2 cor0
----
57
57
57
query I rowsort
SELECT 25 FROM tab0, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab1, tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT ALL col1 DIV + CAST( + col1 + + col1 AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-417
SELECT ALL col1 / + CAST ( + col1 + + col1 AS INTEGER ) FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * + col0 + cor0.col2 * - ( col1 ) FROM tab0 cor0
----
-132
-14760
-3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col0 * + col2 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + - col2 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * - ( col0 ) * - col1 + - 20 col0 FROM tab2 AS cor0
----
119632
51014
5839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ( 81 ) * - col2 FROM tab2
----
-2106
-2187
-3078
query I rowsort
SELECT ALL 80 * col0 * col1 + col0 * col0 FROM tab2
----
113681
17409
374244
query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-428
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL + tab1.col2 * - col1 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab0 cor0
----
-69
-69
-69
query I rowsort
SELECT - ( cor0.col2 ) * cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - cor0.col0 + + 15 FROM tab1 AS cor0
----
-49
-65
12
query I rowsort
SELECT + col2 * - 50 * + col0 FROM tab0 AS cor0
----
-1750
-364900
-39600
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 + col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 26 col2 FROM tab1 cor0
----
1404
1482
2496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-438
SELECT 46 + - col0 / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-438
SELECT 46 + - col0 / CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * tab1.col1 - - col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT col1 - tab0.col1 * col1 FROM tab0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-441
SELECT col1 + CAST( col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-441
SELECT col1 + CAST ( col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-442
SELECT + cor0.col1 + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-442
SELECT + cor0.col1 + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-443
SELECT ALL - - col2 - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-443
SELECT ALL - - col2 - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT col0 * - col0 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1296
-158158
-237120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-445
SELECT ALL col0 * CAST( col2 AS SIGNED ) + col2 * col2 AS col1 FROM tab1 AS cor0
----
16896
3078
6897
skipif mysql # not compatible
query I rowsort label-445
SELECT ALL col0 * CAST ( col2 AS INTEGER ) + col2 * col2 AS col1 FROM tab1 AS cor0
----
16896
3078
6897
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 - + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col2 * - 43 AS col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT + col2 * col2 + - 2 FROM tab0 AS cor0
----
-1
1087
6722
query I rowsort
SELECT - - col1 * - cor0.col1 + 83 FROM tab1 cor0
----
-17
-593
-86
query I rowsort
SELECT ALL - col0 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - - cor0.col0 * col2 - - col1 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT - ( 43 ) * cor0.col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT - 65 * cor0.col2 + col0 FROM tab0 cor0
----
-2121
-30
-5241
onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT ( - 25 ) DIV - col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-455
SELECT ( - 25 ) / - col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT cor0.col1 + cor0.col1 * + col2 * + 72 FROM tab1 AS cor0
----
101114
41050
89869
query I rowsort
SELECT - 73 * + 43 * + col2 AS col0 FROM tab2 AS cor0
----
-119282
-81614
-84753
query I rowsort
SELECT - + 28 * - col1 FROM tab1 AS cor0
----
280
364
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-459
SELECT 80 / col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-459
SELECT 80 / col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - - col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - + col2 + col0 - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-185
-727
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 72 FROM tab2, tab2 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT DISTINCT + col0 * 41 * - col0 FROM tab1 AS cor0
----
-167936
-262400
-369
onlyif mysql # use DIV operator for integer division
query I rowsort label-469
SELECT ALL + + col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + + col2 / - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - col2 * col1 + 88 * - cor0.col0 FROM tab0 AS cor0
----
-15294
-3177
-4950
query I rowsort
SELECT ALL - cor0.col1 + col1 * + col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - + col0 + + 38 AS col0 FROM tab0 cor0
----
-51
14
3
query I rowsort
SELECT tab2.col1 * + col2 + - 53 AS col0 FROM tab2
----
1481
593
784
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 38dccc9c32724260ec175f754830d863
query I rowsort
SELECT col2 + ( - col0 + col0 ) FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 + 57 col2 FROM tab0 AS cor0
----
7355
849
92
query I rowsort
SELECT DISTINCT - col2 + + col0 * col0 AS col2 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT + - col2 + + col0 * col2 AS col0 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT + col1 DIV 80 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-479
SELECT + col1 / 80 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - ( + col0 ) * + col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL + col1 + + col1 + col2 FROM tab1 cor0
----
106
122
77
query I rowsort
SELECT col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 84 FROM tab1, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT + 35 + 80 * + col0 FROM tab1 AS cor0
----
275
5155
6435
query I rowsort
SELECT ALL - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT DISTINCT col0 DIV - tab0.col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT col0 / - tab0.col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT + col0 * - 81 AS col1 FROM tab1 cor0
----
-243
-5184
-6480
query I rowsort
SELECT DISTINCT - - col0 * + 84 AS col1 FROM tab2 AS cor0
----
588
6552
6636
onlyif mysql # use DIV operator for integer division
query I rowsort label-489
SELECT ALL - 3 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - 3 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) + - cor0.col2 AS col1 FROM tab2 cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * ( - 43 ) col0 FROM tab1 AS cor0
----
-183
-2809
-3536
query I rowsort
SELECT + - 37 * + cor0.col0 + ( cor0.col2 ) * cor0.col1 FROM tab0 AS cor0
----
-1198
1950
4169
query I rowsort
SELECT ALL 58 + + 30 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT + col2 * tab1.col1 * 96 + + tab1.col0 * + col1 FROM tab1
----
120848
134862
55360
query I rowsort
SELECT DISTINCT + 66 + col1 * + 53 FROM tab0 AS cor0
----
4624
4889
5207
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL - - 9 * - col0 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT DISTINCT - 60 * col2 AS col0 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT ALL col2 + col1 * - col0 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
291
41081
83376
query I rowsort
SELECT ALL - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + cor0.col0 AS col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT col1 * - 20 + col2 + col0 FROM tab0 AS cor0
----
-1649
-1663
-1904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + + 64 col1 FROM tab0 AS cor0
----
-2000
-3331
-8035
query I rowsort
SELECT - cor0.col2 * - 71 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT DISTINCT ( 64 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-506
SELECT ALL - - col1 + - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - - col1 + - col2 / + col2 AS col2 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT DISTINCT + col2 DIV - cor0.col2 + col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT + col2 / - cor0.col2 + col1 FROM tab0 cor0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-508
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + ( - col2 ) + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 * - col0 + - ( + col1 * - ( - col1 ) ) AS col0 FROM tab0 cor0
----
-15579
-8188
-9444
query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - + col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + ( + 75 ) AS col2 FROM tab2 AS cor0
----
-3
-4
68
query I rowsort
SELECT ALL 54 + + col2 * tab0.col1 FROM tab0
----
151
2892
7516
query I rowsort
SELECT ALL 75 * col0 + - col0 FROM tab0
----
1776
2590
6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT DISTINCT 70 DIV col0 + col0 FROM tab0
----
26
37
89
skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 70 / col0 + col0 FROM tab0
----
26
37
89
query I rowsort
SELECT ALL + col1 + col2 + + col0 AS col0 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT - col1 * ( 14 ) FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT ALL + cor0.col0 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col0 * 15 AS col2 FROM tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 - + col2 * + col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT 54 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
54
query I rowsort
SELECT DISTINCT + col0 + col1 * - 47 * - col1 FROM tab0
----
347636
389296
442258
query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - 88 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT + col0 DIV 1 + col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-527
SELECT + col0 / 1 + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - col2 * col2 + - col2 AS col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT - col1 + + col0 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + + cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab0, tab1 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + tab2.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT + col0 * - ( + col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col1 * + col1 - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - 30 * col1 FROM tab1
----
-300
-390
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-537
SELECT DISTINCT col0 DIV col0 - col2 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT col0 / col0 - col2 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT DISTINCT + ( col0 ) - - col2 AS col1 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT 24 * + col2 + 39 - col2 * - col1 * + cor0.col1 FROM tab2 AS cor0
----
11933
26634
91169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 + - 95 col0 FROM tab1 AS cor0
----
3553
67
7585
query I rowsort
SELECT 3 + + col1 - col0 FROM tab2 AS cor0
----
-16
-59
27
query I rowsort
SELECT ALL col1 * 73 * - col2 AS col1 FROM tab1
----
-102492
-41610
-91104
query I rowsort
SELECT ALL + ( ( col1 ) ) * + 60 AS col2 FROM tab1
----
1560
600
780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-545
SELECT 1 * + cor0.col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-545
SELECT 1 * + cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL ( col1 ) * + col0 + tab1.col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - ( 81 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT DISTINCT col1 + - tab1.col0 DIV + col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT col1 + - tab1.col0 / + col1 FROM tab1
----
26
4
7
query I rowsort
SELECT ALL + - 68 * cor0.col1 - - cor0.col1 AS col1 FROM tab2 cor0
----
-1139
-2077
-3953
query I rowsort
SELECT ALL 40 AS col1 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - 5 FROM tab2 cor0
----
5
5
5
query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col2 * - col2 + 77 * col1 AS col0 FROM tab1 AS cor0
----
10217
4019
4918
query I rowsort
SELECT ALL + 61 AS col2 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col2 + + col0 * - 51 AS col0 FROM tab2 AS cor0
----
-384
-4004
-4067
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT ALL col2 * col1 + + CAST( - col1 AS SIGNED ) * + col2 - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-559
SELECT ALL col2 * col1 + + CAST ( - col1 AS INTEGER ) * + col2 - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + 85 + + col1 AS col2 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT tab1.col2 * - col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 99 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL 23 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-565
SELECT - col0 * - cor0.col0 + col1 * 57 DIV + cor0.col2 + col0 FROM tab0 AS cor0
----
6789
748
8073
skipif mysql # not compatible
query I rowsort label-565
SELECT - col0 * - cor0.col0 + col1 * 57 / + cor0.col2 + col0 FROM tab0 AS cor0
----
6789
748
8073
query I rowsort
SELECT - col1 * col1 + ( 14 ) FROM tab0 AS cor0
----
-7382
-8267
-9395
query I rowsort
SELECT - - 34 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT - 72 FROM tab0 cor0
----
-72
-72
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT col2 DIV - cor0.col2 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-569
SELECT col2 / - cor0.col2 col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 31 AS col2 FROM tab2
----
31
31
31
query I rowsort
SELECT - 84 FROM tab2, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT ALL 20 * + col1 FROM tab1 AS cor0
----
200
260
520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col1 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab2 cor2, tab2 cor3
----
13122 values hashing to c868dc8c46f3a7daaa8510a2b9a93201
query I rowsort
SELECT ALL cor0.col1 + ( + 16 ) FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT + + col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + col0 * col0 + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT 93 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL - 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT - tab2.col0 + - ( + 82 + col2 ) FROM tab2
----
-116
-186
-199
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-582
SELECT - CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-582
SELECT - CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-583
SELECT ALL CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif mysql # not compatible
query I rowsort label-583
SELECT ALL CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL - 37 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT col0 * col0 * - col2 AS col1 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL + 13 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT col0 * - 39 FROM tab1
----
-117
-2496
-3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-588
SELECT DISTINCT + col1 * col2 + + cor0.col2 * CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT + col1 * col2 + + cor0.col2 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-589
SELECT - + CAST( + col2 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-589
SELECT - + CAST ( + col2 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 - col0 * - col0 * 99 AS col2 FROM tab2 AS cor0
----
4820
602257
617842
query I rowsort
SELECT col0 + - ( + cor0.col1 ) * ( - col2 * - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT ( col0 ) + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col2 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT 19 * - 83 + col2 AS col0 FROM tab2 AS cor0
----
-1539
-1550
-1551
query I rowsort
SELECT ALL - 34 FROM tab1 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-597
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-598
SELECT ALL col0 * + CAST( col1 AS SIGNED ) FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-598
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( tab2.col1 ) + + col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT col1 * col1 - - col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - ( - 17 ) + col2 AS col1 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT 7 * + tab0.col0 + + col1 * 95 + - col1 * col0 FROM tab0
----
1169
6065
6274
query I rowsort
SELECT + 24 FROM tab1
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab2
----
42
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # use DIV operator for integer division
query I rowsort label-607
SELECT DISTINCT - col2 DIV + ( - col2 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT - col2 / + ( - col2 ) FROM tab0
----
1
query I rowsort
SELECT - + col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col2 - col2 * + col1 AS col2 FROM tab1
----
-1152
-1350
-513
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-611
SELECT cor0.col1 * col0 + col1 DIV - col1 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-611
SELECT cor0.col1 * col0 + col1 / - col1 FROM tab0 AS cor0
----
2063
3394
8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT + col1 * col0 + col1 DIV + col1 + + 84 * - 17 FROM tab2 AS cor0
----
-1210
-84
3175
skipif mysql # not compatible
query I rowsort label-612
SELECT + col1 * col0 + col1 / + col1 + + 84 * - 17 FROM tab2 AS cor0
----
-1210
-84
3175
query I rowsort
SELECT - - col1 * ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 90 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618
query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL cor0.col0 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT col1 * + col0 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT ALL + col2 + - 22 + col1 FROM tab0 AS cor0
----
151
76
97
query I rowsort
SELECT DISTINCT col0 - ( - cor0.col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + - col1 + 94 * col2 FROM tab0 AS cor0
----
-3
3016
7617
query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + col0 * - ( col2 ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + 50 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL - col0 * col2 * col0 + + 26 FROM tab2
----
-1297
-158158
-237132
query I rowsort
SELECT ALL + col1 * + col1 + - col0 FROM tab1
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-626
SELECT + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-626
SELECT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT DISTINCT col1 * col0 * - col2 + col0 DIV col0 + col1 FROM tab2 AS cor0
----
-119592
-51016
-5827
skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT col1 * col0 * - col2 + col0 / col0 + col1 FROM tab2 AS cor0
----
-119592
-51016
-5827
onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT + col0 * ( + cor0.col1 ) + cor0.col0 DIV + 15 FROM tab2 AS cor0
----
1348
217
4607
skipif mysql # not compatible
query I rowsort label-628
SELECT + col0 * ( + cor0.col1 ) + cor0.col0 / + 15 FROM tab2 AS cor0
----
1348
217
4607
query I rowsort
SELECT ALL + col1 + ( + col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col0 - 17 AS col2 FROM tab0 AS cor0
----
18
7
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT DISTINCT - cor0.col1 * col2 DIV col1 + - col2 FROM tab2 cor0
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - cor0.col1 * col2 / col1 + - col2 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - cor0.col2 * - ( + col1 ) + col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT DISTINCT tab0.col0 DIV + col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT tab0.col0 / + col2 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT DISTINCT col2 DIV + col2 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT col2 / + col2 AS col0 FROM tab1
----
1
query I rowsort
SELECT DISTINCT + tab1.col1 + - col2 - tab1.col0 AS col0 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT col0 * - col0 + - col1 AS col0 FROM tab0
----
-1322
-662
-8012
query III rowsort
SELECT * FROM tab2 WHERE NULL > ( col1 - col0 )
----
query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col0 - - col2 col2 FROM tab1
----
4217
6576
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT + col0 DIV + col2 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-641
SELECT + col0 / + col2 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT + - 58 * col0 AS col1 FROM tab1 AS cor0
----
-174
-3712
-4640
onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT DISTINCT tab1.col0 DIV + col1 AS col2 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT tab1.col0 / + col1 AS col2 FROM tab1
----
0
6
query III rowsort
SELECT * FROM tab2 WHERE - col2 - col1 NOT BETWEEN col2 - + col1 * - col1 AND - col2 * - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT ALL col0 DIV - col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-645
SELECT ALL col0 / - col1 AS col0 FROM tab1
----
-6
-6
0
query I rowsort
SELECT col0 - + col0 AS col2 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col1 - + col1 * - col2 * col0 NOT IN ( tab1.col2 )
----
query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 + - col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col1 * tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col1 * col2 + col2 * - col1 - - col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col1 * col2 * - col2 AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - col2 * + col1 * + col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - tab1.col0 * tab1.col2 + col2 AS col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col1 * col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + 42 * + cor0.col1 + + col0 FROM tab2 cor0
----
1309
2556
793
query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab0 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * col1 col0 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT ALL - col1 * - col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * col0 col2 FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT + tab0.col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL cor0.col0 * + col0 - - 10 FROM tab1 cor0
----
19
4106
6410
query I rowsort
SELECT DISTINCT col1 + - col2 * 17 AS col1 FROM tab2 AS cor0
----
-383
-428
-629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT 4 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-124
-236
-68
query I rowsort
SELECT ALL - cor0.col0 * col1 - + col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 52 * + col0 * + 16 col0 FROM tab0 AS cor0
----
-19968
-29120
-74048
query I rowsort
SELECT 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT 64 + + 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
138
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col1 col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col0 * col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL ( - col0 ) * - col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col0 * + col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - col0 * col2 * - cor0.col1 + 25 * col0 FROM tab0 AS cor0
----
4270
666343
68712
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + - col1 col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-681
SELECT col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-681
SELECT col0 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + - ( + col2 ) + + 64 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT ALL - - 53 * - col2 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT + cor0.col0 DIV - col1 - 48 * 4 FROM tab0 AS cor0
----
-192
-192
-192
skipif mysql # not compatible
query I rowsort label-684
SELECT + cor0.col0 / - col1 - 48 * 4 FROM tab0 AS cor0
----
-192
-192
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col1 col2 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT - - cor0.col2 DIV - col2 + 60 * cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-686
SELECT - - cor0.col2 / - col2 + 60 * cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT + col0 * - 65 AS col0 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT 51 * + tab2.col2 AS col2 FROM tab2
----
1326
1377
1938
query I rowsort
SELECT DISTINCT + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT col0 * 67 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT ALL + col0 * - 67 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT ALL + + 49 * - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab0 AS cor0 WHERE + cor0.col2 IN ( - cor0.col1 )
----
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( cor0.col0 ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-35
-7298
-792
query I rowsort
SELECT - - col1 * - 39 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT + 88 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-698
SELECT col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 72 + - tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 10d09bc2a82dbff50065fb5e189ca496
query I rowsort
SELECT + 20 * - tab1.col2 + + col0 FROM tab1
----
-1076
-1077
-1840
query I rowsort
SELECT - tab1.col2 + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - ( - col0 ) - - cor0.col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) * + col1 - - cor0.col0 * col0 col1 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT ALL + 60 * col1 FROM tab1
----
1560
600
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT ALL + ( + col1 ) DIV col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + ( + col1 ) / col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT - 4 AS col0 FROM tab2
----
-4
-4
-4
query I rowsort
SELECT + + col0 * - col2 * + cor0.col2 - + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-23298
-590974
62
query I rowsort
SELECT DISTINCT col1 * col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT ALL col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-709
SELECT ALL col0 / + col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + 70 FROM tab0
----
70
70
70
query I rowsort
SELECT DISTINCT - tab0.col2 - + col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + col0 + - col0 * col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT ALL col1 DIV col1 + col0 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-714
SELECT ALL col1 / col1 + col0 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT + col1 - + col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 + + col0 - col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT ALL tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT ALL - CAST( 60 AS SIGNED ) DIV - tab2.col1 FROM tab2
----
1
1
3
skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - CAST ( 60 AS INTEGER ) / - tab2.col1 FROM tab2
----
1
1
3
query I rowsort
SELECT 48 FROM tab0
----
48
48
48
query I rowsort
SELECT DISTINCT + 6 * 0 AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT ALL - col0 DIV + tab2.col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - col0 / + tab2.col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT + cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 14 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT 11 * - col2 FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + col0 + - col0 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 21 + - col1 * + col0 FROM tab0 AS cor0
----
-2085
-3416
-8120
query I rowsort
SELECT cor0.col2 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 13 AS col2 FROM tab2
----
13
13
13
query I rowsort
SELECT DISTINCT tab0.col0 * col1 * col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + ( - 59 ) FROM tab0
----
-59
-59
-59
query I rowsort
SELECT - + col0 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - cor0.col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
query III rowsort
SELECT * FROM tab1 WHERE NULL > tab1.col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT col0 DIV tab1.col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-743
SELECT col0 / tab1.col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - col0 col1 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT tab0.col0 * + col2 + col0 + tab0.col0 * + col0 AS col2 FROM tab0
----
1295
1392
15308
query I rowsort
SELECT col0 + col2 * col0 + col2 * - col1 AS col1 FROM tab1
----
-1239
3142
6512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT ALL cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-749
SELECT ALL cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT DISTINCT col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT col2 / col0 FROM tab1 AS cor0
----
0
1
18
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + col0 * col2 = ( - col0 * + cor0.col1 + col1 + + cor0.col0 * col1 )
----
query I rowsort
SELECT + col1 + - col2 + col2 AS col1 FROM tab0 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 - - col2 * - col1 col2 FROM tab1
----
-1152
-1350
-513
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND - col2
----
query I rowsort
SELECT col0 * tab1.col2 * col1 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab2.col2 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT col0 + col2 * - col0 FROM tab0 WHERE NOT col2 >= ( NULL )
----
query I rowsort
SELECT col1 + - col1 * - col1 FROM tab1
----
110
182
702
query III rowsort
SELECT * FROM tab0 WHERE col2 * col0 < NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0 WHERE ( col2 * - col1 ) IN ( - col0 * - col0 / - col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT ALL col0 * col1 - - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT cor0.col2 * - col0 DIV col0 + col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-764
SELECT cor0.col2 * - col0 / col0 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL cor0.col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - col2 + - col0 + - cor0.col0 * + col2 AS col2 FROM tab1 cor0
----
-219
-3769
-7856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col1 FROM tab2 AS cor0
----
-41
-52
20
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT ALL col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-774
SELECT ALL col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT col1 * tab1.col2 AS col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + col0 + - col2 * - tab1.col1 col1 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT - ( 59 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT - col1 - 1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL + col0 * cor0.col2 * + col2 + ( - 5 * col2 ) + col0 FROM tab2 AS cor0
----
113965
4975
52676
query I rowsort
SELECT ALL - ( + col1 ) * + col0 + - 38 FROM tab0 AS cor0
----
-2102
-3433
-8137
query I rowsort
SELECT + - 17 AS col2 FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT cor0.col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + 15 * 72 AS col1 FROM tab1 AS cor0
----
1080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col1 FROM tab1 cor0
----
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT ALL + + col2 + + col1 DIV + col1 - ( - col0 ) FROM tab0 AS cor0
----
172
37
58
skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + + col2 + + col1 / + col1 - ( - col0 ) FROM tab0 AS cor0
----
172
37
58
query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 95 * ( col2 ) + ( + col1 ) FROM tab2 AS cor0
----
2529
2596
3627
query I rowsort
SELECT - + 34 FROM tab0 AS cor0
----
-34
-34
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT DISTINCT - 96 * + 56 + col0 DIV col0 FROM tab1 AS cor0
----
-5375
skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - 96 * + 56 + col0 / col0 FROM tab1 AS cor0
----
-5375
query I rowsort
SELECT + 85 + - col1 AS col2 FROM tab1 AS cor0
----
59
72
75
query I rowsort
SELECT ALL - cor0.col1 - + cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab2.col2 * ( + col2 ) - col0 col0 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-796
SELECT - col0 - CAST( + ( col1 ) AS SIGNED ) * col1 AS col0 FROM tab0
----
-7420
-8370
-9444
skipif mysql # not compatible
query I rowsort label-796
SELECT - col0 - CAST ( + ( col1 ) AS INTEGER ) * col1 AS col0 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT col1 * ( col2 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col2 + tab0.col1 + col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT + col2 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-799
SELECT + col2 / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT col1 - + ( tab2.col2 ) AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT - ( - col0 ) - cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 91 + + col0 AS col2 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT DISTINCT + ( + 99 ) FROM tab0 AS cor0
----
99
query I rowsort
SELECT ALL - 42 * - col1 + col2 FROM tab2 cor0
----
1329
2504
752
query I rowsort
SELECT ALL - - col0 * - col1 + - col0 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT + + 25 FROM tab0 cor0
----
25
25
25
query I rowsort
SELECT DISTINCT 76 FROM tab0 AS cor0
----
76
query I rowsort
SELECT cor0.col1 + 27 FROM tab1 AS cor0
----
37
40
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT - 78 + ( + col0 ) DIV - col0 FROM tab0
----
-79
-79
-79
skipif mysql # not compatible
query I rowsort label-809
SELECT - 78 + ( + col0 ) / - col0 FROM tab0
----
-79
-79
-79
query I rowsort
SELECT 50 + + col1 AS col1 FROM tab0 cor0
----
136
141
147
query I rowsort
SELECT - ( col0 ) + col0 + 73 * col1 * col1 FROM tab0
----
539908
604513
686857
query I rowsort
SELECT - col1 * - 69 AS col2 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT tab0.col0 + col0 * tab0.col2 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col1 * + ( 74 ) * col1 AS col2 FROM tab2 AS cor0
----
-21386
-257594
-71114
query I rowsort
SELECT ALL - 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT DISTINCT + tab0.col0 * - 19 - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8f2e7259a2d802637e76a0c2573f3b77
query I rowsort
SELECT ALL + col0 * + col1 + 44 AS col1 FROM tab2
----
1387
261
4646
query I rowsort
SELECT DISTINCT - col1 * col0 * - tab2.col0 - - col2 * 41 * col0 FROM tab2
----
229179
442104
9268
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab2
----
-41
-52
20
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - + col0 col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col0 - - 44 AS col0 FROM tab0 AS cor0
----
133
68
79
query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 + + cor0.col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-825
SELECT ALL - col2 * + CAST( col1 AS SIGNED ) + - cor0.col2 FROM tab2 cor0
----
-1560
-684
-864
skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - col2 * + CAST ( col1 AS INTEGER ) + - cor0.col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col2 * + ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - col0 + col1 * + 54 AS col1 FROM tab1 AS cor0
----
1401
476
622
query I rowsort
SELECT ALL - + col1 * + 83 AS col1 FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT + - 68 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
query I rowsort
SELECT DISTINCT + - col1 * 24 * + col1 FROM tab0 AS cor0
----
-177504
-198744
-225816
query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col1 * ( - col1 ) FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 - - col2 col2 FROM tab1 AS cor0
----
118
76
79
query I rowsort
SELECT + + col0 * col2 * + col0 + - ( 34 * col0 ) AS col0 FROM tab2 AS cor0
----
1085
155532
234472
query I rowsort
SELECT ( col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL 61 FROM tab1
----
61
61
61
query I rowsort
SELECT + + 79 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT - col0 DIV col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-839
SELECT - col0 / col0 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT ALL - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - cor0.col0 / - col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT DISTINCT + ( - col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + ( - col1 ) / col0 AS col2 FROM tab2 AS cor0
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT + col0 + - cor0.col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-842
SELECT + col0 + - cor0.col0 / + col0 AS col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - + 79 AS col0 FROM tab1 AS cor0
----
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT - col2 + 74 DIV - col0 FROM tab2 cor0
----
-26
-37
-38
skipif mysql # not compatible
query I rowsort label-844
SELECT - col2 + 74 / - col0 FROM tab2 cor0
----
-26
-37
-38
query I rowsort
SELECT ALL - col1 * + 59 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT DISTINCT + - col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + cor0.col1 * ( 37 ) AS col0 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 70 AS col0 FROM tab0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col2 FROM tab2
----
-67
query I rowsort
SELECT tab0.col2 + col1 * + col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 66 AS col2 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab1
----
-6
query I rowsort
SELECT ALL + 33 FROM tab0
----
33
33
33
query I rowsort
SELECT ( col2 * - col1 ) - + col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT + cor0.col0 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
3
64
80
query I rowsort
SELECT tab1.col1 + 69 * - col1 FROM tab1
----
-1768
-680
-884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT col1 * - col2 * col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col2 * 95 * - 83 AS col0 FROM tab2
----
205010
212895
299630
query I rowsort
SELECT - - col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ( + 88 + col2 ) AS col2 FROM tab0
----
121
170
89
query I rowsort
SELECT + 95 FROM tab0
----
95
95
95
query I rowsort
SELECT + ( col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + 84 * col0 + col0 FROM tab2 AS cor0
----
595
6630
6715
query I rowsort
SELECT ALL 60 + tab2.col2 * - col2 FROM tab2
----
-1384
-616
-669
query I rowsort
SELECT 11 * tab1.col0 + col2 FROM tab1
----
761
87
976
query I rowsort
SELECT ALL + col1 * 78 + + col1 FROM tab1
----
1027
2054
790
query I rowsort
SELECT + - col1 + 49 + - col1 AS col1 FROM tab0 cor0
----
-123
-133
-145
query I rowsort
SELECT - col1 * ( tab1.col2 * + 99 ) AS col2 FROM tab1
----
-123552
-138996
-56430
query I rowsort
SELECT ALL + ( col2 ) + - col2 * col0 AS col0 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT + 44 + col1 + col2 FROM tab0 AS cor0
----
142
163
217
query I rowsort
SELECT - 93 * col0 * - 5 FROM tab2 AS cor0
----
3255
36270
36735
query I rowsort
SELECT ALL - col1 * col2 + cor0.col0 AS col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - 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-880
SELECT - col1 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-880
SELECT - col1 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + - cor0.col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 64 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
41344
53568
98176
query I rowsort
SELECT - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 96 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1321
672
8017
query I rowsort
SELECT ALL col2 + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 16 * - col2 FROM tab2 AS cor0
----
-416
-432
-608
query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
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 ALL - col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - - col2 + col2 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - + ( col2 ) * ( ( - col0 ) ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col2 + ( - 90 ) FROM tab1 AS cor0
----
-33
-36
6
query I rowsort
SELECT - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 - + col2 * - 51 * col0 AS col0 FROM tab0 cor0
----
1882
372289
40478
query I rowsort
SELECT DISTINCT - col1 + col2 * + tab2.col2 FROM tab2
----
1427
617
698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-898
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - col1 * - 87 FROM tab0 cor0
----
7568
8008
8536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( - 68 * col1 ) col1 FROM tab1 cor0
----
11492
45968
6800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-901
SELECT col0 + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-901
SELECT col0 + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 * ( 95 ) AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT DISTINCT - col0 DIV - cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT - col0 / - cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT col1 * - col1 + + 48 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-4345
-5812
-9361
query I rowsort
SELECT + cor0.col2 * - ( + 43 ) FROM tab1 AS cor0
----
-2322
-2451
-4128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-906
SELECT col0 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-906
SELECT col0 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 55 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - - 47 AS col2 FROM tab2 cor0
----
47
47
47
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432
query I rowsort
SELECT - + col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT ALL - CAST( + col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - CAST ( + col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - ( col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ( - 36 ) FROM tab2 cor0
----
-36
-36
-36
query I rowsort
SELECT ALL - 80 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT col1 * - ( col0 ) * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT 73 * col2 AS col2 FROM tab2
----
1898
1971
2774
query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL - col2 * col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-923
SELECT - col0 / + col0 + CAST( NULL AS SIGNED ) * + 3 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-923
SELECT - col0 / + col0 + CAST ( NULL AS INTEGER ) * + 3 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 59 * - col1 AS col0 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT + col1 + - col2 * - 37 FROM tab2 AS cor0
----
1021
1030
1423
query I rowsort
SELECT ALL ( + col2 ) * col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT ALL + col2 * col1 DIV - col1 AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + col2 * col1 / - col1 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 4 + col1 AS col0 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT DISTINCT - 58 * - col1 AS col0 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT ALL + - cor0.col1 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT + col0 * - col2 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT + col2 + + col2 DIV cor0.col1 AS col2 FROM tab1 cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-932
SELECT + col2 + + col2 / cor0.col1 AS col2 FROM tab1 cor0
----
103
56
62
query I rowsort
SELECT DISTINCT + col1 + - 19 FROM tab0 cor0
----
67
72
78
query I rowsort
SELECT cor0.col0 * 27 FROM tab2 AS cor0
----
189
2106
2133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-935
SELECT ALL col1 * CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-935
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * ( + 55 ) FROM tab1
----
-1430
-550
-715
query I rowsort
SELECT - col0 + col0 * col1 FROM tab2 cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT ALL - - col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - - col2 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT col0 / tab0.col2 + CAST( NULL AS SIGNED ) * + col2 + - tab0.col1 * + 47 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-940
SELECT col0 / tab0.col2 + CAST ( NULL AS INTEGER ) * + col2 + - tab0.col1 * + 47 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT - cor0.col2 DIV ( + col1 * - col0 + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-941
SELECT - cor0.col2 / ( + col1 * - col0 + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT - - col0 * - ( 39 * cor0.col0 ) + 80 DIV col2 AS col0 FROM tab1 cor0
----
-159743
-249600
-350
skipif mysql # not compatible
query I rowsort label-942
SELECT - - col0 * - ( 39 * cor0.col0 ) + 80 / col2 AS col0 FROM tab1 cor0
----
-159743
-249600
-350
query I rowsort
SELECT + - col0 + col2 - col0 AS col2 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - 62 FROM tab2 AS cor0
----
-62
-62
-62
query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 41 * 97 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
1949
3788
975
query I rowsort
SELECT 3 AS col0 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + - col0 + ( - col1 ) AS col1 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT - 88 * col1 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT DISTINCT 68 * cor0.col2 * - col1 FROM tab1 AS cor0
----
-38760
-84864
-95472
query I rowsort
SELECT 18 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - + 31 * - col0 AS col1 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - 80 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT ALL + col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 AS col0 FROM tab2 cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort
SELECT ( col1 ) * col1 + - CAST ( 75 AS REAL ) AS col0 FROM tab2 AS cor0
----
214
3406
886
query I rowsort
SELECT ALL + + ( ( cor0.col1 ) ) + 80 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT DISTINCT 84 - - col2 FROM tab1 AS cor0
----
138
141
180
query I rowsort
SELECT ALL + ( - 77 ) FROM tab0 AS cor0
----
-77
-77
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-963
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 56 AS col1 FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT DISTINCT - ( ( cor0.col1 ) ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - - col1 + + col2 * cor0.col0 * 2 AS col0 FROM tab0 AS cor0
----
14687
167
1670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-967
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab1
----
10
13
26
query I rowsort
SELECT + 35 - - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a6f5bd3c132ae500bfca6e845fb8129f
onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT DISTINCT - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT - col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + 54 AS col2 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT + 95 AS col1 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT + + 34 FROM tab1 cor0
----
34
34
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab1, tab2 AS cor0
----
55
query I rowsort
SELECT 6 * + 59 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 32db843fa318d5d60069686ef18164c2
query I rowsort
SELECT DISTINCT - col1 * + ( - col0 ) + - col1 + + 19 FROM tab1 cor0
----
1046
649
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT DISTINCT col0 DIV 72 + - 20 * + col0 * col0 AS col0 FROM tab2
----
-121679
-124819
-980
skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT col0 / 72 + - 20 * + col0 * col0 AS col0 FROM tab2
----
-121679
-124819
-980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + + 69 + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1317
1473
639
query I rowsort
SELECT + ( + col1 ) * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - ( + 69 ) * - col0 FROM tab0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab0
----
17
query I rowsort
SELECT - 87 FROM tab1, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT DISTINCT + + 86 * + 10 AS col2 FROM tab1 AS cor0
----
860
query I rowsort
SELECT + + 95 + + 31 FROM tab0 AS cor0
----
126
126
126
query I rowsort
SELECT + ( - cor0.col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 98 * + col2 + col0 FROM tab1 AS cor0
----
5295
5650
9488
query I rowsort
SELECT col2 * 79 + + col2 FROM tab0
----
2640
6560
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-990
SELECT - + col1 + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-990
SELECT - + col1 + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + + ( + ( + col2 ) + - col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 + + 49 * + col0 AS col2 FROM tab2 cor0
----
316
3796
3833
query I rowsort
SELECT - cor0.col2 * 50 + 74 + + col0 FROM tab0 AS cor0
----
-1552
-3937
59
query I rowsort
SELECT - - cor0.col2 * + col0 + 83 AS col1 FROM tab0 AS cor0
----
118
7381
875
query I rowsort
SELECT - col1 + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-997
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-997
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT + col0 + col0 * 66 DIV + col1 FROM tab2 AS cor0
----
165
21
385
skipif mysql # not compatible
query I rowsort label-998
SELECT + col0 + col0 * 66 / + col1 FROM tab2 AS cor0
----
165
21
385
query I rowsort
SELECT ALL 29 AS col2 FROM tab0 cor0
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT ALL cor0.col1 DIV - 69 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL cor0.col1 / - 69 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * cor0.col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 60 AS col0 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT ALL + tab1.col0 * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 9 FROM tab0 AS cor0
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * col2 col0 FROM tab2 cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 38 - - cor0.col0 FROM tab1 cor0
----
102
118
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab1, tab2 AS cor0
----
35
query I rowsort
SELECT col2 * + cor0.col2 - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab2
----
21
21
21
query I rowsort
SELECT - tab1.col2 * - cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab
query I rowsort
SELECT ALL + - col0 * + 85 FROM tab2 AS cor0
----
-595
-6630
-6715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1015
SELECT ALL + cor0.col2 * + CAST( NULL AS SIGNED ) * - 80 + - cor0.col1 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-1015
SELECT ALL + cor0.col2 * + CAST ( NULL AS INTEGER ) * - 80 + - cor0.col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT ALL + col2 DIV + col0 col1 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + col2 / + col0 col1 FROM tab2
----
0
0
3
query I rowsort
SELECT - 66 FROM tab0
----
-66
-66
-66
query I rowsort
SELECT ALL col2 + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col2 * + tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col1 * - 54 * - 89 AS col2 FROM tab1 AS cor0
----
-124956
-48060
-62478
query I rowsort
SELECT ALL col2 * 95 AS col1 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT - - cor0.col1 + + 37 FROM tab0 AS cor0
----
123
128
134
query I rowsort
SELECT ALL - col2 + - cor0.col0 - + col2 * col0 FROM tab2 AS cor0
----
-2132
-223
-3119
query I rowsort
SELECT ALL + - col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col0 * col2 - - col2 FROM tab1
----
216
3705
7776
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + CAST ( - col0 AS REAL ) * + tab1.col2 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL col1 + 4 FROM tab2
----
21
35
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT - col0 - + col0 * col0 DIV + col0 AS col2 FROM tab2
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-1028
SELECT - col0 - + col0 * col0 / + col0 AS col2 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT ALL - col2 + + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * 90 FROM tab0 cor0
----
2970
7380
90
query I rowsort
SELECT DISTINCT - - col2 * - ( col0 ) * + col2 FROM tab1 cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + 17 col1 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT col1 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 * col0 + tab2.col2 AS col0 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1, tab0 AS cor0
----
99
query I rowsort
SELECT + ( - 19 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT col1 * - tab1.col1 + + 81 * + tab1.col1 FROM tab1
----
1430
710
884
query I rowsort
SELECT - 0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - ( - tab1.col0 ) * - tab1.col2 * ( + col1 ) FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + ( 61 ) + col1 FROM tab2
----
120
78
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 52 col0 FROM tab0
----
1716
4264
52
query I rowsort
SELECT 63 + - col0 * col2 * col1 FROM tab1 AS cor0
----
-36417
-4149
-99777
query I rowsort
SELECT - + cor0.col1 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + col1 + - col1 * - col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - + col0 * + col1 - ( - 42 * + col0 ) FROM tab0 AS cor0
----
-1056
-1925
-4361
query I rowsort
SELECT DISTINCT - + 59 - col1 FROM tab2 AS cor0
----
-118
-76
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT + - col0 DIV - col0 - + 93 AS col0 FROM tab1 AS cor0
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-1049
SELECT + - col0 / - col0 - + 93 AS col0 FROM tab1 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + 91 - + cor0.col2 * col1 FROM tab2 AS cor0
----
-1443
-555
-746
query I rowsort
SELECT ALL - 92 * col1 AS col1 FROM tab0 AS cor0
----
-7912
-8372
-8924
query I rowsort
SELECT + col1 - cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 9 * col2 + ( - 8 ) * - cor0.col0 col0 FROM tab1 cor0
----
1025
1504
510
query I rowsort
SELECT ALL col0 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * cor0.col2 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT 57 FROM tab0 cor0
----
57
query I rowsort
SELECT ( - col1 ) + + ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 35 + + col1 FROM tab1 AS cor0
----
-22
-25
-9
query I rowsort
SELECT ALL - - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + cor0.col0 * - cor0.col1 + - col2 + ( + col2 + 84 ) AS col2 FROM tab0 AS cor0
----
2148
3479
8183
query I rowsort
SELECT + col0 + 19 AS col2 FROM tab0
----
108
43
54
query I rowsort
SELECT + col1 + col0 AS col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1064
SELECT - - ( + ( + col0 ) ) * CAST( 27 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189
2106
2133
skipif mysql # not compatible
query I rowsort label-1064
SELECT - - ( + ( + col0 ) ) * CAST ( 27 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189
2106
2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT ALL - col2 * ( 94 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
31
362
45
skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - col2 * ( 94 ) / - col0 AS col1 FROM tab2 AS cor0
----
31
362
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT DISTINCT col1 DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT col1 / col2 FROM tab1
----
0
query I rowsort
SELECT col1 + ( col0 ) FROM tab1
----
29
74
93
query I rowsort
SELECT + 24 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT - + ( - 64 ) * - col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT ALL + + col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab0
----
26
26
26
query I rowsort
SELECT ( - col2 * col2 ) AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + 84 FROM tab2
----
84
query I rowsort
SELECT DISTINCT col1 * 93 + cor0.col0 FROM tab1 cor0
----
1289
2421
994
query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT ALL - - col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - - col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 55 FROM tab0 cor0
----
55
55
55
query I rowsort
SELECT ALL + 96 + col0 * + col1 FROM tab1 cor0
----
1136
174
736
query I rowsort
SELECT DISTINCT 65 * - col2 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT + ( 71 ) FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT ALL - cor0.col1 + 28 FROM tab0 AS cor0
----
-58
-63
-69
query I rowsort
SELECT DISTINCT + col0 - + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - cor1.col2 + + 65 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f067ceefcbf91cff0d665ad2eee8bb7
query I rowsort
SELECT 29 * + col0 FROM tab0
----
1015
2581
696
onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT DISTINCT - cor0.col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - cor0.col2 / col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - - 51 AS col2 FROM tab2 AS cor0
----
51
query I rowsort
SELECT DISTINCT - 67 * + col1 * col0 AS col2 FROM tab1 cor0
----
-42880
-5226
-69680
query I rowsort
SELECT ALL - col0 + col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT col2 * col0 + + ( col1 ) + + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2763
4463
949
query I rowsort
SELECT DISTINCT + + ( - col2 ) + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT ALL - 3 + - cor0.col2 FROM tab2 AS cor0
----
-29
-30
-41
query I rowsort
SELECT 1 + - col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col1 * col2 * - cor0.col0 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col0 * - 3 AS col1 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT DISTINCT - col1 * col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT DISTINCT + 72 + + tab1.col1 + tab1.col0 DIV col1 FROM tab1
----
88
91
98
skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT + 72 + + tab1.col1 + tab1.col0 / col1 FROM tab1
----
88
91
98
query I rowsort
SELECT ALL - - col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col1 + ( col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( + tab1.col0 * - col0 AS REAL ) AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL + cor0.col2 * - 3 + ( col2 + cor0.col1 ) * col2 AS col2 FROM tab0 AS cor0
----
13940
3828
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col2 + 19 + 60 * col2 FROM tab1 AS cor0
----
3313
3496
5875
query I rowsort
SELECT - col1 + ( col1 + + col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
1540
4208
8915
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT - col2 DIV ( + col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1107
SELECT - col2 / ( + col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT + + col2 * - 92 + cor0.col0 + + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-2313
-2477
-3413
skipif mysql # not compatible
query I rowsort label-1108
SELECT + + col2 * - 92 + cor0.col0 + + col0 / + col1 AS col0 FROM tab2 AS cor0
----
-2313
-2477
-3413
query I rowsort
SELECT - 16 FROM tab0, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1111
SELECT - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1111
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0, tab0 AS cor0
----
-51
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT ALL + col2 DIV ( col0 ) FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + col2 / ( col0 ) FROM tab2
----
0
0
3
query I rowsort
SELECT - col0 + ( 47 ) AS col2 FROM tab0
----
-42
12
23
query I rowsort
SELECT DISTINCT + 58 + + 87 AS col2 FROM tab1, tab2 AS cor0
----
145
query I rowsort
SELECT col2 + col1 * ( col2 ) FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - - col1 * - cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT DISTINCT col0 * col2 + ( - 64 ) + - col2 AS col0 FROM tab1 cor0
----
3527
44
7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-1122
SELECT DISTINCT cor0.col0 DIV 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
1
skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT cor0.col0 / 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
1
query I rowsort
SELECT ALL + 60 * + 65 * tab0.col2 - - 65 FROM tab0
----
128765
319865
3965
query I rowsort
SELECT - 3 * + tab1.col2 * col0 AS col1 FROM tab1
----
-10944
-23040
-486
onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT DISTINCT - col0 + col1 DIV col1 AS col2 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - col0 + col1 / col1 AS col2 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT ALL 45 + - col2 FROM tab1
----
-12
-51
-9
query I rowsort
SELECT ALL tab1.col1 * col0 * - ( - col0 * - col2 ) + - col2 AS col0 FROM tab1
----
-12690
-2334777
-7987296
query I rowsort
SELECT ALL - 76 + col0 * + 70 FROM tab1
----
134
4404
5524
query I rowsort
SELECT DISTINCT - col2 + + col1 * + 5 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-6999
-7908
-8925
query I rowsort
SELECT + 3 - + col0 AS col2 FROM tab2 AS cor0
----
-4
-75
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * + 1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + 32 * col1 + + col2 FROM tab0 AS cor0
----
2785
2994
3105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT ALL - - col0 * col0 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - - col0 * col0 - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 98 * - col1 + - 29 * + col0 FROM tab2 AS cor0
----
-625
2835
3520
query I rowsort
SELECT DISTINCT - col0 * col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - 10 * col2 * + 67 FROM tab0
----
-22110
-54940
-670
query I rowsort
SELECT ALL 44 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT ALL + 57 FROM tab1, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col0 + - col0 * - col1 * + ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
22752
271440
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 56 + col0 col2 FROM tab2 cor0
----
-1378
-1505
-2049
query I rowsort
SELECT - col1 * + col0 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1144
SELECT - CAST( col0 AS SIGNED ) * - col0 + - col1 + col0 FROM tab0
----
1163
514
7919
skipif mysql # not compatible
query I rowsort label-1144
SELECT - CAST ( col0 AS INTEGER ) * - col0 + - col1 + col0 FROM tab0
----
1163
514
7919
query I rowsort
SELECT + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT + col0 + col1 AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT - - col1 DIV - cor0.col1 + ( ( - col1 ) ) * + col1 FROM tab2 AS cor0
----
-290
-3482
-962
skipif mysql # not compatible
query I rowsort label-1147
SELECT - - col1 / - cor0.col1 + ( ( - col1 ) ) * + col1 FROM tab2 AS cor0
----
-290
-3482
-962
query I rowsort
SELECT DISTINCT - 24 * - col1 + + col0 FROM tab0 AS cor0
----
2088
2273
2363
query I rowsort
SELECT cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col1 + - col2 col1 FROM tab0 AS cor0
----
-3817
-4086
-4269
onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT DISTINCT + ( - col2 ) + - col0 DIV - col0 + col1 col2 FROM tab1 AS cor0
----
-27
-46
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + ( - col2 ) + - col0 / - col0 + col1 col2 FROM tab1 AS cor0
----
-27
-46
-82
query I rowsort
SELECT ALL + + 5 + + col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT - tab2.col0 + col2 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL - 3 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT - tab1.col1 DIV + col0 AS col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1156
SELECT - tab1.col1 / + col0 AS col0 FROM tab1
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1157
SELECT col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1157
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col1 FROM tab0, tab0 AS cor0
----
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1159
SELECT DISTINCT col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * col1 * col1 - + col2 FROM tab1
----
17522
2101
943
query I rowsort
SELECT + col2 * tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - col2 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1163
SELECT ALL CAST( - 76 AS SIGNED ) + - cor0.col1 * 73 AS col2 FROM tab1 cor0
----
-1025
-1974
-806
skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL CAST ( - 76 AS INTEGER ) + - cor0.col1 * 73 AS col2 FROM tab1 cor0
----
-1025
-1974
-806
query I rowsort
SELECT col2 * + col2 + col2 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT - col1 * ( col1 ) * ( col1 * + col1 ) FROM tab0 AS cor0
----
-54700816
-68574961
-88529281
query I rowsort
SELECT - + 37 * + col0 AS col0 FROM tab2 cor0
----
-259
-2886
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT col1 - 46 DIV + col2 AS col1 FROM tab0 AS cor0
----
51
85
91
skipif mysql # not compatible
query I rowsort label-1167
SELECT col1 - 46 / + col2 AS col1 FROM tab0 AS cor0
----
51
85
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT - col2 DIV - ( tab2.col1 ) FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1168
SELECT - col2 / - ( tab2.col1 ) FROM tab2
----
0
0
2
query I rowsort
SELECT ALL col2 * col0 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1170
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab0 AS cor0
----
67
query I rowsort
SELECT ALL + col2 + + 14 FROM tab1 AS cor0
----
110
68
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1174
SELECT - CAST( col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-1174
SELECT - CAST ( col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + 56 + - col2 + col1 FROM tab1 AS cor0
----
-27
28
9
query I rowsort
SELECT - - col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1177
SELECT DISTINCT + CAST( col1 AS SIGNED ) + - cor0.col0 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + - cor0.col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - + 92 AS col2 FROM tab1 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1180
SELECT + + ( + col2 ) - col1 * - CAST( 60 AS SIGNED ) FROM tab2 AS cor0
----
1058
1887
3566
skipif mysql # not compatible
query I rowsort label-1180
SELECT + + ( + col2 ) - col1 * - CAST ( 60 AS INTEGER ) FROM tab2 AS cor0
----
1058
1887
3566
query I rowsort
SELECT ALL - ( 91 * + col1 ) + 84 FROM tab1
----
-1099
-2282
-826
query I rowsort
SELECT DISTINCT + col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + 60 + 17 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT - 18 FROM tab1, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT DISTINCT - 31 + col1 FROM tab0 AS cor0
----
55
60
66
query I rowsort
SELECT - 17 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - col2 - + 14 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-17568
-19710
-8037
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT 96 - + 88 FROM tab0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - + col1 col1 FROM tab1
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT + col2 DIV col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1192
SELECT + col2 / col0 FROM tab1
----
0
1
18
query I rowsort
SELECT + 88 * + col1 FROM tab2
----
1496
2728
5192
query I rowsort
SELECT DISTINCT - + 60 * + col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 67 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT ALL cor0.col1 + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + 74 + + col1 AS col2 FROM tab2 AS cor0
----
105
133
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT col1 DIV - 65 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1199
SELECT col1 / - 65 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab1.col2 * col0 + + col2 AS col0 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab2.col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 * col2 - + col2 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT ALL col1 * - cor0.col2 * - col1 + col1 * - ( col1 ) FROM tab0 AS cor0
----
0
236672
670761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * - ( col2 ) col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 * - 52 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT DISTINCT + col1 * col2 + - 90 AS col1 FROM tab1 AS cor0
----
1158
1314
480
query I rowsort
SELECT ALL cor0.col2 * + col0 - col2 * col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * ( cor0.col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - + col1 + - ( cor0.col0 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col2 + + 66 AS col2 FROM tab1 AS cor0
----
120
123
162
query I rowsort
SELECT DISTINCT + col0 * ( ( - col2 ) ) + + 21 - + col2 FROM tab0 cor0
----
-15
-7359
-804
onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT ALL col1 DIV - 22 + col0 * col2 AS col2 FROM tab1 AS cor0
----
161
3648
7680
skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL col1 / - 22 + col0 * col2 AS col2 FROM tab1 AS cor0
----
161
3648
7680
query I rowsort
SELECT - + col2 * - 7 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT ALL col1 + col0 * + col0 AS col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL 71 + col1 FROM tab0
----
157
162
168
query I rowsort
SELECT ALL tab1.col1 * + col1 + + tab1.col0 * col2 FROM tab1
----
3748
7849
838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1217
SELECT ALL + col0 * col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + col0 * col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - 96 AS col1 FROM tab0 cor0
----
-129
-178
-97
query I rowsort
SELECT + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + 98 FROM tab0 AS cor0
----
3234
8036
98
query I rowsort
SELECT - col1 + - ( col2 ) FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT DISTINCT - col2 + + col2 DIV + 29 AS col0 FROM tab2 cor0
----
-26
-27
-37
skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - col2 + + col2 / + 29 AS col0 FROM tab2 cor0
----
-26
-27
-37
query I rowsort
SELECT col1 * - col0 + - col2 * + 36 AS col1 FROM tab0
----
-11051
-3252
-3431
query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col2 * col0 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 + - 60 AS col2 FROM tab2
----
-1
-29
-43
query I rowsort
SELECT ALL - 31 FROM tab0, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT - col2 * tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 + + 99 AS col1 FROM tab0 AS cor0
----
13
2
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT ALL col1 + 12 DIV + 13 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL col1 + 12 / + 13 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col1 * + col2 + col1 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col1 - 65 FROM tab2
----
-34
-48
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 - - cor0.col1 * 0 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 0 + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 * + col0 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + col2 + - col0 AS col1 FROM tab1
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1240
SELECT ALL CAST( NULL AS SIGNED ) * - col1 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 19 AS col2 FROM tab2
----
45
46
57
query I rowsort
SELECT 24 + - col1 + - col1 AS col2 FROM tab1
----
-2
-28
4
query I rowsort
SELECT DISTINCT - 31 FROM tab2, tab0 cor0
----
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT + tab2.col1 * ( col2 ) + + col2 DIV - col1 + + col1 * + col0 AS col0 FROM tab2
----
1054
1987
6136
skipif mysql # not compatible
query I rowsort label-1244
SELECT + tab2.col1 * ( col2 ) + + col2 / - col1 + + col1 * + col0 AS col0 FROM tab2
----
1054
1987
6136
query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 AS col0 FROM tab2
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1246
SELECT - 27 * col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1246
SELECT - 27 * col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col1 col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT 1 + col2 + + col0 FROM tab2 AS cor0
----
105
118
35
query I rowsort
SELECT ALL + 97 + - col1 FROM tab1 cor0
----
71
84
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - cor0.col2 col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1256
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1256
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL tab2.col2 * - col1 * - ( + tab2.col0 ) FROM tab2
----
119652
51034
5859
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT - - col1 * col2 - 63 FROM tab2 AS cor0
----
1471
583
774
query I rowsort
SELECT ALL + - 60 + tab1.col0 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to dbc0dce3f770fa429539d989c467a3d8
query I rowsort
SELECT - tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT 96 FROM tab2, tab1, tab1 AS cor0
----
96
query I rowsort
SELECT DISTINCT - 97 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-97
query I rowsort
SELECT + col1 + + ( col0 * col1 ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col0 * - 43 * + col0 AS col2 FROM tab0 AS cor0
----
24768
340603
52675
query I rowsort
SELECT - col1 * + col1 + - col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2, tab2 AS cor0
----
53
query I rowsort
SELECT ALL - cor0.col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT + col0 * + 54 - + col2 DIV col1 FROM tab0 AS cor0
----
1296
1890
4806
skipif mysql # not compatible
query I rowsort label-1269
SELECT + col0 * + 54 - + col2 / col1 FROM tab0 AS cor0
----
1296
1890
4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT - - col0 DIV + cor0.col0 + col2 * + col2 FROM tab1 cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-1270
SELECT - - col0 / + cor0.col0 + col2 * + col2 FROM tab1 cor0
----
2917
3250
9217
query I rowsort
SELECT + col2 + ( - col0 ) * + col1 * + ( - col1 + col2 ) FROM tab1 AS cor0
----
-2130
-30023
-86224
query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2, tab1 cor0
----
-35
query I rowsort
SELECT + col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - + col2 * - col0 + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT DISTINCT - cor0.col2 DIV col0 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - cor0.col2 / col0 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT - ( + 75 ) AS col2 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT 52 * + ( + col1 ) FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT cor0.col1 + + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col0 * 32 * col0 FROM tab0 AS cor0
----
18432
253472
39200
query I rowsort
SELECT DISTINCT + col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT 39 + - col1 FROM tab1 AS cor0
----
13
26
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col2 * + col0 - - CAST ( + 72 + - cor0.col2 AS REAL ) * col2 col2 FROM tab2 AS cor0
----
1404
3224
4294
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT - - col0 + col0 - 82 DIV col1 FROM tab1 cor0
----
120
154
3
skipif mysql # not compatible
query I rowsort label-1284
SELECT - - col0 + col0 - 82 / col1 FROM tab1 cor0
----
120
154
3
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT ALL + ( cor0.col0 ) + + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - - ( + 85 ) * + col0 * col1 FROM tab1 AS cor0
----
54400
6630
88400
query I rowsort
SELECT ALL - col2 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - - 86 * 55 - - col0 AS col0 FROM tab1 AS cor0
----
4733
4794
4810
query I rowsort
SELECT ALL - + col0 * col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + 12 FROM tab1 AS cor0
----
-12
query I rowsort
SELECT + + 82 - col2 FROM tab2 AS cor0
----
44
55
56
query I rowsort
SELECT DISTINCT + 32 + - col0 FROM tab0 AS cor0
----
-3
-57
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 col0 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT ALL col2 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - - col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 * ( col0 ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col0 * cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col1 + col2 * col2 * - cor0.col0 FROM tab0 AS cor0
----
-132
-26222
-598527
query I rowsort
SELECT DISTINCT col2 + - 39 FROM tab2 AS cor0
----
-1
-12
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT ALL - 43 + - col2 * cor0.col0 * + 60 + + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-11379
-121723
-180163
skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - 43 + - col2 * cor0.col0 * + 60 + + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-11379
-121723
-180163
query I rowsort
SELECT DISTINCT + 35 - + 41 AS col0 FROM tab2 AS cor0
----
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1305
SELECT CAST( NULL AS SIGNED ) + 31 + - col0 / + 14 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1305
SELECT CAST ( NULL AS INTEGER ) + 31 + - col0 / + 14 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 2 + tab0.col1 FROM tab0
----
84
89
95
query I rowsort
SELECT + ( - cor0.col0 ) + col1 + col1 FROM tab0 AS cor0
----
148
159
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT - - 0 * cor0.col0 + cor0.col0 DIV + col1 + col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-1308
SELECT - - 0 * cor0.col0 + cor0.col0 / + col1 + col2 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT col1 * col1 * + col0 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + + col2 * 42 - + ( col0 * - ( - 93 ) ) AS col0 FROM tab2 AS cor0
----
-5751
-6162
483
query I rowsort
SELECT - - 65 AS col2 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT col0 + - ( 68 ) * - col1 AS col1 FROM tab2
----
1235
2115
4090
query I rowsort
SELECT tab1.col0 + 57 AS col1 FROM tab1
----
121
137
60
query I rowsort
SELECT ALL - + col0 * 29 + - col2 FROM tab0 AS cor0
----
-1016
-2663
-729
query I rowsort
SELECT - + col1 * + col2 * - 98 AS col2 FROM tab2 AS cor0
----
150332
63308
82026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col2 FROM tab1
----
-3
-64
-80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e
query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + col2 + col1 * col2 FROM tab1
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT DISTINCT - col1 - col0 * 38 FROM tab1 AS cor0
----
-140
-2442
-3053
query I rowsort
SELECT + col1 * 10 FROM tab1 AS cor0
----
100
130
260
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT + + col0 + - CAST( + 20 AS SIGNED ) FROM tab0 AS cor0
----
15
4
69
skipif mysql # not compatible
query I rowsort label-1323
SELECT + + col0 + - CAST ( + 20 AS INTEGER ) FROM tab0 AS cor0
----
15
4
69
query I rowsort
SELECT ALL + - col2 * ( + col0 ) AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - cor0.col0 * 14 FROM tab2 AS cor0
----
-1092
-1106
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1327
SELECT ALL - col2 DIV + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - col2 / + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + + col2 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 * col1 col0 FROM tab0 cor0
----
5590
5915
6305
query I rowsort
SELECT ALL - + 58 AS col2 FROM tab0 AS cor0
----
-58
-58
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1331
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT 58 AS col0 FROM tab0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT DISTINCT + + ( - col2 ) * col0 DIV + 35 + 15 FROM tab0 cor0
----
-193
-7
14
skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + + ( - col2 ) * col0 / + 35 + 15 FROM tab0 cor0
----
-193
-7
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1335
SELECT ALL + ( - col0 ) * + col2 - + CAST( col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + ( - col0 ) * + col2 - + CAST ( col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT + 69 AS col2 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT ALL col2 + - 43 * col2 * 89 FROM tab0 AS cor0
----
-126258
-313732
-3826
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col2 + 20 FROM tab0 AS cor0
----
-13
-62
19
query I rowsort
SELECT + + col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + - col2 * col0 * cor0.col0 + + 55 + - col1 FROM tab1 AS cor0
----
-233427
-457
-614358
onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT DISTINCT - + col2 DIV - col2 + col1 * + col0 + - col2 FROM tab0 AS cor0
----
2032
3395
8018
skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - + col2 / - col2 + col1 * + col0 + - col2 FROM tab0 AS cor0
----
2032
3395
8018
query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 * - col0 + + col2 AS col1 FROM tab1
----
-342
1632
2808
query I rowsort
SELECT ALL + col1 + + col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 21 AS col1 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT + col0 * - 34 * col2 FROM tab0 cor0
----
-1190
-248132
-26928
query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT + - col1 + + cor0.col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-1349
SELECT + - col1 + + cor0.col2 / - cor0.col1 FROM tab1 AS cor0
----
-15
-20
-28
query I rowsort
SELECT DISTINCT + cor0.col0 * 44 AS col0 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT DISTINCT - cor0.col1 * - ( - cor0.col1 ) * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - col2 * cor0.col1 + 63 FROM tab1 cor0
----
-1185
-1341
-507
query I rowsort
SELECT - col2 * + col2 + 22 FROM tab1
----
-2894
-3227
-9194
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * 4 FROM tab2 AS cor0
----
28
312
316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col0 ) * col1 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - cor0.col2 * 46 + + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
432
4800
627
query I rowsort
SELECT - - col1 * 25 AS col0 FROM tab0 AS cor0
----
2150
2275
2425
onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT DISTINCT + + col0 + - 4 DIV + 14 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + + col0 + - 4 / + 14 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col0 + - col1 FROM tab2
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT DISTINCT + col2 + col2 + CAST( 28 AS SIGNED ) * col2 FROM tab0
----
2460
30
990
skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + col2 + col2 + CAST ( 28 AS INTEGER ) * col2 FROM tab0
----
2460
30
990
query I rowsort
SELECT ALL col1 * col0 + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT 86 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT 49 * col2 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT - 40 * 89 + + col2 FROM tab2 cor0
----
-3522
-3533
-3534
query I rowsort
SELECT DISTINCT + 47 FROM tab2 AS cor0
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT - CAST( NULL AS SIGNED ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1367
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1368
SELECT + - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1368
SELECT + - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT ALL 56 DIV - tab2.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92
skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL 56 / - tab2.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT DISTINCT 66 DIV + 65 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT 66 / + 65 FROM tab1
----
1
query I rowsort
SELECT - - 83 - col2 AS col1 FROM tab0 AS cor0
----
1
50
82
query I rowsort
SELECT DISTINCT - ( 11 ) + - cor0.col1 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
-102
-108
-97
query I rowsort
SELECT DISTINCT col1 * - col2 + col1 * col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - - col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - 32 * - 86 AS col0 FROM tab2 AS cor0
----
-2752
-2752
-2752
query I rowsort
SELECT - + cor0.col2 + col2 + + ( + 48 ) FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT - ( + cor0.col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + col0 + + 97 FROM tab2
----
104
175
176
query I rowsort
SELECT - 82 * col1 + - col2 + col2 AS col2 FROM tab2 cor0
----
-1394
-2542
-4838
query I rowsort
SELECT - - col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col0 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 76 + 54 FROM tab0
----
130
130
130
query I rowsort
SELECT DISTINCT ( tab0.col2 ) AS col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT ALL - ( 92 ) + + col0 + col1 DIV 89 FROM tab0
----
-2
-56
-68
skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - ( 92 ) + + col0 + col1 / 89 FROM tab0
----
-2
-56
-68
query I rowsort
SELECT ALL - 60 + col0 * col0 AS col2 FROM tab1
----
-51
4036
6340
query I rowsort
SELECT + col1 * + 62 AS col0 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT ALL - - col1 + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 + - 91 * + col0 AS col0 FROM tab1 AS cor0
----
-299
-5834
-7293
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL col2 * 86 + 88 FROM tab1 AS cor0
----
4732
4990
8344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1393
SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1393
SELECT + cor0.col2 + - 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 + 32 * col1 col0 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL - col2 * + col2 * - 24 FROM tab2 AS cor0
----
16224
17496
34656
query I rowsort
SELECT DISTINCT + 49 FROM tab2
----
49
query I rowsort
SELECT ALL + 60 AS col2 FROM tab2
----
60
60
60
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - 71 * 50 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 679e9d44075d2ffec1cd7c0828d017bb
query I rowsort
SELECT ALL ( col1 ) * - ( + col0 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + + col2 AS col1 FROM tab0
----
2097
3396
8181
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT ALL - col2 * - col0 - 38 FROM tab1
----
124
3610
7642
query I rowsort
SELECT cor0.col2 * + ( cor0.col0 ) * col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - col2 + col2 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT DISTINCT - col0 * + 45 AS col1 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT - col2 * col1 * 9 AS col1 FROM tab0 AS cor0
----
-25542
-67158
-873
query I rowsort
SELECT + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1411
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1411
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 91 AS col0 FROM tab0 AS cor0
----
-91
-91
-91
query I rowsort
SELECT col2 * ( col1 ) * + col0 + + ( - col1 * col1 ) FROM tab1
----
3536
36380
99671
query I rowsort
SELECT + ( col1 ) * col2 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col0 - - col2 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1418
SELECT - + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1418
SELECT - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + 86 * 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0d80a8b22673319a06ba355fa8643ea8
query I rowsort
SELECT DISTINCT + 99 FROM tab0 cor0
----
99
query I rowsort
SELECT col0 * + col1 * cor0.col1 + 96 * - col1 FROM tab1 AS cor0
----
-468
12272
5440
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - + col1 + + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT - col1 DIV col1 + - 62 AS col1 FROM tab0 AS cor0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-1424
SELECT - col1 / col1 + - 62 AS col1 FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT col0 + - col0 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + col1 + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL 29 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1431
SELECT cor0.col2 + col2 * CAST( + ( + col2 ) + - 3 * 84 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-5850
-6048
-8094
skipif mysql # not compatible
query I rowsort label-1431
SELECT cor0.col2 + col2 * CAST ( + ( + col2 ) + - 3 * 84 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-5850
-6048
-8094
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + 32 * + cor0.col2 + 47 AS col0 FROM tab2 cor0
----
1263
879
911
query I rowsort
SELECT - 6 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL - + cor0.col1 + + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col0 - 64 * - col0 AS col1 FROM tab0 AS cor0
----
-2225
1015
960
query I rowsort
SELECT ALL + col2 * col2 + 61 + - 62 * col1 AS col1 FROM tab0 AS cor0
----
-4182
-5952
1143
query I rowsort
SELECT - col1 * - col2 + col1 * col0 - ( col0 ) AS col0 FROM tab2 AS cor0
----
1047
1910
6058
query I rowsort
SELECT ALL + col0 * ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 - 58 * ( + col1 ) FROM tab0 AS cor0
----
-4964
-5189
-5591
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col0 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - cor0.col0 + 65 * + 85 AS col1 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 4984ba4b72781edef4df4e0048a7cfe4
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
-3975
-6224
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT - CAST( NULL AS DECIMAL ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1444
SELECT - CAST ( NULL AS REAL ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 49 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + 15 + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11
12
23
query I rowsort
SELECT col0 + - col2 * + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - 22 AS col2 FROM tab1 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1450
SELECT CAST( 37 AS SIGNED ) * col0 + + col0 AS col0 FROM tab1
----
114
2432
3040
skipif mysql # not compatible
query I rowsort label-1450
SELECT CAST ( 37 AS INTEGER ) * col0 + + col0 AS col0 FROM tab1
----
114
2432
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab0
----
11
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1452
SELECT ALL CAST( NULL AS SIGNED ) + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL CAST ( NULL AS INTEGER ) + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ( col0 * col0 ) + + col1 AS col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 * - 85 + - col1 FROM tab1
----
-281
-5450
-6813
query I rowsort
SELECT + ( + col2 + - col1 ) * + tab2.col0 AS col2 FROM tab2
----
-2574
-28
1659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1458
SELECT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT + col1 - + col0 DIV col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-1460
SELECT + col1 - + col0 / col1 FROM tab1
----
26
4
7
query I rowsort
SELECT + 74 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT 14 + + col2 + col0 FROM tab0
----
185
50
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1463
SELECT - CAST( col1 + + col2 AS SIGNED ) * 49 AS col1 FROM tab1
----
-3283
-3920
-5341
skipif mysql # not compatible
query I rowsort label-1463
SELECT - CAST ( col1 + + col2 AS INTEGER ) * 49 AS col1 FROM tab1
----
-3283
-3920
-5341
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT DISTINCT ( + col2 * 61 + tab0.col1 * col1 ) AS col2 FROM tab0
----
13283
9409
9470
query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab0
----
39
query I rowsort
SELECT col0 * col1 + tab1.col1 * col0 AS col1 FROM tab1
----
1280
156
2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col2 FROM tab0
----
171
36
57
query I rowsort
SELECT 84 + - col2 AS col2 FROM tab1
----
-12
27
30
query I rowsort
SELECT + + 40 * col0 AS col0 FROM tab0 AS cor0
----
1400
3560
960
query I rowsort
SELECT ALL 57 + - col0 AS col1 FROM tab1 AS cor0
----
-23
-7
54
query I rowsort
SELECT DISTINCT 77 FROM tab0 cor0
----
77
query I rowsort
SELECT ALL col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab1 AS cor0
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1477
SELECT DISTINCT + col0 * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + col0 * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT col1 * - col1 - - tab1.col2 * + col1 FROM tab1
----
1079
470
728
query I rowsort
SELECT + tab0.col2 + + 19 * col0 * - col0 + col0 FROM tab0
----
-10887
-150328
-23239
query I rowsort
SELECT - tab1.col1 + 72 FROM tab1
----
46
59
62
query I rowsort
SELECT DISTINCT col2 * + tab2.col2 + - col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT - col2 * ( tab1.col0 + tab1.col1 * - col2 ) FROM tab1
----
112128
28842
75654
onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT tab0.col1 - - 65 DIV ( + col0 ) AS col0 FROM tab0
----
88
91
98
skipif mysql # not compatible
query I rowsort label-1483
SELECT tab0.col1 - - 65 / ( + col0 ) AS col0 FROM tab0
----
88
91
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 36 + col1 * tab0.col2 + - 19 * col0 col2 FROM tab0
----
2924
5478
9047
query I rowsort
SELECT DISTINCT 37 - 47 AS col0 FROM tab2, tab1 AS cor0
----
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + col1 + col2 * - 53 FROM tab0 AS cor0
----
-1663
-4255
44
query I rowsort
SELECT ALL - + 77 AS col2 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT - col0 + 36 FROM tab2 AS cor0
----
-42
-43
29
query I rowsort
SELECT ALL - col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT DISTINCT + 99 DIV cor0.col0 col0 FROM tab1 AS cor0
----
1
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + 99 / cor0.col0 col0 FROM tab1 AS cor0
----
1
33
query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab0 AS cor0
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT ALL + + CAST( col2 AS SIGNED ) - + col0 * + 84 AS col1 FROM tab1 AS cor0
----
-198
-5319
-6624
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + + CAST ( col2 AS INTEGER ) - + col0 * + 84 AS col1 FROM tab1 AS cor0
----
-198
-5319
-6624
query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT DISTINCT + 90 * 31 FROM tab0 AS cor0
----
2790
query I rowsort
SELECT - + col2 * - 16 + + col0 FROM tab2 cor0
----
439
494
687
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT ALL - cor0.col0 DIV - 13 AS col1 FROM tab2 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - cor0.col0 / - 13 AS col1 FROM tab2 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT + col1 + + col0 * col2 + + 64 DIV + col0 FROM tab0 AS cor0
----
133
7389
880
skipif mysql # not compatible
query I rowsort label-1498
SELECT + col1 + + col0 * col2 + + 64 / + col0 FROM tab0 AS cor0
----
133
7389
880
query I rowsort
SELECT 63 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT col2 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - - 34 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-135
-642
-66
query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1503
SELECT - CAST( + 55 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
1815
4510
55
skipif mysql # not compatible
query I rowsort label-1503
SELECT - CAST ( + 55 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT ALL + + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + ( 81 ) - col1 * 12 AS col0 FROM tab0 AS cor0
----
-1011
-1083
-951
query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2
----
26
query I rowsort
SELECT - 92 * cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3f3a5de57fe29f0bbd60295659c92a43
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT ALL - col0 + + col0 DIV 9 AS col2 FROM tab0 AS cor0
----
-22
-32
-80
skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - col0 + + col0 / 9 AS col2 FROM tab0 AS cor0
----
-22
-32
-80
query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - col1 + col0 * - col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT + 94 AS col2 FROM tab2 AS cor0
----
94
94
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab2
----
34
34
34
query I rowsort
SELECT DISTINCT + 16 FROM tab0
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT + col0 DIV + 96 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1515
SELECT + col0 / + 96 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * ( 58 ) - cor0.col1 FROM tab2 cor0
----
1449
1535
2187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1517
SELECT ALL + col0 + CAST( NULL AS SIGNED ) 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-1517
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - + 23 * col2 FROM tab0 AS cor0
----
-1975
-58
-783
query I rowsort
SELECT col1 - + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * - col0 + - col0 * col1 FROM tab0 cor0
----
-16198
-4128
-6790
query I rowsort
SELECT + + col2 * ( 92 ) - col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT - cor0.col0 * - col1 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT - 78 + - col1 * col1 AS col1 FROM tab1
----
-178
-247
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT - col1 + - 34 DIV col1 AS col1 FROM tab2 AS cor0
----
-19
-32
-59
skipif mysql # not compatible
query I rowsort label-1525
SELECT - col1 + - 34 / col1 AS col1 FROM tab2 AS cor0
----
-19
-32
-59
query I rowsort
SELECT - 66 AS col1 FROM tab0 AS cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1527
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL ( + 31 ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT 45 FROM tab1 cor0
----
45
45
45
query I rowsort
SELECT ALL + 52 AS col0 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT ALL - + col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT ALL + 69 DIV col1 AS col2 FROM tab1 cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + 69 / col1 AS col2 FROM tab1 cor0
----
2
5
6
query I rowsort
SELECT col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 * col1 col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + col0 * - col0 - ( - col2 ) AS col2 FROM tab2 cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 * col2 col1 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - cor0.col0 + - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL - cor0.col0 - cor0.col2 * - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + 10 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT - 23 + col2 DIV 27 AS col2 FROM tab1 AS cor0
----
-20
-21
-21
skipif mysql # not compatible
query I rowsort label-1544
SELECT - 23 + col2 / 27 AS col2 FROM tab1 AS cor0
----
-20
-21
-21
query I rowsort
SELECT + - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + 9 * col2 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT - + 12 * - col1 + ( + 15 ) * col0 FROM tab1 cor0
----
1080
1356
357
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1548
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col0 + - 65 * 77 AS col1 FROM tab1 AS cor0
----
-4925
-4941
-5002
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * + col0 col1 FROM tab0
----
1424
384
560
query I rowsort
SELECT - - cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - - col0 + + 80 * + cor0.col0 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT col2 + 25 * col1 AS col0 FROM tab1 AS cor0
----
307
421
704
query I rowsort
SELECT DISTINCT + col2 * + col1 * 79 AS col1 FROM tab0 AS cor0
----
224202
589498
7663
onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT ALL - col1 DIV + col1 col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL - col1 / + col1 col0 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT + + ( - 18 ) DIV - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-37
skipif mysql # not compatible
query I rowsort label-1558
SELECT + + ( - 18 ) / - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-37
query I rowsort
SELECT + + col0 + + 60 AS col2 FROM tab2 AS cor0
----
138
139
67
query I rowsort
SELECT + ( col2 ) + cor0.col1 + 59 * + cor0.col0 FROM tab2 AS cor0
----
4687
471
4716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col1 col0 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col1 col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 * + 14 FROM tab2
----
-364
-378
-532
query I rowsort
SELECT + col2 * + 99 AS col1 FROM tab2
----
2574
2673
3762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1565
SELECT - CAST( - 34 + + tab0.col1 * - 95 AS SIGNED ) FROM tab0
----
8204
8679
9249
skipif mysql # not compatible
query I rowsort label-1565
SELECT - CAST ( - 34 + + tab0.col1 * - 95 AS INTEGER ) FROM tab0
----
8204
8679
9249
onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT ALL 14 DIV 47 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 14 / 47 FROM tab0
----
0
0
0
query I rowsort
SELECT - 13 + + col1 + + col0 FROM tab2 AS cor0
----
124
25
83
query I rowsort
SELECT + - col2 + 82 AS col2 FROM tab0 AS cor0
----
0
49
81
query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT + col2 * + col0 + - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 73 FROM tab2, tab1 AS cor0
----
73
query I rowsort
SELECT - 72 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT ALL + col2 + - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 41 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT - col0 + 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-1576
SELECT - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col2 * - col2 FROM tab0
----
-1175
-6815
-98
query I rowsort
SELECT + 91 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL + + 60 AS col2 FROM tab2 cor0
----
60
60
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT ALL + - CAST( NULL AS SIGNED ) + - 36 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 36 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 32 + - col0 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT 73 * col2 AS col0 FROM tab2 AS cor0
----
1898
1971
2774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1583
SELECT DISTINCT - + ( col0 ) * col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - + ( col0 ) * col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 90 AS col2 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + + col0 * - col0 - col0 AS col0 FROM tab2 cor0
----
-56
-6162
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col1 + ( col2 ) * + ( col2 ) FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - 3 * + ( cor0.col1 ) FROM tab2 AS cor0
----
-177
-51
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT - 6 DIV 64 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - 6 / 64 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT ALL + 83 DIV + col1 - + cor0.col2 * - col1 * + col2 col0 FROM tab0 AS cor0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + 83 / + col1 - + cor0.col2 * - col1 * + col2 col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - col1 * 17 FROM tab2 AS cor0
----
-1003
-289
-527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col0 FROM tab1 AS cor0
----
-82
-82
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT ALL 89 + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
89
89
92
skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 89 + + col2 / col0 AS col1 FROM tab2 AS cor0
----
89
89
92
query I rowsort
SELECT + - 50 + + col2 FROM tab2 AS cor0
----
-12
-23
-24
query I rowsort
SELECT + 28 * cor0.col1 + + col2 FROM tab0 AS cor0
----
2441
2630
2717
query I rowsort
SELECT - col0 - - col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - 10 + - cor0.col1 AS col0 FROM tab0 cor0
----
-76
-81
-87
query I rowsort
SELECT ALL - + 40 + - col2 AS col2 FROM tab1 AS cor0
----
-136
-94
-97
query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab2 AS cor0
----
55
query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1603
SELECT - + cor0.col1 + + col0 * CAST( - cor0.col1 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-36490
-4238
-99853
skipif mysql # not compatible
query I rowsort label-1603
SELECT - + cor0.col1 + + col0 * CAST ( - cor0.col1 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-36490
-4238
-99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT - col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1604
SELECT - col1 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT + col0 * col2 + col1 * - 70 + col0 DIV - 48 FROM tab0 AS cor0
----
-5228
-6755
927
skipif mysql # not compatible
query I rowsort label-1605
SELECT + col0 * col2 + col1 * - 70 + col0 / - 48 FROM tab0 AS cor0
----
-5228
-6755
927
onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT 17 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1606
SELECT 17 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 20 FROM tab1 AS cor0
----
-20
query I rowsort
SELECT ALL + col0 * ( + cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL cor0.col1 + 97 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT 12 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT cor0.col2 * + ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + cor0.col2 * 88 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT DISTINCT - - col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT cor0.col0 - - ( - ( col2 ) ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col1 + 32 FROM tab0 AS cor0
----
118
123
129
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT col2 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1619
SELECT col2 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col0 + - ( - col0 ) * col2 + - col2 FROM tab0 cor0
----
-1
7127
735
query I rowsort
SELECT + - cor0.col0 + - ( ( + col1 ) ) * 82 * + 29 AS col1 FROM tab2 AS cor0
----
-140380
-40505
-73725
query I rowsort
SELECT DISTINCT cor0.col2 + 64 + col2 FROM tab0 AS cor0
----
130
228
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1623
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col0 + 67 + + col0 FROM tab0 AS cor0
----
115
137
245
query I rowsort
SELECT - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT ALL + col2 + + 17 DIV - 23 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + col2 + + 17 / - 23 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col0 * + 5 * col2 + col2 + - col0 * + 62 FROM tab0 AS cor0
----
-2344
-41926
-5415
query I rowsort
SELECT + 51 * - col0 * col1 FROM tab1
----
-32640
-3978
-53040
query I rowsort
SELECT - col1 + + col1 * - col0 - col1 AS col1 FROM tab2
----
-1377
-279
-4720
query I rowsort
SELECT - col1 * tab0.col1 * ( tab0.col2 ) + col0 * - ( + col1 ) FROM tab0
----
-12804
-246132
-687141
query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL col0 + - 75 AS col0 FROM tab2 AS cor0
----
-68
3
4
query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) + - col0 * ( - col2 ) FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT + - cor0.col0 + - col2 AS col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - col2 + + 32 * col1 FROM tab0 AS cor0
----
2719
2830
3103
query I rowsort
SELECT - ( col0 ) * - col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 15 * tab0.col0 FROM tab0, tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT - col1 * col2 * - col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + col1 * + col0 + 39 * col1 FROM tab0
----
11648
5418
7178
query I rowsort
SELECT - 31 FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 95 + col1 AS col2 FROM tab0 AS cor0
----
-4
-9
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1643
SELECT ALL - cor0.col2 + cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - cor0.col2 + cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 63 FROM tab1, tab2 AS cor0
----
63
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1646
SELECT DISTINCT - col2 * - col0 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT - col2 * - col0 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - col2 * col0 + - ( - col0 ) + + col2 FROM tab0
----
-7127
-735
1
query I rowsort
SELECT ALL 39 + + col0 * - col0 * col1 FROM tab2
----
-106058
-1480
-358917
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT 63 + col0 * col1 DIV + col1 AS col0 FROM tab1
----
127
143
66
skipif mysql # not compatible
query I rowsort label-1649
SELECT 63 + col0 * col1 / + col1 AS col0 FROM tab1
----
127
143
66
query I rowsort
SELECT DISTINCT - tab1.col0 + + tab1.col0 + 50 AS col2 FROM tab1
----
50
query I rowsort
SELECT ALL - tab2.col2 + col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col0 + col1 * 64 AS col0 FROM tab2
----
1009
1977
3698
query I rowsort
SELECT + ( + col2 ) + - col2 + - col0 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + - 22 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-1876
-495
-769
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + col2 * col1 + + col1 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT - col1 * col0 - + ( + col1 + - col2 ) FROM tab2 AS cor0
----
-1322
-221
-4635
onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT DISTINCT col1 DIV + col2 + - ( 91 ) AS col1 FROM tab0 AS cor0
----
-89
-90
6
skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT col1 / + col2 + - ( 91 ) AS col1 FROM tab0 AS cor0
----
-89
-90
6
query I rowsort
SELECT 86 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL - col0 * cor0.col2 - ( + 57 ) FROM tab2 AS cor0
----
-2085
-246
-3059
query I rowsort
SELECT + - 78 + col2 AS col2 FROM tab0 AS cor0
----
-45
-77
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT DISTINCT + 61 DIV + cor0.col1 + - 49 + col2 AS col2 FROM tab2 AS cor0
----
-21
-22
-8
skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT + 61 / + cor0.col1 + - 49 + col2 AS col2 FROM tab2 AS cor0
----
-21
-22
-8
query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col2 * tab0.col0 - - tab0.col1 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT + col1 + col0 * - col2 * col2 AS col1 FROM tab1
----
-207926
-737267
-8722
query I rowsort
SELECT - col2 + + col2 * col0 FROM tab0
----
34
7216
759
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = ( NULL )
----
query I rowsort
SELECT - col0 * col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col0 * - tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col1 + - col2 + + col0 AS col2 FROM tab2 WHERE NULL <> NULL
----
query I rowsort
SELECT col1 + + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - tab0.col1 - - tab0.col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL ( + 81 ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab0
----
77
77
77
query I rowsort
SELECT - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 + - cor0.col2 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT - + ( + col1 ) + - ( - 18 ) AS col0 FROM tab1 AS cor0
----
-8
5
8
query I rowsort
SELECT ALL + col0 * + col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 * + tab1.col2 - col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT col1 + + col0 * tab1.col0 * + col1 + - col1 * + col1 AS col0 FROM tab1
----
-416
40870
83044
query I rowsort
SELECT + col0 + col2 * + col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( - col2 )
----
query I rowsort
SELECT col0 + - col0 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + tab1.col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 * + col2 * - col2 + - col2 FROM tab1 AS cor0
----
-119904
-32547
-75870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / - col2 col0 FROM tab0 AS cor0 WHERE col1 + col1 < col1
----
query I rowsort
SELECT ALL + cor0.col2 - col1 * - col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + col1 * + col2 + - col0 FROM tab1
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT ALL tab0.col0 * col2 * col0 - - col1 DIV col2 FROM tab0
----
1322
19010
649523
skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL tab0.col0 * col2 * col0 - - col1 / col2 FROM tab0
----
1322
19010
649523
query I rowsort
SELECT - col1 + - tab0.col0 AS col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - col0 + col1 - + col2 FROM tab1
----
-111
-163
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT col1 + col1 * - col2 + + tab0.col1 DIV col0 AS col2 FROM tab0
----
-2749
-7370
2
skipif mysql # not compatible
query I rowsort label-1696
SELECT col1 + col1 * - col2 + + tab0.col1 / col0 AS col2 FROM tab0
----
-2749
-7370
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + tab1.col1 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + tab2.col0 * tab2.col2 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1699
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1699
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 * + col2 * - col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT - ( - tab1.col2 * col2 ) AS col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col1 FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1704
SELECT col0 + + col0 + + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1704
SELECT col0 + + col0 + + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT + col2 DIV col2 + - 27 AS col2 FROM tab1 AS cor0
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-1705
SELECT + col2 / col2 + - 27 AS col2 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 + 18 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
-36
-39
-78
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0 WHERE NOT NULL > NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 47 + + col1 * cor0.col0 FROM tab1 AS cor0
----
1087
125
687
query I rowsort
SELECT + 54 AS col0 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT ALL + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 49 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT - cor0.col1 + - 20 * col0 FROM tab1 AS cor0
----
-1290
-1613
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - 33 col0 FROM tab0 cor0
----
-119
-124
-130
query I rowsort
SELECT col2 + + ( 22 ) FROM tab1 AS cor0
----
118
76
79
query I rowsort
SELECT ALL + col1 * 87 AS col2 FROM tab2
----
1479
2697
5133
query I rowsort
SELECT ALL + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col0 + + 99 * + col1 FROM tab2 AS cor0
----
1762
3076
5919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + 73 col2 FROM tab1 AS cor0
----
-47
-60
-63
query I rowsort
SELECT col0 * ( + col1 ) AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col0 + + 57 FROM tab0 AS cor0
----
146
81
92
query I rowsort
SELECT DISTINCT 97 * + col1 AS col1 FROM tab0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT cor0.col1 + + col0 DIV col2 FROM tab0 cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1724
SELECT cor0.col1 + + col0 / col2 FROM tab0 cor0
----
132
86
92
query I rowsort
SELECT 40 * + 36 AS col2 FROM tab1 AS cor0
----
1440
1440
1440
query I rowsort
SELECT - 37 + - 0 * + col0 AS col0 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT + + col0 + + col2 * col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL - + 0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + 37 FROM tab2
----
37
37
37
query I rowsort
SELECT DISTINCT ( - 26 + col1 ) AS col1 FROM tab0
----
60
65
71
query I rowsort
SELECT DISTINCT col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + cor0.col0 + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col1 + col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT DISTINCT - 92 + + cor0.col1 DIV col1 FROM tab2 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT - 92 + + cor0.col1 / col1 FROM tab2 AS cor0
----
-91
query I rowsort
SELECT DISTINCT + 15 * - col2 - + col1 * + col1 AS col0 FROM tab2 cor0
----
-1366
-3871
-859
query I rowsort
SELECT + 67 * + col2 + - cor0.col0 FROM tab1 cor0
----
3615
3755
6352
onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT ALL - 93 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - 93 / - col1 AS col2 FROM tab2 AS cor0
----
1
3
5
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 47 * col2 + - col2 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT DISTINCT + 96 + + col1 AS col0 FROM tab1 AS cor0
----
106
109
122
query I rowsort
SELECT ALL - tab2.col2 + col1 * col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT col2 + 66 FROM tab0
----
148
67
99
query I rowsort
SELECT - col2 + + col2 * col2 - col0 FROM tab2
----
1327
572
695
query I rowsort
SELECT DISTINCT 59 + - col0 * col1 FROM tab1
----
-19
-581
-981
query I rowsort
SELECT DISTINCT - 33 * col0 - - col0 AS col0 FROM tab1
----
-2048
-2560
-96
query I rowsort
SELECT col0 * 32 FROM tab0
----
1120
2848
768
query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 + col1 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT + tab0.col0 + - col0 * - col2 DIV + col2 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-1748
SELECT + tab0.col0 + - col0 * - col2 / + col2 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - col0 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT 22 - - col0 FROM tab0
----
111
46
57
query I rowsort
SELECT col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT + ( + col1 ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col2 * + cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT + - col1 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + col1 + cor0.col2 + + col2 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT - col1 + 11 DIV 84 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1760
SELECT - col1 + 11 / 84 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col0 * col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT - col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1763
SELECT - col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 24 + + col0 FROM tab1 AS cor0
----
104
27
88
query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0
----
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1766
SELECT - - CAST( col1 AS SIGNED ) * + col0 + col2 * col0 - col0 FROM tab1 AS cor0
----
237
4224
8640
skipif mysql # not compatible
query I rowsort label-1766
SELECT - - CAST ( col1 AS INTEGER ) * + col0 + col2 * col0 - col0 FROM tab1 AS cor0
----
237
4224
8640
query I rowsort
SELECT col1 * + tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + 10 + col0 * + col1 FROM tab1 cor0
----
1030
630
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT DISTINCT - 96 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-96
skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 96 / + col2 FROM tab0 AS cor0
----
-1
-2
-96
query I rowsort
SELECT ALL + + col2 * - col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + + col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL col1 + + col0 AS col0 FROM tab1
----
29
74
93
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / + col0
----
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 AS col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT - + col1 + - col1 DIV col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-1776
SELECT - + col1 + - col1 / col0 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT ALL col2 + col1 * + col1 FROM tab0 cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 * - col1 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * + col0 * + cor0.col0 + + col1 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-261447
-510864
105
query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col1 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT - cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1784
SELECT - cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT col0 + - col0 * cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-24
-262080
-511920
query I rowsort
SELECT + col1 * - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col1 - - col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL col1 * + tab1.col1 + col0 AS col0 FROM tab1
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT DISTINCT + col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + col1 / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL - - col1 * + col0 * + col2 + - col2 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT ALL - col0 DIV - col0 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-1792
SELECT ALL - col0 / - col0 col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - 56 + col2 + - col2 * tab1.col2 * tab1.col2 FROM tab1
----
-157466
-185192
-884696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + col0 + - cor0.col0 * col0 col0 FROM tab2 AS cor0
----
-1003
-6451
-9487
query I rowsort
SELECT ALL col0 * + col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT tab0.col1 + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT - tab0.col1 + - col2 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col1 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT + col0 * col1 DIV 31 FROM tab1 AS cor0
----
2
20
33
skipif mysql # not compatible
query I rowsort label-1802
SELECT + col0 * col1 / 31 FROM tab1 AS cor0
----
2
20
33
query I rowsort
SELECT DISTINCT - col0 + col2 * 41 FROM tab2 AS cor0
----
1100
1479
988
query I rowsort
SELECT ALL - col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col0 + - col1 + - 53 AS col2 FROM tab2 AS cor0
----
-149
-190
-91
query I rowsort
SELECT cor0.col0 * - 47 FROM tab0 AS cor0
----
-1128
-1645
-4183
query I rowsort
SELECT col2 + - 75 + - col2 * col0 * ( col0 ) FROM tab1 AS cor0
----
-233490
-507
-614379
query I rowsort
SELECT - col0 + 29 * + ( col1 ) + - col2 * + 45 FROM tab2 AS cor0
----
-1296
-323
463
query I rowsort
SELECT + + col1 + + cor0.col0 + col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + col0 * - 43 FROM tab2 AS cor0
----
-301
-3354
-3397
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT + CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1811
SELECT + CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * + col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT ALL + col0 DIV col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + col0 / col1 AS col1 FROM tab2
----
0
1
4
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT + col1 - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 - col0 AS col0 FROM tab0 cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT + col1 + col1 * 31 DIV + col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
202
3663
7697
skipif mysql # not compatible
query I rowsort label-1819
SELECT + col1 + col1 * 31 / + col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
202
3663
7697
query I rowsort
SELECT + 28 * cor0.col2 AS col2 FROM tab0 cor0
----
2296
28
924
query I rowsort
SELECT cor2.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT - 31 * + 80 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 369fbf79b61ddd41e8de9142552bbbb6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT ALL + - col1 DIV cor0.col0 + ( + ( + col2 ) ) FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + - col1 / cor0.col0 + ( + ( + col2 ) ) FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT DISTINCT + - 46 * + col2 + + 54 AS col1 FROM tab0 AS cor0
----
-1464
-3718
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * + col0 - ( - col2 ) * - col0 col2 FROM tab1 AS cor0
----
-480
108
2112
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + + col0 * - col2 + + col0 FROM tab0 cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT ALL + + col0 + col2 + + col2 * - col0 DIV + col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + + col0 + col2 + + col2 * - col0 / + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT col2 - ( - col0 ) FROM tab1
----
121
176
57
query I rowsort
SELECT - col1 + 7 FROM tab1
----
-19
-3
-6
query I rowsort
SELECT ALL 75 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL + tab0.col2 + + col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - col1 * + col1 * - col1 AS col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT col1 + 42 - - 80 * + col0 * col1 AS col2 FROM tab1
----
51252
6308
83255
query I rowsort
SELECT + col1 - - 82 * col2 AS col0 FROM tab1 AS cor0
----
4454
4684
7885
query I rowsort
SELECT - col1 * + 95 + col1 FROM tab1 AS cor0
----
-1222
-2444
-940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + - col2 ) col0 FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT ALL CAST( NULL AS SIGNED ) * tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL CAST ( NULL AS INTEGER ) * tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT - + 27 DIV 19 AS col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1841
SELECT - + 27 / 19 AS col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 48 + - 42 AS col2 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT - - 82 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT DISTINCT cor0.col1 DIV col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT cor0.col1 / col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 col1 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT - ( col1 * col0 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT 29 FROM tab0
----
29
29
29
query I rowsort
SELECT 71 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT + 46 * col2 AS col1 FROM tab1 AS cor0
----
2484
2622
4416
query I rowsort
SELECT + col1 * + col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - 46 + - col0 * - cor0.col2 * + 42 AS col1 FROM tab1 AS cor0
----
153170
322514
6758
query I rowsort
SELECT - + 68 + col2 AS col2 FROM tab2 cor0
----
-30
-41
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT - CAST( ( col0 ) AS SIGNED ) DIV - 44 - - col0 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-1855
SELECT - CAST ( ( col0 ) AS INTEGER ) / - 44 - - col0 FROM tab0 AS cor0
----
24
35
91
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + 25 * 98 FROM tab1 AS cor0
----
2450
2450
2450
query I rowsort
SELECT ALL tab1.col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT - cor0.col2 * - cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 111df31a7673b6df0bd01dfa87fa60a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 + 41 FROM tab1 cor0
----
51
54
67
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to 5b8b37aad1394a882af204d89db89912
query I rowsort
SELECT DISTINCT + + 79 + col2 FROM tab1 AS cor0
----
133
136
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT ( + tab1.col1 ) * col1 - - col2 * 83 AS col0 FROM tab1
----
4831
5158
8137
query I rowsort
SELECT - 45 * + tab2.col2 FROM tab2
----
-1170
-1215
-1710
query I rowsort
SELECT col2 * - tab1.col0 + col2 AS col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT 66 + col1 FROM tab1 cor0
----
76
79
92
query I rowsort
SELECT - + ( + col2 ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 + col0 * - col2 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT col2 - cor0.col2 AS col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT ( ( + tab1.col0 ) + - 90 ) DIV col0 AS col2 FROM tab1
----
-29
0
0
skipif mysql # not compatible
query I rowsort label-1874
SELECT ( ( + tab1.col0 ) + - 90 ) / col0 AS col2 FROM tab1
----
-29
0
0
query I rowsort
SELECT + 74 AS col0 FROM tab2
----
74
74
74
query I rowsort
SELECT ALL + ( - tab2.col1 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL ( 53 ) + col0 + ( - col1 * col0 + + 39 ) FROM tab1
----
-484
-868
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1878
SELECT - CAST( NULL AS SIGNED ) / - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1878
SELECT - CAST ( NULL AS INTEGER ) / - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + 93 + - col1 AS col2 FROM tab2 AS cor0
----
93
query I rowsort
SELECT DISTINCT + + col0 + - col0 + + cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col1 + 76 * 44 FROM tab0 AS cor0
----
3247
3253
3258
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1882
SELECT ALL - cor0.col2 * CAST( col2 AS SIGNED ) + col2 * - col1 AS col1 FROM tab1 cor0
----
-10464
-3819
-4320
skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - cor0.col2 * CAST ( col2 AS INTEGER ) + col2 * - col1 AS col1 FROM tab1 cor0
----
-10464
-3819
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * cor0.col1 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 * 68 FROM tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT DISTINCT - col1 * col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col0 * - 80 AS col2 FROM tab1 AS cor0
----
-240
-5120
-6400
query I rowsort
SELECT ALL tab1.col0 + - col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col0 FROM tab1
----
85
query I rowsort
SELECT tab1.col2 + - col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT DISTINCT col2 DIV 37 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-37
skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT col2 / 37 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-37
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL ( col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - + col0 * - col1 + - col2 AS col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT ALL + cor0.col2 * + 74 FROM tab0 AS cor0
----
2442
6068
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1899
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) * + ( col0 ) - - col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) * + ( col0 ) - - col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab2
----
-83
query I rowsort
SELECT + ( cor0.col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - ( 28 ) FROM tab0 cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT col2 + + 45 * cor0.col1 AS col2 FROM tab0 AS cor0
----
3903
4177
4366
query I rowsort
SELECT DISTINCT - - 16 * cor0.col0 + cor0.col0 * + col1 AS col1 FROM tab0 cor0
----
2448
3955
9523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - col2 + - col0 * 71 FROM tab2
----
-524
-5564
-5647
query I rowsort
SELECT + - 15 + - col2 FROM tab0 AS cor0
----
-16
-48
-97
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + 17 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT + col2 * col0 + + col0 * col2 FROM tab0 AS cor0
----
14596
1584
70
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-1912
SELECT DISTINCT + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - col0 + col1 * ( + col1 ) * col1 AS col2 FROM tab1 AS cor0
----
17573
2117
936
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 42 + col1 AS col0 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT ALL - 95 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL + col2 * - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + + col1 + + ( col2 + - col2 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col0 * 32 AS col2 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT ALL + col2 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - - col2 + col0 FROM tab0 AS cor0
----
171
36
57
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2, tab0 cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT col2 * col1 * ( - 6 ) FROM tab2
----
-3876
-5022
-9204
query I rowsort
SELECT DISTINCT col1 * - col0 + 28 AS col2 FROM tab2 AS cor0
----
-1315
-189
-4574
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT 89 DIV + 35 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-1925
SELECT 89 / + 35 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT 24 * ( col2 ) FROM tab2
----
624
648
912
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT + 18 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
1016
1715
946
query I rowsort
SELECT - ( 87 ) * - col0 FROM tab1 AS cor0
----
261
5568
6960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1930
SELECT CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1931
SELECT - CAST( NULL AS SIGNED ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1931
SELECT - CAST ( NULL AS INTEGER ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + + 56 * - col0 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT + - 20 * col0 AS col1 FROM tab0 AS cor0
----
-1780
-480
-700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT - col2 * col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1935
SELECT - col2 * col1 / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab2 AS cor0
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT + - col2 DIV + col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-1937
SELECT + - col2 / + col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-14
-44
query I rowsort
SELECT + cor0.col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT DISTINCT - col2 DIV - col0 + - col2 * + 65 AS col2 FROM tab1
----
-3492
-3705
-6239
skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - col2 / - col0 + - col2 * + 65 AS col2 FROM tab1
----
-3492
-3705
-6239
query I rowsort
SELECT + tab1.col1 * 91 AS col1 FROM tab1
----
1183
2366
910
query I rowsort
SELECT col2 * + 62 AS col2 FROM tab1
----
3348
3534
5952
query I rowsort
SELECT cor0.col2 * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1
query I rowsort
SELECT + col0 * col0 * + 45 FROM tab2 AS cor0
----
2205
273780
280845
query I rowsort
SELECT col2 * - 85 AS col1 FROM tab2 cor0
----
-2210
-2295
-3230
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1948
SELECT - - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1948
SELECT - - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 22 * - cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8e0c90f3a9413fc2dcd03bbf28fb6d8d
query I rowsort
SELECT DISTINCT + col1 * 2 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col2 + + 62 + col1 FROM tab0 AS cor0
----
160
181
235
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( - ( - col0 ) AS REAL ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT + col0 + - CAST( - col1 AS SIGNED ) + col0 * 84 AS col2 FROM tab1
----
281
5450
6813
skipif mysql # not compatible
query I rowsort label-1954
SELECT + col0 + - CAST ( - col1 AS INTEGER ) + col0 * 84 AS col2 FROM tab1
----
281
5450
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT - col2 / CAST( NULL AS SIGNED ) + + 52 * col1 + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1955
SELECT - col2 / CAST ( NULL AS INTEGER ) + + 52 * col1 + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT 27 - 30 AS col2 FROM tab1 cor0
----
-3
-3
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT + CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1958
SELECT + CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( col2 ) - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + + 63 * - col1 AS col1 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ALL col0 * col1 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT ALL 24 * 44 FROM tab2 AS cor0
----
1056
1056
1056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT + - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1963
SELECT + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ( - col2 ) * col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - + 55 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL col2 - ( - col0 ) * + ( col1 ) AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT 59 * 3 - - col0 AS col0 FROM tab2
----
184
255
256
query I rowsort
SELECT DISTINCT 23 FROM tab0
----
23
query I rowsort
SELECT DISTINCT + 50 FROM tab1
----
50
query I rowsort
SELECT + col1 * - 84 FROM tab1 AS cor0
----
-1092
-2184
-840
query I rowsort
SELECT col1 * - col0 + - col2 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + col0 * col0 * + col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT - col2 * + ( + cor0.col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 + col2 + cor0.col0 col1 FROM tab1 AS cor0
----
-3975
-6224
48
query I rowsort
SELECT DISTINCT cor0.col0 + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0
----
48
query I rowsort
SELECT 50 * col1 FROM tab1
----
1300
500
650
query I rowsort
SELECT DISTINCT + 72 * + col1 AS col2 FROM tab1
----
1872
720
936
query I rowsort
SELECT + + col0 * + 25 + col0 AS col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT - + col2 * ( - 10 * cor0.col0 ) + col2 * col0 AS col2 FROM tab1 AS cor0
----
1782
40128
84480
query I rowsort
SELECT - - col2 + - ( col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ( - col2 * col2 + col2 ) AS col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col0 - + col0 * - 94 AS col2 FROM tab2
----
665
7410
7505
query I rowsort
SELECT - + cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT DISTINCT + + 55 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-55
0
skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT + + 55 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-55
0
query I rowsort
SELECT ALL + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1990
SELECT + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 76 FROM tab1, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT ALL - - col0 DIV + col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - - col0 / + col0 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1993
SELECT - + col2 / - cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL - col1 - + col1 DIV ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - col1 - + col1 / ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * cor0.col0 - + 55 AS col0 FROM tab2 AS cor0
----
1288
162
4547
query I rowsort
SELECT DISTINCT - col0 + + ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT col0 * + 71 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL + + col0 * - ( col0 * - col1 ) FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT ALL + + col0 * - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + + col0 * - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + + 15 AS col1 FROM tab1 AS cor0
----
-154
-661
-85
query I rowsort
SELECT - - col2 - ( 64 ) * cor0.col1 FROM tab2 AS cor0
----
-1050
-1957
-3750
query I rowsort
SELECT ALL - col0 * + cor0.col2 + col0 - col1 AS col2 FROM tab2 AS cor0
----
-2009
-213
-2940
query I rowsort
SELECT col0 * col1 + - col1 AS col2 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL ( tab2.col0 ) * + col0 * + 66 AS col0 FROM tab2
----
3234
401544
411906
query I rowsort
SELECT ALL - 71 FROM tab1
----
-71
-71
-71
query I rowsort
SELECT DISTINCT + - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL ( col0 ) * + ( col0 ) AS col0 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2011
SELECT CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col1 + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT col2 * + col2 + + col2 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
10560
3876
4374
query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT - col0 * col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2017
SELECT - CAST( + 31 AS SIGNED ) col1 FROM tab1 AS cor0
----
-31
-31
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2017
SELECT - CAST ( + 31 AS INTEGER ) col1 FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT - 69 * - col1 AS col0 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT + 55 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col1 * tab1.col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT + CAST( col1 AS SIGNED ) * - col2 + + col1 * 73 FROM tab0 AS cor0
----
-819
3440
6984
skipif mysql # not compatible
query I rowsort label-2023
SELECT + CAST ( col1 AS INTEGER ) * - col2 + + col1 * 73 FROM tab0 AS cor0
----
-819
3440
6984
query I rowsort
SELECT DISTINCT + ( col2 ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 col1 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT - 55 * col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1678
-3219
-897
query I rowsort
SELECT DISTINCT + col2 * 87 + + col2 * + ( - ( col2 ) ) AS col2 FROM tab2
----
1586
1620
1862
query I rowsort
SELECT - col0 + col0 AS col0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab0 AS cor0
----
47
47
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2033
SELECT ALL CAST( NULL AS SIGNED ) / - 46 + tab0.col0 * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL CAST ( NULL AS INTEGER ) / - 46 + tab0.col0 * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 ) AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 42 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT - col0 + + col0 * - 9 FROM tab0 AS cor0
----
-240
-350
-890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT DISTINCT + col1 DIV - col2 + - col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + col1 / - col2 + - col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col1 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT + - col0 + + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + ( col0 ) * - ( 3 ) AS col2 FROM tab2 cor0
----
-21
-234
-237
query I rowsort
SELECT DISTINCT + ( + col1 ) * 12 + col0 AS col0 FROM tab0 AS cor0
----
1056
1181
1199
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT ALL + CAST( col2 AS SIGNED ) + tab0.col1 * - 11 AS col2 FROM tab0
----
-1066
-913
-919
skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + CAST ( col2 AS INTEGER ) + tab0.col1 * - 11 AS col2 FROM tab0
----
-1066
-913
-919
query I rowsort
SELECT ALL col2 + 89 * - col0 FROM tab0
----
-2103
-3114
-7839
query I rowsort
SELECT ( ( col0 ) + - 77 ) * col2 * col0 AS col0 FROM tab0
----
-1470
-41976
87576
query I rowsort
SELECT - ( - col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 * col1 + col0 * col0 * col2 FROM tab0 AS cor0
----
1322
21846
656984
query I rowsort
SELECT DISTINCT col2 + col1 * + 59 FROM tab2 AS cor0
----
1041
1856
3507
query I rowsort
SELECT 70 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 * - col1 + - col1 AS col2 FROM tab0 cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT - 30 + - col0 FROM tab2 cor0
----
-108
-109
-37
query I rowsort
SELECT ALL col1 * col2 * + 20 + + col2 FROM tab2
----
12958
16767
30706
query I rowsort
SELECT - col1 * + col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + col0 + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
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 DISTINCT - col1 AS col1 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT - col1 DIV CAST( col1 AS SIGNED ) - - cor0.col0 * ( 92 ) AS col1 FROM tab0 AS cor0
----
2207
3219
8187
skipif mysql # not compatible
query I rowsort label-2061
SELECT - col1 / CAST ( col1 AS INTEGER ) - - cor0.col0 * ( 92 ) AS col1 FROM tab0 AS cor0
----
2207
3219
8187
query I rowsort
SELECT 81 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ( 57 ) + - col0 AS col1 FROM tab0 AS cor0
----
-32
22
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT ALL + + 1 + - 89 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + + 1 + - 89 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
2
query I rowsort
SELECT ALL col2 - 17 * + col1 FROM tab2 AS cor0
----
-251
-500
-977
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT + - col0 * col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col1 + col0 + - col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 9 col1 FROM tab0 AS cor0
----
100
106
95
query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + + 78 FROM tab2 cor0
----
78
78
78
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT DISTINCT - - ( + ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL col1 * - 31 FROM tab1 AS cor0
----
-310
-403
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT ALL + col2 + tab0.col2 DIV col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + col2 + tab0.col2 / col2 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2 WHERE NOT col1 < NULL
----
query I rowsort
SELECT ALL - col0 * col2 * + col0 + col0 AS col2 FROM tab1 WHERE ( NULL ) < - col2 + col0 * col1 - + col0
----
query I rowsort
SELECT ALL + col2 * + col1 - col0 AS col1 FROM tab0
----
2814
62
7373
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - tab1.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT col2 DIV col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2084
SELECT col2 / col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT tab0.col1 + col2 + col0 AS col0 FROM tab0
----
133
143
262
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT ALL col0 + tab2.col0 FROM tab2
----
14
156
158
query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 AS col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT + col2 * col2 + - col2 * + col0 FROM tab0
----
-34
-574
297
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + col2 AND col1
----
query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab0 WHERE NOT ( - col2 ) = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT DISTINCT col1 DIV + tab0.col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT col1 / + tab0.col1 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL col0 * tab1.col1 DIV col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL col0 * tab1.col1 / col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col2 / tab0.col0 )
----
query I rowsort
SELECT DISTINCT - tab0.col0 + col1 * + col0 - - col2 AS col1 FROM tab0
----
2073
3361
8092
query I rowsort
SELECT + col0 * col1 AS col0 FROM tab2
----
1343
217
4602
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT ALL tab2.col2 DIV col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL tab2.col2 / col1 AS col2 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * col2 + + col2 * col1 + col1 col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT col0 * col1 * col1 - + col0 FROM tab2
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT DISTINCT col2 * col0 DIV tab1.col1 AS col0 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT col2 * col0 / tab1.col1 AS col0 FROM tab1
----
364
590
6
query I rowsort
SELECT col2 * col1 * - col1 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT ALL tab0.col2 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL tab0.col2 / col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 + col0 + - col2 * - col2 FROM tab2
----
1485
709
728
query I rowsort
SELECT col1 * + col0 + tab0.col2 + col1 * + col2 FROM tab0
----
15643
3493
4935
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL + col0 DIV - col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + col0 / - col1 FROM tab2
----
-1
-4
0
query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( - col2 )
----
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT - col2 + - col2 + col2 DIV col0 FROM tab0 AS cor0
----
-164
-2
-65
skipif mysql # not compatible
query I rowsort label-2111
SELECT - col2 + - col2 + col2 / col0 FROM tab0 AS cor0
----
-164
-2
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL > col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + col2 / - col0 )
----
query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 * col1 - tab1.col0 FROM tab1
----
-1120
-704
-81
query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( col1 )
----
query I rowsort
SELECT col2 * col2 * col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT 72 DIV ( cor1.col1 + - cor2.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
81 values hashing to cc92b36596e3fb4dccb82a405f289428
skipif mysql # not compatible
query I rowsort label-2120
SELECT 72 / ( cor1.col1 + - cor2.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
81 values hashing to cc92b36596e3fb4dccb82a405f289428
query I rowsort
SELECT col0 * 74 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1513
-288
-805
query I rowsort
SELECT DISTINCT - col2 * - 68 + col2 * col0 FROM tab2 cor0
----
2025
3796
5586
query I rowsort
SELECT + col0 + - col0 * + col2 AS col1 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + 34 * + 31 + col1 FROM tab0 AS cor0
----
1140
1145
1151
query I rowsort
SELECT 40 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1040
-1080
-1520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2127
SELECT ALL + + CAST( NULL AS SIGNED ) * - col1 + cor0.col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col1 + cor0.col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 80 - + 88 AS col1 FROM tab1 AS cor0
----
-8
query I rowsort
SELECT + col1 * + 56 FROM tab0 cor0
----
4816
5096
5432
query I rowsort
SELECT ALL + col0 * cor0.col1 + col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + + 85 * col0 - col2 FROM tab0 cor0
----
2007
2974
7483
query I rowsort
SELECT 73 AS col0 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT - - 93 AS col2 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT + col0 + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - + 47 FROM tab1 AS cor0
----
-47
query I rowsort
SELECT col2 * col2 + col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT col0 * col0 + - tab1.col0 AS col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT DISTINCT col2 * col0 - + col2 * - col2 * col1 FROM tab0
----
132
619182
94446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + col2 col2 FROM tab1 cor0
----
3348
3534
5952
query I rowsort
SELECT + col2 * + col1 * - col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + + col1 * col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 * col2 col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + 89 * - col0 FROM tab2
----
-623
-6942
-7031
query I rowsort
SELECT 6 * col0 FROM tab0
----
144
210
534
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT ALL - ( col2 ) + - col1 DIV - tab1.col1 AS col0 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - ( col2 ) + - col1 / - tab1.col1 AS col0 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT + tab1.col0 * col1 * ( 42 + col1 * + col1 ) FROM tab1
----
219440
56004
90880
query I rowsort
SELECT 80 * + col2 AS col2 FROM tab2 AS cor0
----
2080
2160
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT DISTINCT + col2 DIV - col1 + + col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + col2 / - col1 + + col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT col1 + - 19 * - 55 AS col1 FROM tab0
----
1131
1136
1142
query I rowsort
SELECT 1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT + col2 * - col1 + col1 * col0 AS col1 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT - 15 FROM tab2
----
-15
-15
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT DISTINCT + 11 DIV - tab1.col0 col1 FROM tab1
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + 11 / - tab1.col0 col1 FROM tab1
----
-3
0
query I rowsort
SELECT ALL - 67 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - 5 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT DISTINCT 65 * ( + col2 ) + col0 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
12717
135
2961
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL + 90 * col2 AS col2 FROM tab0 cor0
----
2970
7380
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT ALL CAST( NULL AS SIGNED ) + col0 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL CAST ( NULL AS INTEGER ) + col0 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 27 * 58 * col2 AS col0 FROM tab1 AS cor0
----
-150336
-84564
-89262
query I rowsort
SELECT + 12 + + tab1.col0 FROM tab1
----
15
76
92
query I rowsort
SELECT col1 + + col1 + col2 FROM tab2
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT + 71 - + col0 DIV + 15 AS col2 FROM tab0
----
66
69
70
skipif mysql # not compatible
query I rowsort label-2168
SELECT + 71 - + col0 / + 15 AS col2 FROM tab0
----
66
69
70
query I rowsort
SELECT col1 + - col1 + col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT ALL + col1 + + col1 * 8 DIV col0 FROM tab2 AS cor0
----
18
65
66
skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + col1 + + col1 * 8 / col0 FROM tab2 AS cor0
----
18
65
66
query I rowsort
SELECT ( col1 ) * + ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col0 * col0 - - cor0.col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL col1 * + cor0.col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + + col0 * col2 - - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col0 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - col2 * + 43 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT DISTINCT - - col2 + + col2 * - ( - col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col2 * + col1 - - col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + col0 * + 57 AS col0 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT - col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col2 * ( ( + cor0.col0 ) ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 + ( col2 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( 92 ) * + col1 col2 FROM tab0 AS cor0
----
7998
8463
9021
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 + col2 * col2 col2 FROM tab0 AS cor0
----
13448
2
2178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - 16 FROM tab1
----
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2190
SELECT DISTINCT + 32 * col2 - + CAST( 42 AS SIGNED ) * + col0 FROM tab2
----
-2102
-2444
570
skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 32 * col2 - + CAST ( 42 AS INTEGER ) * + col0 FROM tab2
----
-2102
-2444
570
query I rowsort
SELECT DISTINCT + + cor0.col2 * 90 AS col0 FROM tab0 AS cor0
----
2970
7380
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2192
SELECT ALL + + col2 * + CAST( - 79 AS SIGNED ) + - col1 * + col0 FROM tab0 cor0
----
-14577
-3474
-4671
skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + + col2 * + CAST ( - 79 AS INTEGER ) + - col1 * + col0 FROM tab0 cor0
----
-14577
-3474
-4671
query I rowsort
SELECT DISTINCT - cor0.col0 * 99 AS col0 FROM tab0 AS cor0
----
-2376
-3465
-8811
query I rowsort
SELECT ALL + - col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT ALL - cor0.col0 / CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - cor0.col0 / CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - ( col2 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT + + col1 * col0 + - col0 DIV col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2198
SELECT + + col1 * col0 + - col0 / col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - tab2.col2 * col2 AS col0 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - col2 * col0 - - col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT col2 - col2 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT + col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT + col0 DIV + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2205
SELECT + col0 / + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col2 col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 + col2 col1 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT + + col2 + - col1 DIV + cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2209
SELECT + + col2 + - col1 / + cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col0 * col1 + tab1.col2 + + col2 * - col0 * + col1 AS col0 FROM tab1
----
-35783
-4080
-98704
query I rowsort
SELECT - col1 * col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col2 + col1 * - tab2.col2 * col0 AS col0 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col2 + + col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + 21 FROM tab2 AS cor0
----
21
21
21
query I rowsort
SELECT ALL + cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - col2 + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + - col2 * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - 89 FROM tab2 AS cor0
----
-89
query I rowsort
SELECT col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 * + col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL - + 4 * col0 * col0 FROM tab1 AS cor0
----
-16384
-25600
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT DISTINCT 85 DIV - col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT 85 / - col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT col1 + col0 * col0 + + tab2.col1 AS col2 FROM tab2
----
111
6202
6275
query I rowsort
SELECT ALL 97 * col1 + - col0 FROM tab2
----
1570
3000
5645
query I rowsort
SELECT ALL + col1 + - col1 * - col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT + 93 + col0 AS col1 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT ALL - - cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + 3 AS col2 FROM tab2 AS cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT col0 + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT col0 + - col0 / col0 AS col2 FROM tab1 AS cor0
----
2
63
79
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 - - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT + col2 + col1 DIV + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2233
SELECT + col2 + col1 / + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) FROM tab1
----
54
57
96
query I rowsort
SELECT + col2 * - ( col1 * col2 ) AS col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + 40 + + col0 AS col0 FROM tab1 AS cor0
----
104
120
43
query I rowsort
SELECT + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - 91 + - col0 AS col1 FROM tab1 cor0
----
11
27
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - tab0.col0 * - 28 col0 FROM tab0
----
226772
57792
95060
query I rowsort
SELECT - tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 7e665e04e6102323f69d70091871d1d2
query I rowsort
SELECT - cor0.col1 * - col0 + + col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2244
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + col0 / + col1 AS col2 FROM tab1
----
0
6
query I rowsort
SELECT + 73 AS col2 FROM tab1
----
73
73
73
query I rowsort
SELECT ALL 44 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT + cor0.col2 DIV tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 910f1b73237dbd09ca0f81ed6afb6c35
skipif mysql # not compatible
query I rowsort label-2247
SELECT + cor0.col2 / tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 910f1b73237dbd09ca0f81ed6afb6c35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + + 34 AS col0 FROM tab0 AS cor0
----
34
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) AS col0 FROM tab1, tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 46 ) * + col2 + + 66 * col2 col0 FROM tab0 AS cor0
----
112
3696
9184
query I rowsort
SELECT - + ( + col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - 99 * 88 + - col1 FROM tab1 AS cor0
----
8686
8699
8702
query I rowsort
SELECT - 57 * col1 AS col2 FROM tab2 cor0
----
-1767
-3363
-969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col1 * ( + col1 ) + cor0.col2 col1 FROM tab0 AS cor0
----
-636023
-753489
-912672
query I rowsort
SELECT + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT ALL + CAST( - col0 AS SIGNED ) + col2 FROM tab2
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + CAST ( - col0 AS INTEGER ) + col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + 72 + 17 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL + 78 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL + 36 + + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-2028
-3359
-8063
onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT DISTINCT col0 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT col0 / + col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT - col1 * col1 DIV ( - 57 ) + - col0 FROM tab0 AS cor0
----
105
130
56
skipif mysql # not compatible
query I rowsort label-2262
SELECT - col1 * col1 / ( - 57 ) + - col0 FROM tab0 AS cor0
----
105
130
56
query I rowsort
SELECT - 59 * - col0 AS col0 FROM tab1 AS cor0
----
177
3776
4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
-14
query I rowsort
SELECT ALL - 54 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT ALL + col2 * col1 + 55 + + 55 * col1 FROM tab2 AS cor0
----
1636
2597
4834
query I rowsort
SELECT DISTINCT col2 - + col0 * 92 FROM tab1
----
-222
-5831
-7264
query I rowsort
SELECT + + col0 + 47 FROM tab2 AS cor0
----
125
126
54
query I rowsort
SELECT - col1 - + 78 FROM tab2
----
-109
-137
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) - + col2 col1 FROM tab0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT - col0 * 17 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-104
-108
skipif mysql # not compatible
query I rowsort label-2271
SELECT - col0 * 17 / col1 AS col0 FROM tab1 AS cor0
----
-1
-104
-108
query I rowsort
SELECT - + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT - cor0.col2 + + col0 DIV - col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-2273
SELECT - cor0.col2 + + col0 / - col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL + ( col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 + + col0 * cor0.col1 col0 FROM tab1 AS cor0
----
34
596
996
query I rowsort
SELECT DISTINCT - + ( + col1 ) * col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + 50 - - col1 AS col2 FROM tab0 AS cor0
----
136
141
147
query I rowsort
SELECT + 78 FROM tab2 cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT 4 * col0 + col2 DIV col1 FROM tab1 AS cor0
----
14
261
327
skipif mysql # not compatible
query I rowsort label-2279
SELECT 4 * col0 + col2 / col1 FROM tab1 AS cor0
----
14
261
327
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2280
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 81 col1 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT cor0.col1 * col0 + - col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
2686
434
9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT ALL col2 DIV col0 AS col1 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL col2 / col0 AS col1 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL tab2.col0 * - ( tab2.col1 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * 6 FROM tab0
----
-198
-492
-6
query I rowsort
SELECT DISTINCT - 56 * 32 FROM tab0 cor0
----
-1792
query I rowsort
SELECT DISTINCT + + col0 + + ( cor0.col2 ) FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT ALL + cor0.col2 * + col2 + - col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT ALL cor0.col0 + col2 * 43 AS col2 FROM tab1 AS cor0
----
2325
2515
4208
query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + + col0 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - 62 * col1 - 77 AS col2 FROM tab0
----
-5409
-5719
-6091
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * col2 + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * col2 + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * 30 + col1 * col2 + - 77 col1 FROM tab2
----
-170
-313
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT ALL + col1 DIV + 91 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + col1 / + 91 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + 34 * + cor0.col2 FROM tab1 AS cor0
----
1839
2002
3344
query I rowsort
SELECT ALL + col0 * 68 + + col1 AS col0 FROM tab1 AS cor0
----
230
4362
5453
query I rowsort
SELECT ALL + 45 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
1509
3779
80
query I rowsort
SELECT DISTINCT cor0.col1 + col1 + col0 FROM tab0 AS cor0
----
196
229
271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2301
SELECT ALL - CAST( + col1 AS SIGNED ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - CAST ( + col1 AS INTEGER ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL + 48 FROM tab1
----
48
48
48
query I rowsort
SELECT col1 * 92 AS col1 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT + cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col1 - - cor0.col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + 79 + + col1 * + 18 AS col1 FROM tab0 AS cor0
----
1627
1717
1825
query I rowsort
SELECT - col0 - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + 86 + - 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 + 44 * col0 FROM tab1
----
2916
3689
808
onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT DISTINCT + 92 DIV col0 + 11 AS col0 FROM tab0 AS cor0
----
12
13
14
skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + 92 / col0 + 11 AS col0 FROM tab0 AS cor0
----
12
13
14
query I rowsort
SELECT + col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col2 * + cor0.col1 - + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - col1 * col0 + 95 FROM tab0 AS cor0
----
-1969
-3300
-8004
query I rowsort
SELECT ALL col0 * - col1 + - 60 + + col0 * col0 FROM tab0 AS cor0
----
-1548
-2230
-238
query I rowsort
SELECT ALL - + cor0.col0 - cor0.col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + 85 + cor0.col0 AS col1 FROM tab1 AS cor0
----
149
165
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT + col1 * + col2 + - cor0.col2 DIV 23 col0 FROM tab0 AS cor0
----
2837
7459
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2318
SELECT + col1 * + col2 + - cor0.col2 / 23 col0 FROM tab0 AS cor0
----
2837
7459
97
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + + 66 FROM tab0 AS cor0
----
7462
8347
9475
query I rowsort
SELECT - - col0 * - col0 + col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT 48 - - col2 FROM tab2 AS cor0
----
74
75
86
query I rowsort
SELECT ALL + 70 * col2 - - 73 * - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-209088
-233187
-666048
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 DISTINCT - ( + col2 ) + + cor0.col2 * cor0.col1 + col1 * - col1 FROM tab1 AS cor0
----
413
674
983
query I rowsort
SELECT ALL - col1 + tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 + tab0.col1 AS col2 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT 86 + + col0 * + col0 * - tab2.col2 FROM tab2
----
-1237
-158098
-237072
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072
query I rowsort
SELECT + col2 + + col1 * - 10 FROM tab0 AS cor0
----
-827
-828
-969
query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT - + col1 + - col1 * + cor0.col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT - col2 * cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT 4 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
377
389
446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2336
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) + - col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) + - col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col2 + 28 FROM tab1 AS cor0
----
111
56
75
query I rowsort
SELECT - + col0 + ( + col1 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - - col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab2 cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * col1 * + col2 col0 FROM tab0
----
-244035
-678960
-9408
query I rowsort
SELECT - col2 * col1 - + cor0.col2 AS col1 FROM tab2 cor0
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2346
SELECT + col2 + - CAST( 63 AS SIGNED ) * col1 * 35 AS col2 FROM tab0 AS cor0
----
-189597
-200573
-213884
skipif mysql # not compatible
query I rowsort label-2346
SELECT + col2 + - CAST ( 63 AS INTEGER ) * col1 * 35 AS col2 FROM tab0 AS cor0
----
-189597
-200573
-213884
query I rowsort
SELECT col2 * - ( + 48 ) * - col1 - col2 FROM tab0 AS cor0
----
136191
358094
4655
query I rowsort
SELECT ALL + ( + col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT DISTINCT - 22 DIV col1 col1 FROM tab2 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT - 22 / col1 col1 FROM tab2 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 * + col0 col0 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT ALL - col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 57 + - col1 AS col1 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT + - 15 * - 68 * cor0.col0 AS col0 FROM tab2 cor0
----
7140
79560
80580
query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1 AS cor0
----
-13
query I rowsort
SELECT ALL + ( + 60 ) + - col0 AS col1 FROM tab2 AS cor0
----
-18
-19
53
query I rowsort
SELECT 17 + 54 * col1 FROM tab1 AS cor0
----
1421
557
719
query I rowsort
SELECT ( col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2358
SELECT ALL + CAST( NULL AS SIGNED ) / 17 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL + CAST ( NULL AS INTEGER ) / 17 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + - col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab2 AS cor0
----
-93
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * 28 FROM tab2 AS cor0
----
1730
555
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col1 * - col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col0 + + 31 * + ( - tab0.col0 ) * ( col0 ) FROM tab0
----
-17832
-245462
-37940
query I rowsort
SELECT DISTINCT - tab2.col0 + ( - 21 ) AS col0 FROM tab2
----
-100
-28
-99
query I rowsort
SELECT col2 * - ( - 67 ) FROM tab2
----
1742
1809
2546
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2372
SELECT + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2372
SELECT + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 * - 38 FROM tab2
----
-1178
-2242
-646
query I rowsort
SELECT ALL + + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 + 17 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * - cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2380
SELECT ALL + CAST( NULL AS SIGNED ) - - 66 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + CAST ( NULL AS INTEGER ) - - 66 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT ALL + 63 DIV col1 + col2 col2 FROM tab2 cor0
----
27
29
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + 63 / col1 + col2 col2 FROM tab2 cor0
----
27
29
41
query I rowsort
SELECT DISTINCT 83 + col0 FROM tab0 AS cor0
----
107
118
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT + 91 * cor0.col1 DIV ( + cor0.col2 ) + col2 FROM tab0 AS cor0
----
182
270
8828
skipif mysql # not compatible
query I rowsort label-2383
SELECT + 91 * cor0.col1 / ( + cor0.col2 ) + col2 FROM tab0 AS cor0
----
182
270
8828
query I rowsort
SELECT + + 48 - col1 FROM tab2 AS cor0
----
-11
17
31
query I rowsort
SELECT - - 81 * - col1 * cor0.col1 + + 59 AS col1 FROM tab2 AS cor0
----
-23350
-281902
-77782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT - col2 * + col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2386
SELECT - col2 * + col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - cor0.col0 * col1 + col2 AS col2 FROM tab0 cor0
----
-118824
-49503
-720729
query I rowsort
SELECT ( col2 ) + - col0 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT + + ( col1 ) DIV col2 AS col1 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2389
SELECT + + ( col1 ) / col2 AS col1 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT + col0 + - col2 * 21 - - 73 FROM tab2 AS cor0
----
-395
-487
-646
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 + col2 * + col1 col2 FROM tab0 cor0
----
14186
3927
98
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT + col2 DIV 67 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2393
SELECT + col2 / 67 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT 56 * + col2 AS col2 FROM tab0
----
1848
4592
56
query I rowsort
SELECT + - cor0.col1 * - col1 - 52 FROM tab1 AS cor0
----
117
48
624
query I rowsort
SELECT DISTINCT - + col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 - + ( - cor0.col0 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + col0 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col1 + cor0.col1 * col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + - col0 * 68 + - 18 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1176
-5378
-7168
query I rowsort
SELECT ALL - + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 * + 46 FROM tab1 AS cor0
----
-138
-2944
-3680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT + col2 + - col1 * CAST( NULL AS DECIMAL ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2405
SELECT + col2 + - col1 * CAST ( NULL AS REAL ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT - col2 DIV ( - ( col0 ) ) + 26 + - 59 col2 FROM tab2 AS cor0
----
-30
-33
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2406
SELECT - col2 / ( - ( col0 ) ) + 26 + - 59 col2 FROM tab2 AS cor0
----
-30
-33
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT DISTINCT + col2 DIV ( col2 ) FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT + col2 / ( col2 ) FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT + cor1.col1 * + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1534
646
837
query I rowsort
SELECT DISTINCT + 1 * + tab0.col1 AS col2 FROM tab0, tab0 cor0
----
86
91
97
query I rowsort
SELECT + + col2 * 28 - - col1 FROM tab0 AS cor0
----
1010
125
2387
query I rowsort
SELECT + + col1 * col0 AS col2 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 7 * + col0 col1 FROM tab2 AS cor0
----
1519
32214
9401
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2413
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + + CAST ( col0 AS REAL ) * + col0 AS col1 FROM tab1
----
4032
6
6320
query I rowsort
SELECT - 60 * + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 4d2b7e28dde0a27f332e89480655b2e3
query I rowsort
SELECT 82 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT ALL + col1 + - col0 + - col1 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - 12 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT cor0.col2 - - col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + col2 * - col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT cor0.col2 * + 39 FROM tab2 AS cor0
----
1014
1053
1482
onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT + 94 * col1 DIV - col1 + 67 col2 FROM tab2
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2422
SELECT + 94 * col1 / - col1 + 67 col2 FROM tab2
----
-27
-27
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL + col2 - - col0 * 85 * + tab2.col2 FROM tab2
----
16092
172406
255208
query I rowsort
SELECT col0 - + col2 AS col2 FROM tab2
----
-20
41
52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 cor0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT - cor0.col2 - col0 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-27
262087
511904
query I rowsort
SELECT ALL col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - 92 AS col2 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT - ( col1 ) * + tab0.col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 * col2 + - cor0.col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - 96 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT DISTINCT - col0 + 5 AS col2 FROM tab0 AS cor0
----
-19
-30
-84
query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT 27 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT ALL - - col2 * - col2 - col0 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT + - col1 * - col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT col0 * - col1 + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 * + 91 FROM tab1
----
273
5824
7280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT ALL - - 93 + - cor0.col0 DIV cor0.col1 col1 FROM tab1 AS cor0
----
87
87
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - - 93 + - cor0.col0 / cor0.col1 col1 FROM tab1 AS cor0
----
87
87
93
query I rowsort
SELECT + 65 + 55 * - col2 AS col0 FROM tab0 cor0
----
-1750
-4445
10
query I rowsort
SELECT DISTINCT + 60 + - ( col2 ) * + 65 AS col0 FROM tab1 AS cor0
----
-3450
-3645
-6180
query I rowsort
SELECT DISTINCT + 95 FROM tab0 AS cor0
----
95
query I rowsort
SELECT + col0 * col2 * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2447
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 89 + - col1 - col2 FROM tab2 AS cor0
----
31
34
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + ( col2 ) + col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + col1 DIV - col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + col1 / - col2 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT DISTINCT ( 8 ) AS col2 FROM tab1 AS cor0
----
8
query I rowsort
SELECT ALL - - 60 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT ALL + - col2 + + col1 * col2 AS col1 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT - - 18 FROM tab2 cor0
----
18
18
18
query I rowsort
SELECT + + 79 * cor0.col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT ALL - - 44 AS col1 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT - col1 * + col1 * - col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0
----
35
query I rowsort
SELECT + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 1 + 48 * col1 FROM tab1
----
1247
479
623
query I rowsort
SELECT - ( tab1.col2 ) * + col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL col2 * 6 AS col0 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT + col0 * + col1 * col2 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT col1 + ( col0 ) * col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT ALL - col0 DIV 50 col0 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - col0 / 50 col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + col2 * - 28 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 20 + - col0 + + ( + ( + col2 ) * col0 + + tab0.col0 ) FROM tab0
----
15
7278
772
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT ALL cor0.col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL cor0.col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col1 + + 62 * col1 FROM tab0
----
5418
5733
6111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + col0 col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT - col0 + col0 DIV col1 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2477
SELECT - col0 + col0 / col1 AS col2 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + col0 * cor0.col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT - - cor0.col0 DIV 1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2481
SELECT - - cor0.col0 / 1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT - col2 DIV + col0 col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2483
SELECT - col2 / + col0 col0 FROM tab2 AS cor0
----
-3
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT col0 + col1 DIV + tab2.col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2485
SELECT col0 + col1 / + tab2.col1 FROM tab2
----
79
8
80
query I rowsort
SELECT - + 68 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT - col2 + - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + 28 AS col0 FROM tab0
----
28
28
28
query I rowsort
SELECT - 52 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29
query I rowsort
SELECT ALL + 95 + col1 AS col1 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT col1 * col2 + col1 * 68 + col0 * ( tab1.col0 * col1 ) FROM tab1
----
3406
42210
85332
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col1 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT + col1 DIV tab2.col0 + 61 col0 FROM tab2
----
61
61
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2495
SELECT + col1 / tab2.col0 + 61 col0 FROM tab2
----
61
61
65
query I rowsort
SELECT ALL ( - cor0.col2 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + 99 col2 FROM tab2
----
148
6183
6340
query I rowsort
SELECT ALL tab2.col1 + - col2 * - col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT 96 + + col1 * + ( + 57 ) FROM tab1
----
1578
666
837
query I rowsort
SELECT ALL + col2 * + col0 - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + - 68 * 72 FROM tab0, tab0 AS cor0
----
-4896
query I rowsort
SELECT 16 + col1 AS col1 FROM tab1 cor0
----
26
29
42
query I rowsort
SELECT ALL 94 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1154
-1310
-476
query I rowsort
SELECT ALL 39 FROM tab1
----
39
39
39
query I rowsort
SELECT ALL + 48 AS col2 FROM tab2
----
48
48
48
query I rowsort
SELECT col0 + ( col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 + - 42 FROM tab1 AS cor0
----
-16
-29
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT col0 DIV + ( 80 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2508
SELECT col0 / + ( 80 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT + - col1 DIV cor0.col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2509
SELECT + - col1 / cor0.col0 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT ALL col2 * + ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col2 * + ( col0 ) + col2 * col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT + - col1 * col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col2 + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT DISTINCT - - col2 DIV CAST( col0 AS SIGNED ) FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - - col2 / CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col0 col1 FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 cor0, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL - 26 AS col0 FROM tab2
----
-26
-26
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT ALL - cor0.col0 + col2 - CAST( ( col1 ) AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1024
-27
-647
skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - cor0.col0 + col2 - CAST ( ( col1 ) AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1024
-27
-647
onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT DISTINCT - cor0.col2 DIV col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - cor0.col2 / col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + 32 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT ALL + + 77 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2524
SELECT - + CAST( NULL AS SIGNED ) + - col1 / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2524
SELECT - + CAST ( NULL AS INTEGER ) + - col1 / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) FROM tab1, tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2526
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT - 48 * - 65 FROM tab1
----
3120
3120
3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT + ( 57 ) * col0 DIV - 62 AS col0 FROM tab2
----
-6
-71
-72
skipif mysql # not compatible
query I rowsort label-2528
SELECT + ( 57 ) * col0 / - 62 AS col0 FROM tab2
----
-6
-71
-72
query I rowsort
SELECT - col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2530
SELECT DISTINCT CAST( NULL AS DECIMAL ) * cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT CAST ( NULL AS REAL ) * cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL - col1 + col0 * col0 + tab1.col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - + 31 + col2 * + ( cor0.col2 ) * cor0.col2 FROM tab1 AS cor0
----
157433
185162
884705
query I rowsort
SELECT 34 * + col1 + - col2 FROM tab2 AS cor0
----
1027
1980
540
query I rowsort
SELECT ALL - 87 - + col2 FROM tab2 cor0
----
-113
-114
-125
onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT - col2 * + col0 + + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-162
-3647
-7680
skipif mysql # not compatible
query I rowsort label-2535
SELECT - col2 * + col0 + + cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-162
-3647
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 + cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT + 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab0, tab1 AS cor0
----
4
query I rowsort
SELECT DISTINCT col2 * 83 AS col1 FROM tab0 cor0
----
2739
6806
83
query I rowsort
SELECT + - col0 * 58 AS col1 FROM tab1 cor0
----
-174
-3712
-4640
query I rowsort
SELECT ALL - - col1 * 28 AS col1 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT + cor0.col2 + - col1 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT + - col2 + 37 * ( - cor0.col2 ) DIV - 49 AS col2 FROM tab0 cor0
----
-1
-21
-9
skipif mysql # not compatible
query I rowsort label-2543
SELECT + - col2 + 37 * ( - cor0.col2 ) / - 49 AS col2 FROM tab0 cor0
----
-1
-21
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( col0 ) col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - 26 * + col0 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT ( - 23 ) * col1 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-287
-395
-652
query I rowsort
SELECT - col1 - ( - cor0.col0 * + col0 ) AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + + col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col2 * 74 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT DISTINCT + + col2 * - 13 AS col1 FROM tab0 cor0
----
-1066
-13
-429
query I rowsort
SELECT DISTINCT - - 37 * cor0.col2 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT DISTINCT - + col2 + 41 FROM tab2 cor0
----
14
15
3
query I rowsort
SELECT DISTINCT col2 * - tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT 3 DIV + cor0.col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2554
SELECT 3 / + cor0.col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + 28 + cor0.col1 AS col2 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT - 53 + + 91 AS col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT ALL col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL col1 / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ( - col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 21 + - cor0.col2 FROM tab2 AS cor0
----
-47
-48
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT + 63 DIV + 75 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2561
SELECT + 63 / + 75 AS col1 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1, tab1 cor1
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT ALL - + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT ALL + col1 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + col1 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT DISTINCT + col0 * + col2 - - 97 * + col0 AS col1 FROM tab0 AS cor0
----
15931
3120
3430
query I rowsort
SELECT ALL + 50 + + cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5632a31f3e7eb3f97245acf8dd4ab44e
query I rowsort
SELECT ALL 47 FROM tab0 cor0
----
47
47
47
query I rowsort
SELECT - + col0 * col1 - ( + 52 ) FROM tab2 cor0
----
-1395
-269
-4654
query I rowsort
SELECT ALL + col0 * col1 * col1 + - col1 - + col0 FROM tab2 AS cor0
----
22735
271381
6689
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT - 98 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT - col2 DIV - 31 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2573
SELECT - col2 / - 31 AS col2 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT 77 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL - + col1 * - col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2576
SELECT - + col0 + + CAST( 15 AS SIGNED ) AS col0 FROM tab1 cor0
----
-49
-65
12
skipif mysql # not compatible
query I rowsort label-2576
SELECT - + col0 + + CAST ( 15 AS INTEGER ) AS col0 FROM tab1 cor0
----
-49
-65
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2577
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col2 * 85 AS col0 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col1 * col2 - col2 * col0 AS col1 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT 36 * - cor0.col1 FROM tab0 AS cor0
----
-3096
-3276
-3492
query I rowsort
SELECT DISTINCT 47 FROM tab0 AS cor0
----
47
query I rowsort
SELECT ALL + 45 AS col0 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT + col2 * + cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 52 + col2 AS col1 FROM tab0 AS cor0
----
134
53
85
query I rowsort
SELECT ALL + 53 - col0 AS col1 FROM tab1 AS cor0
----
-11
-27
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2587
SELECT ALL + 34 * + col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + 34 * + col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT ALL + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT + + cor0.col1 + ( col0 + + cor0.col0 ) FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT col2 * 95 + - 64 AS col2 FROM tab1 AS cor0
----
5066
5351
9056
query I rowsort
SELECT cor0.col2 + ( 45 ) * col1 FROM tab2 AS cor0
----
1422
2681
803
query I rowsort
SELECT ALL col0 + + tab0.col1 AS col0 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 17 col0 FROM tab1
----
27
30
43
query I rowsort
SELECT + 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL col2 - - col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT DISTINCT col1 DIV 37 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT col1 / 37 FROM tab2 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2599
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col1 + col1 AS col2 FROM tab2
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2602
SELECT - CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2602
SELECT - CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 29 * col2 FROM tab2 cor0
----
1102
754
783
query I rowsort
SELECT 81 * 91 FROM tab0 AS cor0
----
7371
7371
7371
query I rowsort
SELECT ALL - 85 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT + - 15 * 23 FROM tab2 AS cor0
----
-345
query I rowsort
SELECT 73 + 42 * col2 FROM tab0 AS cor0
----
115
1459
3517
query I rowsort
SELECT ALL + 22 + col1 FROM tab0 cor0
----
108
113
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + col1 + col1 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2611
SELECT DISTINCT - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - col0 / col0 AS col1 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab0 AS cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT ALL + col0 DIV cor0.col0 + - 25 AS col0 FROM tab1 AS cor0
----
-24
-24
-24
skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + col0 / cor0.col0 + - 25 AS col0 FROM tab1 AS cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT + col0 + col1 - col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT DISTINCT + col2 + + col1 DIV + 11 AS col0 FROM tab0 AS cor0
----
40
9
90
skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + col2 + + col1 / + 11 AS col0 FROM tab0 AS cor0
----
40
9
90
query I rowsort
SELECT - col1 + col0 * col0 * + col1 FROM tab0 cor0
----
118728
49450
720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2620
SELECT ALL + col2 * + col2 + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + col2 * + col2 + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab0 AS cor0
----
97
97
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT DISTINCT ( + ( col0 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT ( + ( col0 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT ALL + ( col1 * col1 ) + - CAST( NULL AS SIGNED ) + 67 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + ( col1 * col1 ) + - CAST ( NULL AS INTEGER ) + 67 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT ALL - col1 + + col1 DIV col1 FROM tab2
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - col1 + + col1 / col1 FROM tab2
----
-16
-30
-58
query I rowsort
SELECT ALL + 17 AS col2 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT col2 + + col1 * + ( + cor0.col2 ) AS col2 FROM tab0 cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2627
SELECT ALL - CAST( NULL AS SIGNED ) * + cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - CAST ( NULL AS INTEGER ) * + cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 3 + - col0 * col1 FROM tab2 AS cor0
----
-1346
-220
-4605
query I rowsort
SELECT DISTINCT - + ( + col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + + 73 + - 58 FROM tab0, tab0 AS cor0
----
15
query I rowsort
SELECT + col0 * - col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - + tab2.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - col0 * - 2 AS col1 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT ( + col0 ) + col1 * col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT col0 * - col1 + - 53 FROM tab1 AS cor0
----
-1093
-131
-693
query I rowsort
SELECT ( col0 * col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col1 + - col1 * col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( - col2 + col1 ) col0 FROM tab1
----
-25
-3
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2644
SELECT ALL + tab0.col2 + CAST( NULL AS SIGNED ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL + tab0.col2 + CAST ( NULL AS INTEGER ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 9 + + 15 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL + col0 + + tab1.col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col2 * - ( - col1 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2649
SELECT + col1 + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2649
SELECT + col1 + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + tab0.col1 + col0 * + col0 AS col2 FROM tab0
----
16020
2640
4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 * + 0 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2652
SELECT + CAST( col0 AS SIGNED ) * col1 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-2652
SELECT + CAST ( col0 AS INTEGER ) * col1 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT tab0.col2 * + 25 + + col2 + 95 AS col2 FROM tab0
----
121
2227
953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col0 * + 73 FROM tab1
----
219
4672
5840
query I rowsort
SELECT col1 * + 77 FROM tab0
----
6622
7007
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * col1 * col2 col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT 6 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT cor0.col2 + - 16 * + col2 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT ALL - col0 + - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col1 * + col2 + - col1 * ( + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
11628
26784
92040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT ALL - - CAST( NULL AS SIGNED ) + - 26 + - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 26 + - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - col1 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
3585
406
995
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 68 AS REAL ) + cor0.col1 FROM tab1 AS cor0
----
78
81
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + ( + col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col2 * - ( col2 ) * + col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + - ( - 31 ) * col2 AS col0 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT - 86 * + col1 FROM tab0 AS cor0
----
-7396
-7826
-8342
query I rowsort
SELECT 62 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ALL 25 AS col1 FROM tab2 AS cor0
----
25
25
25
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT ALL ( - 13 ) FROM tab1
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - col2 + - 64 - col1 AS col0 FROM tab0
----
-162
-183
-237
query I rowsort
SELECT + + col0 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL 27 DIV + 78 + + col1 - - 23 AS col2 FROM tab0
----
109
114
120
skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL 27 / + 78 + + col1 - - 23 AS col2 FROM tab0
----
109
114
120
query I rowsort
SELECT DISTINCT - col2 - + col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ( col1 + - ( - col1 ) ) FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT DISTINCT - col1 + 84 DIV col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-59
-60
skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - col1 + 84 / col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-59
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 * 28 - - col2 col1 FROM tab1 AS cor0
----
17977
2238
29216
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col0 * - 67 + 95 * col1 AS col0 FROM tab0 AS cor0
----
11560
14608
9778
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab0
----
-28
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-86
query I rowsort
SELECT + 45 - - col1 AS col1 FROM tab0
----
131
136
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT DISTINCT 81 DIV + col0 col2 FROM tab1
----
1
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT 81 / + col0 col2 FROM tab1
----
1
27
query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab2
----
-94
query I rowsort
SELECT + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2695
SELECT ALL + CAST( NULL AS DECIMAL ) * 25 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + CAST ( NULL AS REAL ) * 25 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 * tab0.col2 - - col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL - col1 * - ( - col2 + col1 ) FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT ALL - 21 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to b6019fd8f0ff78caeaf4b2de3226eb65
query I rowsort
SELECT + + ( + col2 ) * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 42 + - col1 FROM tab2 cor0
----
-101
-59
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + + col2 col0 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT - - 94 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-2702
SELECT - - 94 / col0 AS col2 FROM tab2 AS cor0
----
1
1
13
query I rowsort
SELECT - ( + tab2.col0 + + col1 ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL - cor0.col1 - + 84 * - col2 * + col0 FROM tab2 AS cor0
----
15845
170293
252151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 + - 32 col2 FROM tab2 cor0
----
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2706
SELECT DISTINCT + CAST( col2 AS SIGNED ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + 96 + - col0 + - col0 * + 33 AS col2 FROM tab1 AS cor0
----
-2080
-2624
-6
query I rowsort
SELECT + + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + ( col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 15 * - 65 FROM tab2 cor0
----
-975
query I rowsort
SELECT ALL - + 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - 61 + col0 FROM tab2 AS cor0
----
-54
17
18
query I rowsort
SELECT ALL col1 + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + - 0 * col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col1 ) * col1 * 79 AS col1 FROM tab2 AS cor0
----
22831
274999
75919
query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 47 + ( col1 ) + + 29 FROM tab0 AS cor0
----
162
167
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT + col1 DIV + col0 + col0 * 42 + - col2 AS col2 FROM tab1
----
2631
3264
80
skipif mysql # not compatible
query I rowsort label-2719
SELECT + col1 / + col0 + col0 * 42 + - col2 AS col2 FROM tab1
----
2631
3264
80
query I rowsort
SELECT 48 * col1 + 86 AS col1 FROM tab0 AS cor0
----
4214
4454
4742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT 54 * cor0.col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1890
-394092
-42768
skipif mysql # not compatible
query I rowsort label-2721
SELECT 54 * cor0.col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1890
-394092
-42768
query I rowsort
SELECT ALL 18 + + col1 * - col0 + col0 * + col1 FROM tab0
----
18
18
18
query I rowsort
SELECT DISTINCT + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 58 + - col2 FROM tab0 AS cor0
----
-24
25
57
query I rowsort
SELECT ALL + + 91 FROM tab1 cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT col2 * col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2726
SELECT col2 * col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 * - col1 + - 86 FROM tab1 AS cor0
----
-1126
-164
-726
query I rowsort
SELECT 80 AS col1 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT - 83 * - col1 + - 89 * + col0 FROM tab1 AS cor0
----
-4866
-6041
1891
onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT - 93 DIV col1 - - 16 * col1 FROM tab1 AS cor0
----
151
201
413
skipif mysql # not compatible
query I rowsort label-2734
SELECT - 93 / col1 - - 16 * col1 FROM tab1 AS cor0
----
151
201
413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col0 * - ( ( cor0.col2 ) ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + cor0.col1 * + col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col2 + 69 * col0 FROM tab2 cor0
----
510
5408
5489
query I rowsort
SELECT DISTINCT + + col0 + 59 * - col2 FROM tab1 cor0
----
-3183
-3299
-5584
onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT DISTINCT col1 + col0 DIV - col2 FROM tab1 cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT col1 + col0 / - col2 FROM tab1 cor0
----
13
26
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT DISTINCT - col0 + col2 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT - col0 + col2 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 - 7 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2745
SELECT 27 + col1 * CAST( NULL AS SIGNED ) 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-2745
SELECT 27 + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 98 * - col1 FROM tab1 cor0
----
-1274
-2548
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT DISTINCT - 98 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-14
skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - 98 / col0 AS col1 FROM tab2 AS cor0
----
-1
-14
query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT ALL tab2.col1 * - col0 + + col0 DIV col1 AS col0 FROM tab2
----
-1339
-217
-4601
skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL tab2.col1 * - col0 + + col0 / col1 AS col0 FROM tab2
----
-1339
-217
-4601
query I rowsort
SELECT ALL ( col2 ) + col0 + + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT - ( col1 + col0 ) FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1, tab0 AS cor0
----
28
query I rowsort
SELECT ALL 79 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2756
SELECT CAST( NULL AS SIGNED ) * 72 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2756
SELECT CAST ( NULL AS INTEGER ) * 72 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 33 + - col2 * + col1 AS col1 FROM tab1
----
-1215
-1371
-537
onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT DISTINCT - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - cor0.col2 / col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT col1 + + col2 * + ( - col0 ) FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + 93 + col0 AS col0 FROM tab2 AS cor0
----
100
171
172
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * 66 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + ( 35 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT col0 + - 70 FROM tab0
----
-35
-46
19
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1, tab2 AS cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL 99 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL - col2 - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) * col2 FROM tab2 cor0
----
1406
650
702
query I rowsort
SELECT ALL - + col1 * - col1 + + col0 * col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT ALL - 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ALL + 79 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT DISTINCT 93 DIV 10 FROM tab2, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT 93 / 10 FROM tab2, tab0 AS cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT ALL + ( + col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + ( + col0 ) / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * - col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 45 + col1 * col0 * col2 FROM tab2 AS cor0
----
119697
51079
5904
query I rowsort
SELECT ALL + 91 * cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
187824
308945
737009
query I rowsort
SELECT DISTINCT + 49 + col0 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT + 2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2780
SELECT ALL + CAST( + col2 AS SIGNED ) + - col0 * ( 11 ) col1 FROM tab1 AS cor0
----
-647
-784
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + CAST ( + col2 AS INTEGER ) + - col0 * ( 11 ) col1 FROM tab1 AS cor0
----
-647
-784
21
query I rowsort
SELECT ALL col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT 30 DIV - ( + col1 ) FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2783
SELECT 30 / - ( + col1 ) FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + 15 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT - - 83 * + col1 AS col1 FROM tab1 AS cor0
----
1079
2158
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT ALL CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 49 * 44 FROM tab2
----
2156
2156
2156
query I rowsort
SELECT + col1 * tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - + ( + col2 ) + col2 * 13 FROM tab1 AS cor0
----
1152
648
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 * + 56 ) col0 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT - - 99 AS col2 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT DISTINCT + + 82 FROM tab2 AS cor0
----
82
query I rowsort
SELECT DISTINCT + - col2 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT + - col0 + 94 AS col1 FROM tab2 AS cor0
----
15
16
87
query I rowsort
SELECT ALL - + 62 + 34 AS col1 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT + 22 * col2 AS col0 FROM tab2 AS cor0
----
572
594
836
onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT - - col1 + cor0.col1 DIV col0 AS col1 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-2797
SELECT - - col1 + cor0.col1 / col0 AS col1 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT - - 82 + col1 AS col2 FROM tab0 AS cor0
----
168
173
179
query I rowsort
SELECT - col0 + cor0.col2 * 73 FROM tab1 AS cor0
----
3939
4097
6928
query I rowsort
SELECT - + col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT DISTINCT CAST( ( + col0 ) AS SIGNED ) + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT CAST ( ( + col0 ) AS INTEGER ) + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT 74 AS col2 FROM tab2 AS cor0
----
74
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 97 * + cor0.col0 col1 FROM tab0 AS cor0
----
-2361
-3396
-8715
query I rowsort
SELECT ALL + + cor0.col1 * + cor0.col2 - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL col2 + 32 * - 53 * col2 AS col2 FROM tab1 AS cor0
----
-162720
-91530
-96615
query I rowsort
SELECT 79 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT + col0 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT col1 DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2808
SELECT col1 / col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + cor0.col1 + - ( + col0 ) FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT + CAST( col2 AS SIGNED ) + - col1 * - col2 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-2810
SELECT + CAST ( col2 AS INTEGER ) + - col1 * - col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT col1 * ( + ( - col1 ) ) DIV + ( + col2 ) FROM tab1
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-2811
SELECT col1 * ( + ( - col1 ) ) / + ( + col2 ) FROM tab1
----
-1
-1
-12
query I rowsort
SELECT - col2 + + 12 + - ( - col2 ) AS col1 FROM tab2
----
12
12
12
query I rowsort
SELECT + ( - 24 ) + col1 AS col1 FROM tab2 AS cor0
----
-7
35
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 59 col0 FROM tab2
----
118
76
90
query I rowsort
SELECT DISTINCT - col2 + - col1 * + col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - col0 + + 92 AS col2 FROM tab0
----
3
57
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT col1 DIV col2 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2818
SELECT col1 / col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + 3 * col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * tab2.col2 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 8 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT - 27 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT + CAST( - col1 AS SIGNED ) * tab0.col2 * - col1 AS col1 FROM tab0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-2825
SELECT + CAST ( - col1 AS INTEGER ) * tab0.col2 * - col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2827
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * ( 10 ) + col0 FROM tab1 AS cor0
----
-27
-576
-720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab0
----
53
53
53
query I rowsort
SELECT + - col1 * + 17 AS col2 FROM tab0 AS cor0
----
-1462
-1547
-1649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * + ( + col1 * col2 ) col1 FROM tab1 AS cor0
----
11501568
1851930
4094064
query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + col0 + 9 * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-730
-750
-838
query I rowsort
SELECT DISTINCT + ( col0 + - 97 ) FROM tab0
----
-62
-73
-8
query I rowsort
SELECT ALL tab0.col1 * + col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - + ( + col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col1 + + col0 + col0 * 48 * + col0 AS col1 FROM tab0 cor0
----
27586
380206
58738
query I rowsort
SELECT + ( 16 ) + col0 FROM tab2 AS cor0
----
23
94
95
query I rowsort
SELECT + col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT ALL col1 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL col1 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 + - col2 + - col2 FROM tab0
----
-73
20
95
query I rowsort
SELECT + ( ( col2 ) * + 55 ) AS col1 FROM tab0
----
1815
4510
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2843
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - 49 * - col2 AS col1 FROM tab0 cor0
----
1617
4018
49
query I rowsort
SELECT + - ( + cor0.col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT - 11 AS col2 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT - 13 + - col0 FROM tab1 AS cor0
----
-16
-77
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col1 * + col1 col0 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - 99 + col2 col0 FROM tab0 AS cor0
----
-2343
-3464
-8729
query I rowsort
SELECT DISTINCT - - ( col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 6 + col1 * col0 FROM tab2
----
1349
223
4608
query I rowsort
SELECT ALL 18 + - col0 FROM tab1
----
-46
-62
15
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 + + col1 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT - - col2 * col2 DIV ( col1 ) FROM tab2 AS cor0
----
11
23
84
skipif mysql # not compatible
query I rowsort label-2855
SELECT - - col2 * col2 / ( col1 ) FROM tab2 AS cor0
----
11
23
84
query I rowsort
SELECT 82 AS col0 FROM tab2
----
82
82
82
query I rowsort
SELECT DISTINCT ( - col1 ) + - 99 AS col1 FROM tab1 AS cor0
----
-109
-112
-125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2858
SELECT ALL cor0.col0 * - cor0.col0 + CAST( - col0 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1357
-686
-8101
skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL cor0.col0 * - cor0.col0 + CAST ( - col0 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1357
-686
-8101
query I rowsort
SELECT 82 + cor0.col1 AS col2 FROM tab2 AS cor0
----
113
141
99
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + + col2 + col0 * - 83 FROM tab2 AS cor0
----
-554
-6448
-6519
query I rowsort
SELECT ALL ( + col0 ) + 28 FROM tab0 AS cor0
----
117
52
63
query I rowsort
SELECT ALL - col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col1 + - col1 * + col0 * - col1 FROM tab2 AS cor0
----
22848
271577
6758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab2, tab2 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2866
SELECT col2 * + CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2866
SELECT col2 * + CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + - col0 * 99 AS col1 FROM tab0 AS cor0
----
-2343
-3464
-8729
query I rowsort
SELECT ALL 73 + - col0 AS col0 FROM tab1 AS cor0
----
-7
70
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT + 58 - - col2 DIV + col0 FROM tab1 cor0
----
58
59
76
skipif mysql # not compatible
query I rowsort label-2871
SELECT + 58 - - col2 / + col0 FROM tab1 cor0
----
58
59
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * col1 col0 FROM tab1 AS cor0
----
1248
480
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT + CAST( + col1 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-2873
SELECT + CAST ( + col1 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - ( 12 ) * col1 AS col0 FROM tab2 cor0
----
-204
-372
-708
onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT DISTINCT + - col1 + - cor0.col2 DIV - col1 + ( + ( col1 ) ) * + ( col2 ) FROM tab2 AS cor0
----
1475
631
806
skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + - col1 + - cor0.col2 / - col1 + ( + ( col1 ) ) * + ( col2 ) FROM tab2 AS cor0
----
1475
631
806
query I rowsort
SELECT DISTINCT + - col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + cor0.col2 + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 * + 97 + col1 + - col1 AS col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * 84 * col1 AS col2 FROM tab0 AS cor0
----
-173376
-285180
-680316
query I rowsort
SELECT DISTINCT + + col1 * - 35 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT col2 * + ( col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT col0 * - 22 + + col1 + - col1 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT DISTINCT col1 + col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col0 * + 73 + col2 AS col0 FROM tab0 AS cor0
----
1785
2556
6579
query I rowsort
SELECT - - col0 + - cor0.col1 + 25 * + col0 FROM tab1 AS cor0
----
1654
2067
52
query I rowsort
SELECT ALL - col2 * - col0 * 75 AS col0 FROM tab0 AS cor0
----
2625
547350
59400
query I rowsort
SELECT col1 * - 45 AS col2 FROM tab0 AS cor0
----
-3870
-4095
-4365
query I rowsort
SELECT + col1 * - col2 + 34 - - 81 FROM tab0
----
-2723
-7347
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2891
SELECT ( - tab2.col1 * + CAST( col2 AS SIGNED ) ) + col0 AS col2 FROM tab2
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-2891
SELECT ( - tab2.col1 * + CAST ( col2 AS INTEGER ) ) + col0 AS col2 FROM tab2
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT + 56 DIV col1 + - 18 AS col2 FROM tab0
----
-18
-18
-18
skipif mysql # not compatible
query I rowsort label-2892
SELECT + 56 / col1 + - 18 AS col2 FROM tab0
----
-18
-18
-18
query I rowsort
SELECT - col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col2 * - ( ( col1 ) ) AS col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT ALL col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - 10 * col0 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT - ( col2 ) * col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 65 AS col1 FROM tab0
----
65
65
65
query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 + - col0 * + col1 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL ( - 32 ) FROM tab2
----
-32
-32
-32
query I rowsort
SELECT DISTINCT ( - col1 * - tab2.col0 ) AS col2 FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT DISTINCT + 85 * col2 + - CAST( col0 * col1 AS SIGNED ) FROM tab2
----
-2392
1887
2078
skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + 85 * col2 + - CAST ( col0 * col1 AS INTEGER ) FROM tab2
----
-2392
1887
2078
query I rowsort
SELECT DISTINCT - 2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-2
query I rowsort
SELECT DISTINCT - col2 * + col0 * 58 + + col2 FROM tab1
----
-211527
-445344
-9342
query I rowsort
SELECT DISTINCT - 59 * cor0.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT DISTINCT - col2 + col0 DIV + col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - col2 + col0 / + col0 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT + col2 - + col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col1 - col1 * - ( - cor0.col1 ) * + col0 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT DISTINCT tab1.col1 + col0 * col0 AS col0 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 * - ( - col2 ) + col0 col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT ALL + + cor0.col2 * cor0.col1 + - 15 FROM tab2 AS cor0
----
1519
631
822
query I rowsort
SELECT DISTINCT - + col2 * - col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL 82 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
1162
2186
877
query I rowsort
SELECT DISTINCT + - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + 57 AS col0 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( - 48 AS REAL ) - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT ALL col0 * col1 * col2 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 99 FROM tab0, tab1 AS cor0
----
99
query I rowsort
SELECT DISTINCT + - col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * + col1 + - 15 + col0 FROM tab2 AS cor0
----
-1279
-225
-4539
query I rowsort
SELECT - cor0.col0 + cor0.col1 * cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 5d7c381dfc7f2f9eb146d00ff51fee11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT - CAST( 96 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
skipif mysql # not compatible
query I rowsort label-2926
SELECT - CAST ( 96 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT + col2 * ( - 13 * + col1 ) AS col1 FROM tab2
----
-10881
-19942
-8398
query I rowsort
SELECT col2 * ( - col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - + col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL - 15 AS col2 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT - + 12 * + 33 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e5a108ece43a9f110480bff804390239
query I rowsort
SELECT - 54 AS col0 FROM tab1
----
-54
-54
-54
query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + - ( - col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - - 84 + - col2 FROM tab1 AS cor0
----
-12
27
30
query I rowsort
SELECT DISTINCT - ( - 54 ) AS col0 FROM tab1 AS cor0
----
54
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2
query I rowsort
SELECT DISTINCT - col2 + 41 FROM tab1 AS cor0
----
-13
-16
-55
query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + + 80 + col2 FROM tab1 AS cor0
----
134
137
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + cor0.col2 * col2 + ( col0 + - col2 ) * col0 * + ( + col2 ) FROM tab2 AS cor0
----
-3051
106132
124526
query I rowsort
SELECT 42 + col2 AS col2 FROM tab2 AS cor0
----
68
69
80
query I rowsort
SELECT ALL - 31 + col0 * + 82 AS col0 FROM tab1 cor0
----
215
5217
6529
query I rowsort
SELECT DISTINCT - - 14 + col1 * - 2 * col0 FROM tab1 AS cor0
----
-1266
-142
-2066
query I rowsort
SELECT DISTINCT - cor0.col1 - - col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 81 * + col0 AS col0 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT + col0 * ( + tab1.col1 ) AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 * 54 + - cor0.col1 FROM tab2 cor0
----
347
4153
4249
query I rowsort
SELECT - col1 + 25 AS col1 FROM tab0 AS cor0
----
-61
-66
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT - - col2 + + cor0.col1 DIV col2 FROM tab0 cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-2953
SELECT - - col2 + + cor0.col1 / col2 FROM tab0 cor0
----
35
83
98
query I rowsort
SELECT - 80 * - col1 FROM tab0 cor0
----
6880
7280
7760
query I rowsort
SELECT 50 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - - 77 FROM tab2 AS cor0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 18 col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT col2 + + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL ( + 20 ) * - cor0.col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT DISTINCT - + col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT ALL 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-2962
SELECT ALL col1 / + col0 col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab0
----
50
query I rowsort
SELECT ALL col1 - col0 FROM tab0
----
2
62
62
query I rowsort
SELECT col0 * cor0.col1 - - cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - - 79 * + col0 - col0 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-1791
-7200
query I rowsort
SELECT + col1 * - col0 - ( + cor0.col0 ) FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2969
SELECT ALL + + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col2 * + 69 * + col1 AS col1 FROM tab1 cor0
----
-39330
-86112
-96876
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2972
SELECT DISTINCT + col2 * CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT + col2 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col1 + - 8 AS col0 FROM tab2 AS cor0
----
23
51
9
query I rowsort
SELECT ALL - + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - - col2 + + 2 FROM tab2 cor0
----
28
29
40
query I rowsort
SELECT - - col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 * 66 FROM tab2 cor0
----
1716
1782
2508
query I rowsort
SELECT + 33 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT - + col2 * col0 - + col1 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT ALL - cor0.col2 + + CAST( 70 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-6053
-6452
-6791
skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - cor0.col2 + + CAST ( 70 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-6053
-6452
-6791
query I rowsort
SELECT ALL - col2 * + ( col0 ) * col2 + col0 FROM tab1
----
-207872
-737200
-8745
query I rowsort
SELECT + 80 FROM tab0, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT + col1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT ALL col2 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL col2 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 67 + + col1 FROM tab1
----
77
80
93
query I rowsort
SELECT col0 * - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT ALL + + col0 DIV + col0 - col2 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + + col0 / + col0 - col2 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT 60 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 - - col1 * + col0 col1 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT DISTINCT cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 49 col2 FROM tab1 AS cor0
----
23
36
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT CAST( - 3 AS SIGNED ) * + cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61d01318e8a8838f250c1b0d9299dcd0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( - 3 AS INTEGER ) * + cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61d01318e8a8838f250c1b0d9299dcd0
query I rowsort
SELECT + 77 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT col1 * + 79 FROM tab2
----
1343
2449
4661
query I rowsort
SELECT col2 * 49 + - tab0.col1 + - col2 FROM tab0
----
-49
1498
3845
query I rowsort
SELECT ALL + col1 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - 94 AS col2 FROM tab2 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ( - ( col2 ) ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col0 * - 78 + col0 FROM tab2 cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT - col2 * + 48 AS col1 FROM tab1 cor0
----
-2592
-2736
-4608
query I rowsort
SELECT col1 * - ( - col2 ) AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 + + 30 FROM tab2
----
56
57
68
query I rowsort
SELECT col2 + + tab0.col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + + ( - cor0.col0 ) * 73 FROM tab0 AS cor0
----
-1752
-2555
-6497
query I rowsort
SELECT cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 * + col2 + 51 AS col0 FROM tab0 cor0
----
148
2889
7513
query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 * + col2 col0 FROM tab1 AS cor0
----
-5238
-5529
-9312
query I rowsort
SELECT ALL + col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - + 83 * + col1 FROM tab2 AS cor0
----
-1411
-2573
-4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * col1 * + col0 col1 FROM tab2 AS cor0
----
10416
220896
64464
onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT ALL - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL - col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + col1 * + 77 AS col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT ALL - ( col1 ) + - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL + tab0.col1 DIV col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + tab0.col1 / col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
54
57
96
query I rowsort
SELECT - 90 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT 99 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - 31 - col0 FROM tab2
----
-109
-110
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3020
SELECT - ( col0 ) * - CAST( + 72 AS SIGNED ) FROM tab1 AS cor0
----
216
4608
5760
skipif mysql # not compatible
query I rowsort label-3020
SELECT - ( col0 ) * - CAST ( + 72 AS INTEGER ) FROM tab1 AS cor0
----
216
4608
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT DISTINCT + + 90 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + + 90 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT 29 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7425
8310
9438
onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3023
SELECT col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 79 FROM tab2
----
79
query I rowsort
SELECT + col2 + tab0.col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 * 29 + col2 FROM tab1 AS cor0
----
347
473
808
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT ALL - - col0 DIV + cor0.col2 + + col0 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - - col0 / + cor0.col2 + + col0 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT + 72 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * cor0.col2 + + col2 * - ( + col2 ) col0 FROM tab0 cor0
----
-14022
-1881
-36
query I rowsort
SELECT ALL + 68 AS col1 FROM tab2
----
68
68
68
query I rowsort
SELECT DISTINCT + col2 * - 69 + col1 * col2 AS col2 FROM tab2 cor0
----
-1026
-1976
-260
query I rowsort
SELECT DISTINCT 69 + - col0 * - 81 * + col0 FROM tab1 AS cor0
----
331845
518469
798
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 - - col1 * col2 * - col0 FROM tab2 AS cor0
----
-119548
-50917
-5825
query I rowsort
SELECT - col1 - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT ALL col2 + - col2 DIV col2 + - col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL col2 + - col2 / col2 + - col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 38 + + col0 FROM tab1 cor0
----
102
118
41
query I rowsort
SELECT ALL + 23 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726
onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT DISTINCT col2 DIV + col0 + col2 AS col1 FROM tab0 cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT col2 / + col0 + col2 AS col1 FROM tab0 cor0
----
1
34
82
query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + + 22 FROM tab2
----
-1512
-624
-815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * col0 + + col2 col2 FROM tab2 AS cor0
----
622
6656
6753
query I rowsort
SELECT 9 * cor0.col2 + col1 - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-409
-6469
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3043
SELECT + 62 * cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3043
SELECT + 62 * cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 55 * col2 FROM tab1 AS cor0
----
2996
3145
5293
query I rowsort
SELECT DISTINCT col0 * 29 FROM tab0 AS cor0
----
1015
2581
696
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT ALL + cor0.col2 * + col0 * - col0 + + col0 DIV 22 AS col0 FROM tab2 AS cor0
----
-1323
-158181
-237155
skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + cor0.col2 * + col0 * - col0 + + col0 / 22 AS col0 FROM tab2 AS cor0
----
-1323
-158181
-237155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - ( ( cor0.col1 ) ) col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col2 col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + cor0.col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col1 + 21 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT col0 + + 86 FROM tab2 cor0
----
164
165
93
query I rowsort
SELECT DISTINCT - col1 + col2 * col2 AS col0 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT ALL + - col2 * - 12 + + 51 - + col0 AS col2 FROM tab2 AS cor0
----
285
368
428
query I rowsort
SELECT DISTINCT + col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col1 - 58 AS col0 FROM tab2 AS cor0
----
-27
-41
1
query I rowsort
SELECT + + cor0.col1 * 14 AS col1 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT ALL 54 FROM tab0, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - + 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - ( 7 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT - cor0.col2 + col2 * col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - + ( 35 ) * col0 * - 22 AS col2 FROM tab0 AS cor0
----
18480
26950
68530
query I rowsort
SELECT + 61 * - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-34770
-76128
-85644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3065
SELECT CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3065
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col0 * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + cor1.col1 * - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7ad65e484b98a033eea3a66598d2975c
query I rowsort
SELECT DISTINCT col1 * tab0.col2 AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col2 + - 27 ) col2 FROM tab1
----
40
53
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col2 ) * + cor0.col1 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ( + col2 ) AS col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT col0 DIV + col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3072
SELECT col0 / + col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - tab1.col1 * - 1 FROM tab1, tab2 cor0
----
10
13
26
query I rowsort
SELECT ALL - 67 FROM tab0, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT + col1 + - ( 76 ) * - col2 AS col0 FROM tab1 AS cor0
----
4130
4342
7309
query I rowsort
SELECT ALL col1 + ( 71 ) * col0 FROM tab0 AS cor0
----
1790
2582
6410
query I rowsort
SELECT col2 * col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * + col2 ) NOT IN ( cor0.col0 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - col2 * - col2 = col2 * col1 + + col2
----
query I rowsort
SELECT + col2 - + col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 + col2 * col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 / col1 ) NOT BETWEEN - col1 AND ( NULL )
----
query I rowsort
SELECT - col0 * col1 + - tab0.col2 + - col2 AS col2 FROM tab0
----
-2130
-3397
-8263
query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab1
----
1040
640
78
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 / - col2 ) BETWEEN ( NULL ) AND ( col1 + col2 )
----
query I rowsort
SELECT DISTINCT - col1 * - tab1.col1 * tab1.col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT col0 * - col1 * col1 FROM tab1
----
-13520
-2028
-6400
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 * - col0 )
----
query I rowsort
SELECT ALL col2 + col1 + tab1.col2 AS col0 FROM tab1
----
124
134
205
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL - col0 - tab1.col2 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT col2 - tab0.col1 * tab0.col2 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT col0 + + col0 * + tab1.col0 + - col1 AS col1 FROM tab1
----
-14
4150
6467
onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT - col2 * col1 + - col0 + + tab1.col2 DIV - col2 FROM tab1
----
-1329
-1408
-635
skipif mysql # not compatible
query I rowsort label-3095
SELECT - col2 * col1 + - col0 + + tab1.col2 / - col2 FROM tab1
----
-1329
-1408
-635
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col2 IN ( + col1 ) AND NOT + col0 < ( NULL )
----
query I rowsort
SELECT col0 + - cor0.col1 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + - col1 * col1 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT ALL + - col1 * cor0.col1 + - col1 * cor0.col1 FROM tab2 AS cor0
----
-1922
-578
-6962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT DISTINCT col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT ALL col2 + + col2 * col1 * + col1 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT DISTINCT - col2 - + cor0.col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL cor0.col2 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT col2 * col0 + - 91 AS col2 FROM tab2
----
1937
2911
98
query I rowsort
SELECT + col0 * - col0 + col1 AS col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT 4 + tab1.col2 AS col1 FROM tab1
----
100
58
61
query I rowsort
SELECT ALL - col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL + + 23 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT ALL + 8 + cor0.col2 AS col1 FROM tab0 AS cor0
----
41
9
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT ( col2 ) + - col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 + + 98 * 57 - - col2 FROM tab0 AS cor0
----
5588
5652
5750
query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col0 * - col2 - 41 AS col0 FROM tab1 cor0
----
-203
-3689
-7721
query I rowsort
SELECT + + col1 + - col1 * 61 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT + - col2 * - col1 + - col0 AS col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT ALL + col1 + 77 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT DISTINCT + + col2 + ( ( col0 ) ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col2 + + 0 AS col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT ALL - col1 - + 65 DIV - 94 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - col1 - + 65 / - 94 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + + col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 - + col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col2 + - 64 + 74 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT DISTINCT col2 * + col1 - ( - col2 ) FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col2 - - col1 * + 53 AS col0 FROM tab2 cor0
----
1616
3101
863
query I rowsort
SELECT DISTINCT + col0 + 3 FROM tab1 AS cor0
----
6
67
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + 23 * - col0 col2 FROM tab0 cor0
----
-2129
-585
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col0 FROM tab2
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col2 col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL col0 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col1 * - col2 - - ( - col0 ) AS col2 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT ALL col0 - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col1 * - col1 FROM tab1 WHERE NOT col2 * col0 BETWEEN NULL AND col1
----
-100
-169
-676
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( tab2.col0 + - tab2.col2 )
----
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 FROM tab1 WHERE NOT NULL >= - col1
----
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col0 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col2 * - tab0.col2 FROM tab0 WHERE NULL = tab0.col2
----
query III rowsort
SELECT * FROM tab0 WHERE col2 * + col1 IN ( col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + tab2.col2 col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col0 + tab1.col2 * col1 AS col0 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL 59 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT - + 84 FROM tab1 cor0
----
-84
query I rowsort
SELECT DISTINCT - tab2.col1 + col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 - + col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col0 * - tab1.col1 AS col2 FROM tab1
----
1040
640
78
query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT tab2.col0 + - col0 / - col2 - - col0 * col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT tab1.col2 + tab1.col2 * + col2 + - col0 FROM tab1
----
2967
3242
9232
onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT + col1 DIV col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3157
SELECT + col1 / col1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT + col0 + col2 + - col1 FROM tab1
----
111
163
31
query I rowsort
SELECT - col2 + + col0 FROM tab2 WHERE - col2 NOT IN ( tab2.col2 )
----
-20
41
52
query I rowsort
SELECT - tab0.col2 + tab0.col2 * - col1 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT col0 + + tab2.col2 * - col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT ALL 49 * cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to accffdf6395cbb1b927fbc8b95fc5c0a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ALL 56 * col2 DIV ( 7 ) FROM tab0
----
264
656
8
skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL 56 * col2 / ( 7 ) FROM tab0
----
264
656
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col2 col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - 50 AS col0 FROM tab2, tab1, tab0 AS cor0
----
50
query I rowsort
SELECT - + col0 * + 38 AS col2 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT ALL - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 42 * col2 AS col1 FROM tab1
----
-2268
-2394
-4032
query I rowsort
SELECT 3 AS col1 FROM tab2
----
3
3
3
query I rowsort
SELECT ALL 44 AS col2 FROM tab1
----
44
44
44
query I rowsort
SELECT ALL + + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT - col0 * 9 * - col1 AS col0 FROM tab0 AS cor0
----
18576
30555
72891
onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3173
SELECT + col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - col1 * ( + col2 ) FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT DISTINCT - + col2 DIV 49 + cor0.col0 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - + col2 / 49 + cor0.col0 FROM tab0 AS cor0
----
24
35
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - cor0.col1 + - 59 DIV col1 AS col1 FROM tab2 AS cor0
----
-20
-32
-60
skipif mysql # not compatible
query I rowsort label-3178
SELECT - cor0.col1 + - 59 / col1 AS col1 FROM tab2 AS cor0
----
-20
-32
-60
query I rowsort
SELECT - col0 * ( col0 ) AS col1 FROM tab2
----
-49
-6084
-6241
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT 68 * col0 + col2 FROM tab2 AS cor0
----
503
5330
5410
query I rowsort
SELECT ALL + - 94 * + col1 * cor0.col1 + 6 * 33 AS col0 FROM tab1 AS cor0
----
-15688
-63346
-9202
query I rowsort
SELECT DISTINCT + - col0 * col2 * - col0 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT + col0 DIV + 15 + col1 AS col0 FROM tab0 AS cor0
----
87
96
99
skipif mysql # not compatible
query I rowsort label-3184
SELECT + col0 / + 15 + col1 AS col0 FROM tab0 AS cor0
----
87
96
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 55 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 55 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - 49 * - 7 AS col1 FROM tab2 AS cor0
----
343
343
343
query I rowsort
SELECT - cor0.col1 + - 46 FROM tab2 cor0
----
-105
-63
-77
query I rowsort
SELECT ALL col1 + col0 + col1 * - col0 FROM tab1 AS cor0
----
-49
-566
-947
query I rowsort
SELECT + ( - 92 ) AS col1 FROM tab1 cor0
----
-92
-92
-92
query I rowsort
SELECT ALL - ( col2 ) + cor0.col1 * ( 20 ) FROM tab2 AS cor0
----
1154
302
593
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3191
SELECT + col2 * + tab2.col2 + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3191
SELECT + col2 * + tab2.col2 + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - + col2 * cor0.col0 * + col0 + 87 FROM tab2 AS cor0
----
-1236
-158097
-237071
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3194
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 - - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 43 * col2 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT ALL - 15 + 98 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL - 19 AS col2 FROM tab0 cor0
----
-19
-19
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT DISTINCT - - cor0.col2 + + col0 DIV + 56 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - - cor0.col2 + + col0 / + 56 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT + ( + 50 ) * - tab0.col0 AS col0 FROM tab0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL - 32 AS col1 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + + 6 AS col0 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT + - col0 * col0 + col0 AS col0 FROM tab0 cor0
----
-1190
-552
-7832
query I rowsort
SELECT - col2 * col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col0 * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT 11 + col2 FROM tab1 AS cor0
----
107
65
68
query I rowsort
SELECT - - 86 AS col2 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT + 6 * cor0.col0 AS col1 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - col0 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT 21 AS col1 FROM tab1 AS cor0
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT + + col1 * col0 + cor0.col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-3214
SELECT + + col1 * col0 + cor0.col2 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-24
-35
-89
query I rowsort
SELECT ALL col2 + 30 FROM tab1
----
126
84
87
query I rowsort
SELECT + + col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT ALL tab0.col1 + col1 * - col0 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL tab0.col1 + col1 * - col0 / col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 24 * + col0 AS col2 FROM tab0
----
2136
576
840
query I rowsort
SELECT ALL + ( + 24 ) FROM tab2
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col2 FROM tab0
----
19
19
19
query I rowsort
SELECT ALL - col2 + col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT - 36 DIV col2 - + col2 AS col1 FROM tab0 cor0
----
-34
-37
-82
skipif mysql # not compatible
query I rowsort label-3223
SELECT - 36 / col2 - + col2 AS col1 FROM tab0 cor0
----
-34
-37
-82
query I rowsort
SELECT DISTINCT + ( + 74 ) FROM tab2 AS cor0
----
74
query I rowsort
SELECT + col1 + + 33 AS col1 FROM tab1 AS cor0
----
43
46
59
query I rowsort
SELECT - col0 - - col0 * col1 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL + ( 69 * + col2 + col2 ) FROM tab1
----
3780
3990
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + - 65 * cor0.col0 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL ( + col1 ) + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ( - 67 ) * + col0 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT - col1 * ( col0 * cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 77 * col2 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3236
SELECT DISTINCT + col1 / + 35 + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT + col1 / + 35 + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * cor0.col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + ( 49 ) AS col2 FROM tab2 AS cor0
----
49
query I rowsort
SELECT DISTINCT + col2 - + col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL ( + cor0.col0 ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col0 AS REAL ) - cor0.col1 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-16304
-36507
-5764
query I rowsort
SELECT + col1 * - 73 FROM tab2 AS cor0
----
-1241
-2263
-4307
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT + + CAST( 12 AS SIGNED ) FROM tab2 AS cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-3244
SELECT + + CAST ( 12 AS INTEGER ) FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT + col1 * + col2 * + cor0.col0 + - 34 FROM tab0 cor0
----
3361
664084
68078
query I rowsort
SELECT DISTINCT 16 * - col0 + - cor0.col1 * - ( 81 ) * + col0 FROM tab2 AS cor0
----
107519
17465
371514
query I rowsort
SELECT ALL - col2 + col1 * - col2 * + 88 FROM tab0 AS cor0
----
-249777
-656738
-8537
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3248
SELECT - - 93 * + cor0.col2 - - CAST( cor0.col2 AS SIGNED ) * col2 FROM tab2 cor0
----
3094
3240
4978
skipif mysql # not compatible
query I rowsort label-3248
SELECT - - 93 * + cor0.col2 - - CAST ( cor0.col2 AS INTEGER ) * col2 FROM tab2 cor0
----
3094
3240
4978
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 - - col2 col2 FROM tab0 AS cor0
----
101
20
52
query I rowsort
SELECT cor0.col2 * + col2 - + col1 * 69 * col0 AS col2 FROM tab0 AS cor0
----
-141327
-234254
-552107
onlyif mysql # use DIV operator for integer division
query I rowsort label-3251
SELECT ALL - tab1.col2 DIV col0 - col2 AS col2 FROM tab1
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - tab1.col2 / col0 - col2 AS col2 FROM tab1
----
-57
-72
-97
query I rowsort
SELECT 99 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab1.col0 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 33 - + 71 AS col2 FROM tab0
----
-38
-38
-38
query I rowsort
SELECT + + col0 * + ( col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT ALL col2 DIV + col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL col2 / + col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT cor0.col0 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 000003476840160ea4e33204b8667672
query I rowsort
SELECT 24 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT col2 + col0 * - 39 * col1 FROM tab1 AS cor0
----
-24903
-2988
-40464
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT + col1 * - 7 AS col1 FROM tab1
----
-182
-70
-91
query I rowsort
SELECT ALL + col0 * 45 FROM tab2
----
315
3510
3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT + 55 DIV ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3266
SELECT + 55 / ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
query I rowsort
SELECT + col2 * tab0.col0 + 73 FROM tab0
----
108
7371
865
onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT col0 + col2 DIV - col2 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3269
SELECT col0 + col2 / - col2 AS col0 FROM tab1
----
2
63
79
query I rowsort
SELECT - - ( col0 ) * + col1 * + 51 AS col2 FROM tab1 AS cor0
----
32640
3978
53040
query I rowsort
SELECT DISTINCT + col2 * + col0 * - col2 FROM tab0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3272
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT DISTINCT CAST( NULL AS SIGNED ) * 26 * col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 26 * col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT DISTINCT - col1 DIV - 26 AS col2 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - col1 / - 26 AS col2 FROM tab2
----
0
1
2
query I rowsort
SELECT ( col1 ) * + col0 + col1 AS col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT - col0 + 45 * - tab2.col2 * col0 AS col1 FROM tab2
----
-135169
-8512
-91338
query I rowsort
SELECT DISTINCT + 47 + col1 * col0 FROM tab1 AS cor0
----
1087
125
687
onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT + 44 DIV + 3 FROM tab2 AS cor0
----
14
14
14
skipif mysql # not compatible
query I rowsort label-3279
SELECT + 44 / + 3 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT ALL - 33 FROM tab1 cor0
----
-33
-33
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3282
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 83 + col0 AS col1 FROM tab1
----
147
163
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3285
SELECT DISTINCT + ( + tab2.col1 ) * - CAST( col1 * + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + ( + tab2.col1 ) * - CAST ( col1 * + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + 41 + col1 FROM tab1
----
51
54
67
query I rowsort
SELECT + + ( col1 ) - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL - + cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col2 + - col2 * - col1 - col1 * - col2 FROM tab0 AS cor0
----
15006
195
5709
onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT ALL - - col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - - col1 / - col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT - 39 - cor0.col0 FROM tab0 AS cor0
----
-128
-63
-74
query I rowsort
SELECT + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL 93 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL col0 * 66 AS col2 FROM tab1 AS cor0
----
198
4224
5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col2 ) * col0 col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT DISTINCT - col2 DIV 38 - col1 FROM tab1 AS cor0
----
-11
-15
-27
skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - col2 / 38 - col1 FROM tab1 AS cor0
----
-11
-15
-27
query I rowsort
SELECT ALL col0 * 76 + + 94 FROM tab1 AS cor0
----
322
4958
6174
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 * 31 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT + + col0 + 18 FROM tab0 AS cor0
----
107
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL + col2 DIV + col2 + col2 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + col2 / + col2 + col2 FROM tab0 cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( + col2 ) col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT 97 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT + col1 + 70 DIV + col1 FROM tab1 AS cor0
----
17
18
28
skipif mysql # not compatible
query I rowsort label-3306
SELECT + col1 + 70 / + col1 FROM tab1 AS cor0
----
17
18
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT DISTINCT + + col1 + col1 DIV + ( col2 ) FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + + col1 + col1 / + ( col2 ) FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - + col2 * + 57 + 10 * col1 FROM tab1 AS cor0
----
-2818
-3149
-5342
query I rowsort
SELECT DISTINCT - col1 + + col0 * + 4 FROM tab2 AS cor0
----
-3
253
299
query I rowsort
SELECT - ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + - 43 AS col0 FROM tab0 cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - 11 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT tab2.col2 * col0 + col1 DIV 64 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3315
SELECT tab2.col2 * col0 + col1 / 64 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1, tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT ALL - tab1.col1 DIV cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5e3c4f623c22117b91c4776839dc7055
skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - tab1.col1 / cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5e3c4f623c22117b91c4776839dc7055
onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT DISTINCT col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT col2 / col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + + col2 + 85 * - col0 FROM tab2 AS cor0
----
-568
-6604
-6677
query I rowsort
SELECT col0 + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT col0 * + ( tab2.col0 ) * - tab2.col1 + ( + 44 ) FROM tab2
----
-106053
-1475
-358912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT - col0 * - CAST( NULL AS SIGNED ) * + col1 + + col2 + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3323
SELECT - col0 * - CAST ( NULL AS INTEGER ) * + col1 + + col2 + col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - col2 ) col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - col0 + cor0.col2 + col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL ( 30 ) FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT 14 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT DISTINCT - 44 DIV + 85 AS col2 FROM tab2, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - 44 / + 85 AS col2 FROM tab2, tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * 74 AS col0 FROM tab2
----
1924
1998
2812
query I rowsort
SELECT - col2 + 34 AS col1 FROM tab1
----
-20
-23
-62
query I rowsort
SELECT ALL + 99 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT col1 * col2 * + tab2.col2 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - - col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + ( + col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 78 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0
----
-18
query I rowsort
SELECT + + 6 + + col1 AS col2 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT + col2 * col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL + + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 49 * 62 AS col0 FROM tab0 cor0
----
3038
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * + col1 col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT DISTINCT - 80 DIV tab0.col0 + + 47 * tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
1125
1643
4183
skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT - 80 / tab0.col0 + + 47 * tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
1125
1643
4183
query I rowsort
SELECT - ( + 90 ) AS col1 FROM tab1
----
-90
-90
-90
query I rowsort
SELECT ALL + - col1 + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3346
SELECT DISTINCT - 46 + - col1 DIV + ( - 22 ) FROM tab1 AS cor0
----
-45
-46
skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - 46 + - col1 / + ( - 22 ) FROM tab1 AS cor0
----
-45
-46
query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab0, tab0 cor0
----
70
query I rowsort
SELECT ALL ( + ( col0 ) + + 95 ) * + col2 AS col1 FROM tab1
----
16800
5292
9063
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT + 12 DIV - tab0.col2 FROM tab0
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-3349
SELECT + 12 / - tab0.col2 FROM tab0
----
-12
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col2 + tab2.col0 * - col0 AS col0 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT ALL cor0.col0 - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8c8144a1e750f938e34a2795af6b4c2
query I rowsort
SELECT ALL - tab1.col1 + - col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT - - cor0.col0 + cor0.col1 * - ( 96 ) FROM tab1 AS cor0
----
-1168
-2493
-896
onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT ALL + col0 DIV col2 + - cor0.col0 + 56 * + col0 FROM tab1 AS cor0
----
165
3521
4400
skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + col0 / col2 + - cor0.col0 + 56 * + col0 FROM tab1 AS cor0
----
165
3521
4400
query I rowsort
SELECT ALL 89 + cor0.col1 AS col1 FROM tab2 AS cor0
----
106
120
148
query I rowsort
SELECT - cor0.col0 * col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT 80 FROM tab1 AS cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT + + col1 * + col1 + col1 DIV + col0 + col2 AS col2 FROM tab0 AS cor0
----
7432
8364
9412
skipif mysql # not compatible
query I rowsort label-3359
SELECT + + col1 * + col1 + col1 / + col0 + col2 AS col2 FROM tab0 AS cor0
----
7432
8364
9412
query I rowsort
SELECT - ( col1 ) * - col0 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT + 65 + + cor0.col1 + 11 FROM tab0 AS cor0
----
162
167
173
query I rowsort
SELECT DISTINCT + col0 * + 60 AS col2 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
243 values hashing to aad6a39cc782d0570960622f04a07424
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT + - col1 * 8 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT - col2 + 15 * ( + col2 ) FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT - + col0 * col0 + + 42 FROM tab2 AS cor0
----
-6042
-6199
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + col1 + - 11 AS col0 FROM tab1 AS cor0
----
-1
15
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - + cor0.col2 col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + col0 - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT ALL - - 46 DIV + col1 + + col2 FROM tab1 AS cor0
----
55
61
99
skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - - 46 / + col1 + + col2 FROM tab1 AS cor0
----
55
61
99
query I rowsort
SELECT - cor0.col2 * - 45 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8c033541caf69f6347023da0ef126f74
query I rowsort
SELECT ALL ( col2 ) + + col2 * 24 FROM tab0 AS cor0
----
2050
25
825
query I rowsort
SELECT + 69 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT DISTINCT - col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - 61 + + cor0.col0 FROM tab2 AS cor0
----
139
140
68
query I rowsort
SELECT - col1 + + cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 79 * + cor0.col1 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT col2 * CAST( + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3382
SELECT col2 * CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 * + col1 + 49 FROM tab0 AS cor0
----
-2015
-3346
-8050
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - - cor0.col1 + 95 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT ALL - + cor0.col2 * + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 + col0 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - + 86 * + col2 * col2 FROM tab0 AS cor0
----
-578264
-86
-93654
query I rowsort
SELECT + 40 * - col2 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT - + 72 FROM tab2 AS cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col1 FROM tab2, tab0, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 * ( col1 ) + col1 * + col0 * cor0.col0 FROM tab2 AS cor0
----
107440
1736
363558
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT 98 FROM tab2 AS cor0
----
98
query I rowsort
SELECT + cor1.col1 + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * 34 col1 FROM tab1
----
-102
-2176
-2720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + 92 col1 FROM tab0
----
7912
8372
8924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3400
SELECT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3400
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col1 + col1 * + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-22865
-271636
-6789
query I rowsort
SELECT + 66 AS col2 FROM tab2
----
66
66
66
query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) FROM tab1
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab2 cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 - col2 * - col0 col0 FROM tab2 AS cor0
----
203
2042
3016
query I rowsort
SELECT + + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + cor0.col2 * - col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT tab1.col1 * - 94 * + col1 - + tab1.col1 FROM tab1
----
-15899
-63570
-9410
query I rowsort
SELECT + col1 + + col1 * + col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + ( tab1.col1 ) + + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab2, tab0 AS cor0
----
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab0
----
86
91
97
query I rowsort
SELECT 80 * + tab1.col0 * tab1.col2 + col0 AS col0 FROM tab1
----
12963
291904
614480
query I rowsort
SELECT DISTINCT + - col1 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL 88 * + cor0.col1 FROM tab1 cor0
----
1144
2288
880
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3419
SELECT - col2 * col1 + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3419
SELECT - col2 * col1 + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 98 + 90 FROM tab2, tab0 AS cor0
----
188
query I rowsort
SELECT DISTINCT + ( 78 ) * col0 + - 2 AS col2 FROM tab0
----
1870
2728
6940
query I rowsort
SELECT ALL + col2 + col0 + col1 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + + cor1.col2 * + 41 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0460cb0a4638c7341e74500318b00373
query I rowsort
SELECT col1 + - col0 - col1 * 24 AS col2 FROM tab1
----
-294
-379
-601
query I rowsort
SELECT + cor1.col1 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + 37 + - col0 FROM tab1
----
-27
-43
34
query I rowsort
SELECT ALL - 85 + + col1 FROM tab0
----
1
12
6
query I rowsort
SELECT 78 - - col1 FROM tab0
----
164
169
175
query I rowsort
SELECT 90 + col0 * ( col0 ) * col1 AS col0 FROM tab1
----
324
41050
83290
query I rowsort
SELECT + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT CAST( 92 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
skipif mysql # not compatible
query I rowsort label-3432
SELECT CAST ( 92 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT + ( + col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col1 * + col0 * col0 AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL - col2 - col2 AS col0 FROM tab0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3436
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) * + 18 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) * + 18 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + col2 * col1 - - col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - col0 + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL 39 * + 14 FROM tab1 AS cor0
----
546
546
546
query I rowsort
SELECT 17 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT + 38 DIV + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
15
64
80
skipif mysql # not compatible
query I rowsort label-3442
SELECT + 38 / + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
15
64
80
query I rowsort
SELECT + + 18 * + ( + col0 ) * col2 - col1 FROM tab1 AS cor0
----
138227
2890
65654
query I rowsort
SELECT ALL ( 75 ) FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT + col0 + 29 + + col0 * + 43 AS col1 FROM tab0
----
1085
1569
3945
query I rowsort
SELECT ALL - col1 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - ( - col1 ) * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ( - col1 ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 51 * 21 AS col2 FROM tab0 AS cor0
----
1071
query I rowsort
SELECT - - 1 * - ( + cor0.col2 + cor0.col1 ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + + ( + col0 ) * - col2 * col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - 43 - col0 FROM tab0 AS cor0
----
-132
-67
-78
query I rowsort
SELECT DISTINCT + 52 * - col1 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL + col0 DIV + 77 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + col0 / + 77 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 + 82 AS col1 FROM tab1 AS cor0
----
1330
1486
652
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3456
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * - col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + 12 FROM tab1 cor0
----
12
query I rowsort
SELECT col0 * + col1 + col2 * + col0 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
672299
6791
70209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 17 * col1 FROM tab1 AS cor0
----
170
221
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) * col2 / col1 AS col2 FROM tab0 AS cor0
----
0
12
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * - 66 col2 FROM tab1 AS cor0
----
4092
4092
4092
query I rowsort
SELECT + ( + col0 ) * col1 + col2 + 64 FROM tab2 AS cor0
----
1445
308
4692
query I rowsort
SELECT - - col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 * + 47 FROM tab1 AS cor0
----
2538
2679
4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT + - col1 + col1 DIV + ( col1 * 49 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + - col1 + col1 / + ( col1 * 49 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col2 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col2 * - 70 FROM tab0
----
2310
5740
70
query I rowsort
SELECT col1 - + col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 20 - - col0 * - col0 col0 FROM tab2 cor0
----
-5481
-5564
491
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT + - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3473
SELECT + - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + - col0 + + 24 FROM tab2 cor0
----
-54
-55
17
query I rowsort
SELECT + - col0 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - ( + 17 ) FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT 65 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT cor0.col0 * 88 AS col1 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3481
SELECT DISTINCT col0 + 40 DIV + col1 FROM tab2
----
78
8
81
skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT col0 + 40 / + col1 FROM tab2
----
78
8
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT DISTINCT 96 + col0 DIV col1 FROM tab2 AS cor0
----
100
96
97
skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT 96 + col0 / col1 FROM tab2 AS cor0
----
100
96
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT - col0 + col2 DIV ( cor0.col2 ) FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3483
SELECT - col0 + col2 / ( cor0.col2 ) FROM tab0 AS cor0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + col0 col0 FROM tab1 cor0
----
-24
-8
-85
query I rowsort
SELECT ALL + 0 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + 4 AS col1 FROM tab1 AS cor0
----
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT + 89 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3487
SELECT + 89 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT + 99 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
3
99
skipif mysql # not compatible
query I rowsort label-3488
SELECT + 99 / + col2 AS col2 FROM tab0 AS cor0
----
1
3
99
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT ALL ( col2 ) DIV ( 51 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL ( col2 ) / ( 51 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - + col1 * col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT 26 AS col0 FROM tab0
----
26
26
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT col0 DIV - col0 + - tab0.col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-3497
SELECT col0 / - col0 + - tab0.col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT ALL - 71 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT - - 6 * col1 FROM tab1 AS cor0
----
156
60
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 6 * 56 FROM tab1
----
336
336
336
query I rowsort
SELECT tab1.col1 * - 71 + - cor1.col1 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 8e4c1bdafd35d4364fa6d2fd07c3be60
query I rowsort
SELECT ALL - - col2 + col0 * - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-316
-474526
-493001
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * 41 AS col2 FROM tab1 AS cor0
----
23370
51168
57564
query I rowsort
SELECT - col1 - ( 28 ) FROM tab1 cor0
----
-38
-41
-54
query I rowsort
SELECT col0 + + 79 * + col2 FROM tab2 AS cor0
----
2132
2140
3081
query I rowsort
SELECT DISTINCT 7 FROM tab2, tab0, tab1 cor0
----
7
query I rowsort
SELECT + 7 AS col0 FROM tab0
----
7
7
7
query I rowsort
SELECT + ( tab1.col2 * - tab1.col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 64 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT + 38 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3512
SELECT + col0 * + CAST( + 39 AS SIGNED ) AS col1 FROM tab1
----
117
2496
3120
skipif mysql # not compatible
query I rowsort label-3512
SELECT + col0 * + CAST ( + 39 AS INTEGER ) AS col1 FROM tab1
----
117
2496
3120
query I rowsort
SELECT + tab2.col2 * 62 AS col0 FROM tab2
----
1612
1674
2356
query I rowsort
SELECT col0 - - col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col0 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col1 * col1 + col0 * col0 * - 29 FROM tab1 AS cor0
----
-118684
-185431
415
query I rowsort
SELECT cor0.col2 + tab1.col2 AS col1 FROM tab1, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to 1851634cd1def740756f4dc95b6d1a64
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT DISTINCT + 21 + + 99 * + col1 AS col1 FROM tab0 AS cor0
----
8535
9030
9624
query I rowsort
SELECT ALL col1 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - 90 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-1130
-168
-730
onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT DISTINCT + col0 DIV + cor0.col1 + col0 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + col0 / + cor0.col1 + col0 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 * col2 + - col2 col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT + 87 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + - 74 * col2 AS col1 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT + col0 + - col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT ( cor0.col0 ) DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3527
SELECT ( cor0.col0 ) / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT col2 * col1 * col0 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - tab0.col0 + - col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col2 * col0 + col2 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1348
-539
-691
query I rowsort
SELECT ALL - + col0 * - cor0.col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - + col2 * col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT col1 DIV col0 + - col0 + col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3535
SELECT col1 / col0 + - col0 + col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT - col1 * col1 + col1 + - col2 FROM tab2 AS cor0
----
-310
-3448
-957
query I rowsort
SELECT DISTINCT - col0 + tab1.col2 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - col0 + - col0 + col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 + col0 + col2 FROM tab2
----
182
196
41
query I rowsort
SELECT ALL - col2 + + col1 * - col1 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT + col1 * col2 + col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col0 + + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col0 + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col2 * col0 + tab1.col0 * + col2 FROM tab1
----
15360
324
7296
query I rowsort
SELECT + tab0.col0 * col1 + tab0.col0 + col1 AS col2 FROM tab0
----
2174
3527
8279
onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT - col0 DIV col0 + - col0 AS col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-3546
SELECT - col0 / col0 + - col0 AS col0 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT ALL col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * - col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - + col1 + col1 * - col0 * - col0 FROM tab0 cor0
----
118728
49450
720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT - ( col1 ) DIV + col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3555
SELECT - ( col1 ) / + col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 + - tab1.col1 * - col1 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL 74 - col1 FROM tab0
----
-12
-17
-23
query I rowsort
SELECT col0 + col0 * col1 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
13587
2005
6454
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT - + col0 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-3559
SELECT - + col0 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT ALL - col1 + col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - cor0.col2 )
----
query I rowsort
SELECT DISTINCT + col2 + - col0 * - tab0.col1 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT col2 * col1 - + col1 AS col1 FROM tab2
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT - - cor0.col1 + cor0.col0 * col2 * col1 + - col0 DIV + col0 FROM tab1 AS cor0
----
36489
4237
99852
skipif mysql # not compatible
query I rowsort label-3564
SELECT - - cor0.col1 + cor0.col0 * col2 * col1 + - col0 / + col0 FROM tab1 AS cor0
----
36489
4237
99852
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT - - col2 DIV + col1 - + col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-3565
SELECT - - col2 / + col1 - + col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 + col1 FROM tab1 WHERE ( NULL ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col2 * col0 * col0 FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL - col1 DIV col2 - col1 FROM tab0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - col1 / col2 - col1 FROM tab0
----
-194
-88
-92
query I rowsort
SELECT ALL + col1 * + col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col2 * col2 + + col2 AS col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL col1 - - col1 AS col1 FROM tab0
----
172
182
194
query III rowsort
SELECT * FROM tab2 WHERE NULL <> tab2.col2 * col2
----
query I rowsort
SELECT DISTINCT - 96 FROM tab2 cor0
----
-96
query I rowsort
SELECT ALL - col0 + - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT - cor0.col2 - + col2 * + ( ( + cor0.col1 ) ) AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col1 + col1 FROM tab2 WHERE NULL <> ( + col2 / - col2 )
----
query I rowsort
SELECT ALL col1 * col0 * + col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL tab2.col2 * col2 AS col1 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col1 FROM tab0
----
24
35
89
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col1 )
----
query I rowsort
SELECT ALL tab0.col0 * - tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col1 * - col1 + col0 + col0 AS col0 FROM tab2
----
-131
-3325
-947
query I rowsort
SELECT - col0 + + col1 + col1 FROM tab0
----
148
159
93
query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3588
SELECT DISTINCT col1 * + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT col1 * + cor0.col0 / - col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT ALL - col1 * - col1 DIV + cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - col1 * - col1 / + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col0 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - col0 * col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col0 + + col1 - + cor0.col2 FROM tab2 AS cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3596
SELECT tab2.col2 DIV col0 AS col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3596
SELECT tab2.col2 / col0 AS col0 FROM tab2
----
0
0
3
query I rowsort
SELECT col0 + col0 * + col0 * - col2 AS col0 FROM tab1
----
-233408
-483
-614320
query I rowsort
SELECT + tab0.col0 + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 - + col1 AS col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT - col2 > NULL
----
query I rowsort
SELECT col2 + - col0 + col2 AS col2 FROM tab2
----
-26
-3
47
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 NOT BETWEEN ( col0 ) AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----
query I rowsort
SELECT col0 * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 + + cor0.col0 col1 FROM tab0 cor0
----
-159
-2900
-7464
query I rowsort
SELECT DISTINCT - col2 * col0 + + tab1.col1 * col1 * tab1.col1 FROM tab1
----
-2648
-5483
17414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE NOT ( - col2 ) >= NULL
----
query I rowsort
SELECT ALL - col1 * col2 * col1 + + col0 FROM tab2
----
-10903
-25940
-90428
query I rowsort
SELECT col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + col2 col0 FROM tab2
----
110
111
122
query I rowsort
SELECT ALL 29 * col2 AS col0 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT ALL - - col0 * + 93 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT - - col2 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 16 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - 8 * col1 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT DISTINCT + tab0.col2 * col1 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT + col0 * col1 * CAST( ( col2 ) AS SIGNED ) col2 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3618
SELECT + col0 * col1 * CAST ( ( col2 ) AS INTEGER ) col2 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + cor0.col2 - - 73 * 45 * + col1 col2 FROM tab2 AS cor0
----
103968
195869
58847
query I rowsort
SELECT - 5 * + col2 AS col0 FROM tab2 cor0
----
-130
-135
-190
query I rowsort
SELECT - col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL col1 * - col1 + col1 * - col2 AS col2 FROM tab0 cor0
----
-10234
-15743
-9506
query I rowsort
SELECT col1 * 57 AS col0 FROM tab2 AS cor0
----
1767
3363
969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3624
SELECT ALL + + col1 * CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + + col1 * CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + 93 FROM tab1 cor0
----
-93
-93
-93
query I rowsort
SELECT + + col2 + ( + col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - ( + col0 ) * - col1 + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - 6 + - 57 * - cor0.col1 FROM tab1 AS cor0
----
1476
564
735
query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - 75 + + 68 * col0 FROM tab1 cor0
----
129
4277
5365
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 53 + tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
79
80
91
query I rowsort
SELECT ( cor1.col1 ) * + ( 56 ) * + tab0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 72296383776e724ece91cd610ccb0023
query I rowsort
SELECT + 52 AS col2 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT ALL + ( + col2 ) DIV col0 + col1 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + ( + col2 ) / col0 + col1 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT ALL + col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - 11 * - col0 + - col1 FROM tab2 AS cor0
----
46
799
852
query I rowsort
SELECT - 9 * col2 FROM tab1 cor0
----
-486
-513
-864
query I rowsort
SELECT ALL + col1 + + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3642
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 25 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT CAST ( NULL AS REAL ) - + 25 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 67 FROM tab2, tab2 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT + + col2 * cor0.col1 + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT ALL - - col1 DIV + col1 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - - col1 / + col1 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT ALL + - cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + - col1 + col0 col1 FROM tab0 AS cor0
----
-27
7296
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT ALL col1 DIV - col2 - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
-3
-98
skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL col1 / - col2 - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-2
-3
-98
query I rowsort
SELECT + ( col0 + + col2 ) FROM tab1
----
121
176
57
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 DISTINCT - ( + col0 ) + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL ( + 9 + - col0 ) FROM tab0
----
-15
-26
-80
query I rowsort
SELECT DISTINCT 1 FROM tab0
----
1
query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT ( 87 ) FROM tab2
----
87
query I rowsort
SELECT + + col0 * 38 AS col1 FROM tab2 AS cor0
----
266
2964
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col1 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT + col0 * CAST( - col1 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-3660
SELECT + col0 * CAST ( - col1 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - cor0.col1 + + cor0.col0 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT - cor0.col2 + cor0.col0 + + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 * - 22 + col0 * cor0.col1 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-26
1157
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3665
SELECT ALL - col1 DIV ( - col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - col1 / ( - col0 ) FROM tab2 AS cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 6 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT + col2 DIV col0 + cor0.col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-3668
SELECT + col2 / col0 + cor0.col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT ALL - col2 * + 83 * - col1 FROM tab0 AS cor0
----
235554
619346
8051
query I rowsort
SELECT ALL + col1 * - 60 AS col2 FROM tab1 AS cor0
----
-1560
-600
-780
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 + col0 - col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT - - cor0.col1 * col2 DIV col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3673
SELECT - - cor0.col1 * col2 / col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 + col1 FROM tab2 cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - + col2 + - ( col1 ) * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3677
SELECT - col2 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3677
SELECT - col2 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + ( 95 ) + + col0 AS col0 FROM tab0 AS cor0
----
8194
8734
9250
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 + col0 col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + cor0.col2 + 70 FROM tab1 AS cor0
----
124
127
166
query I rowsort
SELECT - col1 * col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 * - 3 FROM tab2 AS cor0
----
-114
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3685
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( col0 ) col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col1 * - 30 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3688
SELECT + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - col1 * - col2 + 73 FROM tab0 AS cor0
----
170
2911
7535
query I rowsort
SELECT + col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3691
SELECT ALL + col0 - col1 DIV 59 AS col1 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + col0 - col1 / 59 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL 74 + cor0.col1 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT - col2 + col1 * col0 * + col2 FROM tab1
----
36423
4158
99744
query I rowsort
SELECT - + col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT 72 FROM tab0
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT ALL - 95 + - col0 * + col2 + cor0.col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-249
-3743
-7775
skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - 95 + - col0 * + col2 + cor0.col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-249
-3743
-7775
query I rowsort
SELECT ( ( col0 ) + + ( + ( col2 ) ) ) AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT + tab2.col0 + - col1 DIV + tab2.col1 + col0 * + tab2.col1 AS col1 FROM tab2
----
1421
223
4679
skipif mysql # not compatible
query I rowsort label-3701
SELECT + tab2.col0 + - col1 / + tab2.col1 + col0 * + tab2.col1 AS col1 FROM tab2
----
1421
223
4679
query I rowsort
SELECT DISTINCT - tab1.col2 + 59 FROM tab1, tab1 cor0
----
-37
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT col1 + col2 DIV - ( - col1 ) col2 FROM tab2 AS cor0
----
19
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3705
SELECT col1 + col2 / - ( - col1 ) col2 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT DISTINCT + - col1 * + col1 * - col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + 29 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1069
107
669
query I rowsort
SELECT ALL ( - col2 * + col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL - col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 + col1 + - col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - - col1 * col0 + 84 * - col1 AS col2 FROM tab0 cor0
----
-4753
-5160
455
query I rowsort
SELECT col2 * + col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + col0 + - 99 AS col0 FROM tab0 AS cor0
----
-10
-64
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 95 col0 FROM tab1 AS cor0
----
15
31
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 80 col1 FROM tab0
----
2640
6560
80
query I rowsort
SELECT - cor0.col2 * 67 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d64556e0226f84284e81acdac928a013
query I rowsort
SELECT DISTINCT - col0 + - 48 AS col2 FROM tab2 cor0
----
-126
-127
-55
query I rowsort
SELECT col0 - 33 AS col1 FROM tab2 AS cor0
----
-26
45
46
query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2 AS cor0
----
78
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - 16 + col1 AS col0 FROM tab0 AS cor0
----
70
75
81
query I rowsort
SELECT + 25 AS col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + 69 FROM tab2
----
69
69
69
query I rowsort
SELECT DISTINCT 13 * + col0 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT - 32 FROM tab1, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT ALL 31 DIV - col0 + col1 AS col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL 31 / - col0 + col1 AS col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL - ( 85 ) * - col0 FROM tab2 AS cor0
----
595
6630
6715
query I rowsort
SELECT DISTINCT - 38 + - 84 * - col2 FROM tab1 AS cor0
----
4498
4750
8026
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT + - CAST( - 59 AS SIGNED ) FROM tab0 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-3731
SELECT + - CAST ( - 59 AS INTEGER ) FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT - 21 FROM tab1, tab1 AS cor0
----
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3733
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - 67 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL col2 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 4 AS col2 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT ALL + - cor0.col2 * col0 + col0 AS col1 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - cor0.col0 + - col1 * cor0.col2 * + col0 - + col0 FROM tab1 AS cor0
----
-100000
-36608
-4218
query I rowsort
SELECT 19 AS col2 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT ALL - - col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab0, tab2 AS cor0
----
33
query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab2
----
0
query I rowsort
SELECT + ( - col2 ) - - col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT 43 * + cor0.col2 FROM tab2, tab0 AS cor0
----
1419
3526
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col1 FROM tab2, tab1 AS cor0
----
26
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT - 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT - 99 FROM tab2, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT DISTINCT 29 FROM tab0, tab0 AS cor0
----
29
query I rowsort
SELECT ALL - col2 * + col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2, tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - col2 * - ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL 58 AS col0 FROM tab2
----
58
58
58
query I rowsort
SELECT ALL + col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3758
SELECT + + CAST( NULL AS DECIMAL ) * + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3758
SELECT + + CAST ( NULL AS REAL ) * + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT col2 + - col0 * + ( + tab2.col0 ) * - col0 + - col2 DIV col1 FROM tab2
----
370
474578
493075
skipif mysql # not compatible
query I rowsort label-3759
SELECT col2 + - col0 * + ( + tab2.col0 ) * - col0 + - col2 / col1 FROM tab2
----
370
474578
493075
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + + col0 col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - 33 * - col1 * - col2 + - 40 AS col1 FROM tab2
----
-21358
-27661
-50662
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL + 72 DIV tab2.col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + 72 / tab2.col1 FROM tab2
----
1
2
4
query I rowsort
SELECT ALL + ( col0 ) + 19 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT ALL + ( - col0 ) * + ( 39 ) AS col1 FROM tab0 cor0
----
-1365
-3471
-936
query I rowsort
SELECT + - 92 AS col0 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT ALL 13 AS col2 FROM tab2
----
13
13
13
query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3770
SELECT - col1 * - CAST( col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-3770
SELECT - col1 * - CAST ( col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + col0 * ( 72 ) FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col1 + col1 * - 62 FROM tab2 AS cor0
----
-1037
-1891
-3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL + col1 DIV 19 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + col1 / 19 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab0, tab1 cor0
----
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT + col2 + CAST( NULL AS SIGNED ) 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-3776
SELECT + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT col2 DIV - 78 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3778
SELECT col2 / - 78 col0 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3783
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3783
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 - + col1 FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT ALL col1 * + CAST( NULL AS SIGNED ) * - col0 + + col0 / - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) * - col0 + + col0 / - col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab1.col2 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) + col0 FROM tab2
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 62 col2 FROM tab0
----
-5332
-5642
-6014
query I rowsort
SELECT - col1 * 24 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT DISTINCT + 31 * - ( col1 ) - col1 FROM tab0 AS cor0
----
-2752
-2912
-3104
query I rowsort
SELECT ( 61 ) AS col1 FROM tab0 AS cor0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col2 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT DISTINCT + cor0.col0 * - 0 AS col1 FROM tab2, tab0, tab1 cor0
----
0
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - ( + cor0.col0 ) + - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + cor0.col1 * 92 + + col1 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT ALL + ( - col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col1 + + cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 69 FROM tab1 AS cor0
----
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - 54 * - col0 col2 FROM tab0 cor0
----
1263
1889
4724
query I rowsort
SELECT - col2 + - 4 * + col0 FROM tab1 AS cor0
----
-313
-416
-66
query I rowsort
SELECT ALL + 7 * col2 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT - - 97 + + col0 * - col1 AS col2 FROM tab1 cor0
----
-543
-943
19
query I rowsort
SELECT - col0 - col2 * col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - col0 + col0 * col2 - col2 * col2 FROM tab0 cor0
----
-1
-321
485
query I rowsort
SELECT - + col2 - - col0 * + ( - col2 * col0 ) FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT + col0 * + col2 + tab2.col1 AS col2 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + col0 col2 FROM tab1
----
128
160
6
query I rowsort
SELECT - col2 * - 8 FROM tab2
----
208
216
304
query I rowsort
SELECT + + col0 * col1 + - ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 - + col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( - 48 + + col0 ) col0 FROM tab0 cor0
----
-455
-576
3649
query I rowsort
SELECT + + col1 * ( - 13 + - col0 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
273652
451632
844662
query I rowsort
SELECT ALL - col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + col1 + 46 FROM tab2
----
105
63
77
query I rowsort
SELECT 86 + tab2.col0 * - col0 AS col0 FROM tab2
----
-5998
-6155
37
query I rowsort
SELECT DISTINCT - 0 FROM tab0, tab2, tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * - ( col1 ) + cor0.col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + + ( - 79 ) + - col1 AS col2 FROM tab1 AS cor0
----
-105
-89
-92
query I rowsort
SELECT + col1 * + col1 + + col2 * + col0 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT ALL col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - 95 + - 34 * - col1 + + 85 AS col2 FROM tab0 AS cor0
----
2914
3084
3288
query I rowsort
SELECT ALL + col1 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - + cor0.col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT DISTINCT - - col1 + - col2 DIV col1 AS col0 FROM tab1 cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - - col1 + - col2 / col1 AS col0 FROM tab1 cor0
----
24
5
6
query I rowsort
SELECT ALL 76 AS col1 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT cor0.col0 * + col0 + - cor0.col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + col1 * 68 col1 FROM tab0 AS cor0
----
5853
6193
6601
query I rowsort
SELECT ALL + col2 + cor0.col1 * 16 AS col0 FROM tab2 AS cor0
----
310
523
970
onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT DISTINCT - col0 * col1 DIV col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - col0 * col1 / col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - col0 + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + - 73 + col0 * 72 AS col0 FROM tab2 AS cor0
----
431
5543
5615
query I rowsort
SELECT DISTINCT - 23 * + col2 AS col1 FROM tab1 cor0
----
-1242
-1311
-2208
query I rowsort
SELECT ALL + - col0 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - - col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ( col0 ) * + ( ( col0 ) + + ( 5 ) ) FROM tab1 AS cor0
----
24
4416
6800
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT - col0 - - col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ALL col0 + - col2 DIV ( - col0 ) col0 FROM tab1 AS cor0
----
21
64
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL col0 + - col2 / ( - col0 ) col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL cor0.col0 + + col1 * 60 FROM tab0 AS cor0
----
5184
5549
5855
query I rowsort
SELECT + col0 + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + + col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - col0 * + ( + cor0.col2 ) + col2 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT - col0 - - col2 * + col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL - 27 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL - col2 - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + + col1 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col0 * - ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT col0 * - 57 + cor0.col2 FROM tab1 AS cor0
----
-117
-3591
-4464
query I rowsort
SELECT + - col2 * - ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 * col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL cor0.col2 + 1 * 94 FROM tab1, tab1 AS cor0
----
9 values hashing to c7cada3662d7d6ab022e26625f2d9ba4
query I rowsort
SELECT + ( + tab0.col0 ) * ( - col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 * + ( col1 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col1 * - 48 + col0 * col0 + + 59 FROM tab1 AS cor0
----
1316
4635
7083
query I rowsort
SELECT cor0.col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col1 * - col1 * 23 AS col1 FROM tab1 AS cor0
----
-15548
-2300
-3887
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3865
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT DISTINCT - - ( cor0.col2 ) + col0 DIV ( 10 ) FROM tab0 AS cor0
----
35
4
90
skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - - ( cor0.col2 ) + col0 / ( 10 ) FROM tab0 AS cor0
----
35
4
90
query I rowsort
SELECT ALL + col2 * 99 + - col1 - col0 AS col1 FROM tab1 AS cor0
----
5317
5569
9411
query I rowsort
SELECT col1 + + col0 * + col1 FROM tab1
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT - + ( + 85 ) + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3869
SELECT - + ( + 85 ) + + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT DISTINCT - 64 + - col1 DIV cor0.col2 FROM tab0 AS cor0
----
-161
-65
-66
skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - 64 + - col1 / cor0.col2 FROM tab0 AS cor0
----
-161
-65
-66
query I rowsort
SELECT col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + + col2 * ( - col1 ) + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT ALL col0 * CAST( col2 AS SIGNED ) * col1 FROM tab2
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL col0 * CAST ( col2 AS INTEGER ) * col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT tab2.col2 * col1 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + 7 FROM tab0
----
7
7
7
query I rowsort
SELECT 94 AS col1 FROM tab1
----
94
94
94
query I rowsort
SELECT ALL 6 FROM tab2, tab2 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT + 42 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1290
1446
612
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT ALL 36 DIV - 74 + col2 AS col1 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 36 / - 74 + col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 11 * + col0 FROM tab0 AS cor0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 + col0 col2 FROM tab0 AS cor0
----
134
69
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + col2 * col0 + col1 * col1 FROM tab0
----
15579
8188
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT + 1 DIV col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3885
SELECT + 1 / col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - 34 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - + cor0.col2 + - cor0.col2 * 60 * + ( - col1 * col2 + + 45 ) AS col2 FROM tab2 AS cor0
----
1283013
1370242
2322814
query I rowsort
SELECT col1 * col1 * - tab2.col1 FROM tab2
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT ALL - ( + col1 ) DIV tab0.col0 + col2 AS col2 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - ( + col1 ) / tab0.col0 + col2 AS col2 FROM tab0
----
-1
30
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col1 * + 76 AS col2 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT ALL + col0 + ( - col0 ) * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1185
-203
-4446
query I rowsort
SELECT DISTINCT - col0 * + 34 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT ALL + 44 * + cor1.col1 - 18 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 3e1067b4b8125ce7fceba69762ebbd05
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3898
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3898
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT - 70 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3899
SELECT - 70 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + + col2 * col1 + 11 * col2 FROM tab2 AS cor0
----
1064
1134
1820
query I rowsort
SELECT + + col1 + col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3903
SELECT col1 DIV - cor0.col1 + + col1 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3903
SELECT col1 / - cor0.col1 + + col1 FROM tab1 cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT + + col2 + cor0.col1 DIV 9 FROM tab2 AS cor0
----
30
32
39
skipif mysql # not compatible
query I rowsort label-3904
SELECT + + col2 + cor0.col1 / 9 FROM tab2 AS cor0
----
30
32
39
query I rowsort
SELECT + - 63 * + col1 + + col0 FROM tab2 AS cor0
----
-1946
-3639
-992
query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - 24 + col0 FROM tab1 AS cor0
----
-21
40
56
query I rowsort
SELECT ALL + 31 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT + col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - col2 * 70 AS col0 FROM tab0 cor0
----
2310
5740
70
query I rowsort
SELECT + col1 * + col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - col1 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT ALL - col2 + ( + col0 ) FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col2 - + 49 * + cor0.col2 col1 FROM tab1 AS cor0
----
-1239
-2159
-3376
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26
query I rowsort
SELECT col0 + 66 AS col0 FROM tab2
----
144
145
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 33 FROM tab2
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT - col1 DIV - col0 + - col0 * 25 FROM tab1
----
-1600
-2000
-67
skipif mysql # not compatible
query I rowsort label-3921
SELECT - col1 / - col0 + - col0 * 25 FROM tab1
----
-1600
-2000
-67
query I rowsort
SELECT 10 * col2 + col2 * 66 FROM tab2
----
1976
2052
2888
query I rowsort
SELECT 17 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT - ( cor0.col2 ) - cor0.col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL 61 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * col2 - col2 col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2
----
80
query I rowsort
SELECT + + 2 * col2 + 39 * col0 + col2 * 95 AS col2 FROM tab0 cor0
----
11425
1462
4137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT DISTINCT - - col0 + + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - - col0 + + col0 / col2 AS col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT cor0.col1 + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 27 AS col1 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT - ( - 6 ) * col1 FROM tab2
----
102
186
354
query I rowsort
SELECT DISTINCT - 47 * - col0 AS col2 FROM tab2
----
329
3666
3713
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT 58 DIV - col2 + 93 + col1 FROM tab0
----
132
178
184
skipif mysql # not compatible
query I rowsort label-3936
SELECT 58 / - col2 + 93 + col1 FROM tab0
----
132
178
184
query I rowsort
SELECT - 98 AS col2 FROM tab0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT + col2 + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - ( + col1 ) * 19 FROM tab1
----
-190
-247
-494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + - col1 + 29 col1 FROM tab0
----
18
24
29
query I rowsort
SELECT + - 84 * + col1 AS col2 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col2 * col0 AS col0 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT ALL - 63 DIV 24 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - 63 / 24 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT DISTINCT + col2 * + tab0.col1 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT DISTINCT col2 DIV tab1.col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT col2 / tab1.col1 FROM tab1
----
2
5
7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT col2 * 26 FROM tab0 cor0
----
2132
26
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT - - CAST( col0 AS SIGNED ) DIV + cor0.col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3949
SELECT - - CAST ( col0 AS INTEGER ) / + cor0.col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - tab0.col2 * 17 + + col0 - tab0.col2 * col1 FROM tab0
----
-3375
-79
-8767
query I rowsort
SELECT ALL - cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT + + CAST( NULL AS SIGNED ) * ( col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3952
SELECT + + CAST ( NULL AS INTEGER ) * ( col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col0 * + 96 AS col2 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT DISTINCT + + col2 + + 41 * col2 * col2 AS col1 FROM tab2 AS cor0
----
27742
29916
59242
query I rowsort
SELECT + 23 * col1 * + col2 FROM tab0 AS cor0
----
171626
2231
65274
query I rowsort
SELECT - - ( col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + ( - col1 ) * + col2 - + cor0.col2 * - col0 FROM tab2 cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2 cor0
----
-64
-64
-64
query I rowsort
SELECT - ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 62 AS col1 FROM tab2
----
62
62
62
query I rowsort
SELECT + 41 * + tab0.col0 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to c0a47a848b9291307a37178d7280db50
query I rowsort
SELECT + 84 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT ALL 98 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL + col2 DIV - 82 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + col2 / - 82 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + ( - col1 ) * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT cor0.col2 * - 8 + col1 AS col2 FROM tab2 AS cor0
----
-149
-185
-287
query I rowsort
SELECT DISTINCT - 85 + - tab0.col1 FROM tab0, tab2 AS cor0
----
-171
-176
-182
query I rowsort
SELECT DISTINCT - - cor0.col0 * ( col1 ) + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT col0 * - 61 * + 35 FROM tab2 AS cor0
----
-14945
-166530
-168665
query I rowsort
SELECT DISTINCT - col0 * col1 * 36 FROM tab2 AS cor0
----
-165672
-48348
-7812
onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT - col0 + col1 DIV + 3 AS col0 FROM tab1 AS cor0
----
-61
-76
5
skipif mysql # not compatible
query I rowsort label-3972
SELECT - col0 + col1 / + 3 AS col0 FROM tab1 AS cor0
----
-61
-76
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT DISTINCT + + col1 * - CAST( - 10 AS SIGNED ) FROM tab0 AS cor0
----
860
910
970
skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + + col1 * - CAST ( - 10 AS INTEGER ) FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT DISTINCT + + col2 + ( - 4 ) + + cor0.col0 FROM tab1 AS cor0
----
117
172
53
query I rowsort
SELECT col0 * - 60 AS col1 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT ALL - col0 + cor0.col2 * col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL - - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col2 * + ( - 53 ) FROM tab2 cor0
----
1378
1431
2014
query I rowsort
SELECT - + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col1 + - col0 * cor0.col0 * 86 FROM tab1 AS cor0
----
-352246
-550387
-748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * - col1 + - col2 * - col0 col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + + col1 col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col1 AS col1 FROM tab0 cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col2 * col0 + col0 * + 83 FROM tab1 cor0
----
-1040
1664
87
query I rowsort
SELECT ALL - 57 AS col1 FROM tab0 AS cor0
----
-57
-57
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT - + col0 DIV - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-3988
SELECT - + col0 / - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * 56 + - col2 col1 FROM tab0 AS cor0
----
-2689
-2721
-2770
query I rowsort
SELECT DISTINCT + + ( + 43 ) + col2 FROM tab1 AS cor0
----
100
139
97
query I rowsort
SELECT DISTINCT + 72 + col0 FROM tab1 AS cor0
----
136
152
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 54 * 4 - cor0.col0 * - cor0.col0 * cor0.col2 col0 FROM tab2 AS cor0
----
1539
158400
237374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3993
SELECT + CAST( NULL AS SIGNED ) + + 48 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3993
SELECT + CAST ( NULL AS INTEGER ) + + 48 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 94 + + col1 AS col0 FROM tab1 AS cor0
----
104
107
120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col2 col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + ( + 89 ) * col0 + 70 FROM tab1 AS cor0
----
337
5766
7190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT cor0.col2 - - ( col0 ) * 95 AS col2 FROM tab0 AS cor0
----
2313
3326
8537
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL + col0 + + col1 DIV + col1 col2 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + col0 + + col1 / + col1 col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL - - col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
query I rowsort
SELECT ALL - col2 * + col0 + col0 AS col1 FROM tab1 cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 43 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col0 * col0 * + ( + col0 ) FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL + + col2 * + col1 * 82 + + col2 AS col2 FROM tab2 AS cor0
----
125814
53010
68661
query I rowsort
SELECT DISTINCT + - col2 * col2 + + 87 AS col2 FROM tab0 AS cor0
----
-1002
-6637
86
query I rowsort
SELECT 74 - - ( + col2 ) * 66 FROM tab1
----
3638
3836
6410
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - ( col2 ) * 47 * cor0.col1 FROM tab2 AS cor0
----
-30362
-39339
-72098
query I rowsort
SELECT + 97 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT ( + col2 ) + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT 44 * col1 + 99 AS col1 FROM tab2 AS cor0
----
1463
2695
847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 83 * col0 AS col1 FROM tab1
----
249
5312
6640
query I rowsort
SELECT col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col2 + col2 + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2130
3397
8263
onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT ALL 22 DIV cor0.col1 - - col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL 22 / cor0.col1 - - col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 86 * + col0 FROM tab1 cor0
----
258
5504
6880
query I rowsort
SELECT - ( col1 ) + col1 - + col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL ( - col2 * - col2 ) + col1 AS col0 FROM tab0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT CAST( NULL AS SIGNED ) / ( col0 ) - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4027
SELECT CAST ( NULL AS INTEGER ) / ( col0 ) - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 60 FROM tab1 AS cor0
----
-60
query I rowsort
SELECT + 67 FROM tab0 AS cor0
----
67
67
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT + col1 + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4030
SELECT + col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col0 + ( - 37 ) FROM tab0
----
1188
539
7884
query I rowsort
SELECT col1 + ( col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( - col2 ) * - col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + col2 - - col1 * - ( + 31 ) AS col1 FROM tab0 AS cor0
----
-2609
-2650
-2971
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
query I rowsort
SELECT - col1 * 65 + 73 FROM tab2
----
-1032
-1942
-3762
query I rowsort
SELECT - tab0.col0 - - col2 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT ALL col0 DIV col2 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL col0 / col2 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT 53 + + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebf8a463ed6934c4a1fbd29e1cc9e19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( ( + col0 ) ) * - 4 col1 FROM tab0 AS cor0
----
-140
-356
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4042
SELECT CAST ( NULL AS REAL ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 + col0 * col1 FROM tab0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + 31 col0 FROM tab0
----
103
103
103
query I rowsort
SELECT DISTINCT - col0 + - col1 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL col2 * ( tab2.col2 ) + col1 AS col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 * - 59 FROM tab2
----
1082
1836
3559
query I rowsort
SELECT ( 14 ) * + col0 AS col1 FROM tab2
----
1092
1106
98
query I rowsort
SELECT ALL + 41 + col0 AS col0 FROM tab2 AS cor0
----
119
120
48
query I rowsort
SELECT - - 90 - 87 AS col0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT - - col0 * col1 - + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + - 58 * - col0 FROM tab2 cor0
----
406
4524
4582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4055
SELECT + CAST( NULL AS SIGNED ) * col1 / - col2 - 56 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4055
SELECT + CAST ( NULL AS INTEGER ) * col1 / - col2 - 56 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 51 + tab0.col0 AS col2 FROM tab0
----
-16
-27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT + 0 * + cor0.col2 DIV col0 - 83 FROM tab1 AS cor0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort label-4057
SELECT + 0 * + cor0.col2 / col0 - 83 FROM tab1 AS cor0
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 84 col2 FROM tab0 AS cor0
----
108
119
173
query I rowsort
SELECT DISTINCT - - col2 * - 45 - + col1 AS col1 FROM tab0 AS cor0
----
-142
-1571
-3781
query I rowsort
SELECT col1 * - 49 FROM tab2
----
-1519
-2891
-833
query I rowsort
SELECT + tab2.col2 * col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 98 col2 FROM tab1 cor0
----
101
162
178
onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT - col1 * 11 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946
skipif mysql # not compatible
query I rowsort label-4064
SELECT - col1 * 11 + col2 / col1 AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4065
SELECT - col1 + ( 91 ) + - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4065
SELECT - col1 + ( 91 ) + - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT - 75 DIV + ( col2 ) FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4066
SELECT - 75 / + ( col2 ) FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT - col1 DIV ( - col0 * + col1 + + col2 * cor0.col0 ) AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4067
SELECT - col1 / ( - col0 * + col1 + + col2 * cor0.col0 ) AS col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT 72 AS col2 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - + 20 + col2 AS col0 FROM tab2 AS cor0
----
18
6
7
query I rowsort
SELECT DISTINCT col1 + col2 * - ( col0 ) + col0 AS col2 FROM tab1 cor0
----
-133
-3574
-7587
query I rowsort
SELECT - 42 * col2 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT + col2 * 64 + tab1.col2 DIV + col1 FROM tab1
----
3458
3653
6151
skipif mysql # not compatible
query I rowsort label-4073
SELECT + col2 * 64 + tab1.col2 / + col1 FROM tab1
----
3458
3653
6151
onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT + col2 DIV - col1 + col0 col2 FROM tab1 AS cor0
----
1
59
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4074
SELECT + col2 / - col1 + col0 col2 FROM tab1 AS cor0
----
1
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT - col1 * col0 - + 5 DIV col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-4075
SELECT - col1 * col0 - + 5 / col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 * + col1 + 64 FROM tab2
----
-225
-3417
-897
query I rowsort
SELECT + + col1 * 87 - col2 FROM tab2 AS cor0
----
1441
2670
5107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 * - col1 col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 56 * + col0 + col0 FROM tab2
----
399
4446
4503
query I rowsort
SELECT ALL + col1 + + tab0.col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT + col0 * + 17 * col1 AS col1 FROM tab0 cor0
----
137683
35088
57715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 + cor0.col0 col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col0 + - 5 AS col1 FROM tab0 cor0
----
-29
-40
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT DISTINCT + cor0.col2 + 73 DIV + col1 FROM tab1 cor0
----
101
56
64
skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT + cor0.col2 + 73 / + col1 FROM tab1 cor0
----
101
56
64
query I rowsort
SELECT col2 * - col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT ALL - - ( cor0.col2 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - - ( cor0.col2 ) / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT ALL - CAST( - ( col1 ) AS SIGNED ) DIV + cor0.col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - CAST ( - ( col1 ) AS INTEGER ) / + cor0.col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4089
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT CAST ( NULL AS REAL ) * + tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT DISTINCT - col1 - 72 DIV col1 AS col2 FROM tab1
----
-17
-18
-28
skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT - col1 - 72 / col1 AS col2 FROM tab1
----
-17
-18
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to da6e9e31125edfaa01597c20a1ea2a10
query I rowsort
SELECT - 18 FROM tab2, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT 89 AS col1 FROM tab1
----
89
89
89
query I rowsort
SELECT + - col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + + col2 + col0 * 42 FROM tab2 AS cor0
----
321
3302
3356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT DISTINCT + CAST( 35 AS SIGNED ) * tab1.col0 AS col2 FROM tab1
----
105
2240
2800
skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + CAST ( 35 AS INTEGER ) * tab1.col0 AS col2 FROM tab1
----
105
2240
2800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT CAST( - col1 + col1 AS SIGNED ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4099
SELECT CAST ( - col1 + col1 AS INTEGER ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 35 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4101
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
query I rowsort
SELECT - tab0.col2 + tab0.col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL - col2 * + 60 AS col1 FROM tab0
----
-1980
-4920
-60
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT col0 DIV cor0.col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4105
SELECT col0 / cor0.col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ( col0 ) + + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT + + 82 * col0 AS col0 FROM tab0 AS cor0
----
1968
2870
7298
onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT + col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4108
SELECT + col0 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT DISTINCT 36 DIV col1 col0 FROM tab1 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT 36 / col1 col0 FROM tab1 AS cor0
----
1
2
3
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 + + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4113
SELECT ALL - 78 DIV + col1 - + col2 DIV - col2 FROM tab1 AS cor0
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - 78 / + col1 - + col2 / - col2 FROM tab1 AS cor0
----
-2
-5
-6
query I rowsort
SELECT ALL - + 75 FROM tab1 cor0
----
-75
-75
-75
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 * - col2 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT + 60 * - col2 AS col1 FROM tab1 AS cor0
----
-3240
-3420
-5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 97 * col1 col1 FROM tab1
----
-1165
-2468
-913
query I rowsort
SELECT + 86 - - col2 * col0 FROM tab2
----
2114
275
3088
query I rowsort
SELECT ALL + 12 AS col0 FROM tab1
----
12
12
12
query I rowsort
SELECT ALL col0 * + col2 * ( col2 * col2 ) FROM tab1
----
11852352
472392
70778880
query I rowsort
SELECT + 43 * - col1 FROM tab2
----
-1333
-2537
-731
query I rowsort
SELECT ALL + 33 AS col1 FROM tab0
----
33
33
33
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 18 * + col0 AS col1 FROM tab2
----
-126
-1404
-1422
query I rowsort
SELECT - + 17 AS col0 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT + 22 AS col1 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT - 57 AS col0 FROM tab0 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 56 + col1 * - ( - 55 ) FROM tab2 AS cor0
----
1761
3301
991
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT cor0.col2 DIV + ( cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7
skipif mysql # not compatible
query I rowsort label-4130
SELECT cor0.col2 / + ( cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7
query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col1 * + col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT ALL col2 DIV ( - col1 * + col2 ) + + 42 DIV col2 - tab1.col1 col2 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL col2 / ( - col1 * + col2 ) + + 42 / col2 - tab1.col1 col2 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4134
SELECT ALL col2 * + CAST( NULL AS SIGNED ) - + 11 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) - + 11 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 26 FROM tab0, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT - + col0 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT 72 + 89 * + cor0.col1 FROM tab1 AS cor0
----
1229
2386
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT ALL - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - col0 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 69 * + 23 FROM tab2, tab1 AS cor0
----
9 values hashing to a213b3772c26cd4a713ce2dc10212aee
query I rowsort
SELECT + col1 * 0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT ALL + - col0 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + - col0 + col1 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT + CAST( NULL AS SIGNED ) * col2 - col2 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-4143
SELECT + CAST ( NULL AS INTEGER ) * col2 - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + 41 * - col2 AS col2 FROM tab0 AS cor0
----
-1353
-3362
-41
query IIIIIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2, tab0 AS cor3
----
45927 values hashing to 0cc57f38d2c32cef57e52d53f59c4645
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4147
SELECT DISTINCT + - CAST( 17 AS SIGNED ) * - col2 - col0 AS col2 FROM tab1 cor0
----
1552
905
915
skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + - CAST ( 17 AS INTEGER ) * - col2 - col0 AS col2 FROM tab1 cor0
----
1552
905
915
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT ALL + + col0 DIV 6 AS col0 FROM tab1 AS cor0
----
0
10
13
skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + + col0 / 6 AS col0 FROM tab1 AS cor0
----
0
10
13
query I rowsort
SELECT - ( - col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - - col0 - - 13 AS col1 FROM tab1 AS cor0
----
16
77
93
query I rowsort
SELECT ALL + 63 AS col1 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT + 26 * col0 * col2 FROM tab1 AS cor0
----
199680
4212
94848
query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col0 * col2 - col2 * 35 AS col0 FROM tab0 cor0
----
-363
0
4428
query I rowsort
SELECT DISTINCT col0 * - 9 FROM tab1 AS cor0
----
-27
-576
-720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 + cor0.col1 col2 FROM tab0 AS cor0
----
181
186
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4158
SELECT - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 8 AS col1 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0
----
61
query I rowsort
SELECT ALL + 48 * - col2 AS col0 FROM tab0 cor0
----
-1584
-3936
-48
query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) + cor0.col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT ALL - 53 * 92 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1625
-60
-76
skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 53 * 92 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1625
-60
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4164
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 * - col2 + ( col2 ) / col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 * - col2 + ( col2 ) / col1 FROM tab2
----
NULL
query I rowsort
SELECT 12 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - ( - col1 ) * + col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT + 9 DIV + col2 FROM tab0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-4167
SELECT + 9 / + col2 FROM tab0
----
0
0
9
query I rowsort
SELECT DISTINCT - ( - 66 ) * col1 + 76 + col2 AS col1 FROM tab1
----
1030
1846
793
query I rowsort
SELECT DISTINCT - col1 * 8 - col0 * 68 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
-278608
-435304
-820
query I rowsort
SELECT ALL - ( - col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col2 * col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL + + col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT col0 DIV - col2 col2 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4173
SELECT col0 / - col2 col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - - col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 98 * - col2 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT - - cor0.col2 * - col1 + - ( - col1 ) * col0 + cor0.col0 * + ( col2 ) * - col0 FROM tab0 AS cor0
----
-19782
-648885
2073
query I rowsort
SELECT DISTINCT - 14 + col2 AS col0 FROM tab0 AS cor0
----
-13
19
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT col1 DIV col1 + - col1 + + 77 FROM tab0 AS cor0
----
-13
-19
-8
skipif mysql # not compatible
query I rowsort label-4178
SELECT col1 / col1 + - col1 + + 77 FROM tab0 AS cor0
----
-13
-19
-8
query I rowsort
SELECT ALL - - cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col1 * + col0 + ( 17 ) FROM tab0 cor0
----
2081
3412
8116
query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - + ( + col1 ) + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT 82 * col2 - + 11 FROM tab2 cor0
----
2121
2203
3105
query I rowsort
SELECT - - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - cor0.col1 - + col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL - col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + col0 * - col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - col0 + - 24 AS col2 FROM tab2 AS cor0
----
-17
54
55
query I rowsort
SELECT ALL - - col0 - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col0 * + col1 + + ( col2 ) - + 46 * - col1 * + col1 FROM tab2 AS cor0
----
11989
155550
44016
query I rowsort
SELECT ALL - cor0.col1 * col0 * + col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT DISTINCT cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + col2 * + 76 * col2 AS col1 FROM tab0 AS cor0
----
511024
76
82764
query I rowsort
SELECT - col1 * - col1 + - col1 * col2 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT - 65 FROM tab0, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419
query I rowsort
SELECT ALL + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + col0 * col2 + + ( + 48 ) * tab0.col2 AS col1 FROM tab0
----
11234
2376
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - cor0.col2 - + col0 col0 FROM tab0 AS cor0
----
-1
7127
735
skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col2 * CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col0 * + 36 + col1 AS col1 FROM tab1 AS cor0
----
134
2314
2893
query I rowsort
SELECT DISTINCT ( - col1 + col2 ) AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - 93 FROM tab0
----
-93
-93
-93
query I rowsort
SELECT - 99 AS col1 FROM tab2
----
-99
-99
-99
query I rowsort
SELECT DISTINCT - col1 * - col1 * 37 AS col1 FROM tab2
----
10693
128797
35557
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT - - col1 + 10 FROM tab0 AS cor0
----
101
107
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT + col2 DIV - 73 + col1 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4212
SELECT + col2 / - 73 + col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col0 * col2 * - 43 - + col1 AS col0 FROM tab0 AS cor0
----
-1602
-313905
-34142
query I rowsort
SELECT - - col1 + + 75 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-4024
-4265
-7187
query I rowsort
SELECT - cor0.col0 * 58 + ( + cor0.col0 ) FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT col2 * col1 FROM tab0 WHERE NOT col1 <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 >= col2
----
78
59
26
79
17
38
query I rowsort
SELECT DISTINCT - col2 * - col0 + tab1.col1 FROM tab1 WHERE NOT - col0 <= - col0 + + col1
----
query I rowsort
SELECT tab1.col2 + tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL + tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - tab2.col0 * + col2 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 * col2 col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT col1 * col1 - col2 AS col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT DISTINCT + col1 - + col2 FROM tab1
----
-28
-47
-83
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> NULL
----
query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL BETWEEN col1 AND + col2
----
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT - col1 DIV + col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4230
SELECT - col1 / + col1 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT col0 + + tab0.col1 DIV 75 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4231
SELECT col0 + + tab0.col1 / 75 AS col2 FROM tab0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4232
SELECT - - CAST( NULL AS SIGNED ) + + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4232
SELECT - - CAST ( NULL AS INTEGER ) + + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 49 + tab1.col1 AS col2 FROM tab1
----
59
62
75
query I rowsort
SELECT + 57 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT ALL col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT 15 DIV - col0 + col0 AS col0 FROM tab2 AS cor0
----
5
78
79
skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 15 / - col0 + col0 AS col0 FROM tab2 AS cor0
----
5
78
79
query I rowsort
SELECT ALL - 8 * col1 + - ( - col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-134
-171
-185
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT col0 DIV col1 col2 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4238
SELECT col0 / col1 col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + + 59 * + col2 AS col0 FROM tab0 AS cor0
----
1947
4838
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT DISTINCT - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - col2 / col2 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT 69 * + col0 FROM tab2 cor0
----
483
5382
5451
query I rowsort
SELECT ALL + col0 * + 49 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT ALL col2 + + cor0.col2 * 75 AS col1 FROM tab0 AS cor0
----
2508
6232
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + col0 * col1 + cor0.col0 * col0 FROM tab1 cor0
----
4736
7440
87
query I rowsort
SELECT - col1 + 21 * col2 FROM tab1 AS cor0
----
1108
1187
2003
query I rowsort
SELECT 70 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT col2 * col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT ALL cor1.col2 * 57 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b2791fcbc317839c2f18c26810f698bf
query I rowsort
SELECT DISTINCT - col0 + + col1 + - col0 AS col1 FROM tab0 cor0
----
-87
27
38
query I rowsort
SELECT - cor0.col1 + + 47 AS col1 FROM tab2 AS cor0
----
-12
16
30
query I rowsort
SELECT 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + + 29 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT cor0.col0 + + 1 AS col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 * + col0 col0 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT - col2 * 95 AS col1 FROM tab2
----
-2470
-2565
-3610
query I rowsort
SELECT ALL - 76 * - cor0.col0 AS col2 FROM tab0 cor0
----
1824
2660
6764
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4259
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 27 + - ( cor0.col2 * - col0 ) FROM tab0 AS cor0
----
7271
765
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col2 ) col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 47 AS col1 FROM tab2
----
47
47
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT ALL CAST( 44 AS SIGNED ) AS col0 FROM tab2
----
44
44
44
skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( 44 AS INTEGER ) AS col0 FROM tab2
----
44
44
44
query I rowsort
SELECT 15 + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0291fa0421bf18712af339e6997789e9
query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab2 AS cor0
----
91
query I rowsort
SELECT DISTINCT + + ( + col0 ) + + 91 * + ( - col1 ) FROM tab2 AS cor0
----
-1468
-2814
-5291
query I rowsort
SELECT ALL - - col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 * col1 + + col0 * 89 FROM tab2 AS cor0
----
10423
1584
7320
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 6 * col0 + + col1 FROM tab1
----
-374
-467
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4271
SELECT col2 * 30 / col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4271
SELECT col2 * 30 / col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4272
SELECT tab2.col2 * - col0 + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4272
SELECT tab2.col2 * - col0 + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 9 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT 76 * - 42 + col1 AS col1 FROM tab0
----
-3095
-3101
-3106
query I rowsort
SELECT 97 * col1 FROM tab1
----
1261
2522
970
query I rowsort
SELECT DISTINCT - cor0.col1 * - ( col1 ) - col1 * col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT ALL col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL col2 / col1 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT DISTINCT - + col2 * ( col1 ) - col0 * + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - + col2 * ( col1 ) - col0 * + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 85 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT + col0 - - col0 * - 56 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT + col0 * + col0 - - col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL + col1 + + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col0 * ( - 52 ) - - cor0.col2 FROM tab2 AS cor0
----
-337
-4030
-4070
query I rowsort
SELECT ALL col0 + - col0 * - 22 FROM tab2 AS cor0
----
161
1794
1817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + + 11 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + + 11 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 * - col2 * + 45 + col0 * - col0 * - col2 AS col2 FROM tab2
----
-7182
102068
66924
query I rowsort
SELECT + + 30 * - 92 AS col1 FROM tab2 AS cor0
----
-2760
-2760
-2760
query I rowsort
SELECT ALL cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - 57 * + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT DISTINCT - - ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + 31 + - col1 * + col1 FROM tab2 AS cor0
----
-258
-3450
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4293
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4293
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 31 + - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
-65
query I rowsort
SELECT + - 28 * + 21 + - col0 FROM tab2 cor0
----
-595
-666
-667
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT - col1 DIV - 26 AS col2 FROM tab0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-4296
SELECT - col1 / - 26 AS col2 FROM tab0
----
3
3
3
query I rowsort
SELECT col2 * - ( - col2 * tab2.col0 ) FROM tab2
----
114076
5103
52728
query I rowsort
SELECT tab2.col2 + + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col0 * - col1 * col1 + + col1 AS col2 FROM tab1
----
-13507
-2002
-6390
query I rowsort
SELECT - col1 + 49 AS col2 FROM tab2
----
-10
18
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT ALL col1 DIV - ( col1 ) + + col2 DIV - col0 FROM tab0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL col1 / - ( col1 ) + + col2 / - col0 FROM tab0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 29 * 59 col1 FROM tab1
----
1765
1768
1807
query I rowsort
SELECT col1 * - ( col1 ) FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + tab1.col1 + col0 AS col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 25 * col0 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT ALL 93 AS col1 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab1 AS cor0
----
35
query I rowsort
SELECT DISTINCT tab0.col2 * - col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT ALL + col1 DIV col0 - 7 col0 FROM tab0 AS cor0
----
-4
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col1 / col0 - 7 col0 FROM tab0 AS cor0
----
-4
-5
-6
query I rowsort
SELECT cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + 22 FROM tab0 cor0
----
22
22
22
query I rowsort
SELECT ALL - + 24 FROM tab0 AS cor0
----
-24
-24
-24
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) + col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - ( tab0.col2 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - 8 - - tab1.col2 * - col0 * col1 AS col1 FROM tab1
----
-36488
-4220
-99848
query I rowsort
SELECT DISTINCT + 89 * - 19 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1691
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col2 + + col0 * ( + col1 ) AS col0 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col1 * col1 + - 83 AS col0 FROM tab1 AS cor0
----
17
593
86
query I rowsort
SELECT - cor0.col1 * - ( - 28 ) FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 49414a734cca73a5a85529a8cae9708c
query I rowsort
SELECT + 81 AS col2 FROM tab0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT ALL + col2 * tab1.col0 DIV + col0 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + col2 * tab1.col0 / + col0 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col2 * 48 AS col1 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT + col0 * + 93 AS col2 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT ALL col2 * - col0 * + col2 FROM tab0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4328
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + ( col1 * 21 ) FROM tab2
----
1239
357
651
query I rowsort
SELECT DISTINCT 44 * + col2 * ( + tab0.col0 + tab0.col0 ) AS col1 FROM tab0
----
3080
642224
69696
query I rowsort
SELECT DISTINCT col0 * + 29 AS col1 FROM tab1
----
1856
2320
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
SELECT ALL - cor0.col1 * CAST( col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - cor0.col1 * CAST ( col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT DISTINCT - - col2 DIV ( - col0 + col2 ) AS col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - - col2 / ( - col0 + col2 ) AS col1 FROM tab2 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-4334
SELECT col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL tab0.col0 * + tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - 46 * 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 14315224519b297ce2cb596bc6e1cb49
query I rowsort
SELECT - + col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 * + col0 * - cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 + 76 * col2 FROM tab0 AS cor0
----
173
2594
6323
query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - cor0.col0 * - 62 + ( - col1 ) + 28 FROM tab0 AS cor0
----
1430
2101
5455
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 11 * col1 + + col0 FROM tab2 AS cor0
----
266
348
727
query I rowsort
SELECT + ( cor0.col2 ) * col1 + cor0.col0 + - col1 * - col2 FROM tab2 AS cor0
----
1371
1681
3146
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL + ( + col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - ( 32 ) + col2 + + col1 FROM tab2 AS cor0
----
23
26
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT DISTINCT - + ( + col1 ) * col0 DIV 49 + - cor0.col2 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
119559
51007
5855
skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - + ( + col1 ) * col0 / 49 + - cor0.col2 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
119559
51007
5855
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 84 col1 FROM tab0 cor0
----
-13
-2
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT ALL ( 92 ) - col0 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-548
-948
14
skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL ( 92 ) - col0 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-548
-948
14
query I rowsort
SELECT + cor0.col0 + col2 * col0 AS col1 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 84 + col0 col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4357
SELECT ALL col0 DIV - cor0.col2 col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL col0 / - cor0.col2 col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 + 1 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 75 * + col0 AS col0 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT ALL + 9 + col1 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 21 FROM tab0 AS cor0
----
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT DISTINCT 61 DIV cor0.col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT 61 / cor0.col0 FROM tab0 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + cor0.col0 * + col0 AS col2 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT - + ( col0 ) * 91 + - col2 FROM tab1 AS cor0
----
-327
-5881
-7376
query I rowsort
SELECT + + 19 FROM tab2 cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 * col2 col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - 72 + col1 FROM tab2 AS cor0
----
-13
-41
-55
query I rowsort
SELECT - - 39 AS col2 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT 75 AS col0 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT 14 + - col2 AS col0 FROM tab1 AS cor0
----
-40
-43
-82
query I rowsort
SELECT + - col1 * cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 25 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1559
671
862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + - col1 * col1 col2 FROM tab2 AS cor0
----
-290
-3482
-962
query I rowsort
SELECT DISTINCT 3 FROM tab0, tab0 AS cor0
----
3
query I rowsort
SELECT ALL - 69 AS col1 FROM tab2
----
-69
-69
-69
query I rowsort
SELECT DISTINCT - 69 + col1 FROM tab2 AS cor0
----
-10
-38
-52
query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 47 * - col1 FROM tab1 cor0
----
-1222
-470
-611
query I rowsort
SELECT DISTINCT 95 + + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
105
108
121
query I rowsort
SELECT + 82 AS col1 FROM tab1
----
82
82
82
query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab1, tab0 AS cor0
----
-99
query I rowsort
SELECT + col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + - 5 * 21 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c0af328d38b82a55707e7cbb373586e8
query I rowsort
SELECT + 0 * + col2 * tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * 73 FROM tab2
----
1241
2263
4307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT - col2 DIV col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4391
SELECT - col2 / col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL 19 + 0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT ALL 41 FROM tab1, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + 9 + col1 AS col2 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab1, tab1 AS cor0
----
-19
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1 AS cor0
----
-81
query I rowsort
SELECT ALL + cor2.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT ALL ( ( cor0.col0 ) ) * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT cor1.col1 + 63 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bda1c5362ab4f03cec95f5fb889c1b0c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT 68 DIV 66 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4402
SELECT 68 / 66 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT tab1.col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 - + tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col2 + cor0.col0 - - ( - col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1327
-572
-695
query I rowsort
SELECT + 32 + - col1 AS col0 FROM tab1 AS cor0
----
19
22
6
query I rowsort
SELECT DISTINCT 17 * - cor0.col1 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT ALL 80 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT 48 * col1 AS col0 FROM tab2 AS cor0
----
1488
2832
816
query I rowsort
SELECT DISTINCT + 71 FROM tab1, tab2 cor0, tab2 cor1
----
71
query I rowsort
SELECT - 34 * + col1 - col1 AS col2 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT col1 - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - col0 + 68 AS col2 FROM tab2 AS cor0
----
-10
-11
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 42 + 46 col2 FROM tab1 AS cor0
----
-2222
-2348
-3986
query I rowsort
SELECT ALL + col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT col0 DIV - col2 + - col1 + col2 FROM tab0 AS cor0
----
-10
-131
-53
skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT col0 / - col2 + - col1 + col2 FROM tab0 AS cor0
----
-10
-131
-53
query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col2 * - col2 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT - col1 DIV 13 AS col2 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-4421
SELECT - col1 / 13 AS col2 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort
SELECT - - col1 * - CAST ( 59 AS REAL ) + col1 / - 25 + + col2 * - col0 FROM tab1 AS cor0
----
-1697
-4238
-8447
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT ALL col1 DIV + col1 col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL col1 / + col1 col2 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT ALL + col0 * col2 DIV col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + col0 * col2 / col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col2 * + col0 + col0 * - col1 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT ALL + col1 DIV col0 + + 70 AS col1 FROM tab0 AS cor0
----
71
72
73
skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + col1 / col0 + + 70 AS col1 FROM tab0 AS cor0
----
71
72
73
query I rowsort
SELECT ALL col2 + - col1 - + col0 * col0 FROM tab1 cor0
----
-4049
-6317
19
query I rowsort
SELECT ALL + + 54 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT + - 66 * + ( col2 ) FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT ALL - - cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col1 * col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab0 AS cor0
----
47
query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col0 - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 74 * cor0.col1 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT DISTINCT + col2 + col1 * 65 FROM tab1 AS cor0
----
1744
707
941
query I rowsort
SELECT + 9 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT - 90 * cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 875942532f6fb601bc9b557bc74686cd
query I rowsort
SELECT DISTINCT + 72 FROM tab2 AS cor0
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT + + cor0.col2 * + col0 + - col1 - + 48 DIV + col0 FROM tab0 AS cor0
----
-63
704
7207
skipif mysql # not compatible
query I rowsort label-4442
SELECT + + cor0.col2 * + col0 + - col1 - + 48 / + col0 FROM tab0 AS cor0
----
-63
704
7207
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) * col2 FROM tab0 cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - ( + cor0.col1 ) + col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
query I rowsort
SELECT DISTINCT - + col2 * 69 FROM tab0 AS cor0
----
-2277
-5658
-69
query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + - 93 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT DISTINCT + col0 + col0 + 18 AS col1 FROM tab0 cor0
----
196
66
88
query I rowsort
SELECT col1 * 23 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT DISTINCT - - col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab0, tab2 AS cor0
----
-54
query I rowsort
SELECT ALL + col1 * + 61 * + col1 + col2 FROM tab2 cor0
----
17667
212367
58648
query I rowsort
SELECT cor0.col2 * + col0 + - 51 AS col2 FROM tab0 AS cor0
----
-16
7247
741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT DISTINCT - - cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - - cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col2 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 32 FROM tab0 cor0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 38 * col0 + col0 + col1 AS col1 FROM tab0 AS cor0
----
1022
1462
3562
onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4462
SELECT - col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + 16 AS col2 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT + ( 29 ) * col2 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT ALL col2 + + 34 FROM tab2 AS cor0
----
60
61
72
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 + 43 AS col1 FROM tab1 AS cor0
----
2959
3292
9259
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT ALL + cor0.col0 DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + cor0.col0 / col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4468
SELECT + + CAST( NULL AS SIGNED ) * 38 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4468
SELECT + + CAST ( NULL AS INTEGER ) * 38 col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 16 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT 28 * col0 AS col1 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT col0 * 83 + - 79 * + col2 FROM tab1
----
-4017
-944
809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4472
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - - 77 FROM tab0 cor0
----
77
77
77
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 + + col2 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
2128
2236
query I rowsort
SELECT ALL + ( cor0.col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + ( 21 ) FROM tab2 AS cor0
----
21
21
21
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0, tab0 AS cor0
----
70
query I rowsort
SELECT - col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 24 FROM tab0
----
24
24
24
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT + + col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4482
SELECT + + col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + ( - col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col1 * - col2 * col0 FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT ALL CAST( 36 AS SIGNED ) FROM tab2
----
36
36
36
skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL CAST ( 36 AS INTEGER ) FROM tab2
----
36
36
36
query I rowsort
SELECT + 18 FROM tab0
----
18
18
18
query I rowsort
SELECT ALL - 59 FROM tab0
----
-59
-59
-59
query I rowsort
SELECT col0 + + col0 * + 91 AS col1 FROM tab1 cor0
----
276
5888
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT ALL + tab0.col1 DIV + col0 + + 16 DIV tab0.col1 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + tab0.col1 / + col0 + + 16 / tab0.col1 AS col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + + col0 col1 FROM tab2
----
165
166
94
query I rowsort
SELECT ALL col1 + + col2 + + col0 AS col1 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT + tab2.col1 - 81 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-22
-50
-64
query I rowsort
SELECT - 79 * + col0 AS col1 FROM tab1
----
-237
-5056
-6320
query I rowsort
SELECT DISTINCT - 40 + + tab0.col2 FROM tab0
----
-39
-7
42
query I rowsort
SELECT + 31 * - 30 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5e015cce2d6d1b80fcb453384875ad69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4496
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - col2 * - 45 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT + col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT col1 DIV col2 + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-4502
SELECT col1 / col2 + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - col1 * + ( - col0 ) + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col1 - 27 * - ( - col1 ) FROM tab2 AS cor0
----
-1534
-442
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - 88 ) col0 FROM tab2 cor0
----
-29
-57
-71
query I rowsort
SELECT ALL - - col0 * ( + 52 ) AS col2 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT + - col0 + 1 AS col2 FROM tab1 cor0
----
-2
-63
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT DISTINCT + - cor0.col1 DIV ( col1 + col0 ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + - cor0.col1 / ( col1 + col0 ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 98 * col2 + ( + 55 ) * col0 + - ( + col2 + + col1 * 4 ) AS col0 FROM tab2
----
2880
6576
7963
query I rowsort
SELECT 97 * col2 FROM tab1
----
5238
5529
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT ALL 62 DIV - col1 FROM tab1
----
-2
-4
-6
skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 62 / - col1 FROM tab1
----
-2
-4
-6
query I rowsort
SELECT - - 33 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col0 + col0 * cor0.col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT + col0 * 9 * 7 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT - col0 * + col2 * col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - col0 * col2 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-208000
-737360
-8751
query I rowsort
SELECT ALL - + 61 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
query I rowsort
SELECT ALL col2 * - ( + 64 + col0 ) FROM tab0 AS cor0
----
-12546
-2904
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT DISTINCT - col0 DIV CAST( 74 AS SIGNED ) FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - col0 / CAST ( 74 AS INTEGER ) FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT col1 DIV 35 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4524
SELECT col1 / 35 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * col2 col0 FROM tab2 cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT - - col2 DIV - ( - col0 ) AS col1 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4526
SELECT - - col2 / - ( - col0 ) AS col1 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT 10 + col1 FROM tab0 AS cor0
----
101
107
96
query I rowsort
SELECT + + col1 * col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col2 - + col0 * + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - col1 - - ( col0 ) AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - + col2 * 97 - - col1 FROM tab1 AS cor0
----
-5212
-5519
-9299
query I rowsort
SELECT - 14 FROM tab1, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT + ( col1 ) + cor0.col1 * 89 AS col0 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT + 15 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT cor0.col1 + 44 AS col0 FROM tab1 AS cor0
----
54
57
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT 7 + + col0 DIV - col0 FROM tab0 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-4536
SELECT 7 + + col0 / - col0 FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - + 39 + col1 FROM tab1 AS cor0
----
-13
-26
-29
query I rowsort
SELECT ALL - 28 FROM tab1, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT DISTINCT ( 2 ) AS col1 FROM tab0
----
2
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT + + col2 DIV + col2 - + col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4542
SELECT + + col2 / + col2 - + col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col1 * col1 * - col2 - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-10693
-24986
-87025
query I rowsort
SELECT ALL + col2 + - cor0.col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + col0 - - col1 * - col2 * col1 FROM tab0 AS cor0
----
-244092
-679131
-9444
query I rowsort
SELECT + 53 * + col2 AS col0 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT ALL + col1 * + col0 + 89 * 22 * - col2 AS col0 FROM tab2 cor0
----
-46306
-52649
-73061
query I rowsort
SELECT - - cor0.col0 + + cor0.col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT DISTINCT - col1 DIV + col0 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - col1 / + col0 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-11
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4551
SELECT col0 * + col0 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
49
6085
6245
skipif mysql # not compatible
query I rowsort label-4551
SELECT col0 * + col0 + col0 / col1 AS col1 FROM tab2 AS cor0
----
49
6085
6245
query I rowsort
SELECT ALL + - 98 * - col1 - + col0 FROM tab2 AS cor0
----
1587
3031
5704
query I rowsort
SELECT + - 14 AS col0 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT ALL + col0 * col1 + - col2 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT DISTINCT 37 DIV col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT 37 / col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL cor0.col0 + - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f6ef2c0a6038e26ee09c3a6f94052755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4557
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT - 54 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT DISTINCT - 47 - - col0 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1178
529
7874
query I rowsort
SELECT + 85 * col0 + col1 FROM tab2 AS cor0
----
626
6689
6732
query I rowsort
SELECT - ( col1 ) * - 7 - col0 FROM tab2 AS cor0
----
210
335
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT ALL - - 93 * col0 + - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
2233
3256
8278
skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - - 93 * col0 + - col1 / - col1 AS col1 FROM tab0 AS cor0
----
2233
3256
8278
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 21 * col0 col2 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT DISTINCT 34 + + 76 FROM tab2, tab1, tab2 AS cor0
----
110
query I rowsort
SELECT 6 * col1 FROM tab2
----
102
186
354
query I rowsort
SELECT DISTINCT 99 + 6 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
105
query I rowsort
SELECT ALL - col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL - 78 + col2 FROM tab2
----
-40
-51
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab0.col0 col2 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col0 - - col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4573
SELECT DISTINCT + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fea8fda1882f172d5a5c79e0b39f7225
onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT col1 DIV - tab1.col2 + + col1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4576
SELECT col1 / - tab1.col2 + + col1 AS col0 FROM tab1
----
10
13
26
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
query I rowsort
SELECT + 18 + tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 32064469d96c313d1022cfd85b0c8b7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col1 - + 70 FROM tab1
----
-44
-57
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT + ( + 54 + col0 ) DIV col1 AS col2 FROM tab1
----
10
11
2
skipif mysql # not compatible
query I rowsort label-4581
SELECT + ( + 54 + col0 ) / col1 AS col2 FROM tab1
----
10
11
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - col2 + - col2 col0 FROM tab2
----
-185
-1995
-3023
query I rowsort
SELECT + ( col2 ) * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - col0 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + - 6 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2456afdac15f7444c618a388f95df84c
query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4588
SELECT CAST( - col1 AS SIGNED ) + col2 * col1 * 3 FROM tab2
----
1921
2480
4543
skipif mysql # not compatible
query I rowsort label-4588
SELECT CAST ( - col1 AS INTEGER ) + col2 * col1 * 3 FROM tab2
----
1921
2480
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT + + CAST( NULL AS SIGNED ) * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4589
SELECT + + CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + 6 ) AS col2 FROM tab1 AS cor0
----
6
query I rowsort
SELECT ALL 22 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT ALL + 65 + - 70 * col0 FROM tab1 AS cor0
----
-145
-4415
-5535
query I rowsort
SELECT ALL + 97 + 73 AS col0 FROM tab0 AS cor0
----
170
170
170
query I rowsort
SELECT - ( col1 ) * col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + 42 * - col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
query I rowsort
SELECT - cor1.col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT 12 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0, tab2 AS cor0
----
-37
query I rowsort
SELECT + ( col0 * col0 ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab1 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab2.col2 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col2 * + col1 * col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 * col1 + col0 AS col0 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 * - col0 + - col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT ALL - + col1 + + col2 * + col1 AS col0 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT col2 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + col1 + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - col1 + + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT DISTINCT col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT col2 / - col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT - col0 + col2 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + col1 * + col2 + - col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT + col0 * tab2.col2 + tab2.col1 + col1 FROM tab2
----
2146
251
3036
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT + 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-4617
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 52 + - col2 - col0 FROM tab1
----
-124
-5
-69
query I rowsort
SELECT 48 + - col1 AS col0 FROM tab1
----
22
35
38
query I rowsort
SELECT DISTINCT + 88 + col2 AS col1 FROM tab1
----
142
145
184
query I rowsort
SELECT DISTINCT - - col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT ALL ( ( + col2 ) ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL ( ( + col2 ) ) / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT - + 69 AS col0 FROM tab1 AS cor0
----
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT ALL - col1 + - cor0.col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - col1 + - cor0.col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT ALL 39 * ( col1 ) + col0 FROM tab2
----
1216
2379
742
query I rowsort
SELECT DISTINCT 17 + tab2.col2 FROM tab2
----
43
44
55
query I rowsort
SELECT ALL 58 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + 1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - ( - 93 ) + - col0 AS col1 FROM tab0 AS cor0
----
4
58
69
query I rowsort
SELECT DISTINCT + col0 * + col0 * col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT ALL + 9 DIV col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + 9 / col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + col2 * + col0 AS col1 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT ALL col0 + cor0.col0 * + col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT ALL - - col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 + cor0.col1 * col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT - + 2 FROM tab1 AS cor0
----
-2
query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( + col1 ) * col0 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + 6 * col0 AS col0 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT + col1 + + col0 * - col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT + 90 * + col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT + 4 + + col0 * col0 AS col1 FROM tab2
----
53
6088
6245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + col2 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT + + col1 * - 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 * + col2 col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT ALL col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 + - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * - col0 col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT + col2 * col2 + col2 DIV tab0.col1 FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-4651
SELECT + col2 * col2 + col2 / tab0.col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 * tab1.col2 FROM tab1 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col1 col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col2 * col1 * cor0.col1 + - col0 AS col2 FROM tab0 cor0
----
244044
678953
9374
query I rowsort
SELECT ALL col1 + col2 * - col2 AS col2 FROM tab2
----
-1427
-617
-698
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col0 * + col0
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 >= NULL
----
query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT ALL + col2 + + col2 DIV + col0 - cor0.col1 DIV + col0 FROM tab2 AS cor0
----
26
26
38
skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + col2 + + col2 / + col0 - cor0.col1 / + col0 FROM tab2 AS cor0
----
26
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * cor0.col0 col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col2 + tab2.col1 * - tab2.col0 FROM tab2
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + col2 + col2 + + col0 FROM tab1
----
111
178
272
query I rowsort
SELECT DISTINCT + col1 * - col0 * + tab0.col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL col0 * + tab2.col2 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT col1 DIV tab0.col1 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4667
SELECT col1 / tab0.col1 AS col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col2 + + col1 * - col1 AS col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + tab1.col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + col1 >= col2
----
query I rowsort
SELECT tab0.col0 * - col2 + - col1 AS col2 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab0
----
0
query I rowsort
SELECT - tab2.col1 * - col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col0 - col2 AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT col2 - - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + - col0 * - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT cor0.col2 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + cor0.col0 * col2 - + col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT ALL col2 * + col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col2 * + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col1 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + - col1 + col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT DISTINCT - - cor0.col0 DIV - col1 + + col1 AS col1 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - - cor0.col0 / - col1 + + col1 AS col1 FROM tab2 AS cor0
----
13
31
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * tab1.col2 * - col0 col1 FROM tab1 WHERE ( NULL ) >= ( NULL )
----
query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col1 * 76 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 - col1 FROM tab2
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT ALL + col2 - + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + col2 - + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + tab0.col0 + ( col2 ) + col0 * col2 AS col1 FROM tab0
----
71
7469
849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 col1 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4698
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col2 * - ( col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col1 * col2 * tab0.col2 AS col2 FROM tab0
----
611884
93654
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT ALL CAST( - col2 * - col1 AS SIGNED ) + col0 AS col2 FROM tab1
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL CAST ( - col2 * - col1 AS INTEGER ) + col0 AS col2 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + 35 + - col1 col1 FROM tab0 AS cor0
----
2528
2534
2539
query I rowsort
SELECT 74 * - cor0.col2 + + col1 FROM tab2 cor0
----
-1865
-1967
-2795
query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 10 * - col1 AS col2 FROM tab1 cor0
----
-100
-130
-260
query I rowsort
SELECT 24 * col1 + - col0 * col0 * ( + col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-40710
-82875
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4707
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( col0 ) + col2 + + 18 AS col2 FROM tab2 AS cor0
----
122
135
52
query I rowsort
SELECT ( - col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 66 + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT 22 AS col1 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT ALL 94 * + col1 FROM tab0
----
8084
8554
9118
query I rowsort
SELECT ( + cor0.col1 ) * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 * ( + cor0.col0 ) + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT col1 * + CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4718
SELECT col1 * + CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - - col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL col1 + tab0.col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT + col1 - - col1 * col2 DIV - col0 FROM tab0 AS cor0
----
-32
8
95
skipif mysql # not compatible
query I rowsort label-4721
SELECT + col1 - - col1 * col2 / - col0 FROM tab0 AS cor0
----
-32
8
95
query I rowsort
SELECT DISTINCT + col1 + 1 * ( col0 ) * col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + col1 + - 92 FROM tab2 cor0
----
-33
-61
-75
query I rowsort
SELECT - + col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 * + ( col0 + + col1 ) FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT ALL - - col0 * 68 + - cor0.col0 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + + col0 + ( col0 * col0 ) + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-133
3318
4134
query I rowsort
SELECT + col2 + + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + cor0.col1 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 + - 51 * col0 AS col2 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT ALL - + col1 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT + + col0 * + col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL - + col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - ( col2 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + col1 - - 32 FROM tab0 AS cor0
----
-54
-59
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT col0 DIV - col2 - + ( - col1 + + col2 ) AS col0 FROM tab1
----
-28
-48
-83
skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT col0 / - col2 - + ( - col1 + + col2 ) AS col0 FROM tab1
----
-28
-48
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT ALL col1 DIV ( + 21 ) - col0 DIV - col0 AS col1 FROM tab2
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL col1 / ( + 21 ) - col0 / - col0 AS col1 FROM tab2
----
1
2
3
query I rowsort
SELECT col1 * + ( col0 ) + col0 AS col0 FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4741
SELECT col1 + CAST( NULL AS SIGNED ) * col1 + - tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4741
SELECT col1 + CAST ( NULL AS INTEGER ) * col1 + - tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT + ( - col1 ) + 94 * - col1 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT DISTINCT - col0 - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + 40 + col1 AS col2 FROM tab1 AS cor0
----
50
53
66
query I rowsort
SELECT - 6 FROM tab2, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT cor0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL 18 + tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c20540cd8118f7f814eb949c69a86f8d
query I rowsort
SELECT DISTINCT 79 FROM tab1
----
79
query I rowsort
SELECT ALL - 0 * - col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + + 51 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT DISTINCT 19 + - col2 AS col1 FROM tab1 AS cor0
----
-35
-38
-77
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 * + col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 14 + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
111
2852
7476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4756
SELECT DISTINCT - col0 + - col0 * CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - col0 + - col0 * CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 + - col1 * 72 FROM tab0 AS cor0
----
-6159
-6470
-6983
query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 17 * - col2 + - col0 FROM tab0 AS cor0
----
-18
1305
537
onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT + - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + - col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT + col1 DIV + cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4761
SELECT + col1 / + cor0.col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - - col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - - 11 * cor0.col0 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT col1 * col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT col2 + tab0.col1 + + col2 DIV - 13 FROM tab0
----
117
167
98
skipif mysql # not compatible
query I rowsort label-4766
SELECT col2 + tab0.col1 + + col2 / - 13 FROM tab0
----
117
167
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4767
SELECT 0 / col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4767
SELECT 0 / col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 2 FROM tab1 AS cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT + cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4769
SELECT + cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - 98 * - col0 AS col2 FROM tab1
----
294
6272
7840
query I rowsort
SELECT - ( 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4772
SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4772
SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 43 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT + cor1.col1 + + cor1.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
29
74
93
query I rowsort
SELECT ALL - - ( 98 ) AS col2 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT 82 + ( col2 ) AS col1 FROM tab0 cor0
----
115
164
83
query I rowsort
SELECT ALL + - ( - 25 ) + + col0 - + col1 * - col0 AS col0 FROM tab2 cor0
----
1447
249
4705
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT 21 * col2 DIV - col1 + + 92 col0 FROM tab0
----
74
84
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4778
SELECT 21 * col2 / - col1 + + 92 col0 FROM tab0
----
74
84
92
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 cor0, tab0 AS cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * + col0 col0 FROM tab2
----
616
6864
6952
query I rowsort
SELECT DISTINCT 61 * + 72 + col2 AS col1 FROM tab1
----
4446
4449
4488
query I rowsort
SELECT + 23 + + 36 + col1 AS col1 FROM tab0
----
145
150
156
query I rowsort
SELECT ALL + - col2 * - 1 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 55 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4785
SELECT DISTINCT + col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - 70 FROM tab2, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
onlyif mysql # use DIV operator for integer division
query I rowsort label-4788
SELECT + col2 DIV - col0 - col1 AS col0 FROM tab0 AS cor0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-4788
SELECT + col2 / - col0 - col1 AS col0 FROM tab0 AS cor0
----
-87
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL - 24 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - col1 - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col1 AS col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT + 58 DIV cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954
skipif mysql # not compatible
query I rowsort label-4795
SELECT + 58 / cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954
query I rowsort
SELECT + + 43 * col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT 47 * col0 FROM tab1 AS cor0
----
141
3008
3760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4798
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 40 * 3 + - col1 FROM tab1 AS cor0
----
107
110
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT col1 DIV - col0 col2 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT col1 / - col0 col2 FROM tab1
----
-8
0
0
query I rowsort
SELECT ALL + tab0.col0 - col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + + 68 * col2 FROM tab2 AS cor0
----
1768
1836
2584
onlyif mysql # use DIV operator for integer division
query I rowsort label-4803
SELECT - cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4803
SELECT - cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT - - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4804
SELECT - - cor0.col2 / + col1 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT - - col2 DIV + cor0.col2 - col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4805
SELECT - - col2 / + cor0.col2 - col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + + col2 - col0 * - col0 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab1, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - 71 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT col0 DIV + col1 AS col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT col0 / + col1 AS col0 FROM tab1
----
0
6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e
query I rowsort
SELECT DISTINCT + cor0.col1 * + 4 + col0 + col2 * col0 FROM tab2 AS cor0
----
2342
3149
320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT - ( - cor0.col0 ) DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4814
SELECT - ( - cor0.col0 ) / col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + + 59 AS col0 FROM tab2 AS cor0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ALL + 75 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 75 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 * col0 col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT - ( col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT + col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4819
SELECT + col1 / col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT - 70 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4820
SELECT - 70 / col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT - col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4821
SELECT - col0 / cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col1 - col2 * - cor0.col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + - col1 * - col1 - - col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + col2 - col0 * - 66 FROM tab2 AS cor0
----
489
5174
5252
query I rowsort
SELECT cor0.col1 * - cor0.col2 - - col2 * col1 * col1 AS col2 FROM tab0 AS cor0
----
241230
671580
9312
query I rowsort
SELECT ALL - + col1 - + 49 * - 82 AS col2 FROM tab1 AS cor0
----
3992
4005
4008
query I rowsort
SELECT ALL + col1 * - 31 - + col2 FROM tab0 AS cor0
----
-2699
-2903
-3008
query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT - ( 37 ) * tab0.col2 + + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4829
SELECT - ( 37 ) * tab0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 + + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - col0 + 59 AS col1 FROM tab1 AS cor0
----
-21
-5
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4833
SELECT + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4833
SELECT + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + 41 + col0 col2 FROM tab0
----
-21
-2773
-7332
query I rowsort
SELECT ALL col2 - - ( + col1 ) * col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col0 * + tab0.col1 * tab0.col0 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 - + col0 * col1 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT + col1 DIV col0 + col0 * tab0.col0 - col2 AS col0 FROM tab0
----
1226
546
7840
skipif mysql # not compatible
query I rowsort label-4839
SELECT + col1 / col0 + col0 * tab0.col0 - col2 AS col0 FROM tab0
----
1226
546
7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT DISTINCT - 91 DIV - col2 FROM tab0 cor0
----
1
2
91
skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - 91 / - col2 FROM tab0 cor0
----
1
2
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT ALL - col0 * col2 DIV - col1 + - 67 AS col2 FROM tab2 AS cor0
----
-33
-61
109
skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - col0 * col2 / - col1 + - 67 AS col2 FROM tab2 AS cor0
----
-33
-61
109
query I rowsort
SELECT DISTINCT + - col2 - - col1 * + 21 AS col0 FROM tab1 AS cor0
----
153
177
492
query I rowsort
SELECT ALL col1 + col2 * 91 AS col1 FROM tab2 cor0
----
2425
2488
3475
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col0 + + cor0.col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col1 * 36 FROM tab0
----
-3096
-3276
-3492
query I rowsort
SELECT ALL - 58 FROM tab2, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT DISTINCT - 75 FROM tab1
----
-75
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT col2 * - col1 * 87 AS col1 FROM tab2 AS cor0
----
-133458
-56202
-72819
query I rowsort
SELECT + 4 * + col0 AS col1 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col2 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT + col0 * + col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 74 * + cor0.col2 FROM tab0 AS cor0
----
2442
6068
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 * col1 - 79 FROM tab2
----
210
3402
882
query I rowsort
SELECT 60 + - col0 AS col1 FROM tab0
----
-29
25
36
query I rowsort
SELECT cor0.col1 * - col1 * + ( + col1 ) FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT ALL 40 DIV - col0 FROM tab2
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL 40 / - col0 FROM tab2
----
-5
0
0
query I rowsort
SELECT DISTINCT + col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT - - col1 + CAST( NULL AS DECIMAL ) * col1 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4864
SELECT - - col1 + CAST ( NULL AS REAL ) * col1 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + 23 col2 FROM tab1 AS cor0
----
-4073
-6377
14
query I rowsort
SELECT ALL col0 * col2 - - col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col2 + ( 74 ) FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT ALL col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col2 * - col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col1 + - 60 AS col0 FROM tab2 AS cor0
----
-1
-29
-43
query I rowsort
SELECT ALL - col0 * 4 FROM tab1 AS cor0
----
-12
-256
-320
query I rowsort
SELECT + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col1 * 8 AS col0 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT - cor0.col2 * + 78 AS col0 FROM tab2 AS cor0
----
-2028
-2106
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT col2 * col2 DIV + 96 FROM tab2 AS cor0
----
15
7
7
skipif mysql # not compatible
query I rowsort label-4875
SELECT col2 * col2 / + 96 FROM tab2 AS cor0
----
15
7
7
query I rowsort
SELECT DISTINCT + + col0 + + 1 * + 49 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT col0 + col0 * + col0 + - 73 FROM tab1 cor0
----
-61
4087
6407
query I rowsort
SELECT + col1 + 19 FROM tab1 cor0
----
29
32
45
query I rowsort
SELECT DISTINCT + 80 + - col1 + col0 AS col2 FROM tab1
----
134
147
57
query I rowsort
SELECT ALL + 55 + - tab2.col2 + + col2 * col1 * 38 FROM tab2
----
24565
31834
58321
query I rowsort
SELECT ALL + 75 + 6 FROM tab1
----
81
81
81
query I rowsort
SELECT ALL - - 71 * + col0 AS col2 FROM tab1 cor0
----
213
4544
5680
query I rowsort
SELECT DISTINCT - col1 * + 69 + col1 + 99 FROM tab1 AS cor0
----
-1669
-581
-785
query I rowsort
SELECT ALL + cor0.col1 * - col1 * - col0 + - 18 AS col0 FROM tab0 AS cor0
----
177486
329297
736991
query I rowsort
SELECT DISTINCT - cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col2 * col0 + + col2 * col2 FROM tab1 AS cor0
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT - - col1 + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-4887
SELECT - - col1 + col1 / - col0 AS col2 FROM tab2 AS cor0
----
17
27
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4888
SELECT ALL - + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 - col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + + 62 + col0 FROM tab1 AS cor0
----
126
142
65
query I rowsort
SELECT ALL - cor0.col0 * + col2 + - col1 AS col0 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT - + 18 AS col1 FROM tab0 AS cor0
----
-18
-18
-18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT CAST( 92 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
146
149
188
skipif mysql # not compatible
query I rowsort label-4893
SELECT CAST ( 92 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
146
149
188
query I rowsort
SELECT ALL + ( 63 ) * col2 + col0 AS col1 FROM tab0 AS cor0
----
2103
5255
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4895
SELECT + 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-4895
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 8 * + col1 * + col2 AS col1 FROM tab1 AS cor0
----
11232
4560
9984
query I rowsort
SELECT + 98 * cor0.col2 AS col0 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - 16 * col2 FROM tab2 AS cor0
----
416
432
608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT col0 + col1 * col2 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 84 col2 FROM tab1 AS cor0
----
84
query I rowsort
SELECT + 4 * tab0.col1 AS col2 FROM tab0
----
344
364
388
query I rowsort
SELECT ALL col0 * - col1 * 19 FROM tab0
----
-153881
-39216
-64505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4905
SELECT - col1 + + CAST( col1 AS SIGNED ) * - cor0.col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1010
-17602
-2210
skipif mysql # not compatible
query I rowsort label-4905
SELECT - col1 + + CAST ( col1 AS INTEGER ) * - cor0.col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1010
-17602
-2210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT ALL + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT + col0 - + CAST( + cor0.col0 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4908
SELECT + col0 - + CAST ( + cor0.col0 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL - + col1 + + col0 + col0 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT DISTINCT - col2 + - 6 * cor0.col1 FROM tab0 AS cor0
----
-549
-583
-628
query I rowsort
SELECT DISTINCT + + col1 - - ( col1 ) * + cor0.col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT + col2 * cor0.col0 + + col0 DIV col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-4912
SELECT + col2 * cor0.col0 + + col0 / col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 - - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * - col2 + col2 * + col0 + 14 FROM tab2 AS cor0
----
-634
2370
508
query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + col1 + - 56 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT ALL + cor0.col0 * col1 + + ( cor0.col0 * col1 ) AS col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT ALL + - cor0.col2 * ( ( + col0 ) ) FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 17 + col1 * cor0.col1 AS col1 FROM tab1 cor0
----
117
186
693
onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT ALL 72 DIV cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4
skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL 72 / cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - cor0.col0 * - 59 FROM tab2 cor0
----
413
4602
4661
query I rowsort
SELECT - 7 + col0 + + col2 * 47 AS col2 FROM tab1 AS cor0
----
2534
2736
4585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT + + 42 * + col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT - 48 + 14 AS col2 FROM tab0 AS cor0
----
-34
-34
-34
query I rowsort
SELECT + 10 AS col1 FROM tab1 cor0
----
10
10
10
query I rowsort
SELECT DISTINCT 18 + col2 FROM tab2 AS cor0
----
44
45
56
query I rowsort
SELECT DISTINCT + ( col2 ) + - 43 FROM tab0 AS cor0
----
-10
-42
39
query I rowsort
SELECT ALL + 34 * cor0.col0 + - col1 FROM tab2 AS cor0
----
207
2593
2669
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + 33 * col0 AS col2 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - col0 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + col2 * - cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + ( + col1 ) + + col0 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 * - 69 - + col1 * + col2 * - 93 AS col1 FROM tab1 AS cor0
----
116961
132366
53700
query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 9 + + tab2.col1 FROM tab2
----
26
40
68
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 67 FROM tab1
----
67
67
67
query I rowsort
SELECT DISTINCT - ( col2 + + col2 ) AS col0 FROM tab1
----
-108
-114
-192
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
query I rowsort
SELECT - cor0.col2 * - ( + ( - col0 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 6 FROM tab2
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT col0 DIV + ( - 17 * - col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4952
SELECT col0 / + ( - 17 * - col1 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 82 FROM tab2, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT - tab0.col1 * + 83 FROM tab0
----
-7138
-7553
-8051
query I rowsort
SELECT DISTINCT - col2 * + ( + 5 ) + + col0 FROM tab0
----
-141
-321
30
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + col1 + - 65 * col0 AS col2 FROM tab0 AS cor0
----
-1474
-2178
-5694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + tab2.col0 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + 6 * col2 FROM tab0
----
198
492
6
query I rowsort
SELECT - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 6 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT - + 58 FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL - 70 AS col0 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT col1 * col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL cor0.col0 + col0 * - col2 * cor0.col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT - + col1 DIV + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4968
SELECT - + col1 / + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + 6 * col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7252
7747
9199
query I rowsort
SELECT - 28 + + col1 * ( - col0 ) + + col2 * + col0 FROM tab0 cor0
----
-1300
-3388
-829
query I rowsort
SELECT - col0 * + col1 + + cor0.col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT + - 84 FROM tab1 cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT DISTINCT + 58 * col0 DIV - col0 + - col1 + col0 FROM tab1 cor0
----
-4
-81
9
skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT + 58 * col0 / - col0 + - col1 + col0 FROM tab1 cor0
----
-4
-81
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT ALL - + CAST( + 67 AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0
----
-34
-66
15
skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - + CAST ( + 67 AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0
----
-34
-66
15
query I rowsort
SELECT - col2 * 1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 81 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT + + 63 + col0 * 26 FROM tab0 cor0
----
2377
687
973
query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1 AS cor0
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT - - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4979
SELECT - - col0 / - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT DISTINCT + 59 + - col1 FROM tab1 AS cor0
----
33
46
49
query I rowsort
SELECT ALL + + cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT 99 * - col1 AS col0 FROM tab0
----
-8514
-9009
-9603
query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2
----
-60
query I rowsort
SELECT col2 + + 18 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT DISTINCT - - col2 * + 13 - col0 FROM tab0 AS cor0
----
-22
405
977
query I rowsort
SELECT ALL - col1 + ( col1 ) * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT cor0.col1 * - col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT + col0 * - col0 + + 13 * col2 AS col0 FROM tab0 AS cor0
----
-1212
-147
-6855
query I rowsort
SELECT ALL - 73 * - col2 FROM tab0
----
2409
5986
73
query I rowsort
SELECT ALL - col2 * + col2 AS col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT ALL col1 * cor0.col1 DIV 6 + col0 FROM tab0 AS cor0
----
1256
1469
1603
skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL col1 * cor0.col1 / 6 + col0 FROM tab0 AS cor0
----
1256
1469
1603
query I rowsort
SELECT - - cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col0 * + col1 + 42 FROM tab2 cor0
----
1385
259
4644
query I rowsort
SELECT tab0.col1 * + col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT - + ( - col1 ) DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4996
SELECT - + ( - col1 ) / - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 29 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2035
3366
8070
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 WHERE NULL = NULL
----
query I rowsort
SELECT - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - - col2 * ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col2 + 62 * + col2 AS col1 FROM tab0 AS cor0
----
2079
5166
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT ALL CAST( NULL AS SIGNED ) + - 7 col1 FROM tab1, 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-5003
SELECT ALL CAST ( NULL AS INTEGER ) + - 7 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * - col2 - + col2 * col2 AS col1 FROM tab2 AS cor0
----
-533
1430
1637
query I rowsort
SELECT - - ( col1 ) * cor0.col1 + col0 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-116171
-4898
-50745
query I rowsort
SELECT - 72 * col2 + col2 FROM tab2 AS cor0
----
-1846
-1917
-2698
query I rowsort
SELECT ALL col1 * col2 + cor0.col1 * 78 AS col1 FROM tab2 AS cor0
----
1972
3255
6136
query I rowsort
SELECT DISTINCT + col1 * + 94 - col0 AS col0 FROM tab2 AS cor0
----
1519
2907
5468
query I rowsort
SELECT 93 AS col1 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT ALL col0 + col1 * + col2 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT 71 + - 25 FROM tab1 AS cor0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT DISTINCT col1 + ( + col2 ) DIV col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT col1 + ( + col2 ) / col2 FROM tab0
----
87
92
98
query I rowsort
SELECT col1 + ( col0 * - col0 ) FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT tab2.col1 + + tab2.col0 + col1 AS col1 FROM tab2
----
113
196
69
query I rowsort
SELECT - col1 * - tab1.col0 + col0 * + col2 FROM tab1
----
240
4288
8720
query I rowsort
SELECT DISTINCT col0 + 72 FROM tab1
----
136
152
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT - col0 - CAST( NULL AS SIGNED ) * - col1 / - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5018
SELECT - col0 - CAST ( NULL AS INTEGER ) * - col1 / - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + ( - col1 ) AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT ( + 3 ) AS col0 FROM tab1
----
3
query I rowsort
SELECT - + ( + col0 ) + col2 * - ( - 71 ) * + col0 + cor0.col2 FROM tab0 AS cor0
----
2451
518151
56241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT DISTINCT CAST( + 18 AS SIGNED ) FROM tab2 cor0
----
18
skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT CAST ( + 18 AS INTEGER ) FROM tab2 cor0
----
18
query I rowsort
SELECT DISTINCT col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - ( - cor0.col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 66 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
-17
6018
6175
query I rowsort
SELECT ALL + + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT 30 * + col2 + + col0 + + col1 FROM tab0 AS cor0
----
1100
162
2640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col0 * 79 AS col0 FROM tab2 AS cor0
----
553
6162
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * + 13 col1 FROM tab0 cor0
----
-559
-559
-559
query I rowsort
SELECT ALL col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 9 AS col2 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT ALL + - col1 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col2 - + tab2.col0 * ( 83 ) * col1 AS col1 FROM tab2
----
-111507
-18038
-381992
query I rowsort
SELECT 43 + col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT - 10 + + cor0.col2 FROM tab0 AS cor0
----
-9
23
72
query I rowsort
SELECT - 96 + col1 AS col0 FROM tab2 AS cor0
----
-37
-65
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT col2 DIV - col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5038
SELECT col2 / - col2 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + col1 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - - col2 * col0 - - ( col0 ) AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT col0 + ( ( - col1 ) ) FROM tab0
----
-2
-62
query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 * - 79 AS col1 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT - + cor0.col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + 93 AS col2 FROM tab1
----
93
93
93
query I rowsort
SELECT ALL ( col2 ) * col1 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT ALL CAST( 2 AS SIGNED ) AS col1 FROM tab0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL CAST ( 2 AS INTEGER ) AS col1 FROM tab0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 95 * - 70 AS col0 FROM tab0
----
-6650
-6650
-6650
query I rowsort
SELECT DISTINCT + ( - 99 ) * - tab2.col2 FROM tab2
----
2574
2673
3762
query I rowsort
SELECT + 48 AS col2 FROM tab0
----
48
48
48
query I rowsort
SELECT ALL cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col2 * col1 - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col1 + + col1 * col2 col0 FROM tab1 AS cor0
----
1079
470
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT 58 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
155
2896
7520
query I rowsort
SELECT + 24 + col2 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT DISTINCT col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col1 + - col1 * + col0 * col2 - col2 * col2 * col0 FROM tab0 AS cor0
----
-1262463
-3333
-94162
query I rowsort
SELECT col1 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col0 + + CAST ( - 38 + col2 AS REAL ) col2 FROM tab0
----
-2
133
19
query I rowsort
SELECT + col2 + - cor0.col2 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + col0 + - 86 AS col1 FROM tab2 AS cor0
----
-7
-79
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT col2 * col2 + + col1 DIV - cor0.col1 FROM tab0 AS cor0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-5067
SELECT col2 * col2 + + col1 / - cor0.col1 FROM tab0 AS cor0
----
0
1088
6723
onlyif mysql # use DIV operator for integer division
query I rowsort label-5068
SELECT ALL col0 DIV - ( + col0 * col0 ) + + col2 * - col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL col0 / - ( + col0 * col0 ) + + col2 * - col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5069
SELECT ALL + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * - col0 + + 51 AS col2 FROM tab1 cor0
----
4147
60
6451
query I rowsort
SELECT col1 + col0 * - col0 AS col2 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col2 * - col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 * + col0 * cor0.col1 AS col2 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT ALL - col0 * ( col0 ) + + col0 * col2 FROM tab2 AS cor0
----
-3239
-4056
140
onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT DISTINCT - - cor0.col1 DIV - 73 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - - cor0.col1 / - 73 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5077
SELECT + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT 47 AS col0 FROM tab1 cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + + 35 AS col1 FROM tab2 cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT DISTINCT + cor0.col2 + col1 DIV - col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT + cor0.col2 + col1 / - col0 FROM tab0 AS cor0
----
-1
30
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT DISTINCT CAST( + 12 AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1152
-648
-684
skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT ALL - col1 * - 87 + - col1 AS col1 FROM tab0 AS cor0
----
7396
7826
8342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT - cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL + col2 + col1 + col1 * col1 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT ALL + col2 * 12 FROM tab2
----
312
324
456
query I rowsort
SELECT + col1 * + 26 FROM tab2 AS cor0
----
1534
442
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col2 * col1 col2 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col1 col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 + + col0 FROM tab2 cor0
----
104
117
34
query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IN ( tab1.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT + col1 DIV + col1 + + col0 * + col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-5093
SELECT + col1 / + col1 + + col0 * + col1 FROM tab0 AS cor0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-5094
SELECT ALL + cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 * col2 ) AND + col0 + - col0 * col2 / + col0
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + col1 * col0 * - col1 - col2 ) AND - col0
----
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT col1 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5100
SELECT col1 / col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL col1 * - col2 + col0 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL - 40 + - col2 * + col0 AS col2 FROM tab1
----
-202
-3688
-7720
query I rowsort
SELECT ( col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 + col2 + - tab2.col2 * col0 FROM tab2
----
-131
-1943
-2947
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT col1 * col1 + - col2 FROM tab2
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 - - col1 * - col2 col2 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT + col2 - - cor0.col2 AS col0 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - 37 * col2 + 72 FROM tab2
----
-1334
-890
-927
query I rowsort
SELECT ALL + col0 * col0 + col2 + - 72 AS col2 FROM tab0
----
1154
537
7931
query I rowsort
SELECT ALL col2 * 63 FROM tab0 AS cor0
----
2079
5166
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT - col0 * + col2 + ( 0 ) DIV - col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-5112
SELECT - col0 * + col2 + ( 0 ) / - col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 + col0 col1 FROM tab0
----
118
53
64
query I rowsort
SELECT ALL - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT + cor0.col0 * - col0 * + cor0.col2 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 + 61 FROM tab1
----
71
74
87
query I rowsort
SELECT - col0 * cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col1 * + col2 + 55 * + col2 AS col0 FROM tab0 AS cor0
----
11972
152
4653
query I rowsort
SELECT DISTINCT - + col1 * + ( 64 ) AS col0 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT cor0.col1 * - ( col0 ) AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col0 * ( + col1 * col0 ) + 53 AS col2 FROM tab0 AS cor0
----
118878
49589
720864
query I rowsort
SELECT DISTINCT - 1 * 38 - col1 * + ( 76 ) FROM tab0
----
-6574
-6954
-7410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * 82 * - col1 + col2 - + col0 col0 FROM tab0
----
-232707
-611891
-7988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5124
SELECT ALL - CAST( + 38 AS SIGNED ) - col2 AS col0 FROM tab1
----
-134
-92
-95
skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - CAST ( + 38 AS INTEGER ) - col2 AS col0 FROM tab1
----
-134
-92
-95
query I rowsort
SELECT ( - ( col0 ) ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL col0 - + 71 AS col1 FROM tab2
----
-64
7
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 - col2 col2 FROM tab0 AS cor0
----
57
8
89
query I rowsort
SELECT ALL col1 + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - col0 * 88 - + col2 FROM tab0 AS cor0
----
-2145
-3081
-7914
query I rowsort
SELECT + col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT 84 * + col0 AS col1 FROM tab0 AS cor0
----
2016
2940
7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT + col1 * col0 + ( col1 ) + col0 DIV 1 AS col2 FROM tab0 cor0
----
2174
3527
8279
skipif mysql # not compatible
query I rowsort label-5132
SELECT + col1 * col0 + ( col1 ) + col0 / 1 AS col2 FROM tab0 cor0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 53 + - col1 * - 14 + + col1 * - col0 FROM tab2 AS cor0
----
-1158
-3829
164
query I rowsort
SELECT cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - ( col1 ) * col1 * + col0 AS col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5139
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col1 * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + 69 * col2 AS col2 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT DISTINCT tab2.col1 * col1 * col0 AS col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT col1 + + col2 + col0 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT - + ( cor0.col2 ) DIV + 91 + + col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
82
skipif mysql # not compatible
query I rowsort label-5144
SELECT - + ( cor0.col2 ) / + 91 + + col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 + + col1 * + col0 col0 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT 49 + + col1 * col1 AS col2 FROM tab2
----
1010
338
3530
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba
query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab1 AS cor0
----
-22
query I rowsort
SELECT ALL col1 * col0 + 77 + + col0 FROM tab1 cor0
----
1197
158
781
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT ALL col0 + + cor0.col2 * CAST( 33 AS SIGNED ) FROM tab2 AS cor0
----
1333
898
936
skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL col0 + + cor0.col2 * CAST ( 33 AS INTEGER ) FROM tab2 AS cor0
----
1333
898
936
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5
query I rowsort
SELECT - - col0 * cor0.col0 + 30 AS col0 FROM tab2 AS cor0
----
6114
6271
79
query I rowsort
SELECT col2 * ( col0 ) + col1 * col2 + - col1 FROM tab1 AS cor0
----
1540
4208
8915
query I rowsort
SELECT DISTINCT + tab2.col2 * tab2.col0 + 91 + col1 * tab2.col2 FROM tab2
----
1117
3653
3739
query I rowsort
SELECT 71 + col0 - - 59 * col1 FROM tab0
----
5169
5529
5829
query I rowsort
SELECT + + col1 + 89 FROM tab0 AS cor0
----
175
180
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT ALL + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - col0 + + 49 FROM tab2 AS cor0
----
-29
-30
42
query I rowsort
SELECT ALL + col2 * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - 83 + col1 * + col1 + - ( col1 ) FROM tab1
----
567
7
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT - col2 * + col2 + + CAST( + col2 AS SIGNED ) + tab2.col2 FROM tab2
----
-1368
-624
-675
skipif mysql # not compatible
query I rowsort label-5161
SELECT - col2 * + col2 + + CAST ( + col2 AS INTEGER ) + tab2.col2 FROM tab2
----
-1368
-624
-675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab0.col2 * col1 col0 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT col2 + col2 * ( col2 ) FROM tab0
----
1122
2
6806
query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT + 25 + - col2 * - ( tab1.col1 ) AS col2 FROM tab1
----
1273
1429
595
query I rowsort
SELECT + - 68 AS col0 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT col0 + 50 FROM tab1 cor0
----
114
130
53
query I rowsort
SELECT DISTINCT + col1 + - 21 FROM tab0 AS cor0
----
65
70
76
query I rowsort
SELECT ALL + ( cor0.col2 ) - + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 91 * - col2 AS col2 FROM tab0 AS cor0
----
-3185
-664118
-72072
query I rowsort
SELECT ALL ( - col1 ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT DISTINCT col0 DIV + col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT col0 / + col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - + col1 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 + col0 AS col2 FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT ALL - - 13 + col0 DIV cor0.col1 col2 FROM tab0 AS cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - - 13 + col0 / cor0.col1 col2 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * - ( + col1 + - col2 ) FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT + col0 + + 49 FROM tab0
----
138
73
84
query I rowsort
SELECT col2 + + tab1.col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + tab1.col0 + 10 * - col0 AS col0 FROM tab1
----
-27
-576
-720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab2, tab1 AS cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT col2 DIV - col0 + col1 AS col1 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-5185
SELECT col2 / - col0 + col1 AS col1 FROM tab1
----
10
12
8
query I rowsort
SELECT + col0 * col2 - + col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT DISTINCT col0 - - 6 AS col1 FROM tab2
----
13
84
85
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab2
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT 6 * 85 - tab1.col0 AS col2 FROM tab1
----
430
446
507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 25 col2 FROM tab1
----
-250
-325
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT CAST( NULL AS SIGNED ) + - 57 * + col0 + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5191
SELECT CAST ( NULL AS INTEGER ) + - 57 * + col0 + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 89 * col0 AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT ALL col2 + col2 + col1 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT DISTINCT + col0 + - 60 DIV col2 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + col0 + - 60 / col2 FROM tab1 AS cor0
----
2
63
80
query I rowsort
SELECT DISTINCT - + 32 FROM tab1 cor0
----
-32
query I rowsort
SELECT DISTINCT - - 98 - + col1 * - cor0.col2 * 45 FROM tab0 AS cor0
----
127808
335888
4463
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT + ( + 3 ) * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5197
SELECT + ( + 3 ) * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 43 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT DISTINCT ( + col0 ) * - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT ( + col0 ) * - cor0.col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * + 80 FROM tab0 cor0
----
1920
2800
7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5203
SELECT col2 + CAST( NULL AS SIGNED ) * - col2 / - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5203
SELECT col2 + CAST ( NULL AS INTEGER ) * - col2 / - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + ( col2 ) * col2 + - col0 ) AS col0 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT ALL 77 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1bb818831a321aec1a29515698c845db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab2, tab2 AS cor0
----
54
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT - col0 + col1 * - col0 AS col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + + ( + 36 ) FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT ALL + col2 + - col0 * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - - col1 * + col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - - col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - ( col1 ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL ( + col2 + + col0 * + col1 ) AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT + cor0.col0 + tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 218174566e316faf7def1869e4f9f1b6
query I rowsort
SELECT DISTINCT - cor0.col2 + - 90 AS col2 FROM tab1, tab2 AS cor0
----
-116
-117
-128
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT DISTINCT - tab2.col1 DIV - col1 + - ( - col1 * - tab2.col0 ) FROM tab2
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - tab2.col1 / - col1 + - ( - col1 * - tab2.col0 ) FROM tab2
----
-1342
-216
-4601
onlyif mysql # use DIV operator for integer division
query I rowsort label-5220
SELECT DISTINCT 7 DIV cor0.col0 FROM tab1 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT 7 / cor0.col0 FROM tab1 cor0
----
0
2
query I rowsort
SELECT ALL - + 87 + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT ALL + - col2 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT - col1 + col1 * - CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5223
SELECT - col1 + col1 * - CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT + 54 * col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
26
7
9
skipif mysql # not compatible
query I rowsort label-5224
SELECT + 54 * col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
26
7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 76 col1 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT DISTINCT + - col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - + col0 - - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * - col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT col2 * + col1 + cor0.col2 + + col0 DIV 28 AS col2 FROM tab2 cor0
----
1562
686
864
skipif mysql # not compatible
query I rowsort label-5229
SELECT col2 * + col1 + cor0.col2 + + col0 / 28 AS col2 FROM tab2 cor0
----
1562
686
864
query I rowsort
SELECT ALL + - col2 + + ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 * 93 col0 FROM tab0
----
263934
693966
9021
query I rowsort
SELECT - col1 * + ( - col2 + - tab1.col1 ) FROM tab1
----
1417
2080
670
query I rowsort
SELECT - - col1 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col1 + - 54 FROM tab1 AS cor0
----
-28
-41
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT + col0 + col0 DIV 87 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5235
SELECT + col0 + col0 / 87 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col2 * - ( + 45 ) + col2 + col1 FROM tab2 AS cor0
----
1255
1273
1765
query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 * col0 * col1 AS col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT ALL 48 AS col0 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + 49 AS col1 FROM tab0 cor0
----
-49
-49
-49
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT + 41 AS col2 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT + 47 AS col1 FROM tab2
----
47
47
47
query I rowsort
SELECT + + col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 - + 51 * 15 AS col0 FROM tab2 AS cor0
----
-772
-843
-844
query I rowsort
SELECT - col2 + col0 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-42
4103
6384
query I rowsort
SELECT - 18 AS col0 FROM tab2
----
-18
-18
-18
query I rowsort
SELECT 64 * - tab1.col0 AS col0 FROM tab1
----
-192
-4096
-5120
query I rowsort
SELECT - col0 + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ( + 90 ) FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT ALL 79 DIV col0 + tab1.col2 * + col1 * col1 FROM tab1
----
16224
36530
5701
skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL 79 / col0 + tab1.col2 * + col1 * col1 FROM tab1
----
16224
36530
5701
query I rowsort
SELECT 43 * + col2 AS col0 FROM tab2
----
1118
1161
1634
query I rowsort
SELECT + col2 + col1 + - col0 AS col0 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT + col1 + col1 * - 22 FROM tab0
----
-1806
-1911
-2037
query I rowsort
SELECT ALL + cor0.col2 * + col0 + col1 * 7 FROM tab1 AS cor0
----
344
3718
7771
query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab0 WHERE NOT - col1 > col1
----
53
9
96
query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 78 * - col2 FROM tab0 AS cor0
----
2574
6396
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT + 98 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + 98 / - col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + + tab2.col0 * col1 col1 FROM tab2
----
406
4345
6630
query I rowsort
SELECT ALL + tab2.col2 + - col2 + - col2 AS col0 FROM tab2
----
-26
-27
-38
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col2 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT col1 DIV + col0 + + col2 AS col2 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-5265
SELECT col1 / + col0 + + col2 AS col2 FROM tab0
----
3
36
83
query I rowsort
SELECT - col0 * - col1 + - col0 / - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 + + col2 )
----
query I rowsort
SELECT + tab1.col0 * + col0 - - col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-5268
SELECT DISTINCT - col0 DIV + col2 col2 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT - col0 / + col2 col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT - tab2.col2 + + col1 + - col2 AS col2 FROM tab2
----
-23
-59
7
query III rowsort
SELECT * FROM tab1 WHERE ( col1 * - col0 ) < col0 / col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col0 + - col1 * + col2 * + col1 AS col0 FROM tab2
----
-10903
-25940
-90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT col1 DIV + col0 + + col1 AS col2 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-5272
SELECT col1 / + col0 + + col1 AS col2 FROM tab1
----
10
13
34
query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT 25 + col1 + col1 FROM tab1
----
45
51
77
query I rowsort
SELECT ALL + 38 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT DISTINCT 55 + col1 AS col1 FROM tab2
----
114
72
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - col2 + - tab0.col2 * ( 5 + - col1 ) FROM tab0
----
2640
6970
91
query I rowsort
SELECT DISTINCT cor0.col0 + - tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dfa045d32be2560cc04bdf05f139dc3c
query I rowsort
SELECT ALL + col0 + + col0 * col1 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + 92 * col0 + col1 FROM tab2
----
675
7235
7285
query I rowsort
SELECT - 15 * + col1 FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT - 41 * - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
188682
55063
8897
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 60 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT - col2 FROM tab2 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT col0 + col0 DIV - col1 AS col2 FROM tab2
----
7
75
77
skipif mysql # not compatible
query I rowsort label-5287
SELECT col0 + col0 / - col1 AS col2 FROM tab2
----
7
75
77
query I rowsort
SELECT ALL col2 + + col1 * - col2 * col2 AS col1 FROM tab1
----
-119712
-32433
-75762
onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT ALL col2 DIV + tab2.col2 - - col2 AS col2 FROM tab2 WHERE NOT - col1 * col2 IN ( - col0 + col0 )
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL col2 / + tab2.col2 - - col2 AS col2 FROM tab2 WHERE NOT - col1 * col2 IN ( - col0 + col0 )
----
27
28
39
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL > + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - col0 col0 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT col1 + col0 DIV tab1.col1 + + col2 FROM tab1
----
115
73
80
skipif mysql # not compatible
query I rowsort label-5292
SELECT col1 + col0 / tab1.col1 + + col2 FROM tab1
----
115
73
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * - col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - col1 * tab0.col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT col2 DIV - tab0.col0 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5295
SELECT col2 / - tab0.col0 AS col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT + tab0.col1 + - col0 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 * col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col0 + + tab1.col0 * col2 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT DISTINCT col1 DIV col1 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT col1 / col1 AS col2 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL - col0 * - col1 DIV col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - col0 * - col1 / col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT ALL - col0 DIV - col0 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - col0 / - col0 AS col2 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT DISTINCT - col1 * col2 DIV col2 AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - col1 * col2 / col2 AS col2 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - col2 < ( col2 )
----
query I rowsort
SELECT + col0 + - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 - + col0 )
----
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * col2 * + col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT col0 * + col2 * + col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col2 * - col2 * + col0 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col0 * - col1 * col0 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT + col0 * + col1 - + col0 DIV col0 AS col2 FROM tab1
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-5313
SELECT + col0 * + col1 - + col0 / col0 AS col2 FROM tab1
----
1039
639
77
query I rowsort
SELECT ALL + col2 * + ( col0 ) FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT DISTINCT - col0 * col1 DIV - col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - col0 * col1 / - col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col2 - col1 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ( col0 ) * tab1.col2 + ( tab1.col1 * - col0 ) AS col0 FROM tab1
----
3008
6640
84
query I rowsort
SELECT DISTINCT - ( 16 ) * + cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT - + ( + ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 57 * 45 + - col0 FROM tab2 AS cor0
----
-2572
-2643
-2644
query I rowsort
SELECT - 90 + col1 FROM tab1 AS cor0
----
-64
-77
-80
query I rowsort
SELECT ALL + + 92 * col0 + + col0 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT ALL col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 * col0 FROM tab1 AS cor0
----
10256
2994
3889
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5327
SELECT DISTINCT cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT + - 20 * col1 FROM tab2 AS cor0
----
-1180
-340
-620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * + col1 + - 60 FROM tab2 AS cor0
----
-1403
-277
-4662
skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * + col1 + - 60 FROM tab2 AS cor0
----
-1403
-277
-4662
query I rowsort
SELECT ALL 34 + + col1 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col1 col0 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT col0 DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5335
SELECT col0 / col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 * - col2 * col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5337
SELECT - col1 * - cor0.col1 - - CAST( NULL AS SIGNED ) * col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5337
SELECT - col1 * - cor0.col1 - - CAST ( NULL AS INTEGER ) * col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 * col1 col2 FROM tab2 AS cor0
----
-1088
-1984
-3776
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 ALL - + 30 * col1 AS col1 FROM tab2 cor0
----
-1770
-510
-930
query I rowsort
SELECT - 39 + + col2 FROM tab0 AS cor0
----
-38
-6
43
query I rowsort
SELECT DISTINCT - 31 * - cor0.col0 * - col2 FROM tab2 AS cor0
----
-5859
-62868
-93062
query I rowsort
SELECT ALL col1 - 42 FROM tab2
----
-11
-25
17
query I rowsort
SELECT ALL - col1 * col2 * col2 - col0 FROM tab0
----
-132
-611973
-93678
query I rowsort
SELECT - 30 - col0 AS col0 FROM tab1 AS cor0
----
-110
-33
-94
query I rowsort
SELECT ALL + col1 - + col2 FROM tab2
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 83 col1 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT DISTINCT - col0 + - col2 * - ( col2 * 94 ) AS col2 FROM tab1 cor0
----
274101
305342
866224
query I rowsort
SELECT - + col1 + 92 * + col0 FROM tab0 AS cor0
----
2122
3123
8097
query I rowsort
SELECT + col0 * + ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 35 * - 38 col1 FROM tab0 AS cor0
----
1416
1421
1427
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT - + col0 DIV 11 AS col2 FROM tab1 cor0
----
-5
-7
0
skipif mysql # not compatible
query I rowsort label-5354
SELECT - + col0 / 11 AS col2 FROM tab1 cor0
----
-5
-7
0
query I rowsort
SELECT + + cor0.col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + col0 * + 22 + col0 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT DISTINCT + + cor0.col0 + + 48 AS col1 FROM tab1 cor0
----
112
128
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 85 col2 FROM tab1 cor0
----
1105
2210
850
query I rowsort
SELECT - cor0.col0 + ( - 80 + col1 ) * col2 FROM tab0 cor0
----
-18
174
813
query I rowsort
SELECT ALL + col1 * - 98 + col1 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT ALL + col2 * - 10 FROM tab0 AS cor0
----
-10
-330
-820
query I rowsort
SELECT + col2 * + col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT ALL + 40 DIV + col2 col1 FROM tab0 AS cor0
----
0
1
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + 40 / + col2 col1 FROM tab0 AS cor0
----
0
1
40
query I rowsort
SELECT ALL 65 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT col0 + + col2 * - col2 AS col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL ( - col1 ) * - ( 8 + - col2 ) FROM tab0
----
-2150
-6734
679
query I rowsort
SELECT + 50 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT - + cor0.col1 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - - col0 * 80 FROM tab2 AS cor0
----
560
6240
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT col2 DIV 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-5370
SELECT col2 / col0 + col1 col0 FROM tab0 AS cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 43 col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT - cor0.col1 + + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + tab2.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + 58 * + col0 AS col2 FROM tab2
----
406
4524
4582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5375
SELECT + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-5377
SELECT DISTINCT col1 + col2 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT col1 + col2 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + ( - 53 ) + + col1 * col2 + - 35 * + cor0.col0 FROM tab2 AS cor0
----
-1249
-2172
539
query I rowsort
SELECT + 43 * - col2 - - col0 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-2088
38509
79072
query I rowsort
SELECT + + 66 AS col1 FROM tab2 AS cor0
----
66
66
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5381
SELECT col0 * 12 + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5381
SELECT col0 * 12 + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5382
SELECT - ( - col2 ) * - col2 + + ( cor0.col0 ) DIV + col0 FROM tab2 AS cor0
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-5382
SELECT - ( - col2 ) * - col2 + + ( cor0.col0 ) / + col0 FROM tab2 AS cor0
----
-1443
-675
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT ALL + - 6 + - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + - 6 + - col1 / col1 AS col0 FROM tab2 AS cor0
----
-7
-7
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + cor0.col2 * - ( 82 ) col2 FROM tab1 AS cor0
----
-1472
-4419
-578
query I rowsort
SELECT DISTINCT - col0 * + col1 + + col1 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT DISTINCT - col0 DIV col1 + col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - col0 / col1 + col0 FROM tab2 AS cor0
----
7
75
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5387
SELECT - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5387
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col0 - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL ( - col2 ) * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col0 * - 26 * + col1 FROM tab2
----
119652
34918
5642
query I rowsort
SELECT cor0.col2 + + col0 * + col2 AS col2 FROM tab2 cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col1 FROM tab1, tab1 AS cor0
----
39
query I rowsort
SELECT + cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - + col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col0 * 84 - col2 FROM tab1 AS cor0
----
198
5319
6624
query I rowsort
SELECT - - col1 - - cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 * - col2 + 48 FROM tab0 AS cor0
----
7346
83
840
query I rowsort
SELECT ALL - + 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - + col2 * + col0 + - col2 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5401
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col1 * col1 + col1 * col0 FROM tab1
----
14560
2106
7040
skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col1 * col1 + col1 * col0 FROM tab1
----
14560
2106
7040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * col1 + + ( + col0 ) col2 FROM tab2 AS cor0
----
1762
3076
5919
query I rowsort
SELECT - 61 AS col0 FROM tab1
----
-61
-61
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5404
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT col0 DIV + col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5405
SELECT col0 / + col1 FROM tab1
----
0
6
6
query I rowsort
SELECT - col0 * 5 * + col0 FROM tab0
----
-2880
-39605
-6125
onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT ALL 22 DIV + col2 AS col2 FROM tab0
----
0
0
22
skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL 22 / + col2 AS col2 FROM tab0
----
0
0
22
query I rowsort
SELECT 77 * cor0.col0 - col1 FROM tab1 AS cor0
----
205
4918
6147
query I rowsort
SELECT DISTINCT tab0.col1 - col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 15 ) * + tab1.col1 + col1 col1 FROM tab1
----
-1144
-15587
-9590
query I rowsort
SELECT ALL tab0.col1 * - 9 AS col2 FROM tab0
----
-774
-819
-873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5412
SELECT - + col2 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5412
SELECT - + col2 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 88 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5414
SELECT ALL - CAST( NULL AS SIGNED ) + + 56 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - CAST ( NULL AS INTEGER ) + + 56 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT + + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * 55 AS col0 FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT ALL + col1 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 59 + + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
253
2983
7612
query I rowsort
SELECT + col2 - - ( cor0.col2 + - col2 ) * + col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * 94 AS col1 FROM tab2 AS cor0
----
1677
2921
5624
query I rowsort
SELECT ALL col0 * + col1 * 64 FROM tab2 AS cor0
----
13888
294528
85952
query I rowsort
SELECT ALL + col2 * - ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT DISTINCT - - col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - - col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * col1 * col0 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT ALL + + col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT - + col2 DIV + ( - 89 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5431
SELECT - + col2 / + ( - 89 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + col0 * cor0.col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col0 + col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 29 * + 82 AS col1 FROM tab0 AS cor0
----
-2378
-2378
-2378
onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT - - 56 * col1 + col2 DIV col0 + + col0 * + col1 col2 FROM tab2 AS cor0
----
1956
2295
7906
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5436
SELECT - - 56 * col1 + col2 / col0 + + col0 * + col1 col2 FROM tab2 AS cor0
----
1956
2295
7906
query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + 32 * 79 + col2 FROM tab0 AS cor0
----
2529
2561
2610
query I rowsort
SELECT DISTINCT - 80 * - cor0.col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT 20 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT col2 + 74 + + col0 FROM tab0
----
110
131
245
onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT - tab0.col2 DIV col2 - 97 AS col1 FROM tab0
----
-98
-98
-98
skipif mysql # not compatible
query I rowsort label-5442
SELECT - tab0.col2 / col2 - 97 AS col1 FROM tab0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab1 cor0
----
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT ALL cor0.col1 DIV col1 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL cor0.col1 / col1 + + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT 50 + - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1293
-167
-4552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col2 col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * col0 * col2 + col0 + col2 col0 FROM tab1 AS cor0
----
193465
407216
8643
onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT + cor0.col0 DIV 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-5448
SELECT + cor0.col0 / 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT ALL 68 * col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
11505
45994
6810
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0, tab1 AS cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT ALL + 86 + + tab2.col2 * 0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT DISTINCT - ( + 26 * col0 ) FROM tab0
----
-2314
-624
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT DISTINCT col0 DIV + col0 col2 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT col0 / + col0 col2 FROM tab1
----
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 cor0, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT 90 AS col1 FROM tab0
----
90
90
90
query I rowsort
SELECT DISTINCT + 37 FROM tab1
----
37
query I rowsort
SELECT DISTINCT - tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
-10
-13
-26
query I rowsort
SELECT ( + col0 * - 58 + - col0 ) AS col1 FROM tab2
----
-413
-4602
-4661
query I rowsort
SELECT + 49 AS col2 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col1 * ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + col1 + + 61 * tab0.col2 FROM tab0
----
158
2099
5093
query I rowsort
SELECT ALL - col1 * + 84 FROM tab1
----
-1092
-2184
-840
query I rowsort
SELECT DISTINCT col2 * + col1 + - 53 FROM tab1 AS cor0
----
1195
1351
517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col2 col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - col1 - col0 * + col0 FROM tab0 AS cor0
----
-1322
-662
-8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 * + 83 col0 FROM tab2 AS cor0
----
111469
18011
381966
query I rowsort
SELECT ALL + cor0.col0 * ( + 97 ) + col2 AS col2 FROM tab0 AS cor0
----
2361
3396
8715
query I rowsort
SELECT ALL - col0 + - col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT ALL col0 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + col2 * + ( col2 * tab2.col1 ) + 89 AS col1 FROM tab2
----
22688
24637
39973
query I rowsort
SELECT - tab2.col1 + - col0 * - col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT col2 + col0 * + col0 FROM tab1
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT col2 + 54 DIV col1 col0 FROM tab1
----
100
56
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5476
SELECT col2 + 54 / col1 col0 FROM tab1
----
100
56
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5477
SELECT CAST( NULL AS SIGNED ) + 37 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5477
SELECT CAST ( NULL AS INTEGER ) + 37 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 + - col1 col2 FROM tab2
----
-120
-78
-92
query I rowsort
SELECT DISTINCT - col0 + + 73 * - col1 FROM tab2 AS cor0
----
-1320
-2270
-4385
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT DISTINCT + ( tab1.col1 ) + col1 * 41 FROM tab1
----
1092
420
546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT + CAST( + col0 AS SIGNED ) + + col0 * col2 + col0 * - col0 AS col0 FROM tab0
----
-1155
-534
240
skipif mysql # not compatible
query I rowsort label-5483
SELECT + CAST ( + col0 AS INTEGER ) + + col0 * col2 + col0 * - col0 AS col0 FROM tab0
----
-1155
-534
240
query I rowsort
SELECT ALL col0 + - col2 * col0 AS col2 FROM tab2
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5485
SELECT DISTINCT CAST( + 65 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
65
skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT CAST ( + 65 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
65
query I rowsort
SELECT - cor0.col0 + col1 + + col2 * ( 25 ) FROM tab1 cor0
----
1371
1373
2333
query I rowsort
SELECT + - col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + + col2 + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + + 46 AS col0 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT ALL - ( - col0 ) - + 29 AS col2 FROM tab1 AS cor0
----
-26
35
51
query I rowsort
SELECT DISTINCT col0 + + col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + + col2 + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT ALL - + col2 DIV - col0 + col2 - - ( + col1 * - 66 ) FROM tab0 AS cor0
----
-5642
-5924
-6401
skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - + col2 / - col0 + col2 - - ( + col1 * - 66 ) FROM tab0 AS cor0
----
-5642
-5924
-6401
query I rowsort
SELECT + 96 FROM tab0 AS cor0
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - - ( col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - 43 + col2 FROM tab1 AS cor0
----
11
14
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT ALL + col0 + ( + col1 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + col0 + ( + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 71 + + col2 FROM tab1 AS cor0
----
-14
-17
25
query I rowsort
SELECT - 62 * col2 AS col0 FROM tab0 AS cor0
----
-2046
-5084
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col0 + + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5506
SELECT DISTINCT + cor0.col2 + - col1 * - CAST( ( + col0 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + cor0.col2 + - col1 * - CAST ( ( + col0 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 * - col2 + + col0 + cor0.col1 AS col1 FROM tab0 cor0
----
167
7478
902
query I rowsort
SELECT ALL + + 35 * - col2 FROM tab1 AS cor0
----
-1890
-1995
-3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT DISTINCT col1 + col0 DIV 35 AS col2 FROM tab2
----
19
31
61
skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT col1 + col0 / 35 AS col2 FROM tab2
----
19
31
61
query I rowsort
SELECT - col0 * 6 AS col1 FROM tab1
----
-18
-384
-480
query I rowsort
SELECT DISTINCT + tab2.col0 * ( - col2 ) FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT + col2 DIV 23 AS col2 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-5512
SELECT + col2 / 23 AS col2 FROM tab0
----
0
1
3
query I rowsort
SELECT ALL cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT - - col0 DIV - col0 + 47 * - col0 * col2 FROM tab2 cor0
----
-141095
-8884
-95317
skipif mysql # not compatible
query I rowsort label-5514
SELECT - - col0 / - col0 + 47 * - col0 * col2 FROM tab2 cor0
----
-141095
-8884
-95317
query I rowsort
SELECT + ( 75 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL + cor0.col0 * ( ( col1 ) * + 36 ) FROM tab2 AS cor0
----
165672
48348
7812
query I rowsort
SELECT + col2 - + ( col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 * + ( + col2 ) + + col2 AS col0 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT tab2.col1 * 16 FROM tab2
----
272
496
944
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 AS col2 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT + col0 * + 24 - + ( + col0 + col2 ) DIV col1 FROM tab0 AS cor0
----
2135
576
840
skipif mysql # not compatible
query I rowsort label-5521
SELECT + col0 * + 24 - + ( + col0 + col2 ) / col1 FROM tab0 AS cor0
----
2135
576
840
query I rowsort
SELECT + col1 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + + 48 AS col2 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT - 32 - + 35 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - col1 * col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5527
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col0 + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-5530
SELECT ALL + CAST( - col1 AS SIGNED ) DIV col1 - + 83 AS col2 FROM tab2 AS cor0
----
-84
-84
-84
skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL + CAST ( - col1 AS INTEGER ) / col1 - + 83 AS col2 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT CAST( NULL AS SIGNED ) * 9 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5531
SELECT CAST ( NULL AS INTEGER ) * 9 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT 58 * + 54 + col0 DIV + ( 45 ) + cor0.col0 * - ( col0 ) FROM tab1 AS cor0
----
-3267
-963
3123
skipif mysql # not compatible
query I rowsort label-5533
SELECT 58 * + 54 + col0 / + ( 45 ) + cor0.col0 * - ( col0 ) FROM tab1 AS cor0
----
-3267
-963
3123
query I rowsort
SELECT + - 46 * + 81 + col0 AS col2 FROM tab2 AS cor0
----
-3647
-3648
-3719
query I rowsort
SELECT col1 + - 22 FROM tab0 AS cor0
----
64
69
75
query I rowsort
SELECT - ( - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab2 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL - 10 FROM tab1 cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT - cor0.col2 + - col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5541
SELECT - cor0.col2 + - col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 5 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT + 15 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT 76 + cor0.col2 FROM tab1 AS cor0
----
130
133
172
query I rowsort
SELECT ALL + 41 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + ( + col0 ) + - col2 * 3 FROM tab1 AS cor0
----
-81
533
832
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + ( col0 ) + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
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
onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT - col0 DIV 13 FROM tab0 AS cor0
----
-1
-2
-6
skipif mysql # not compatible
query I rowsort label-5551
SELECT - col0 / 13 FROM tab0 AS cor0
----
-1
-2
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT + 67 DIV - 7 FROM tab1, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
skipif mysql # not compatible
query I rowsort label-5552
SELECT + 67 / - 7 FROM tab1, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT col2 * 91 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT + col1 * + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 + 13 * col2 AS col2 FROM tab1 AS cor0
----
1235
676
731
query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 1 AS col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col0 * + col1 + col2 * - col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT ALL - col2 * 78 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT DISTINCT + 85 * + 71 AS col0 FROM tab1, tab2 cor0
----
6035
query I rowsort
SELECT DISTINCT - + 36 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
153
1992
2966
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT - col1 * cor0.col2 + 44 DIV - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5565
SELECT - col1 * cor0.col2 + 44 / - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT + 18 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
54
57
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
query I rowsort
SELECT DISTINCT 40 * col2 AS col2 FROM tab1
----
2160
2280
3840
query I rowsort
SELECT ALL - 97 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT 55 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT 95 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT - 90 AS col1 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort
SELECT CAST ( tab1.col2 AS REAL ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT DISTINCT + 8 DIV - 11 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + 8 / - 11 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
0
query I rowsort
SELECT col0 + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - + 46 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-329
-3666
-3713
query I rowsort
SELECT ALL - 74 + - col1 * - col0 FROM tab2 AS cor0
----
1269
143
4528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 + - ( col0 ) col1 FROM tab2 AS cor0
----
-15
-86
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5582
SELECT col2 * col0 DIV col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5582
SELECT col2 * col0 / col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + ( ( col1 ) ) * ( + col2 ) + - col0 AS col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - 70 * 82 FROM tab0 AS cor0
----
-5740
query I rowsort
SELECT col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5587
SELECT cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 40 FROM tab1 cor0
----
40
40
40
query I rowsort
SELECT ALL 10 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT DISTINCT ( + col0 ) DIV col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT ( + col0 ) / col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - - ( cor0.col2 ) * 92 * + col2 AS col1 FROM tab1 AS cor0
----
268272
298908
847872
query I rowsort
SELECT ALL - 39 * + cor0.col2 + 4 * 22 - - col1 FROM tab1 cor0
----
-1992
-2125
-3643
query I rowsort
SELECT ALL - + col1 * + col2 + + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-788
4550
5595
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + 37 AS col1 FROM tab0 AS cor0
----
2101
3432
8136
query I rowsort
SELECT 36 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT DISTINCT - 63 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-63
query I rowsort
SELECT ALL - 76 * col2 FROM tab2 AS cor0
----
-1976
-2052
-2888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab2.col2 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col1 * + ( + cor0.col2 ) + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col2 + - col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - 95 + col1 FROM tab1 AS cor0
----
311
6090
7613
query I rowsort
SELECT + + cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT ALL - - CAST( - 11 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-37
-38
-49
skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - - CAST ( - 11 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-37
-38
-49
query I rowsort
SELECT DISTINCT - + ( 84 ) FROM tab2 AS cor0
----
-84
query I rowsort
SELECT DISTINCT + 76 + 61 FROM tab0 AS cor0
----
137
query I rowsort
SELECT ALL - 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 * - ( col1 + col2 ) * col1 AS col2 FROM tab1 cor0
----
18421
54080
6700
query I rowsort
SELECT DISTINCT - ( - col0 ) * cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT DISTINCT + 44 * + col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT ALL col2 * + cor0.col2 * - col1 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - + 70 FROM tab1 AS cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT + + CAST( col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5616
SELECT + + CAST ( col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + 6 + col1 col1 FROM tab2
----
-12
-6019
-6218
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( + col0 ) col1 FROM tab2
----
-41
-52
20
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT ALL col0 * tab2.col2 * + col1 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + col0 * - 64 FROM tab2
----
-448
-4992
-5056
query I rowsort
SELECT - col1 + - 70 * - col0 FROM tab1
----
184
4470
5587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col1 col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - col2 + - col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT - 83 FROM tab0, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT ALL - col2 - col2 * tab1.col1 AS col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL + tab1.col0 - - col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL ( + col2 ) - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col1 * - cor0.col0 - + col0 * col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT + - col2 * - 60 AS col1 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT col2 * - 16 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT DISTINCT - - col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - - col2 / - col1 FROM tab2 AS cor0
----
-2
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0, tab0 cor1
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT + col2 + col2 + - col0 * - ( col2 ) FROM tab0
----
37
7462
858
query I rowsort
SELECT col1 * + col0 + - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col1 + col2 - + 2 AS col2 FROM tab1
----
107
65
78
query I rowsort
SELECT DISTINCT cor0.col1 - 83 AS col1 FROM tab1 cor0
----
-57
-70
-73
query I rowsort
SELECT + col1 * - col1 * col2 - col1 AS col2 FROM tab0 cor0
----
-244154
-679133
-9506
query I rowsort
SELECT DISTINCT - col2 * - 8 + + ( + col1 * - col1 + col2 ) FROM tab2
----
-3247
-718
53
query I rowsort
SELECT - col1 * - col2 * col0 + col2 + - col0 AS col0 FROM tab1
----
36473
4263
99856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT + cor0.col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5642
SELECT + cor0.col1 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + ( col2 + - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col0 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - col0 * 57 * col1 FROM tab0 AS cor0
----
-117648
-193515
-461643
onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT DISTINCT - cor0.col2 * ( + col0 ) DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - cor0.col2 * ( + col0 ) / + cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT - col1 + 6 * col0 * col0 FROM tab1 AS cor0
----
24566
28
38387
query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * col1 - 70 * col0 AS col2 FROM tab1 AS cor0
----
-288
-5120
-6640
query I rowsort
SELECT DISTINCT - col2 + - 48 FROM tab2 AS cor0
----
-74
-75
-86
query I rowsort
SELECT DISTINCT + - col1 - - 32 FROM tab1 cor0
----
19
22
6
query I rowsort
SELECT - col1 + + 74 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-6450
-6825
-7275
onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT ALL col1 * + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL col1 * + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + - col2 * ( col2 * cor0.col1 ) - - col0 FROM tab0 AS cor0
----
-611795
-62
-93630
query I rowsort
SELECT + col1 * - ( + col2 ) + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT 14 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT DISTINCT - col0 * + 48 * 70 FROM tab0
----
-117600
-299040
-80640
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT DISTINCT - col2 DIV 77 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - col2 / 77 FROM tab1
----
-1
0
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab2, tab1 AS cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT DISTINCT + col0 DIV col0 col0 FROM tab2
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + col0 / col0 col0 FROM tab2
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5663
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT + tab0.col2 * - ( + 6 * col0 + + 7 ) AS col1 FROM tab0
----
-217
-44362
-4983
query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab1, tab0 AS cor0
----
-37
query I rowsort
SELECT 21 * + ( col0 ) * - col0 AS col0 FROM tab2
----
-1029
-127764
-131061
query I rowsort
SELECT col2 * col0 * + ( + 82 * col2 + col2 ) FROM tab2 AS cor0
----
423549
4376424
9468308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT CAST( NULL AS SIGNED ) * + col1 + - tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5668
SELECT CAST ( NULL AS INTEGER ) * + col1 + - tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab2.col0 ) + col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col1 * + col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT 7 * + col1 FROM tab0
----
602
637
679
query I rowsort
SELECT + 76 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL - 17 FROM tab1
----
-17
-17
-17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab2
----
74
74
74
query I rowsort
SELECT DISTINCT ( - col0 ) * ( + col0 ) + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + col1 + col2 * - ( cor0.col1 ) + col2 AS col0 FROM tab1 cor0
----
-1139
-1324
-503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 35 + + col2 col2 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT col0 * col1 * + 84 FROM tab1 AS cor0
----
53760
6552
87360
query I rowsort
SELECT col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + 59 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col2 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col2 - + col2 FROM tab0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT - col1 + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5684
SELECT - col1 + col1 / + col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - col0 + col1 * 30 FROM tab0 AS cor0
----
2604
2819
2945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT + col1 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-5686
SELECT + col1 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 * 27 + col0 + - col2 AS col2 FROM tab0 cor0
----
2410
639
979
onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT ALL - - cor0.col0 + - col0 * col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-345
-412
3
skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - - cor0.col0 + - col0 * col0 / + cor0.col1 FROM tab1 AS cor0
----
-345
-412
3
query I rowsort
SELECT ALL col2 - 46 FROM tab1 AS cor0
----
11
50
8
query I rowsort
SELECT - + col0 * 77 * - col1 FROM tab1 AS cor0
----
49280
6006
80080
query I rowsort
SELECT + col0 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
-343
-474552
-493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5692
SELECT + - col1 + CAST( NULL AS SIGNED ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5692
SELECT + - col1 + CAST ( NULL AS INTEGER ) * + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 - cor0.col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - ( ( col0 ) ) * - col2 col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) + + col2 + + 62 * col1 col2 FROM tab0 AS cor0
----
5332
5642
6014
query I rowsort
SELECT - + col1 * col0 + + col2 * col0 + - 71 AS col2 FROM tab1 cor0
----
13
2937
6569
query I rowsort
SELECT + 98 * - 95 FROM tab2 AS cor0
----
-9310
-9310
-9310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT DISTINCT + tab2.col2 - - col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col2 * col1 + 55 * + col2 FROM tab0
----
11972
152
4653
onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT + cor0.col2 * col2 * - col0 + 86 DIV col1 + - col0 FROM tab1 cor0
----
-207992
-737354
-8748
skipif mysql # not compatible
query I rowsort label-5705
SELECT + cor0.col2 * col2 * - col0 + 86 / col1 + - col0 FROM tab1 cor0
----
-207992
-737354
-8748
query I rowsort
SELECT + + col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - ( + col0 ) * - col0 - + col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT - - col0 + col1 * + col2 * + cor0.col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL + tab1.col1 * + col0 * + tab1.col2 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5710
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 12 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab1 cor0
----
54
57
96
query I rowsort
SELECT col2 * - tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT col0 - - col1 DIV - tab1.col0 col2 FROM tab1
----
-5
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5715
SELECT col0 - - col1 / - tab1.col0 col2 FROM tab1
----
-5
64
80
query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT - col1 DIV - col1 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5718
SELECT - col1 / - col1 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT col2 + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + col2 + tab1.col0 AS col1 FROM tab1
----
121
176
57
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col0 * + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col1 FROM tab0
----
2064
3395
8099
query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - col2 ) >= NULL
----
query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL col1 * - tab1.col0 * + col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT col0 * - tab2.col0 * col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT col1 * + tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL tab2.col1 * - tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 + + col2 ) NOT IN ( - col2 - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + col2 IN ( tab2.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab1
----
2916
3249
9216
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col1 / col0
----
query I rowsort
SELECT col0 + col2 * col2 AS col1 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0 * - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col0 - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + + col0 FROM tab2 WHERE NULL IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT DISTINCT - col1 * col0 DIV + col2 - col0 col2 FROM tab1
----
-4
-75
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - col1 * col0 / + col2 - col0 col2 FROM tab1
----
-4
-75
-90
query I rowsort
SELECT DISTINCT col2 - - col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 * + col2 )
----
query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > + col0
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT + tab2.col2 - + col2 FROM tab2
----
0
query I rowsort
SELECT ALL - col2 - col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT + col2 + col1 - + tab1.col2 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + col1 + col0 - + col0 FROM tab0
----
86
91
97
query I rowsort
SELECT + col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - + col0 * col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT col0 + tab2.col0 - col1 FROM tab2
----
-17
141
97
query I rowsort
SELECT DISTINCT col1 - + col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 + + col1 )
----
query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT col1 * col0 + + cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1209
740
754
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 IN ( + col1 + - col2 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col2 * col2 FROM tab2 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL tab2.col2 * + col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 * col2 >= ( col2 * col2 / col2 )
----
-1
-33
-82
query I rowsort
SELECT tab1.col2 * col1 * - col1 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT col2 DIV cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-5762
SELECT col2 / cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-10
-12
-8
query I rowsort
SELECT DISTINCT col0 + cor0.col1 AS col2 FROM tab1 AS cor0 WHERE col1 + cor0.col1 IN ( col1 * - col1 * col2 )
----
query I rowsort
SELECT ALL - col2 + - col2 + - col0 FROM tab1 AS cor0
----
-111
-178
-272
query I rowsort
SELECT DISTINCT col1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT ALL + col0 + 1 * - col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 59 * col2 col1 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5769
SELECT ALL - col0 + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 58 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT + col2 - + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col2 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT + + cor0.col0 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5775
SELECT + + cor0.col0 / - col2 col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL col2 * - ( 9 ) FROM tab0 AS cor0
----
-297
-738
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - ( - ( col0 ) ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 - 6 FROM tab0 AS cor0
----
-5
27
76
query I rowsort
SELECT DISTINCT col0 + col2 * - 45 AS col2 FROM tab0 cor0
----
-10
-1461
-3601
query I rowsort
SELECT - - col0 * + ( - 2 ) + - col1 FROM tab1 AS cor0
----
-138
-173
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5781
SELECT + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col0 * - 85 FROM tab1 AS cor0
----
-255
-5440
-6800
query I rowsort
SELECT - 27 * + 78 * col2 FROM tab0 AS cor0
----
-172692
-2106
-69498
onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT ALL - col1 * col2 + + col2 DIV col0 FROM tab1
----
-1247
-1386
-570
skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - col1 * col2 + + col2 / col0 FROM tab1
----
-1247
-1386
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab1 cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT DISTINCT - col2 DIV - col2 + col0 * + col1 AS col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - col2 / - col2 + col0 * + col1 AS col0 FROM tab0
----
2065
3396
8100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 - + tab2.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 8aba8fd1b1e871111a09cd5809f5d6c6
query I rowsort
SELECT ALL - - 25 + - col0 FROM tab0 AS cor0
----
-10
-64
1
query I rowsort
SELECT ALL cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL ( + col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col2 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + - 36 * cor0.col2 + - ( col2 ) * + cor0.col0 FROM tab0 AS cor0
----
-10250
-1980
-71
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + + ( + 73 ) FROM tab2 AS cor0
----
-6011
-6168
24
query I rowsort
SELECT ALL col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col1 + col2 * col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT + col2 - - col0 * - col1 AS col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL + ( + col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 + col0 + col1 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT - col0 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5800
SELECT - col0 / + cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL + col1 - - col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL tab0.col0 + - col2 - + 20 AS col2 FROM tab0
----
-13
-29
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT + + col1 * + CAST( NULL AS SIGNED ) + + col1 + + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5804
SELECT + + col1 * + CAST ( NULL AS INTEGER ) + + col1 + + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT + ( - tab2.col2 + tab2.col1 ) AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT + ( + col1 ) + - col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab1
----
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT ALL - col0 DIV - tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - col0 / - tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL 12 * + col2 AS col0 FROM tab0
----
12
396
984
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT - - 66 DIV col1 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-5813
SELECT - - 66 / col1 FROM tab1 AS cor0
----
2
5
6
query I rowsort
SELECT - - cor0.col0 + + 27 AS col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT DISTINCT + 73 FROM tab0, tab2 AS cor0
----
73
query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + 13 + col0 AS col2 FROM tab2 AS cor0
----
-6
65
66
query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab1
----
5
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 93 AS REAL ) AS col1 FROM tab0
----
-93
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT 81 AS col0 FROM tab2
----
81
81
81
query I rowsort
SELECT DISTINCT + ( 56 ) * + tab1.col1 AS col1 FROM tab1
----
1456
560
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 70 col0 FROM tab0
----
1680
2450
6230
onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT ALL 26 * col2 DIV col0 FROM tab0
----
0
23
35
skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL 26 * col2 / col0 FROM tab0
----
0
23
35
query I rowsort
SELECT ALL + 88 + col0 FROM tab0
----
112
123
177
query I rowsort
SELECT ALL ( col1 ) + tab1.col1 FROM tab1
----
20
26
52
query I rowsort
SELECT col2 + - 30 AS col1 FROM tab0 cor0
----
-29
3
52
query I rowsort
SELECT - cor0.col1 * col0 + col2 * - col1 FROM tab0 cor0
----
-15561
-3492
-4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT + 35 DIV col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5829
SELECT + 35 / col1 FROM tab1
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT - 7 DIV col0 + + 98 FROM tab1
----
96
98
98
skipif mysql # not compatible
query I rowsort label-5830
SELECT - 7 / col0 + + 98 FROM tab1
----
96
98
98
query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT - tab1.col2 DIV - 67 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-5832
SELECT - tab1.col2 / - 67 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT + tab2.col0 + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - - col2 * col2 + + ( cor0.col0 ) * + col0 FROM tab0 AS cor0
----
1226
14645
1665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5835
SELECT ALL cor0.col1 + - ( ( col1 ) ) * + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL cor0.col1 + - ( ( col1 ) ) * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 * col1 - - col0 * col1 FROM tab2 AS cor0
----
12325
26164
95108
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT DISTINCT - col1 DIV 87 + col1 col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - col1 / 87 + col1 col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT + - col1 + col0 DIV col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5838
SELECT + - col1 + col0 / col0 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT DISTINCT + col1 * - CAST( - 87 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
1558
2704
5211
skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + col1 * - CAST ( - 87 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
1558
2704
5211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col1 + 77 * cor0.col0 AS col1 FROM tab1 AS cor0
----
257
4938
6173
query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT tab1.col0 * 12 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 5daf85e55b49e283e71b3a0cc53526eb
query I rowsort
SELECT DISTINCT 1 * 11 FROM tab0 AS cor0
----
11
query I rowsort
SELECT - 66 + col2 AS col0 FROM tab1 cor0
----
-12
-9
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col0 col2 FROM tab1 AS cor0
----
-21
-448
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( col2 ) col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col1 * 76 AS col1 FROM tab0
----
6536
6916
7372
query I rowsort
SELECT ALL - col1 - 64 FROM tab1
----
-74
-77
-90
query I rowsort
SELECT DISTINCT tab2.col0 - 8 FROM tab2
----
-1
70
71
query I rowsort
SELECT ALL + 98 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT 78 FROM tab2, tab0 cor0
----
78
query I rowsort
SELECT + col1 * ( 39 ) - + col0 AS col1 FROM tab0
----
3330
3460
3748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + col1 col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5856
SELECT DISTINCT - CAST( - ( col1 ) AS SIGNED ) * col2 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - CAST ( - ( col1 ) AS INTEGER ) * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - 79 + - col0 * - col2 + - col0 FROM tab2 AS cor0
----
103
1871
2844
query I rowsort
SELECT DISTINCT 21 * col2 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT + - col0 * + col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + cor0.col1 * - cor0.col2 * cor0.col2 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - 37 * 75 + col2 AS col2 FROM tab0 AS cor0
----
-2693
-2742
-2774
query I rowsort
SELECT cor0.col0 * col0 * col1 + + col0 FROM tab0 AS cor0
----
118860
49560
720900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * col1 col1 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT 41 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT cor0.col1 * col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * - col1 col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab1 cor0
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5868
SELECT - + col1 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort label-5868
SELECT - + col1 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - + col2 - + ( + col2 + + col1 * col1 ) FROM tab0 AS cor0
----
-7462
-8445
-9411
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 26 col2 FROM tab0 AS cor0
----
60
65
71
query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL col2 * 26 AS col1 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL ( + col1 ) * + col2 + col2 * cor0.col0 - 61 FROM tab2 AS cor0
----
3501
3587
965
query I rowsort
SELECT ALL - - ( col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( col2 ) + - ( col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + 57 + col0 + col0 FROM tab2 AS cor0
----
213
215
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT 65 DIV col1 FROM tab2 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5877
SELECT 65 / col1 FROM tab2 cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT - 31 * cor0.col1 - col2 * col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-2699
-2903
-3008
skipif mysql # not compatible
query I rowsort label-5878
SELECT - 31 * cor0.col1 - col2 * col0 / + col0 AS col0 FROM tab0 AS cor0
----
-2699
-2903
-3008
query I rowsort
SELECT DISTINCT - col0 * col1 + ( - cor0.col2 ) AS col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + 39 + - col2 FROM tab1 AS cor0
----
-15
-18
-57
query I rowsort
SELECT ALL - - col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 88 + col0 AS col1 FROM tab2 AS cor0
----
-10
-81
-9
query I rowsort
SELECT ALL 45 AS col2 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL + col2 - - tab1.col2 * - col1 AS col1 FROM tab1
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT + CAST( + col1 AS SIGNED ) + - tab0.col1 + + 64 FROM tab0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-5885
SELECT + CAST ( + col1 AS INTEGER ) + - tab0.col1 + + 64 FROM tab0
----
64
64
64
query I rowsort
SELECT - col2 + - tab0.col1 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - - col2 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT - cor0.col1 DIV col2 + - col1 * + ( col1 ) * 42 AS col1 FROM tab1 AS cor0
----
-28392
-4200
-7098
skipif mysql # not compatible
query I rowsort label-5888
SELECT - cor0.col1 / col2 + - col1 * + ( col1 ) * 42 AS col1 FROM tab1 AS cor0
----
-28392
-4200
-7098
query I rowsort
SELECT + col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT 92 * cor0.col2 AS col0 FROM tab1 AS cor0
----
4968
5244
8832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT col0 DIV ( col2 ) AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5891
SELECT col0 / ( col2 ) AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + 79 + col1 + - col0 * col2 FROM tab2
----
-1890
-2906
-79
query I rowsort
SELECT DISTINCT + + col1 + + 45 * - ( cor0.col2 ) FROM tab0 AS cor0
----
-1399
-3599
52
query I rowsort
SELECT - cor0.col1 + + col2 AS col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 + col1 * - 31 AS col0 FROM tab2
----
-1803
-489
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 * - col2 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 + + ( col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 * 79 * - col0 + col1 * + ( + col1 ) * tab0.col1 AS col0 FROM tab0
----
113750
473000
644468
query I rowsort
SELECT + ( 52 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d
query I rowsort
SELECT 85 * col2 FROM tab1
----
4590
4845
8160
query I rowsort
SELECT - 79 * - col2 AS col2 FROM tab2
----
2054
2133
3002
query I rowsort
SELECT - - col2 * - col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT 7 FROM tab0, tab2, tab1 cor0
----
7
query I rowsort
SELECT ALL col1 - tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1, tab0 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 * + col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
14760
3630
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + col1 AS REAL ) - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * - 91 FROM tab1 AS cor0
----
-1183
-2366
-910
query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + 29 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT + col2 + + 90 FROM tab2 AS cor0
----
116
117
128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab0 cor0
----
-4
query I rowsort
SELECT + - col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5917
SELECT ALL - CAST( col1 AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - CAST ( col1 AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + + ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab0, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab0
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 * 87 col0 FROM tab0 AS cor0
----
3480
3480
3480
query I rowsort
SELECT DISTINCT - - col0 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT DISTINCT col0 + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT col0 + col2 / + col1 AS col0 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT DISTINCT + col2 * col2 + cor0.col2 - + 10 * col2 FROM tab2 AS cor0
----
1102
442
486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 - - col2 col2 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT - 41 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT DISTINCT - col2 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT - - col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ( - col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - ( + col1 ) + - col0 AS col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + + col0 * - col1 - - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - 75 - col2 * + 23 FROM tab2 AS cor0
----
-673
-696
-949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col2 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT DISTINCT + + cor0.col1 DIV 82 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + + cor0.col1 / 82 FROM tab0 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col2 + + cor0.col1 * + col2 * cor0.col0 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT ALL + 84 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT + 83 + col1 * col1 AS col0 FROM tab1 AS cor0
----
183
252
759
query I rowsort
SELECT + ( + 90 ) FROM tab0 AS cor0
----
90
90
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 9 col1 FROM tab1 cor0
----
-12
-73
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col2 FROM tab0 AS cor0
----
-81
-81
-81
query I rowsort
SELECT ALL + + 79 AS col2 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT col0 + - 2 AS col2 FROM tab1 AS cor0
----
1
62
78
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT - CAST( + 33 AS SIGNED ) * col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-15
-4
-5
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - CAST ( + 33 AS INTEGER ) * col1 / col2 AS col1 FROM tab1 AS cor0
----
-15
-4
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5952
SELECT - col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT col0 + col2 DIV + col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5953
SELECT col0 + col2 / + col2 FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT - col1 * + col1 * - 65 AS col0 FROM tab2
----
18785
226265
62465
query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 6 FROM tab0, tab0 AS cor0
----
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5958
SELECT DISTINCT - col1 * + CAST( col0 AS SIGNED ) * col1 col0 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - col1 * + CAST ( col0 AS INTEGER ) * col1 col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT col1 + + 16 * + col0 FROM tab0
----
1515
470
657
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0
----
32
query I rowsort
SELECT ( + col2 ) * cor0.col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col0 * cor0.col2 + - col2 + - col0 * + col1 FROM tab1 AS cor0
----
2951
30
6544
query I rowsort
SELECT - 58 * col0 + + col0 * + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-237184
-619040
-660
query I rowsort
SELECT + - 46 * col0 + 8 AS col2 FROM tab2 AS cor0
----
-314
-3580
-3626
query I rowsort
SELECT + - col2 * col0 * col2 + 39 FROM tab2 AS cor0
----
-114037
-5064
-52689
query I rowsort
SELECT - 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col1 - - 24 AS col2 FROM tab1
----
-2
11
14
query I rowsort
SELECT + col0 * ( col0 ) + - col1 FROM tab2
----
18
6025
6224
query I rowsort
SELECT DISTINCT + col0 * 30 - + col2 FROM tab0 AS cor0
----
1049
2588
687
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col0 ) + - col2 AS col1 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL - 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT - col0 + - col0 DIV - col1 AS col2 FROM tab1 cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-5975
SELECT - col0 + - col0 / - col1 AS col2 FROM tab1 cor0
----
-3
-58
-74
query I rowsort
SELECT DISTINCT col1 + col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - col2 * col0 - - col2 * col1 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT ALL + 37 + - cor0.col1 * 76 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a402d902bf96eaa0f435a565aa5d4537
query I rowsort
SELECT ( 1 ) FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT 26 DIV + col2 FROM tab0
----
0
0
26
skipif mysql # not compatible
query I rowsort label-5980
SELECT 26 / + col2 FROM tab0
----
0
0
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5981
SELECT + CAST( NULL AS SIGNED ) / 83 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5981
SELECT + CAST ( NULL AS INTEGER ) / 83 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 66 * + col1 + col1 AS col0 FROM tab1 cor0
----
1742
670
871
query I rowsort
SELECT 51 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de
query I rowsort
SELECT 78 * 50 AS col0 FROM tab0 AS cor0
----
3900
3900
3900
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - 75 * col1 AS col0 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( tab2.col0 ) AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT + ( - col0 + col2 ) DIV - col0 FROM tab1
----
-17
0
0
skipif mysql # not compatible
query I rowsort label-5990
SELECT + ( - col0 + col2 ) / - col0 FROM tab1
----
-17
0
0
query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT col2 * + cor0.col2 - + 45 DIV col0 AS col2 FROM tab0 cor0
----
0
1088
6724
skipif mysql # not compatible
query I rowsort label-5992
SELECT col2 * + cor0.col2 - + 45 / col0 AS col2 FROM tab0 cor0
----
0
1088
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5993
SELECT DISTINCT col0 + col2 * + CAST( - col0 AS SIGNED ) * + col0 FROM tab1 cor0
----
-233408
-483
-614320
skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT col0 + col2 * + CAST ( - col0 AS INTEGER ) * + col0 FROM tab1 cor0
----
-233408
-483
-614320
query I rowsort
SELECT + 13 * col0 - 59 * col1 AS col1 FROM tab0 AS cor0
----
-4212
-4762
-5268
query I rowsort
SELECT ALL - ( - 52 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT - col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + + col0 * col2 * + 1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + 28 + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
110
29
61
query I rowsort
SELECT col2 - col1 * col0 AS col1 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT - + col2 * + col2 + - ( col2 ) DIV col2 + col0 FROM tab0 AS cor0
----
-1066
-6636
33
skipif mysql # not compatible
query I rowsort label-6001
SELECT - + col2 * + col2 + - ( col2 ) / col2 + col0 FROM tab0 AS cor0
----
-1066
-6636
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT + + cor0.col2 DIV cor0.col0 + cor0.col0 * col0 + + ( 8 ) AS col0 FROM tab1 AS cor0
----
35
4104
6409
skipif mysql # not compatible
query I rowsort label-6002
SELECT + + cor0.col2 / cor0.col0 + cor0.col0 * col0 + + ( 8 ) AS col0 FROM tab1 AS cor0
----
35
4104
6409
query I rowsort
SELECT ALL col2 * 1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL ( + col2 + - col0 ) AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 91 * - tab0.col0 + - col1 * tab0.col1 FROM tab0
----
-12594
-16380
-9580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT - 38 * + col0 + + col0 DIV col2 FROM tab1
----
-114
-2431
-3040
skipif mysql # not compatible
query I rowsort label-6007
SELECT - 38 * + col0 + + col0 / col2 FROM tab1
----
-114
-2431
-3040
query I rowsort
SELECT ALL - col2 - col2 FROM tab1
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 - col0 col2 FROM tab0
----
-11
-65
0
query I rowsort
SELECT ALL col2 + - 98 AS col0 FROM tab2 cor0
----
-60
-71
-72
query I rowsort
SELECT ( 57 ) FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col0 - cor0.col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - 97 + 50 AS col2 FROM tab2 cor0
----
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-6015
SELECT CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT DISTINCT + + 55 DIV col1 AS col2 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + + 55 / col1 AS col2 FROM tab1 AS cor0
----
2
4
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6017
SELECT DISTINCT - CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6018
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col2 * - col1 + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col2 * - col1 + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - 18 ) FROM tab1 AS cor0
----
-18
query I rowsort
SELECT col1 + - col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT 14 AS col2 FROM tab0, tab2 cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT ALL + 91 * tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 19c8b1036a90459dfc9565efcd72d83d
query I rowsort
SELECT ( 34 ) + col2 AS col1 FROM tab0 AS cor0
----
116
35
67
query I rowsort
SELECT - col2 + + 17 AS col1 FROM tab1 AS cor0
----
-37
-40
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT ALL col2 + col0 DIV col0 AS col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL col2 + col0 / col0 AS col2 FROM tab2
----
27
28
39
query I rowsort
SELECT ALL + 32 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6028
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + col2 + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + col2 + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * ( - cor0.col0 ) + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + col0 * 28 AS col2 FROM tab1 AS cor0
----
1792
2240
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6031
SELECT - cor0.col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col1 - - cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - col2 * 95 * 63 FROM tab2 AS cor0
----
155610
161595
227430
query I rowsort
SELECT - col1 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6036
SELECT ALL - CAST( - col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - CAST ( - col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - cor0.col0 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT ALL col1 DIV + 58 col1 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL col1 / + 58 col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + + 25 * - col2 - - col2 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT DISTINCT - + 53 AS col0 FROM tab2 AS cor0
----
-53
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 18 FROM tab2 cor0
----
18
18
18
query I rowsort
SELECT + ( col2 ) * + cor0.col2 - col1 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + col1 + + cor0.col0 col2 FROM tab2 AS cor0
----
1464
2851
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 5 + + col0 - - col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1528
741
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT ALL - - CAST( col0 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - - CAST ( col0 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col2 * ( col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - + 61 AS col2 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + + col1 * 25 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2 AS cor0
----
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT ALL + + CAST( col1 AS SIGNED ) * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + + CAST ( col1 AS INTEGER ) * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT - col2 * col1 - - col2 DIV + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-6053
SELECT - col2 * col1 - - col2 / + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - 22 AS col0 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT - col1 * tab0.col2 + - col2 * col2 FROM tab0
----
-14186
-3927
-98
query I rowsort
SELECT ALL + 20 FROM tab0, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 - + CAST ( - col0 AS REAL ) FROM tab2
----
14
156
158
query I rowsort
SELECT + - col2 + + ( col1 ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 * col1 - col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT tab2.col2 + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 - col2 * col2 FROM tab2
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 27 + tab0.col0 * col1 * col1 - - 36 col2 FROM tab0
----
179862
331970
739502
query I rowsort
SELECT DISTINCT - col0 * + col1 + + cor0.col1 * + col2 FROM tab0 AS cor0
----
-3298
-637
774
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT ALL + col2 + col0 DIV 22 AS col0 FROM tab1 AS cor0
----
54
59
99
skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + col2 + col0 / 22 AS col0 FROM tab1 AS cor0
----
54
59
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 + + col1 * 21 * - 96 + + cor0.col1 AS col2 FROM tab1 cor0
----
-20140
-26182
-52364
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - col0 col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + 59 FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT DISTINCT + + col1 + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - 82 FROM tab0 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL - - col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT DISTINCT + col1 + - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + col1 + - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT + - col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6074
SELECT + - col1 / + col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT ALL - 20 + col0 DIV 60 col0 FROM tab0 AS cor0
----
-19
-20
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - 20 + col0 / 60 col0 FROM tab0 AS cor0
----
-19
-20
-20
query I rowsort
SELECT ALL + + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
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-6078
SELECT - col0 DIV + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6078
SELECT - col0 / + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 68 AS col1 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT + col2 * - col0 * 42 FROM tab1 cor0
----
-153216
-322560
-6804
query I rowsort
SELECT ALL - col1 + + col1 * - col1 * - 12 FROM tab2 AS cor0
----
11501
3451
41713
query I rowsort
SELECT DISTINCT - 99 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-8514
-9009
-9603
query I rowsort
SELECT - - 15 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6084
SELECT ALL col2 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL col2 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT col2 DIV + ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6085
SELECT col2 / + ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - col0 * - 70 + col0 AS col2 FROM tab1 cor0
----
213
4544
5680
query I rowsort
SELECT ( + 91 ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT col2 - - col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + + col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col0 + + col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col0 * tab0.col0 + + ( col1 ) AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - 78 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-78
query I rowsort
SELECT - tab2.col2 * col0 - col2 AS col1 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - + col0 + 23 AS col1 FROM tab2 cor0
----
-55
-56
16
query I rowsort
SELECT ALL col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - col1 * - ( cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT ALL cor0.col1 * 18 + ( col1 ) + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
247
343
548
skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL cor0.col1 * 18 + ( col1 ) + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
247
343
548
query I rowsort
SELECT - col1 * ( + col0 ) AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - col0 + 48 FROM tab1 AS cor0
----
112
128
51
query I rowsort
SELECT ALL col1 * tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT 81 + + 63 FROM tab0 AS cor0
----
144
query I rowsort
SELECT ALL + col2 * - col0 - - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - - 61 AS col0 FROM tab0 AS cor0
----
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6106
SELECT - col0 * cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6106
SELECT - col0 * cor0.col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 81 + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a93b86893b595aa27fbc21cb63eee12e
query I rowsort
SELECT - 97 * col2 FROM tab0 cor0
----
-3201
-7954
-97
query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 43 * col1 * ( col1 ) FROM tab1 AS cor0
----
-29068
-4300
-7267
query I rowsort
SELECT ALL - 40 AS col0 FROM tab1 AS cor0
----
-40
-40
-40
query I rowsort
SELECT col1 * 41 FROM tab2
----
1271
2419
697
query I rowsort
SELECT 22 * - cor0.col1 FROM tab2 AS cor0
----
-1298
-374
-682
query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT col0 * - CAST( - 52 AS SIGNED ) * col1 AS col2 FROM tab1
----
33280
4056
54080
skipif mysql # not compatible
query I rowsort label-6115
SELECT col0 * - CAST ( - 52 AS INTEGER ) * col1 AS col2 FROM tab1
----
33280
4056
54080
query I rowsort
SELECT ALL + col0 * col1 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col1 + - col1 * col0 - col1 AS col0 FROM tab2 AS cor0
----
-1377
-279
-4720
query I rowsort
SELECT ALL col0 - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - - col0 * col1 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + + 17 AS col2 FROM tab1 cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT 53 DIV - col1 FROM tab2
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT 53 / - col1 FROM tab2
----
-1
-3
0
query I rowsort
SELECT ALL - ( + col0 ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - + 94 * col2 FROM tab1 AS cor0
----
-5076
-5358
-9024
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 48 col2 FROM tab2 AS cor0
----
1248
1296
1824
query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - col2 * - 9 FROM tab1 cor0
----
486
513
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6132
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + 94 * + col1 * col2 FROM tab2 AS cor0
----
144170
60686
78651
query I rowsort
SELECT - col0 * 21 AS col0 FROM tab1 cor0
----
-1344
-1680
-63
query I rowsort
SELECT - col1 * - ( + 35 ) * - col0 FROM tab1 AS cor0
----
-22400
-2730
-36400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL cor0.col0 * + col2 + col2 * col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT - + col0 * col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT - col2 + col1 DIV - col0 - - cor0.col1 FROM tab2 AS cor0
----
-21
0
33
skipif mysql # not compatible
query I rowsort label-6145
SELECT - col2 + col1 / - col0 - - cor0.col1 FROM tab2 AS cor0
----
-21
0
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + - col1 * - col1 col0 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT col2 * col0 * col2 AS col1 FROM tab0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 WHERE NOT tab1.col2 / col0 IN ( col0 ) AND NOT NULL IN ( + col1 )
----
query I rowsort
SELECT + 11 + - col1 AS col2 FROM tab2 AS cor0
----
-20
-48
-6
query I rowsort
SELECT + 97 * + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
706
7592
7701
query I rowsort
SELECT DISTINCT 82 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2998
3331
9298
query I rowsort
SELECT - + cor0.col2 * col1 + - col0 * col0 * col0 FROM tab0 AS cor0
----
-16662
-42972
-712431
query I rowsort
SELECT - cor0.col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 * + col0 + + col0 * col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT ALL ( + 38 ) AS col0 FROM tab0
----
38
38
38
query I rowsort
SELECT ALL - 77 AS col1 FROM tab1
----
-77
-77
-77
query I rowsort
SELECT ( + 31 ) FROM tab0
----
31
31
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col1 ) + - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT 43 * + 82 FROM tab0
----
3526
3526
3526
query I rowsort
SELECT ( + col1 + + col1 ) AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT 93 * + col2 AS col2 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT - - cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT + 60 + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
60
60
68
skipif mysql # not compatible
query I rowsort label-6165
SELECT + 60 + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
60
60
68
query I rowsort
SELECT 33 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT + 38 AS col0 FROM tab1
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + 22 AS col0 FROM tab2
----
22
22
22
query I rowsort
SELECT + 36 AS col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0
----
53
query I rowsort
SELECT col1 * 97 + + col0 AS col0 FROM tab0
----
8366
8916
9444
query I rowsort
SELECT DISTINCT + 8 * - 18 FROM tab2
----
-144
query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT ALL - 60 DIV - 72 col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 60 / - 72 col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + - cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL 97 * col2 FROM tab2
----
2522
2619
3686
query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - + 28 * - col2 + 90 + col1 FROM tab2 AS cor0
----
1171
877
877
query I rowsort
SELECT DISTINCT + + col1 - + col0 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT 70 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT ALL - - 5 + - col1 FROM tab0 AS cor0
----
-81
-86
-92
query I rowsort
SELECT DISTINCT + + col2 + col2 + - col1 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
13712
2136
6514
query I rowsort
SELECT ALL + + col2 + - col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col1 + 3 FROM tab1 AS cor0
----
13
16
29
query I rowsort
SELECT - - cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * 97 + col2 col0 FROM tab1 cor0
----
5295
5650
9488
onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT - + col1 DIV + col1 + cor0.col2 * col1 + + 69 FROM tab0 AS cor0
----
165
2906
7530
skipif mysql # not compatible
query I rowsort label-6194
SELECT - + col1 / + col1 + cor0.col2 * col1 + + 69 FROM tab0 AS cor0
----
165
2906
7530
query I rowsort
SELECT DISTINCT - col2 * - 22 FROM tab1 cor0
----
1188
1254
2112
query I rowsort
SELECT DISTINCT - - col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT cor0.col1 + col1 + + col1 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT + col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col1 * + 22 AS col0 FROM tab0 cor0
----
1892
2002
2134
query I rowsort
SELECT ALL + + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - ( col1 ) * col0 * ( col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + 68 * col0 + - col0 * ( - cor0.col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
438
45312
88640
query I rowsort
SELECT DISTINCT + 15 * col2 + col2 AS col1 FROM tab2 cor0
----
416
432
608
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col2 * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col2 + tab2.col1 * col0 AS col0 FROM tab2
----
1381
244
4628
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT ALL + 38 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 48 ) + - col0 col2 FROM tab2 AS cor0
----
-126
-127
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT ( col2 ) DIV - col0 + 46 AS col2 FROM tab1 AS cor0
----
28
45
46
skipif mysql # not compatible
query I rowsort label-6213
SELECT ( col2 ) / - col0 + 46 AS col2 FROM tab1 AS cor0
----
28
45
46
query I rowsort
SELECT DISTINCT + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - ( + col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT + CAST( NULL AS SIGNED ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6216
SELECT + CAST ( NULL AS INTEGER ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 0 * col2 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT - + 84 FROM tab1 AS cor0
----
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6219
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - 42 * col0 AS col1 FROM tab2 AS cor0
----
-294
-3276
-3318
query I rowsort
SELECT + 73 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT DISTINCT + 87 * + col1 + col0 FROM tab0 AS cor0
----
7506
8006
8474
query I rowsort
SELECT ALL - ( ( - col1 ) ) + + 48 AS col0 FROM tab2 cor0
----
107
65
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT - + 7 * - ( + col0 ) + + ( - col1 ) * col1 + col0 * col1 FROM tab0 AS cor0
----
-5164
-5769
441
query I rowsort
SELECT ALL col1 + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT col0 * + ( - col2 * col1 ) + col2 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT + 72 AS col0 FROM tab1 cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT - col2 DIV 67 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6229
SELECT - col2 / 67 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 58 FROM tab2
----
-58
query I rowsort
SELECT + + cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + col0 + - col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - tab2.col0 col0 FROM tab2
----
0
query I rowsort
SELECT + col1 + - 30 FROM tab1
----
-17
-20
-4
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6237
SELECT DISTINCT - col1 + tab2.col2 * - col2 + col2 * ( col1 ) DIV - col0 AS col0 FROM tab2
----
-1469
-754
-879
skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - col1 + tab2.col2 * - col2 + col2 * ( col1 ) / - col0 AS col0 FROM tab2
----
-1469
-754
-879
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col1 * - ( 61 ) * + col0 FROM tab0
----
-125904
-207095
-494039
onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT + cor0.col2 DIV + 83 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6240
SELECT + cor0.col2 / + 83 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col2 + + 68 AS col2 FROM tab2
----
106
94
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6242
SELECT ALL - col1 + - CAST( cor0.col2 * + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - col1 + - CAST ( cor0.col2 * + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - col0 * - col2 - - cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT DISTINCT col1 + 10 * 52 DIV col1 FROM tab0 AS cor0
----
102
92
96
skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT col1 + 10 * 52 / col1 FROM tab0 AS cor0
----
102
92
96
query I rowsort
SELECT - col0 - - col2 * col2 FROM tab0 cor0
----
-34
1065
6635
query I rowsort
SELECT ALL + col1 * col0 + col2 + cor0.col1 AS col1 FROM tab0 cor0
----
2183
3493
8272
query I rowsort
SELECT - - cor0.col0 + - 93 * col1 AS col2 FROM tab2 cor0
----
-1502
-2876
-5409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT + + col1 DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6248
SELECT + + col1 / col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * 29 AS col2 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT col0 + - ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col2 * col0 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL + col0 * - col1 DIV - ( col1 ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + col0 * - col1 / - ( col1 ) FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT + - ( col2 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6254
SELECT + - ( col2 ) / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6255
SELECT - ( col2 ) DIV col1 AS col2 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6255
SELECT - ( col2 ) / col1 AS col2 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 14 * + ( col0 ) FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) * - col0 AS col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ALL + 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + 64 AS col1 FROM tab1
----
64
64
64
query I rowsort
SELECT DISTINCT + 80 * 53 FROM tab2, tab1 cor0, tab2 AS cor1
----
4240
query I rowsort
SELECT - - 34 AS col2 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT - 60 + col0 AS col0 FROM tab0 cor0
----
-25
-36
29
query I rowsort
SELECT ALL - col2 - - col0 * - col0 FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT + + col2 + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL col1 + + col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT ALL col0 + + col1 DIV 36 AS col2 FROM tab2
----
7
79
79
skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL col0 + + col1 / 36 AS col2 FROM tab2
----
7
79
79
query I rowsort
SELECT + - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT tab1.col1 + - ( - tab1.col0 ) AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT + tab2.col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT DISTINCT + col0 + - 70 AS col2 FROM tab0 AS cor0
----
-35
-46
19
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + 58 AS col0 FROM tab1 AS cor0
----
-104
-3590
-7622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 - col1 col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT ( + col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - - col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 - + 42 * - col1 FROM tab2 AS cor0
----
1295
2400
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 - - col0 col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT - 32 FROM tab0 AS cor0
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + col0 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT DISTINCT + 65 DIV col0 FROM tab2 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + 65 / col0 FROM tab2 AS cor0
----
0
9
query I rowsort
SELECT col0 * - col2 + cor0.col2 * + 17 + - col1 FROM tab0 AS cor0
----
-115
-317
-5995
query I rowsort
SELECT ALL 1 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT col0 DIV - col0 + + 81 FROM tab2 AS cor0
----
80
80
80
skipif mysql # not compatible
query I rowsort label-6289
SELECT col0 / - col0 + + 81 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT ALL + 62 * - col2 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT + + 12 + col2 FROM tab2 AS cor0
----
38
39
50
query I rowsort
SELECT + 17 FROM tab2
----
17
17
17
query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab2
----
27
query I rowsort
SELECT DISTINCT 37 * tab0.col1 AS col2 FROM tab0
----
3182
3367
3589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + + col2 * - col0 col2 FROM tab2 AS cor0
----
-175
-2014
-2988
query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - + 77 AS col0 FROM tab0 cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT ALL cor0.col0 DIV col0 + col1 * cor0.col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL cor0.col0 / col0 + col1 * cor0.col1 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT DISTINCT - - col1 * col2 - - 14 AS col1 FROM tab2 cor0
----
1548
660
851
query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 12 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT 38 * col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT ALL col2 * col2 + - col2 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT - 48 AS col0 FROM tab2 AS cor0
----
-48
-48
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT DISTINCT + col1 + - cor0.col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + col1 + - cor0.col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT + cor0.col2 + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9
query I rowsort
SELECT - 16 AS col2 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT + + ( + col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 31 + col1 * col2 FROM tab0
----
128
2869
7493
query I rowsort
SELECT ALL 16 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT ALL 97 DIV - 64 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 97 / - 64 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - + ( + col0 ) * + col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 97 AS col1 FROM tab2 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 + col1 AS REAL ) col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT 59 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT col0 * + tab1.col2 DIV - col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6317
SELECT col0 * + tab1.col2 / - col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + tab0.col2 * - 65 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9e3b6d280c4f16ade677101863c06a28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT col0 - + CAST( + col1 + - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6319
SELECT col0 - + CAST ( + col1 + - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 72 + col1 col1 FROM tab1 AS cor0
----
-190
-4598
-5747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 - col1 col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT col2 * 13 * + 92 + - col0 DIV + ( - 55 ) + - col2 FROM tab0 AS cor0
----
1195
39435
97991
skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT col2 * 13 * + 92 + - col0 / + ( - 55 ) + - col2 FROM tab0 AS cor0
----
1195
39435
97991
query I rowsort
SELECT - col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + col2 * cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col1 * tab1.col0 * 78 + col0 FROM tab1
----
49984
6087
81200
query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL - 4 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT ALL 96 - + col0 DIV + col0 AS col0 FROM tab0
----
95
95
95
skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 96 - + col0 / + col0 AS col0 FROM tab0
----
95
95
95
query I rowsort
SELECT DISTINCT cor0.col0 + - 72 AS col2 FROM tab1, tab2 AS cor0
----
-65
6
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT ALL 21 DIV - tab0.col2 - + col2 * + col0 AS col1 FROM tab0
----
-56
-7298
-792
skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 21 / - tab0.col2 - + col2 * + col0 AS col1 FROM tab0
----
-56
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6331
SELECT tab0.col2 + CAST( NULL AS SIGNED ) col2 FROM tab0, 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-6331
SELECT tab0.col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + - col2 + - col2 * col1 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT + cor0.col2 * ( col2 ) - - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
2916
3255
9222
skipif mysql # not compatible
query I rowsort label-6333
SELECT + cor0.col2 * ( col2 ) - - col0 / + col1 AS col2 FROM tab1 AS cor0
----
2916
3255
9222
query I rowsort
SELECT ALL col2 + - 23 AS col1 FROM tab2
----
15
3
4
query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 + - 82 + - col0 * col0 FROM tab0 AS cor0
----
-1234
-15924
-2532
query I rowsort
SELECT DISTINCT col0 * + ( col1 ) + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col0 + + 3 AS col0 FROM tab0 cor0
----
27
38
92
query I rowsort
SELECT ALL + + col2 + + col0 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT + col2 * - 91 AS col2 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT + + col1 + + ( + 68 ) * cor0.col0 FROM tab0 AS cor0
----
1718
2477
6143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT + - col1 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-6341
SELECT + - col1 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col0 + - 25 AS col2 FROM tab1 AS cor0
----
-105
-28
-89
query I rowsort
SELECT - - col2 * col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - col1 * - col1 * + 90 FROM tab2
----
26010
313290
86490
query I rowsort
SELECT col2 * + ( col1 * col2 ) FROM tab1
----
119808
32490
75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6346
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6346
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM tab1, tab2 cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT + col0 DIV col2 + col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6348
SELECT + col0 / col2 + col0 FROM tab0
----
24
70
90
query I rowsort
SELECT tab2.col2 * tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col2 + + col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT DISTINCT + - col2 + - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + - col2 + - col2 / col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT ALL - - col0 * 79 - + cor0.col2 FROM tab2 AS cor0
----
526
6136
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6353
SELECT - - col1 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6353
SELECT - - col1 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col0 * - ( cor0.col1 ) * col0 AS col1 FROM tab0 cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col0 - cor0.col0 col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + col2 + 36 * + col2 AS col1 FROM tab2 AS cor0
----
1406
962
999
onlyif mysql # use DIV operator for integer division
query I rowsort label-6358
SELECT cor0.col2 DIV + 63 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-6358
SELECT cor0.col2 / + 63 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT + cor0.col2 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6360
SELECT CAST( NULL AS SIGNED ) + - 98 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6360
SELECT CAST ( NULL AS INTEGER ) + - 98 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6361
SELECT 88 + ( - col2 * + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6361
SELECT 88 + ( - col2 * + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 59 + + 99 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT - 45 FROM tab0 cor0
----
-45
-45
-45
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col2 - - ( - 84 + - col2 ) AS col0 FROM tab1 AS cor0
----
1068
1266
429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * ( - col0 ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - tab0.col1 * col1 + col2 FROM tab0
----
-7363
-8199
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6367
SELECT + - CAST( NULL AS SIGNED ) * - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6367
SELECT + - CAST ( NULL AS INTEGER ) * - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT + 96 + + cor0.col0 DIV col0 AS col1 FROM tab0 cor0
----
97
97
97
skipif mysql # not compatible
query I rowsort label-6368
SELECT + 96 + + cor0.col0 / col0 AS col1 FROM tab0 cor0
----
97
97
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6369
SELECT + CAST( NULL AS SIGNED ) - + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6369
SELECT + CAST ( NULL AS INTEGER ) - + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT DISTINCT - + col2 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - + col2 / col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col0 col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col0 * - col0 * - 38 FROM tab1 AS cor0
----
155648
243200
342
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + 54 * col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT 51 * col2 FROM tab2 AS cor0
----
1326
1377
1938
onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT ALL + cor0.col2 DIV - col2 + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + cor0.col2 / - col2 + col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT DISTINCT + 4 + col2 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1244
-1400
-566
skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + 4 + col2 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1244
-1400
-566
query I rowsort
SELECT + + col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 * col0 + 73 - col0 FROM tab1 AS cor0
----
1033
148
649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * col1 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT - col2 * col0 DIV col1 AS col2 FROM tab2 cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-6383
SELECT - col2 * col0 / col1 AS col2 FROM tab2 cor0
----
-176
-34
-6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT col1 - + col0 * - tab1.col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT + - ( - col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col1 + - cor0.col2 * - col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + 42 + 28 AS col1 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( col1 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + + 8 + - col0 * col2 FROM tab0 AS cor0
----
-27
-7290
-784
query I rowsort
SELECT col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - 93 FROM tab1
----
-93
query I rowsort
SELECT - ( + col1 * tab1.col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + tab2.col0 * + col1 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT + + col2 * ( 62 ) + + col2 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab1, tab2 AS cor0
----
23
query I rowsort
SELECT DISTINCT + tab0.col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + 44 AS col0 FROM tab2 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + - col2 + + 3 AS col1 FROM tab2 AS cor0
----
-23
-24
-35
query I rowsort
SELECT + ( cor1.col2 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT - col0 + - col2 + - col1 * col1 * + col2 FROM tab1 AS cor0
----
-16400
-36561
-5821
query I rowsort
SELECT + 55 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT + - col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - 72 * - 91 + + col2 AS col1 FROM tab1 AS cor0
----
6606
6609
6648
query I rowsort
SELECT ALL - cor0.col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 * + ( + col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT tab1.col1 - + 18 FROM tab1
----
-5
-8
8
query I rowsort
SELECT ALL + 81 * + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b03a487d842d1b1b52d4eddc48b27ad7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT - col0 * CAST( + col0 AS SIGNED ) FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-6419
SELECT - col0 * CAST ( + col0 AS INTEGER ) FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT - col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6420
SELECT - col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 + 62 AS col0 FROM tab0
----
148
153
159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 99 col2 FROM tab1
----
153
156
195
query I rowsort
SELECT - 39 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + col0 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT tab0.col0 + col2 + + col1 AS col2 FROM tab0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 + - ( col0 * - 62 + col2 ) col2 FROM tab1
----
113
3892
4845
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + 97 AS col1 FROM tab0
----
97
97
97
query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT 5 DIV 69 + col0 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6430
SELECT 5 / 69 + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + col1 * col0 * col0 + tab0.col1 FROM tab0
----
118922
49622
720902
query I rowsort
SELECT - 39 AS col1 FROM tab2
----
-39
-39
-39
query I rowsort
SELECT DISTINCT + tab2.col1 AS col1 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * 92 col1 FROM tab1, tab2 cor0
----
9 values hashing to efdab40c6515220727eae6d71dd1c907
query I rowsort
SELECT DISTINCT 78 * + col2 * col2 FROM tab1
----
227448
253422
718848
query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1
----
-38
query I rowsort
SELECT + col1 + - ( - col1 ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT + col1 - 84 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6439
SELECT + col1 - 84 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + + cor0.col2 * 59 + - col0 * - col0 FROM tab2 AS cor0
----
1642
7618
8483
query I rowsort
SELECT - col0 + 96 FROM tab1 cor0
----
16
32
93
query I rowsort
SELECT DISTINCT + - col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT ALL col0 + + ( - col1 ) DIV + col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL col0 + + ( - col1 ) / + col1 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col2 FROM tab0
----
90
query I rowsort
SELECT ALL - col0 - 90 AS col2 FROM tab0 AS cor0
----
-114
-125
-179
onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT + cor0.col0 DIV - col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-6446
SELECT + cor0.col0 / - col2 + col2 AS col1 FROM tab1 AS cor0
----
54
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL + + col0 DIV 11 AS col1 FROM tab1 AS cor0
----
0
5
7
skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + + col0 / 11 AS col1 FROM tab1 AS cor0
----
0
5
7
query I rowsort
SELECT DISTINCT - + cor0.col0 * ( - col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col1 * + 99 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT DISTINCT + col0 * col1 + ( + col1 * col2 ) AS col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT + - ( col0 ) - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col0 * + col0 + + 62 FROM tab0 AS cor0
----
1287
638
7983
query I rowsort
SELECT 48 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT DISTINCT tab0.col1 DIV tab0.col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT tab0.col1 / tab0.col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT + col1 + - col2 * + ( + col1 ) * col1 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT - 53 + - col2 * - tab2.col1 AS col1 FROM tab2
----
1481
593
784
query I rowsort
SELECT DISTINCT + 59 FROM tab2 AS cor0
----
59
query I rowsort
SELECT ALL - - col2 + + col0 * cor0.col0 AS col1 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 * cor0.col0 - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 50 FROM tab1 cor0
----
-50
-50
-50
query I rowsort
SELECT cor0.col2 * - ( - 88 + col0 ) AS col2 FROM tab0 AS cor0
----
-82
2112
53
query I rowsort
SELECT + col0 * tab2.col2 - + col0 AS col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - ( col0 ) * 16 + + col0 + tab1.col2 * 38 FROM tab1
----
1206
2007
2448
query I rowsort
SELECT ALL - ( 22 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
query I rowsort
SELECT - col0 * tab1.col1 * - 45 AS col1 FROM tab1
----
28800
3510
46800
onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT ALL - col0 + - col2 DIV - ( - 4 ) FROM tab1
----
-104
-16
-78
skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - col0 + - col2 / - ( - 4 ) FROM tab1
----
-104
-16
-78
query I rowsort
SELECT - col1 + col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + + tab0.col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL 27 + col1 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT DISTINCT + col2 + 12 AS col1 FROM tab1 AS cor0
----
108
66
69
query I rowsort
SELECT ALL + col2 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 37 - col0 AS col2 FROM tab0 AS cor0
----
-52
13
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6476
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6476
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ( 94 ) AS col0 FROM tab0 AS cor0
----
94
94
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 * col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 * col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL col2 * - 15 * col0 FROM tab2 AS cor0
----
-2835
-30420
-45030
query I rowsort
SELECT - + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 2 + col2 AS col2 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT ( col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 3 + 37 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( col2 ) + - tab1.col2 * + col0 col1 FROM tab1
----
-15360
-324
-7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col0 ) + - col2 col0 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT tab1.col1 * + 63 + + col2 * col1 AS col2 FROM tab1
----
1200
2067
3042
query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab2
----
-55
-58
-85
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT - 43 * col0 * col0 AS col0 FROM tab0
----
-24768
-340603
-52675
query I rowsort
SELECT + ( col2 ) * - col0 * + col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - 39 - - col2 AS col1 FROM tab0
----
-38
-6
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT ALL + 28 DIV - cor1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 063db608d01f692c861786cda5bbbc09
skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + 28 / - cor1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 063db608d01f692c861786cda5bbbc09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT - + CAST( + 34 AS SIGNED ) FROM tab1 AS cor0
----
-34
-34
-34
skipif mysql # not compatible
query I rowsort label-6494
SELECT - + CAST ( + 34 AS INTEGER ) FROM tab1 AS cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 81 * + col1 col2 FROM tab1 AS cor0
----
-51840
-6318
-84240
query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 97 FROM tab0 cor0
----
97
97
97
query I rowsort
SELECT ALL ( cor0.col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 * 87 + tab2.col1 + col1 FROM tab2
----
2380
2411
3340
query I rowsort
SELECT DISTINCT - col1 + 87 FROM tab1 cor0
----
61
74
77
query I rowsort
SELECT ALL 46 * 56 AS col1 FROM tab0
----
2576
2576
2576
query I rowsort
SELECT ALL col2 * - 50 FROM tab0
----
-1650
-4100
-50
query I rowsort
SELECT - 12 FROM tab0 cor0
----
-12
-12
-12
query I rowsort
SELECT - - 40 * + col1 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT ALL ( 16 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL + 77 FROM tab2, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 84 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT + - col1 * + col2 + + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - 99 AS col2 FROM tab1 AS cor0
----
-99
-99
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * - col1 * + col2 col1 FROM tab2 cor0
----
-31008
-40176
-73632
query I rowsort
SELECT - col1 + + col0 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-159
-2900
-7464
query I rowsort
SELECT ALL - 65 * col1 FROM tab1 AS cor0
----
-1690
-650
-845
query I rowsort
SELECT ALL + col1 * + col2 + - ( + 61 ) FROM tab0 AS cor0
----
2777
36
7401
query I rowsort
SELECT DISTINCT - - 52 AS col1 FROM tab0 AS cor0
----
52
query I rowsort
SELECT ALL - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 54 * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cf99c84390908dd1aa23f037b0aa1452
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
query I rowsort
SELECT ALL - 17 * - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ace3d030d524a7677f9f84197e5fb842
query I rowsort
SELECT col0 * col1 * col2 + - col0 AS col2 FROM tab2
----
119574
50955
5852
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT - col1 DIV ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-6523
SELECT - col1 / ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL + col0 * col0 + + 25 FROM tab0 AS cor0
----
1250
601
7946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6525
SELECT col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6525
SELECT col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT ALL + col2 DIV ( col1 ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + col2 / ( col1 ) FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + - col0 * col2 + + 58 FROM tab0 AS cor0
----
-7240
-734
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT DISTINCT col0 DIV ( - 6 ) FROM tab1 AS cor0
----
-10
-13
0
skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT col0 / ( - 6 ) FROM tab1 AS cor0
----
-10
-13
0
query I rowsort
SELECT ALL - col1 * - col0 + col0 * cor0.col1 FROM tab2 cor0
----
2686
434
9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT DISTINCT col2 DIV + ( col0 ) FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT col2 / + ( col0 ) FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL - - col0 * - ( - col1 ) + - col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 74 col1 FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT ALL - - col1 - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - - 59 + - cor0.col0 FROM tab1 cor0
----
-21
-5
56
query I rowsort
SELECT ALL + - ( + col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + 46 ) FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col1 * + col0 col1 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT + ( col0 + + col2 ) FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 75 * col1 col1 FROM tab0 cor0
----
6417
6743
7274
onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT DISTINCT + col1 * col2 DIV col1 + 31 * - 93 FROM tab1 cor0
----
-2787
-2826
-2829
skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT + col1 * col2 / col1 + 31 * - 93 FROM tab1 cor0
----
-2787
-2826
-2829
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - ( col2 ) FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT + + 84 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT cor0.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL - 83 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT 99 * col2 FROM tab1
----
5346
5643
9504
query I rowsort
SELECT - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6551
SELECT DISTINCT - + col0 + - CAST( + 79 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-157
-158
-86
skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - + col0 + - CAST ( + 79 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-157
-158
-86
query I rowsort
SELECT ALL - col0 + ( cor0.col1 + - col1 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT col0 + 62 DIV ( col0 * - col0 ) FROM tab1 cor0
----
-3
64
80
skipif mysql # not compatible
query I rowsort label-6553
SELECT col0 + 62 / ( col0 * - col0 ) FROM tab1 cor0
----
-3
64
80
query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + 15 + - col1 AS col2 FROM tab2
----
-16
-2
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT ALL col2 + col0 DIV - 20 FROM tab1
----
54
54
92
skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL col2 + col0 / - 20 FROM tab1
----
54
54
92
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL col0 * col2 + - tab1.col2 AS col1 FROM tab1
----
108
3591
7584
query I rowsort
SELECT col1 * col0 + - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT - - col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f3ede863c793df0de5c26c654290b3b7
query I rowsort
SELECT DISTINCT - col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col0 * - 87 AS col0 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT ALL + col0 + + 55 AS col2 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT ALL - col0 * - ( 70 ) AS col0 FROM tab1 AS cor0
----
210
4480
5600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6567
SELECT ALL + col1 * - cor0.col1 * ( col2 ) + - col1 * col0 DIV - col2 FROM tab1 cor0
----
-16214
-36503
-5689
skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + col1 * - cor0.col1 * ( col2 ) + - col1 * col0 / - col2 FROM tab1 cor0
----
-16214
-36503
-5689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT + col0 * CAST( - col0 AS SIGNED ) + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
-4550
-5595
788
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6568
SELECT + col0 * CAST ( - col0 AS INTEGER ) + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
-4550
-5595
788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6569
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6569
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT - 73 DIV - col1 AS col0 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6570
SELECT - 73 / - col1 AS col0 FROM tab2
----
1
2
4
query I rowsort
SELECT ALL + ( - col2 + - col0 ) * + col0 AS col1 FROM tab0
----
-1260
-1368
-15219
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT DISTINCT 22 * + 38 FROM tab1
----
836
query I rowsort
SELECT ALL - ( + 84 ) FROM tab1
----
-84
-84
-84
query I rowsort
SELECT + ( 69 ) * + col1 AS col1 FROM tab2 cor0
----
1173
2139
4071
query I rowsort
SELECT - col0 + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + 86 AS col1 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT - col0 + + col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT - cor0.col1 - - col1 * col2 DIV 28 col2 FROM tab1 AS cor0
----
10
24
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6579
SELECT - cor0.col1 - - col1 * col2 / 28 col2 FROM tab1 AS cor0
----
10
24
31
query I rowsort
SELECT 12 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT + 29 + col1 AS col0 FROM tab1 AS cor0
----
39
42
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col0 FROM tab0 AS cor0
----
89
query I rowsort
SELECT ALL - + 40 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT + ( + col2 ) + 69 FROM tab0 AS cor0
----
102
151
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT ALL - col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - col2 / - col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - col1 - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + 77 + - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-174
-2915
-7539
query I rowsort
SELECT ALL + 30 + + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1255
606
7951
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT + + col1 DIV col0 - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-6590
SELECT + + col1 / col0 - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT DISTINCT - col0 + + col0 + - col0 AS col1 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * + col2 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - + 18 AS col0 FROM tab2 AS cor0
----
-18
query I rowsort
SELECT ALL 51 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 41 AS col0 FROM tab2 cor0
----
41
41
41
query I rowsort
SELECT DISTINCT + - 19 * col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT ALL + - 47 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1581
-693
-884
query I rowsort
SELECT - 87 FROM tab1 AS cor0
----
-87
-87
-87
query I rowsort
SELECT col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + - col2 * cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT ALL 70 AS col2 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT - + col1 + - col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT ALL + col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + col2 / + col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL col2 + + col2 - col0 FROM tab2
----
-26
-3
47
query I rowsort
SELECT DISTINCT + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ( + col0 ) + + col0 + + col2 * col2 AS col1 FROM tab0
----
1137
6902
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT 31 DIV col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6610
SELECT 31 / col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + 91 - col0 FROM tab1
----
11
27
88
query I rowsort
SELECT DISTINCT + + 95 * 19 + col1 FROM tab2 cor0
----
1822
1836
1864
query I rowsort
SELECT DISTINCT + 68 FROM tab1, tab0 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT DISTINCT - col0 + - cor0.col0 DIV cor0.col1 FROM tab1 cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - col0 + - cor0.col0 / cor0.col1 FROM tab1 cor0
----
-3
-70
-86
query I rowsort
SELECT ALL + ( - col0 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + col0 + + cor0.col0 AS col2 FROM tab2 cor0
----
203
2184
3160
query I rowsort
SELECT ALL 29 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + CAST ( NULL AS REAL ) + - cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - col2 / col1 AS col2 FROM tab2
----
-2
0
query I rowsort
SELECT tab2.col1 - 59 FROM tab2
----
-28
-42
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6622
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / + col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / + col1 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT ALL + col0 * - 52 AS col0 FROM tab2
----
-364
-4056
-4108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab0
----
22
query I rowsort
SELECT ( ( + tab2.col2 ) ) AS col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT + 65 + + col1 DIV + col2 FROM tab0
----
162
66
67
skipif mysql # not compatible
query I rowsort label-6626
SELECT + 65 + + col1 / + col2 FROM tab0
----
162
66
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT DISTINCT + col0 DIV 34 AS col2 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + col0 / 34 AS col2 FROM tab1
----
0
1
2
query I rowsort
SELECT - col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - ( col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col2 + col1 * - tab1.col0 AS col2 FROM tab1
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + tab2.col0 col2 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 28 col2 FROM tab2
----
-21
50
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT ALL - CAST( - ( - col0 ) AS SIGNED ) * + col1 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - CAST ( - ( - col0 ) AS INTEGER ) * + col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col1 + + 28 FROM tab0
----
114
119
125
query I rowsort
SELECT - col1 * 75 FROM tab1
----
-1950
-750
-975
query I rowsort
SELECT ALL - col0 + - ( - ( + col1 ) + col1 * + col1 ) FROM tab0 AS cor0
----
-7334
-8279
-9347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col2 + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - cor0.col0 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col2 + ( 68 ) FROM tab1 cor0
----
122
125
164
query I rowsort
SELECT ALL - - col0 + + 78 AS col1 FROM tab0 AS cor0
----
102
113
167
query I rowsort
SELECT DISTINCT - cor0.col0 * ( 84 ) + - cor0.col2 FROM tab0 AS cor0
----
-2049
-2941
-7558
query I rowsort
SELECT ALL + + 95 - 6 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT ALL col1 + 9 - col2 FROM tab0 AS cor0
----
105
18
62
query I rowsort
SELECT col0 + 13 FROM tab2 AS cor0
----
20
91
92
query I rowsort
SELECT 69 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT - col2 DIV + col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6647
SELECT - col2 / + col2 FROM tab1
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT - - CAST( NULL AS SIGNED ) + 13 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6648
SELECT - - CAST ( NULL AS INTEGER ) + 13 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col0 + + col0 + - col1 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6651
SELECT + + CAST( NULL AS SIGNED ) + + ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6651
SELECT + + CAST ( NULL AS INTEGER ) + + ( col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT 28 * col2 - - col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6652
SELECT 28 * col2 - - col2 / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 + + 97 FROM tab1 AS cor0
----
71
84
87
query I rowsort
SELECT ALL 57 * + col1 AS col1 FROM tab2
----
1767
3363
969
query I rowsort
SELECT ALL ( + col1 ) * tab2.col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT col2 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6656
SELECT col2 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL - cor0.col1 + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col2 + + col2 * 33 AS col0 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT + - cor0.col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6660
SELECT + - cor0.col0 / - col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) + + 16 col1 FROM tab0 AS cor0
----
-17
-66
15
query I rowsort
SELECT DISTINCT - + col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col2 * + 80 FROM tab1 AS cor0
----
-4320
-4560
-7680
query I rowsort
SELECT + - col0 * 37 FROM tab1 AS cor0
----
-111
-2368
-2960
query I rowsort
SELECT ALL + cor0.col0 * col0 + + 85 + col2 AS col2 FROM tab1 AS cor0
----
148
4238
6581
query I rowsort
SELECT DISTINCT col1 - 18 FROM tab1 AS cor0
----
-5
-8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6667
SELECT - col2 * + CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6667
SELECT - col2 * + CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - col2 + + col2 * cor0.col0 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT + + cor0.col0 * + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - col0 * ( - 80 ) AS col0 FROM tab1 AS cor0
----
240
5120
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT 3 + col0 * 88 DIV + tab1.col0 AS col0 FROM tab1
----
91
91
91
skipif mysql # not compatible
query I rowsort label-6671
SELECT 3 + col0 * 88 / + tab1.col0 AS col0 FROM tab1
----
91
91
91
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab2
----
48
query I rowsort
SELECT + col1 - col0 * - 14 * + ( - col0 ) FROM tab1
----
-100
-57334
-89587
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6675
SELECT + col2 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT + col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6676
SELECT + col1 / - cor0.col0 FROM tab2 AS cor0
----
-4
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a
query I rowsort
SELECT - cor0.col0 * - 69 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3762d28f1db31c7f7d977029e0f28049
query I rowsort
SELECT + 43 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT ALL - - col1 * + 17 * - col1 AS col2 FROM tab0 AS cor0
----
-125732
-140777
-159953
onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT + + col1 DIV col1 col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6681
SELECT + + col1 / col1 col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 * ( + col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col2 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - cor0.col2 + - col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT ALL 50 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT - CAST( NULL AS SIGNED ) * - 75 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6686
SELECT - CAST ( NULL AS INTEGER ) * - 75 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab1, tab1 AS cor0
----
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6690
SELECT ALL + CAST( cor0.col2 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - col2 * - 90 * col1 FROM tab0
----
255420
671580
8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT ALL + col0 DIV - ( - 16 ) AS col0 FROM tab0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + col0 / - ( - 16 ) AS col0 FROM tab0
----
1
2
5
query I rowsort
SELECT ALL - col2 * col0 * col1 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL 90 - cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3b52a1e765075d6f0b2a014b103d6e44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 28 * - col2 col0 FROM tab1
----
-1538
-1606
-2701
query I rowsort
SELECT + 7 * + ( col0 ) AS col0 FROM tab0
----
168
245
623
query I rowsort
SELECT - - cor0.col2 * col0 + col2 * 51 FROM tab0 AS cor0
----
11480
2475
86
query I rowsort
SELECT col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL ( ( - col0 ) ) + ( - col1 + tab2.col1 * + 1 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT - 59 + col1 * col2 AS col1 FROM tab1
----
1189
1345
511
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) + col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col0 * - 96 FROM tab2
----
-672
-7488
-7584
query I rowsort
SELECT col0 + + col2 * - col2 FROM tab0
----
-1065
-6635
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT col2 + col0 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-6706
SELECT col2 + col0 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT col2 + - col0 * 91 * + col1 + + col2 DIV col0 FROM tab0 AS cor0
----
-187790
-308944
-736927
skipif mysql # not compatible
query I rowsort label-6707
SELECT col2 + - col0 * 91 * + col1 + + col2 / col0 FROM tab0 AS cor0
----
-187790
-308944
-736927
query I rowsort
SELECT + + col1 + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT DISTINCT - 89 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-11
551
951
query I rowsort
SELECT ALL + + col1 + + col2 * col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT ALL 66 * col0 DIV 53 FROM tab2 AS cor0
----
8
97
98
skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL 66 * col0 / 53 FROM tab2 AS cor0
----
8
97
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - cor0.col0 * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - 96 + col0 AS col2 FROM tab0 AS cor0
----
-61
-7
-72
query I rowsort
SELECT DISTINCT col2 * col0 + col2 * col1 FROM tab1 AS cor0
----
1566
4218
8928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6717
SELECT - col1 * - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6717
SELECT - col1 * - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT - cor0.col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6718
SELECT - cor0.col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 79 FROM tab1 cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab0
----
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT col1 DIV + ( + tab1.col1 ) AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6721
SELECT col1 / + ( + tab1.col1 ) AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT col1 * tab0.col0 * col2 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT 69 FROM tab1
----
69
69
69
query I rowsort
SELECT ALL 49 AS col2 FROM tab2
----
49
49
49
query I rowsort
SELECT col2 * - col1 * col2 AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - 81 * - ( col2 ) FROM tab1
----
4374
4617
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT col1 DIV - 90 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6727
SELECT col1 / - 90 AS col1 FROM tab2
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT DISTINCT col2 - + col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT - 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT - col1 * - cor0.col0 + ( 67 ) - + cor0.col2 AS col2 FROM tab1 AS cor0
----
1011
650
91
query I rowsort
SELECT col0 - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * - col2 + + col2 * - 21 + + col1 FROM tab1 AS cor0
----
-11219
-4024
-4436
query I rowsort
SELECT DISTINCT 14 - tab1.col2 FROM tab1
----
-40
-43
-82
query I rowsort
SELECT + - 23 * col1 AS col0 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + + cor0.col1 + + 40 * + col2 AS col0 FROM tab0 cor0
----
137
1406
3371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT DISTINCT 22 * + tab0.col1 FROM tab0, tab2 AS cor0
----
1892
2002
2134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6741
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL + 56 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - ( - 10 ) FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT ALL + cor0.col0 * + col2 - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 59 * 7 FROM tab1 AS cor0
----
413
413
413
query I rowsort
SELECT + + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT - CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6749
SELECT - CAST ( NULL AS REAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + cor0.col2 * - cor0.col2 * - col0 col0 FROM tab0 cor0
----
125
26226
598526
query I rowsort
SELECT ALL - + 64 AS col1 FROM tab0 AS cor0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT + col1 * + col0 - 57 FROM tab0 AS cor0
----
2007
3338
8042
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - - 10 * - col1 AS col1 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT DISTINCT + 60 + col2 FROM tab1 AS cor0
----
114
117
156
query I rowsort
SELECT DISTINCT - - col1 * col2 + ( + 25 ) * col1 + - col2 FROM tab0 AS cor0
----
2521
4955
9655
query I rowsort
SELECT ALL - - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6758
SELECT + cor0.col2 DIV 88 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6758
SELECT + cor0.col2 / 88 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT CAST( + 52 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
skipif mysql # not compatible
query I rowsort label-6759
SELECT CAST ( + 52 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0, tab2 AS cor0
----
-70
query I rowsort
SELECT - col1 * - 20 AS col1 FROM tab0 AS cor0
----
1720
1820
1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 col1 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT - cor0.col0 * - 94 * + col0 FROM tab0 AS cor0
----
115150
54144
744574
query I rowsort
SELECT ALL - col1 * + ( col1 + + col1 ) * + col0 FROM tab1 AS cor0
----
-12800
-27040
-4056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 58 * col2 col1 FROM tab2 AS cor0
----
1534
1593
2242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) * + cor0.col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 + + col2 * col2 col0 FROM tab0 cor0
----
-35
1053
6688
query I rowsort
SELECT 39 * + col0 AS col1 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT DISTINCT - + 1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT col0 + 83 AS col0 FROM tab1
----
147
163
86
query I rowsort
SELECT ALL col2 * tab2.col2 + + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT 82 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT col0 * 2 + col2 FROM tab2
----
182
196
41
query I rowsort
SELECT ALL 95 AS col1 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT DISTINCT - col1 + + 20 * 44 AS col2 FROM tab1
----
854
867
870
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + col0 = NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col0 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT ALL col2 DIV - col0 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL col2 / - col0 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE NOT NULL < col0
----
query I rowsort
SELECT col0 FROM tab1 WHERE NULL <= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL tab1.col0 + col1 AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT DISTINCT + col1 DIV + col1 + + col2 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + col1 / + col1 + + col2 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT ALL - col1 * - col0 + - cor0.col2 * + col2 FROM tab2 AS cor0
----
-101
-512
3926
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col2 FROM tab2
----
306
3540
992
query I rowsort
SELECT col2 * col2 * tab2.col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL - col2 + - col1 * - col1 AS col2 FROM tab1
----
43
622
73
query I rowsort
SELECT ALL - + col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - - col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
1749
738
96
query I rowsort
SELECT + col0 * col1 * - col2 + col2 AS col0 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT + tab2.col2 * - col0 * col2 AS col1 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + col2 * col1 - + col2 * + col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * + col0 * col1 + - col1 FROM tab0 AS cor0
----
-177590
-329412
-737100
query I rowsort
SELECT ALL + + col1 + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - + col1 * - col0 + col0 * col2 AS col2 FROM tab1 cor0
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - col1 - - col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + - col0 col1 FROM tab0 AS cor0
----
7372
8192
9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 + col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT + col2 * col0 * col2 + + col1 DIV col1 FROM tab0 AS cor0
----
26137
36
598437
skipif mysql # not compatible
query I rowsort label-6812
SELECT + col2 * col0 * col2 + + col1 / col1 FROM tab0 AS cor0
----
26137
36
598437
query I rowsort
SELECT ALL - col0 + - col1 * - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL + cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 + col2 + col1 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT - cor0.col1 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL - col0 + + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col2 + cor0.col2 * col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 12 * col2 FROM tab1 AS cor0
----
1152
648
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6822
SELECT ALL + col2 DIV - col2 col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + col2 / - col2 col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT 52 * + col1 FROM tab2 cor0
----
1612
3068
884
query I rowsort
SELECT col2 + col1 FROM tab2 cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col1 + - 34 * 46 FROM tab0 AS cor0
----
-1467
-1473
-1478
query I rowsort
SELECT col2 * - col1 * - 63 + - cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
40664
52669
96524
query I rowsort
SELECT cor0.col1 * ( col1 * + col2 ) FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT + col2 * col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6829
SELECT + col2 * col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT ( - tab2.col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - 87 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT DISTINCT 90 * + col1 AS col0 FROM tab1
----
1170
2340
900
query I rowsort
SELECT - col2 * 55 + - 94 * - col1 + ( 36 ) * col2 AS col1 FROM tab2 AS cor0
----
2401
5052
876
query I rowsort
SELECT ( + col2 ) + - col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + col1 * col0 - + col2 AS col2 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT tab1.col1 DIV - tab1.col1 col0 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6839
SELECT tab1.col1 / - tab1.col1 col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - col2 * col0 + col0 AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + col1 + - tab1.col0 - col0 * col0 FROM tab1
----
-4150
-6467
14
query I rowsort
SELECT + col1 + - col0 * + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 + - col0 + col1 AS col1 FROM tab0
----
63
84
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT DISTINCT - col2 DIV + tab2.col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - col2 / + tab2.col0 FROM tab2
----
-3
0
query I rowsort
SELECT col0 * + col0 + + col1 FROM tab0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - col1 col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT col0 * col1 + + col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT ALL + col0 DIV + col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + col0 / + col2 FROM tab1
----
0
0
1
query I rowsort
SELECT tab2.col0 * + col1 * col0 AS col0 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT ALL + tab0.col2 DIV - col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + tab0.col2 / - col0 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT ALL + col2 DIV - tab2.col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + col2 / - tab2.col0 FROM tab2
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT col0 * col1 DIV - col2 AS col0 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-6852
SELECT col0 * col1 / - col2 AS col0 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT col0 + tab2.col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 / col2 + col1 + col1 )
----
query I rowsort
SELECT ALL tab1.col2 * col1 - col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + col0 * col0 FROM tab0
----
1225
576
7921
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2 - col2 * col2 / col0 )
----
query I rowsort
SELECT col1 - - col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + tab1.col2 * col2 AS col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT 6 DIV col1 + cor0.col0 * 97 + col0 FROM tab1 AS cor0
----
294
6272
7840
skipif mysql # not compatible
query I rowsort label-6859
SELECT 6 / col1 + cor0.col0 * 97 + col0 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT - 95 * + cor0.col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT ALL col2 - + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 * + col2 * + tab1.col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT tab2.col1 - col0 FROM tab2
----
-19
-62
24
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + col2 < ( - col1 - - col0 * col2 )
----
query I rowsort
SELECT col0 * col1 + col2 * - col0 * col2 AS col1 FROM tab1
----
-207296
-736240
-8670
query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col0 NOT IN ( + col1 )
----
17
31
59
query I rowsort
SELECT DISTINCT col0 * - col0 - + col1 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT col1 * 91 AS col2 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + tab2.col2 * + 72 * col1 + col0 FROM tab2
----
110526
46591
60271
query I rowsort
SELECT ALL cor0.col0 - 2 FROM tab0 AS cor0
----
22
33
87
query I rowsort
SELECT ALL + col1 * col0 * cor0.col1 AS col0 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT 54 + + col0 AS col2 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT ALL - + cor0.col2 + col0 FROM tab0 cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6875
SELECT + CAST( NULL AS DECIMAL ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6875
SELECT + CAST ( NULL AS REAL ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 84 FROM tab2 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT + + 59 DIV col1 + col2 FROM tab1 AS cor0
----
100
56
62
skipif mysql # not compatible
query I rowsort label-6877
SELECT + + 59 / col1 + col2 FROM tab1 AS cor0
----
100
56
62
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 * + 68 + - cor0.col1 FROM tab1 AS cor0
----
-230
-4362
-5453
query I rowsort
SELECT ALL + - 32 * - col1 + + col0 FROM tab0 cor0
----
2776
3001
3139
query I rowsort
SELECT DISTINCT - 21 * + col0 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT + 95 * col1 - + col0 FROM tab1 cor0
----
1155
2467
886
query I rowsort
SELECT ALL 27 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL - col2 * col2 + + col1 + - 80 FROM tab2 AS cor0
----
-1507
-697
-778
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - 74 + + col2 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT 24 * col2 AS col0 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT - + 30 + col0 AS col2 FROM tab1 AS cor0
----
-27
34
50
query I rowsort
SELECT - - col2 + + col2 * - 3 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL 94 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - 26 * col1 FROM tab0 cor0
----
-2236
-2366
-2522
onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT DISTINCT - ( col2 ) + + col1 DIV - 65 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-6893
SELECT DISTINCT - ( col2 ) + + col1 / - 65 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + ( - col1 ) * + 16 * 78 AS col0 FROM tab1 AS cor0
----
-12480
-16224
-32448
query I rowsort
SELECT + ( - 11 ) AS col0 FROM tab0
----
-11
-11
-11
query I rowsort
SELECT col0 * - tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL 86 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT + + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * col0 * col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT ALL col2 * + col0 + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col1 + + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - col1 + col2 * + 66 * col2 FROM tab0
----
-31
443693
71788
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT DISTINCT + col0 DIV - ( col0 ) + col2 * + col1 col0 FROM tab0 AS cor0
----
2837
7461
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT + col0 / - ( col0 ) + col2 * + col1 col0 FROM tab0 AS cor0
----
2837
7461
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT DISTINCT + col2 + + ( col1 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT + col2 + + ( col1 ) / - col2 AS col0 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT col0 - + col0 * 58 FROM tab2
----
-399
-4446
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT col0 * - 8 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-23
-511
-639
skipif mysql # not compatible
query I rowsort label-6906
SELECT col0 * - 8 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
-23
-511
-639
query I rowsort
SELECT + col0 * - 60 AS col2 FROM tab0 AS cor0
----
-1440
-2100
-5340
query I rowsort
SELECT DISTINCT + + col0 + ( - col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col1 * cor0.col2 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT ALL col2 + + 13 * - col1 AS col1 FROM tab2 AS cor0
----
-183
-376
-741
query I rowsort
SELECT ALL cor0.col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col1 FROM tab0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6913
SELECT 35 - + col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6913
SELECT 35 - + col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + + col1 col1 FROM tab2
----
117
75
89
query I rowsort
SELECT DISTINCT ( col0 ) + - col1 AS col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT - col2 * - col2 + + ( - col0 ) * col1 DIV 21 FROM tab1
----
2913
3219
9167
skipif mysql # not compatible
query I rowsort label-6916
SELECT - col2 * - col2 + + ( - col0 ) * col1 / 21 FROM tab1
----
2913
3219
9167
query I rowsort
SELECT col1 + tab2.col2 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT col0 DIV 79 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6918
SELECT col0 / 79 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 + - 83 * - col0 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT + col1 * + col1 + 94 AS col1 FROM tab1 AS cor0
----
194
263
770
query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 * ( + ( col0 ) ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + + col1 + col0 + col1 AS col2 FROM tab2 cor0
----
113
196
69
query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL col0 * col2 + col2 * - col2 * ( 60 ) AS col1 FROM tab0 AS cor0
----
-25
-396142
-64548
query I rowsort
SELECT DISTINCT + col1 * + col0 + - ( col2 ) FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6929
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 58 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 58 AS col2 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT - CAST( - ( - col2 ) AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-6930
SELECT - CAST ( - ( - col2 ) AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6931
SELECT DISTINCT + - col0 + - col0 * - col2 - + CAST( 62 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1771
4204
8406
skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + - col0 + - col0 * - col2 - + CAST ( 62 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1771
4204
8406
query I rowsort
SELECT DISTINCT + ( - col0 ) - + col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT 81 DIV + ( col2 ) col1 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6933
SELECT 81 / + ( col2 ) col1 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 14 + - col1 AS col2 FROM tab0
----
-72
-77
-83
query I rowsort
SELECT + + 3 + + cor0.col0 AS col0 FROM tab1 cor0
----
6
67
83
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 12 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 76 * - col2 AS col1 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT - 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 70 + + col1 * 27 FROM tab2 AS cor0
----
1523
389
767
query I rowsort
SELECT + - col0 * + col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 32 * col1 AS col0 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL cor0.col1 * - 79 AS col2 FROM tab1 AS cor0
----
-1027
-2054
-790
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT DISTINCT col2 * + col0 DIV + col0 AS col2 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT col2 * + col0 / + col0 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ( col1 ) + + col1 + 77 AS col1 FROM tab0 AS cor0
----
249
259
271
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 97 + col2 FROM tab0 AS cor0
----
-15
-64
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6953
SELECT - CAST( 2 AS SIGNED ) FROM tab2 cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-6953
SELECT - CAST ( 2 AS INTEGER ) FROM tab2 cor0
----
-2
-2
-2
query I rowsort
SELECT col2 * - 58 + - col2 FROM tab1 AS cor0
----
-3186
-3363
-5664
query I rowsort
SELECT - col2 * + ( + col1 * + ( + col2 ) ) + - col2 AS col1 FROM tab0 AS cor0
----
-611966
-93687
-98
query I rowsort
SELECT - + col0 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-141
-97
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT + - ( 27 ) * + col2 * + col0 + - ( - col2 * CAST( NULL AS SIGNED ) ) + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6957
SELECT + - ( 27 ) * + col2 * + col0 + - ( - col2 * CAST ( NULL AS INTEGER ) ) + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL - 57 AS col0 FROM tab0
----
-57
-57
-57
query I rowsort
SELECT - col1 * - 41 + col1 * col1 FROM tab0
----
10922
12012
13386
query I rowsort
SELECT + col1 * + ( col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL cor0.col1 * - 16 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT DISTINCT col0 * - ( - cor0.col2 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT 41 * - col0 + col0 * - col0 + + col0 DIV + tab0.col2 FROM tab0
----
-11569
-1560
-2625
skipif mysql # not compatible
query I rowsort label-6964
SELECT 41 * - col0 + col0 * - col0 + + col0 / + tab0.col2 FROM tab0
----
-11569
-1560
-2625
query I rowsort
SELECT - 68 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
query I rowsort
SELECT + col2 * 0 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 * ( - col0 * col0 ) AS col2 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT col1 * + 56 FROM tab1
----
1456
560
728
query I rowsort
SELECT ALL - col2 + + 0 * + tab0.col1 * + col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 * + col0 + tab1.col0 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col2 * + col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - - col2 + + cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + col0 * + 26 FROM tab0
----
2314
624
910
query I rowsort
SELECT ( col2 ) * col2 + ( + col2 ) FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 27 col2 FROM tab2 cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( - col1 ) + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT col0 DIV tab1.col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6978
SELECT col0 / tab1.col2 FROM tab1
----
0
0
1
query I rowsort
SELECT - 44 + + col1 FROM tab2 AS cor0
----
-13
-27
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT DISTINCT + col2 DIV - col0 AS col2 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT + col2 / - col0 AS col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ( col0 ) * - tab0.col0 * tab0.col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + 98 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT + - CAST( + 89 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6983
SELECT + - CAST ( + 89 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 94 + - col0 FROM tab0 AS cor0
----
-118
-129
-183
query I rowsort
SELECT + col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 73 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL - 97 * + col2 FROM tab0
----
-3201
-7954
-97
query I rowsort
SELECT - 75 FROM tab1
----
-75
-75
-75
query I rowsort
SELECT 8 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT ALL + 41 * - col0 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT + ( + col2 ) FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - cor0.col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col0 * 14 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1123
1151
129
query I rowsort
SELECT - - cor0.col0 - + 12 * - col1 * + col0 FROM tab2 AS cor0
----
16195
2611
55302
query I rowsort
SELECT - cor0.col0 * + 80 - col0 AS col2 FROM tab1 AS cor0
----
-243
-5184
-6480
query I rowsort
SELECT - - col2 + 43 FROM tab2 AS cor0
----
69
70
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT + col1 + CAST( - 23 AS SIGNED ) col2 FROM tab2 AS cor0
----
-6
36
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7000
SELECT + col1 + CAST ( - 23 AS INTEGER ) col2 FROM tab2 AS cor0
----
-6
36
8
query I rowsort
SELECT + col1 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col2 - - tab0.col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT 29 AS col1 FROM tab1
----
29
29
29
query I rowsort
SELECT col1 - col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + cor1.col2 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab2, tab1 AS cor0
----
-53
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT - col0 + - col2 * 48 AS col2 FROM tab2 AS cor0
----
-1303
-1326
-1903
query I rowsort
SELECT - - col1 * col2 + ( - col1 ) FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL 26 + + col1 AS col1 FROM tab0 cor0
----
112
117
123
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + + cor0.col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + + col2 - + col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT DISTINCT - col0 + col1 DIV col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - col0 + col1 / col0 FROM tab0 AS cor0
----
-21
-33
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT ALL col2 DIV - col1 + ( + cor0.col1 ) FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL col2 / - col1 + ( + cor0.col1 ) FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ALL col2 + - col2 DIV 2 AS col0 FROM tab2 AS cor0
----
13
14
19
skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL col2 + - col2 / 2 AS col0 FROM tab2 AS cor0
----
13
14
19
query I rowsort
SELECT 65 + col1 AS col0 FROM tab1 AS cor0
----
75
78
91
query I rowsort
SELECT ALL - + 21 + + col0 AS col1 FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT + col2 * col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT - col1 + ( - col0 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - + col2 * + 29 + + 35 * - col0 AS col0 FROM tab1 AS cor0
----
-1671
-3893
-5584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT + col1 DIV col0 - + 36 FROM tab0 AS cor0
----
-33
-34
-35
skipif mysql # not compatible
query I rowsort label-7027
SELECT + col1 / col0 - + 36 FROM tab0 AS cor0
----
-33
-34
-35
query I rowsort
SELECT + + col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * ( col0 ) AS col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( ( + col0 ) ) + col0 col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7031
SELECT + - col2 - - CAST( NULL AS DECIMAL ) 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-7031
SELECT + - col2 - - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + 81 AS col1 FROM tab0 cor0
----
105
116
170
query I rowsort
SELECT + col2 * col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT col0 - + 33 FROM tab2 cor0
----
-26
45
46
query I rowsort
SELECT ALL 32 AS col1 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT - ( + 95 ) + col1 AS col2 FROM tab0 AS cor0
----
-4
-9
2
query I rowsort
SELECT - + 67 + 26 AS col1 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT - col2 * ( ( col1 ) ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 20 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT ALL col2 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL col2 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - - ( + 36 ) FROM tab2 AS cor0
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col2 FROM tab2 cor0
----
34
34
34
query I rowsort
SELECT - ( + 0 ) * - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT DISTINCT - cor0.col0 DIV cor0.col2 + + col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT - cor0.col0 / cor0.col2 + + col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - + cor0.col1 * - col1 + + col0 FROM tab1 cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + + col1 + + col2 * ( - 84 ) col1 FROM tab2 AS cor0
----
-2047
-2230
-3096
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT ALL + + col2 DIV 74 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + + col2 / 74 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 20 + col2 + col0 * col2 FROM tab0 AS cor0
----
16
7360
805
query I rowsort
SELECT DISTINCT + - 39 AS col2 FROM tab2 AS cor0
----
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT ALL cor0.col2 DIV + 15 AS col2 FROM tab0 cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL cor0.col2 / + 15 AS col2 FROM tab0 cor0
----
0
2
5
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - 84 * 5 FROM tab2 AS cor0
----
-420
-420
-420
query I rowsort
SELECT - 24 * col0 FROM tab2 AS cor0
----
-168
-1872
-1896
query I rowsort
SELECT DISTINCT + + col2 + - 22 FROM tab1 AS cor0
----
32
35
74
query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 - - ( col2 ) * + col1 * 12 col2 FROM tab2
----
10071
18434
7790
query I rowsort
SELECT DISTINCT - + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 57 * - col2 + + col2 * col0 FROM tab2 AS cor0
----
-1350
546
836
query I rowsort
SELECT DISTINCT 26 + - col1 FROM tab1 AS cor0
----
0
13
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT - ( - col1 ) * - col0 + - col0 DIV col0 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-7062
SELECT - ( - col1 ) * - col0 + - col0 / col0 FROM tab0 AS cor0
----
-2065
-3396
-8100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7063
SELECT - CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7063
SELECT - CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - col1 * col1 + 3 AS col0 FROM tab2 AS cor0
----
-286
-3478
-958
query I rowsort
SELECT - ( - col1 ) + col0 AS col2 FROM tab1
----
29
74
93
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT ALL + 41 AS col2 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT ALL - 66 FROM tab2
----
-66
-66
-66
query I rowsort
SELECT ALL - col0 + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + col1 + - col0 * 19 DIV + tab1.col0 FROM tab1
----
-6
-9
7
skipif mysql # not compatible
query I rowsort label-7070
SELECT + col1 + - col0 * 19 / + tab1.col0 FROM tab1
----
-6
-9
7
query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT ALL col2 + - col2 DIV - ( col1 ) FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL col2 + - col2 / - ( col1 ) FROM tab2
----
26
27
40
query I rowsort
SELECT DISTINCT + col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col1 - - col0 AS col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT ALL col1 + 87 + col2 * col1 DIV - col1 FROM tab2
----
120
66
91
skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL col1 + 87 + col2 * col1 / - col1 FROM tab2
----
120
66
91
query I rowsort
SELECT DISTINCT - col2 * 81 + ( col1 ) FROM tab0
----
-2587
-6551
16
query I rowsort
SELECT DISTINCT + col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 20 + cor1.col0 * 61 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 08dc155bc83181e348c7e0cf52f611c1
query I rowsort
SELECT + col1 - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * + ( col0 ) + col0 * 22 FROM tab1 AS cor0
----
-2240
-5920
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - 83 + - cor0.col1 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
1331
1487
653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7084
SELECT tab2.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7084
SELECT tab2.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - - ( cor0.col0 ) - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( - col1 ) * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + 47 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
144
1637
3945
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - ( col2 ) * col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + 39 * cor0.col1 AS col0 FROM tab0 cor0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT 90 * cor0.col0 DIV 56 AS col1 FROM tab2 AS cor0
----
11
125
126
skipif mysql # not compatible
query I rowsort label-7092
SELECT 90 * cor0.col0 / 56 AS col1 FROM tab2 AS cor0
----
11
125
126
query I rowsort
SELECT ALL + + 30 AS col1 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT - 71 * + col0 - 70 FROM tab2 AS cor0
----
-5608
-567
-5679
query I rowsort
SELECT ALL - + col1 * cor0.col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + - cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT + col2 DIV + col0 + + col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-7097
SELECT + col2 / + col0 + + col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT DISTINCT 12 FROM tab2, tab1 cor0, tab0 AS cor1
----
12
query I rowsort
SELECT DISTINCT - - col2 + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL tab1.col2 + + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + col0 + + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT col0 * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL 29 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ( cor0.col2 ) * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + - 91 + + col1 * col0 FROM tab0 AS cor0
----
1973
3304
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT - 50 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-130
-4850
-55
skipif mysql # not compatible
query I rowsort label-7108
SELECT - 50 * col1 / col2 AS col2 FROM tab0 AS cor0
----
-130
-4850
-55
query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + 89 * + 35 AS col1 FROM tab0 AS cor0
----
3115
3115
3115
query I rowsort
SELECT ALL - 92 * col0 FROM tab1 AS cor0
----
-276
-5888
-7360
query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + col2 + + 57 FROM tab0 AS cor0
----
-25
24
56
query I rowsort
SELECT ALL col0 + + 78 + + col1 FROM tab0 AS cor0
----
188
210
258
query I rowsort
SELECT 21 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c
query I rowsort
SELECT ALL + col1 + - 57 AS col0 FROM tab2
----
-26
-40
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT + ( + col0 ) + - col1 * col0 - col2 DIV - tab1.col1 FROM tab1
----
-571
-73
-953
skipif mysql # not compatible
query I rowsort label-7117
SELECT + ( + col0 ) + - col1 * col0 - col2 / - tab1.col1 FROM tab1
----
-571
-73
-953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - ( + col2 * + tab0.col2 ) FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7120
SELECT + ( tab2.col1 ) * CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7120
SELECT + ( tab2.col1 ) * CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 + - 87 AS col0 FROM tab2
----
-28
-56
-70
query I rowsort
SELECT DISTINCT 61 * - col2 FROM tab0
----
-2013
-5002
-61
query I rowsort
SELECT + + col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT - tab2.col2 DIV - col0 AS col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7124
SELECT - tab2.col2 / - col0 AS col0 FROM tab2
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT ALL + col2 DIV - col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + col2 / - col2 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 3 FROM tab2
----
3
query I rowsort
SELECT + 94 AS col1 FROM tab2
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT 59 DIV + col1 AS col2 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-7129
SELECT 59 / + col1 AS col2 FROM tab1
----
2
4
5
query I rowsort
SELECT DISTINCT tab1.col2 * col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - tab2.col0 * + 92 FROM tab2, tab1 cor0
----
9 values hashing to 62cbe633c9b04e947c440521f1325c3b
query I rowsort
SELECT col0 * + col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + col2 * - ( col2 ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL - ( - 76 ) + col1 AS col0 FROM tab1 AS cor0
----
102
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT DISTINCT CAST( col1 AS SIGNED ) + col1 DIV + col0 - - cor0.col1 FROM tab2 AS cor0
----
118
34
66
skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col1 / + col0 - - cor0.col1 FROM tab2 AS cor0
----
118
34
66
query I rowsort
SELECT - 18 AS col0 FROM tab1 cor0
----
-18
-18
-18
query I rowsort
SELECT ALL - 11 FROM tab2 cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT - 39 DIV + 26 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7138
SELECT - 39 / + 26 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col0 * 98 AS col1 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT DISTINCT + + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + 82 + + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
115
164
83
query I rowsort
SELECT - + 11 + + 85 FROM tab0 cor0
----
74
74
74
query I rowsort
SELECT + col2 * - col0 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-399
1536
2754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + col1 * 62 * col0 + col1 col0 FROM tab2
----
13492
285461
83362
query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 * - tab1.col2 + 72 FROM tab1
----
1212
2568
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 - col0 col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT 31 + - col2 * col2 + col0 FROM tab2
----
-1334
-567
-691
query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0, tab1 AS cor0
----
81
query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - 81 FROM tab1, tab0, tab1 AS cor0
----
-81
query I rowsort
SELECT - 94 FROM tab2, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7154
SELECT ALL CAST( - 36 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
360
468
936
skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL CAST ( - 36 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT ALL - ( + 59 ) AS col1 FROM tab2 AS cor0
----
-59
-59
-59
query I rowsort
SELECT tab1.col0 * col0 + - col2 + tab1.col1 FROM tab1
----
-19
4049
6317
query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 13 AS col2 FROM tab0
----
-13
-13
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT 85 DIV + tab0.col2 col1 FROM tab0
----
1
2
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7159
SELECT 85 / + tab0.col2 col1 FROM tab0
----
1
2
85
query I rowsort
SELECT col0 * col0 + col1 AS col2 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT DISTINCT + 90 + + tab0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
123
172
91
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - + col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 - 87 FROM tab2
----
-8
-80
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT - - col0 + + CAST( cor0.col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - - col0 + + CAST ( cor0.col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT ALL - col0 DIV CAST( - ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - col0 / CAST ( - ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col0 * 93 AS col1 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT ALL - col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 + - ( - ( - col2 ) * - 8 ) + + 78 * + col2 AS col0 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT DISTINCT - col2 * ( + cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT DISTINCT - col1 DIV col2 - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - col1 / col2 - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT ALL - + col1 + 4 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
1982
3302
8012
query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab1, tab1 AS cor0
----
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7176
SELECT ALL + CAST( + 82 AS SIGNED ) + tab0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d8e075061402a4fba4c1a4fee2a246a4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + CAST ( + 82 AS INTEGER ) + tab0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d8e075061402a4fba4c1a4fee2a246a4
query I rowsort
SELECT - col2 * + col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + + cor0.col0 * col2 + - col1 AS col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT 24 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL + - cor0.col0 + col2 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
119728
32426
75813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7182
SELECT DISTINCT - + col0 * + CAST( NULL AS SIGNED ) - + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - + col0 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col1 * cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT col1 * + 5 * + col0 FROM tab1 AS cor0
----
3200
390
5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col0 + - 51 AS col0 FROM tab0 AS cor0
----
-140
-75
-86
query I rowsort
SELECT DISTINCT - - col0 + 89 + col1 * col2 FROM tab2 AS cor0
----
1701
814
933
query I rowsort
SELECT ALL + 33 - 85 * col1 AS col1 FROM tab1 AS cor0
----
-1072
-2177
-817
query I rowsort
SELECT - - col0 * col2 + col0 * + col2 FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT - 21 + - col2 * + col0 FROM tab0 cor0
----
-56
-7319
-813
query I rowsort
SELECT ALL + 83 * + col2 + - col2 AS col0 FROM tab2 cor0
----
2132
2214
3116
query I rowsort
SELECT DISTINCT ( - col1 ) * cor0.col2 + 25 * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-1533
-2227
-3344
query I rowsort
SELECT ALL + - 2 * - col1 AS col1 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7194
SELECT - 41 - 20 DIV + col1 FROM tab2 AS cor0
----
-41
-41
-42
skipif mysql # not compatible
query I rowsort label-7194
SELECT - 41 - 20 / + col1 FROM tab2 AS cor0
----
-41
-41
-42
query I rowsort
SELECT DISTINCT + col2 + + ( - cor0.col2 ) * - cor0.col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7196
SELECT ALL - 29 DIV + col0 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 29 / + col0 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT + + 79 + 78 AS col2 FROM tab0 AS cor0
----
157
157
157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + + 53 + 6 col2 FROM tab1
----
123
139
62
query I rowsort
SELECT - col0 + + col1 + col2 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT col2 - - ( col1 + - tab1.col0 ) AS col0 FROM tab1
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( + col1 ) col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT + 32 * - 88 FROM tab2 AS cor0
----
-2816
-2816
-2816
query I rowsort
SELECT cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 89 + col1 AS col2 FROM tab2 AS cor0
----
-30
-58
-72
query I rowsort
SELECT + - 76 + - col1 * ( + cor0.col1 * - col2 ) FROM tab1 AS cor0
----
16148
36428
5624
query I rowsort
SELECT + - col2 * col2 * cor0.col1 FROM tab0 cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab2 AS cor0
----
-10
query I rowsort
SELECT ALL + + ( + col0 ) + - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - 36 * + col2 AS col2 FROM tab0 cor0
----
1188
2952
36
query I rowsort
SELECT ALL + 87 * col0 FROM tab1 cor0
----
261
5568
6960
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - - col0 * - col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + 58 + - col0 FROM tab1 AS cor0
----
-22
-6
55
query I rowsort
SELECT 80 * - col1 FROM tab2 AS cor0
----
-1360
-2480
-4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT ALL - col2 * col0 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - col2 * col0 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 * - col1 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * + col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL 63 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT + col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - + col1 * + col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - 8 + cor0.col2 AS col0 FROM tab1 AS cor0
----
46
49
88
query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab0 AS cor0
----
5
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - cor0.col2 + 91 * + 50 FROM tab2 cor0
----
4512
4523
4524
query I rowsort
SELECT + col0 + ( - 48 ) FROM tab1 AS cor0
----
-45
16
32
query I rowsort
SELECT ALL + + col2 * cor0.col1 - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - col0 + col2 + + col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT - - col1 * + col2 + + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT DISTINCT tab1.col0 DIV col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT tab1.col0 / col2 FROM tab1
----
0
1
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col1 * + col2 - col2 NOT IN ( col2 / - col1 + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col0 + - col0 = NULL
----
query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1 WHERE + col0 NOT BETWEEN + col0 + + col2 AND col0
----
54
57
96
query I rowsort
SELECT - col1 - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT col2 + col2 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + + col2 * + col2 col0 FROM tab1 cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT - col1 * col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT - col0 - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-7241
SELECT - col0 - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT DISTINCT - col1 DIV - cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - col1 / - cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - - col1 * - col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + + col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 90 + + col0 AS col2 FROM tab1 AS cor0
----
-10
-26
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + 56 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT ALL + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 - + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1127
-457
-7748
query I rowsort
SELECT + cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - + cor0.col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - col0 * col0 + - col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-603963
-93078
1128
query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT ALL + 64 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + 64 / + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE col0 * + col1 <> NULL
----
query I rowsort
SELECT tab1.col0 * - col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT - col2 DIV tab1.col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7266
SELECT - col2 / tab1.col0 AS col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + - col1 col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + col2 + tab2.col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT - col1 + col0 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + tab1.col1 * - col0 + - col2 AS col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT + col1 + tab0.col1 AS col2 FROM tab0 WHERE NULL NOT IN ( + col1 - + col2 )
----
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7274
SELECT + col1 DIV col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7274
SELECT + col1 / col1 FROM tab2
----
1
1
1
query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL >= col1 - col2 * - col2
----
query I rowsort
SELECT col0 - - col0 * col2 AS col2 FROM tab1
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7277
SELECT ALL - col1 * cor0.col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - col1 * cor0.col0 - 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-7278
SELECT ALL + - cor0.col1 * + col1 + CAST( 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-146
-653
-77
skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + - cor0.col1 * + col1 + CAST ( 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-146
-653
-77
query I rowsort
SELECT DISTINCT + 24 * cor0.col1 AS col1 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT DISTINCT - col1 * + col1 - + col2 AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab2.col0 - - col2 FROM tab2
----
104
117
34
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN col2 * col2 + col1 / col0 AND - tab0.col2 + col0
----
query I rowsort
SELECT DISTINCT - tab1.col2 + col2 * - col2 FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col1 )
----
query I rowsort
SELECT ALL col2 - col0 * col0 FROM tab2
----
-22
-6058
-6203
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 / + col1 ) > NULL
----
query I rowsort
SELECT ALL col2 + + tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * col2 col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT cor0.col1 * + col0 + + col0 * - col1 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col1 * col1 + col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT tab2.col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2 * - col0 + tab2.col0 )
----
query I rowsort
SELECT col0 * - tab1.col2 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - col1 FROM tab0 WHERE col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 - col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT tab1.col1 + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 WHERE ( col0 ) <> + tab2.col1
----
14
156
158
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 > ( col2 )
----
3
26
54
80
13
96
query I rowsort
SELECT + col2 * - tab2.col0 FROM tab2 WHERE - col0 * - col0 = col1 + - col0
----
query I rowsort
SELECT col1 * + col1 * + col2 + tab2.col0 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT - col2 * - col0 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT col2 * + col1 FROM tab2 WHERE NULL NOT IN ( col0 - col2 / - col0 )
----
query I rowsort
SELECT col1 * + col2 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + tab0.col0 * col1 + + col0 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - + col2 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + 95 * - col0 * col1 FROM tab0 AS cor0
----
-196080
-322525
-769405
query I rowsort
SELECT ALL - - ( - col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col1 * col1 - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT + 4 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL - 33 AS col1 FROM tab2
----
-33
-33
-33
query I rowsort
SELECT ALL + + ( col2 ) * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT ALL col0 + col0 + - 15 DIV cor0.col2 FROM tab0 AS cor0
----
178
48
55
skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL col0 + col0 + - 15 / cor0.col2 FROM tab0 AS cor0
----
178
48
55
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7314
SELECT - col0 * col2 DIV 80 + + tab1.col0 + tab1.col0 AS col0 FROM tab1
----
4
64
83
skipif mysql # not compatible
query I rowsort label-7314
SELECT - col0 * col2 / 80 + + tab1.col0 + tab1.col0 AS col0 FROM tab1
----
4
64
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7315
SELECT ALL cor0.col1 * + CAST( col0 AS SIGNED ) col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL cor0.col1 * + CAST ( col0 AS INTEGER ) col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - cor0.col1 * ( - 21 ) + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1358
-258
-6188
query I rowsort
SELECT DISTINCT col0 + - 27 * col0 AS col0 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT - col2 + + 2 * col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col1 * + 64 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT tab1.col0 * + col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL 62 + + col2 FROM tab0
----
144
63
95
query I rowsort
SELECT col0 + - col0 * - col1 + col2 * col1 FROM tab2
----
1061
2068
6214
query I rowsort
SELECT col2 - + col1 * + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - col0 * col0 + col0 FROM tab1
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7325
SELECT DISTINCT col2 + - 2 DIV - col1 + ( 19 ) * col2 * col1 FROM tab0 AS cor0
----
141860
1844
53955
skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT col2 + - 2 / - col1 + ( 19 ) * col2 * col1 FROM tab0 AS cor0
----
141860
1844
53955
query I rowsort
SELECT - col1 + + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - ( + 82 ) + - cor0.col1 FROM tab1 AS cor0
----
-108
-92
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-7329
SELECT + + cor0.col1 + col0 DIV - col2 col2 FROM tab0 cor0
----
62
86
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7329
SELECT + + cor0.col1 + col0 / - col2 col2 FROM tab0 cor0
----
62
86
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT DISTINCT + 56 DIV col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + 56 / col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT col0 + + 33 AS col2 FROM tab0
----
122
57
68
query I rowsort
SELECT col0 - - col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT - 59 FROM tab1
----
-59
-59
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7334
SELECT - CAST( NULL AS SIGNED ) + - col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7334
SELECT - CAST ( NULL AS INTEGER ) + - col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + 91 * cor0.col2 AS col0 FROM tab1 AS cor0
----
4940
5197
8749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7336
SELECT ALL + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 23 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT DISTINCT - ( + tab0.col1 ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 5 AS col2 FROM tab2
----
5
5
5
query I rowsort
SELECT col2 * col0 - - col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - 20 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT ALL - 57 FROM tab1 AS cor0
----
-57
-57
-57
query I rowsort
SELECT ALL + 62 AS col2 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT col0 * + 70 + + col0 FROM tab2 AS cor0
----
497
5538
5609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT - CAST( col0 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-7345
SELECT - CAST ( col0 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + 82 FROM tab1, tab2 AS cor0
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7348
SELECT + CAST( col0 AS SIGNED ) * - tab1.col1 + - 62 AS col1 FROM tab1
----
-1102
-140
-702
skipif mysql # not compatible
query I rowsort label-7348
SELECT + CAST ( col0 AS INTEGER ) * - tab1.col1 + - 62 AS col1 FROM tab1
----
-1102
-140
-702
query I rowsort
SELECT - col1 + col1 * + col2 AS col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL 51 FROM tab0, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7351
SELECT ALL - - 77 + col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - - 77 + col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 99 AS col0 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT + 7 FROM tab1 AS cor0
----
7
query I rowsort
SELECT ALL - col0 * + col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + 45 FROM tab0 AS cor0
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7356
SELECT ALL + col1 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + col1 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 81 AS col2 FROM tab2
----
-81
-81
-81
query I rowsort
SELECT ALL + 29 - 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ALL + col2 + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + col2 + col2 / + col1 AS col0 FROM tab2 AS cor0
----
26
27
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT DISTINCT - - cor0.col1 * - col1 + col1 * cor0.col1 DIV col0 AS col2 FROM tab0 cor0
----
-7088
-8188
-9141
skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT - - cor0.col1 * - col1 + col1 * cor0.col1 / col0 AS col2 FROM tab0 cor0
----
-7088
-8188
-9141
query I rowsort
SELECT + 65 AS col0 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT col2 + + col0 + - col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + + 24 * col0 FROM tab2 AS cor0
----
168
1872
1896
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7368
SELECT - + cor0.col2 + - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7368
SELECT - + cor0.col2 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + 27 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a
query I rowsort
SELECT col1 + 8 * col1 FROM tab1 AS cor0
----
117
234
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT DISTINCT + col0 + + col2 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + col0 + + col2 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT - col1 * - ( + 85 ) - - col1 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT - - col1 + - 72 AS col2 FROM tab1 AS cor0
----
-46
-59
-62
query I rowsort
SELECT cor0.col2 + col2 * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - col0 + col2 * col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
16144
36501
5636
query I rowsort
SELECT DISTINCT + col2 * 11 + 80 FROM tab1 AS cor0
----
1136
674
707
query I rowsort
SELECT + col0 * col2 * - 28 + + cor0.col1 * col0 + + 64 * - col0 FROM tab0 cor0
----
-201941
-21648
175
query I rowsort
SELECT + + cor0.col2 * - 57 FROM tab0 cor0
----
-1881
-4674
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7381
SELECT - col2 + 63 DIV - col1 + cor0.col2 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7381
SELECT - col2 + 63 / - col1 + cor0.col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * + 39 AS col0 FROM tab1 cor0
----
-1014
-390
-507
query I rowsort
SELECT DISTINCT + col2 * - 80 FROM tab2 AS cor0
----
-2080
-2160
-3040
query I rowsort
SELECT DISTINCT + + col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7386
SELECT + CAST( NULL AS SIGNED ) / - 99 + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7386
SELECT + CAST ( NULL AS INTEGER ) / - 99 + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) * - col0 + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col2 * + 49 - - col0 * + col2 AS col1 FROM tab2 cor0
----
1512
3302
4864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + 48 col1 FROM tab2 cor0
----
126
127
55
query I rowsort
SELECT + - ( + col0 ) + col1 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT ALL + col1 DIV col2 + col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + col1 / col2 + col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT DISTINCT - 77 FROM tab0, tab1 AS cor0
----
-77
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab2
----
13122 values hashing to 0e1732f74677125505f4f970da2bc42e
query I rowsort
SELECT col1 + ( col1 ) AS col2 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT + col0 DIV col1 + - tab1.col0 * col2 AS col1 FROM tab1
----
-162
-3642
-7674
skipif mysql # not compatible
query I rowsort label-7395
SELECT + col0 / col1 + - tab1.col0 * col2 AS col1 FROM tab1
----
-162
-3642
-7674
query I rowsort
SELECT col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1, tab0 AS cor0
----
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 * col2 col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL 56 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT col0 DIV CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7400
SELECT col0 / CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT - col0 DIV 13 AS col2 FROM tab1 AS cor0
----
-4
-6
0
skipif mysql # not compatible
query I rowsort label-7401
SELECT - col0 / 13 AS col2 FROM tab1 AS cor0
----
-4
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT + col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7402
SELECT + col2 / + col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT - 7 DIV col2 + 58 * col0 * + tab1.col1 AS col2 FROM tab1
----
37120
4524
60320
skipif mysql # not compatible
query I rowsort label-7403
SELECT - 7 / col2 + 58 * col0 * + tab1.col1 AS col2 FROM tab1
----
37120
4524
60320
query I rowsort
SELECT + col0 * ( + col0 ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab1
----
91
query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT col2 + - col2 * col1 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT + 89 FROM tab0
----
89
89
89
query I rowsort
SELECT + 26 AS col2 FROM tab1
----
26
26
26
query I rowsort
SELECT col1 + 86 FROM tab1
----
112
96
99
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 * + 82 AS col0 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - 81 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1858
-2738
-7118
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT - 83 + + col2 DIV + tab2.col1 AS col1 FROM tab2
----
-81
-83
-83
skipif mysql # not compatible
query I rowsort label-7416
SELECT - 83 + + col2 / + tab2.col1 AS col1 FROM tab2
----
-81
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7417
SELECT + CAST( + col2 AS SIGNED ) FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7417
SELECT + CAST ( + col2 AS INTEGER ) FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT DISTINCT - col0 * col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - col0 * col0 / - col1 AS col1 FROM tab0 AS cor0
----
12
6
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7419
SELECT + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to 47906197307eee6829150d762058792a
query I rowsort
SELECT DISTINCT + + 39 AS col2 FROM tab0 AS cor0
----
39
query I rowsort
SELECT - + col2 * - col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT DISTINCT tab1.col0 DIV - col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT tab1.col0 / - col1 FROM tab1
----
-6
0
query I rowsort
SELECT DISTINCT 4 * tab2.col2 FROM tab2
----
104
108
152
query I rowsort
SELECT ALL ( col1 ) * + ( col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL + 47 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT + cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7427
SELECT + cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - + col2 * col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - col2 * + col2 + 58 * cor0.col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-17678
-4324
-5918
query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 + - col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT - 62 * + col2 AS col0 FROM tab2 cor0
----
-1612
-1674
-2356
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT - + col0 * - 93 AS col1 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT ALL col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col2 + - col2 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7440
SELECT CAST( + col0 AS SIGNED ) * col0 - cor0.col1 FROM tab1 AS cor0
----
-17
4086
6387
skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( + col0 AS INTEGER ) * col0 - cor0.col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab1
----
-70
query I rowsort
SELECT + 58 FROM tab1
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab1
----
64
64
64
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252
query I rowsort
SELECT + - 24 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 95 AS REAL ) * - col1 FROM tab1
----
-1235
-2470
-950
query I rowsort
SELECT - 23 * col1 FROM tab1
----
-230
-299
-598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ( - tab1.col0 + + col1 ) * - col1 FROM tab1
----
-598
540
871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT ALL + CAST( NULL AS SIGNED ) * 30 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + CAST ( NULL AS INTEGER ) * 30 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + 44 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL - 91 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + cor0.col1 + 92 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col2 + 44 FROM tab2 cor0
----
70
71
82
query I rowsort
SELECT DISTINCT - - col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7461
SELECT ALL + CAST( NULL AS SIGNED ) + + 37 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + CAST ( NULL AS INTEGER ) + + 37 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7462
SELECT ALL CAST( col1 AS SIGNED ) + + cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL CAST ( col1 AS INTEGER ) + + cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + ( - col2 ) + + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab2, tab2 AS cor0
----
12
query I rowsort
SELECT 67 + + 56 FROM tab0 AS cor0
----
123
123
123
query I rowsort
SELECT ALL - - col2 + + 33 FROM tab0 AS cor0
----
115
34
66
query I rowsort
SELECT 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL 40 FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7469
SELECT ALL CAST( col1 AS SIGNED ) + - col0 * - col2 * + col2 FROM tab2 AS cor0
----
114093
5134
52787
skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL CAST ( col1 AS INTEGER ) + - col0 * - col2 * + col2 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT DISTINCT - - col0 * + col1 - + col0 AS col2 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7471
SELECT + col1 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7471
SELECT + col1 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col2 + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT tab2.col2 * - col1 * + col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + 92 FROM tab2 AS cor0
----
92
query I rowsort
SELECT DISTINCT - - col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 + - col2 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - 92 + + col0 FROM tab0 AS cor0
----
-3
-57
-68
query I rowsort
SELECT DISTINCT - col2 * + 29 AS col1 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT DISTINCT - col2 * 95 + col1 FROM tab0 AS cor0
----
-3049
-7699
2
query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col0 + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + + cor0.col1 + 21 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT + - col1 + - 61 AS col2 FROM tab1 AS cor0
----
-71
-74
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * + ( - col0 ) col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + tab0.col0 + col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col2 + + col1 + + 53 * tab2.col0 FROM tab2
----
4219
4242
429
query I rowsort
SELECT ALL - tab2.col2 + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL col0 + + col0 * + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - ( col0 ) + col0 + - tab1.col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT tab0.col1 * - col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col2 + 38 FROM tab1
----
134
92
95
query I rowsort
SELECT + 23 * - 88 FROM tab2, tab0 AS cor0
----
9 values hashing to bff7fe48fd8951d0e558865a5ad01b5e
query I rowsort
SELECT ALL - col0 + + 45 * col2 AS col0 FROM tab1 AS cor0
----
2427
2501
4240
query I rowsort
SELECT + tab2.col0 * + tab2.col1 + 88 FROM tab2
----
1431
305
4690
query I rowsort
SELECT DISTINCT + col0 * 99 FROM tab1
----
297
6336
7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT DISTINCT + col2 DIV + ( - col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + col2 / + ( - col1 ) FROM tab0
----
0
query I rowsort
SELECT 85 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL - 90 - + 10 * + col1 * col1 AS col1 FROM tab0
----
-74050
-82900
-94180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT + 53 DIV col2 - col0 col1 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7502
SELECT + 53 / col2 - col0 col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ( ( tab0.col1 ) ) AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT ( tab0.col2 ) - - col2 AS col0 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7505
SELECT + 28 * col2 + CAST( + col2 * - col1 AS SIGNED ) + col0 * - col1 FROM tab0 AS cor0
----
-13265
-3464
-3978
skipif mysql # not compatible
query I rowsort label-7505
SELECT + 28 * col2 + CAST ( + col2 * - col1 AS INTEGER ) + col0 * - col1 FROM tab0 AS cor0
----
-13265
-3464
-3978
query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 AS cor0
----
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col2 * 86 col0 FROM tab1 AS cor0
----
315792
333336
561408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT - + col0 + + col1 + + 75 DIV col0 FROM tab1 AS cor0
----
-53
-67
48
skipif mysql # not compatible
query I rowsort label-7508
SELECT - + col0 + + col1 + + 75 / col0 FROM tab1 AS cor0
----
-53
-67
48
query I rowsort
SELECT - col0 + col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 55 * col2 + col0 FROM tab1
----
-2967
-3071
-5200
query I rowsort
SELECT ALL 86 + - col1 * - col1 AS col1 FROM tab1
----
186
255
762
query I rowsort
SELECT ALL 91 + - col1 + - col2 FROM tab1
----
-18
11
24
query I rowsort
SELECT - col1 + + col1 + + ( + ( + cor0.col0 ) * 82 ) FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT 43 * + tab1.col1 AS col0 FROM tab1
----
1118
430
559
query I rowsort
SELECT + tab1.col2 + col0 + tab1.col2 FROM tab1
----
111
178
272
query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 + col0 FROM tab1 AS cor0
----
-157461
-185129
-884656
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7517
SELECT ALL 92 + col1 + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL 92 + col1 + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * col2 col0 FROM tab1 cor0
----
3510
3705
6240
query I rowsort
SELECT ALL cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col1 + - col1 * - 83 + - 14 AS col0 FROM tab1 AS cor0
----
1052
2118
806
query I rowsort
SELECT DISTINCT col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + + 11 + col1 * + col0 FROM tab0 AS cor0
----
2075
3406
8110
query I rowsort
SELECT ALL col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 + + col0 * ( - col0 + + col2 ) FROM tab1 AS cor0
----
-384
1360
156
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7526
SELECT ALL - CAST( col2 * col2 AS SIGNED ) FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - CAST ( col2 * col2 AS INTEGER ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL ( 5 ) AS col2 FROM tab2
----
5
5
5
query I rowsort
SELECT ALL 7 + 66 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT - 98 * col1 FROM tab2 AS cor0
----
-1666
-3038
-5782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * + col0 col0 FROM tab0 AS cor0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + - col0 col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + col0 + - col2 * - col2 FROM tab0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7533
SELECT cor0.col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-7533
SELECT cor0.col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT col2 * 13 + cor0.col1 FROM tab1 AS cor0
----
1261
728
751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7535
SELECT - col2 * CAST( - col2 AS SIGNED ) - col0 FROM tab0 AS cor0
----
-34
1065
6635
skipif mysql # not compatible
query I rowsort label-7535
SELECT - col2 * CAST ( - col2 AS INTEGER ) - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL + cor0.col1 * 13 + - ( cor0.col2 * 92 ) FROM tab2 AS cor0
----
-1625
-2081
-3275
query I rowsort
SELECT DISTINCT + col2 * 81 AS col1 FROM tab2 AS cor0
----
2106
2187
3078
onlyif mysql # use DIV operator for integer division
query I rowsort label-7538
SELECT ALL col2 + + CAST( + col2 AS SIGNED ) * col0 DIV + 56 AS col1 FROM tab0 cor0
----
1
212
47
skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL col2 + + CAST ( + col2 AS INTEGER ) * col0 / + 56 AS col1 FROM tab0 cor0
----
1
212
47
query I rowsort
SELECT ALL cor0.col0 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col0 - - 37 * 83 AS col1 FROM tab0 AS cor0
----
3095
3106
3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( - ( + col1 ) ) * 97 col2 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT ALL - 5 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT ALL col1 + col2 * col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL 38 + col1 + col2 AS col0 FROM tab2
----
123
93
96
query I rowsort
SELECT + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7547
SELECT col0 * CAST( ( + col1 ) AS SIGNED ) + 77 * col0 * - col1 FROM tab0 AS cor0
----
-156864
-258020
-615524
skipif mysql # not compatible
query I rowsort label-7547
SELECT col0 * CAST ( ( + col1 ) AS INTEGER ) + 77 * col0 * - col1 FROM tab0 AS cor0
----
-156864
-258020
-615524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT ALL col2 DIV + tab1.col0 + - ( col1 + + col1 * ( col0 ) ) FROM tab1
----
-1052
-650
-86
skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL col2 / + tab1.col0 + - ( col1 + + col1 * ( col0 ) ) FROM tab1
----
-1052
-650
-86
query I rowsort
SELECT 89 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT tab1.col0 * col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col0 * + 70 FROM tab0
----
1680
2450
6230
query I rowsort
SELECT 5 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0
----
72
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + - 13 * - col2 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT + col1 - - col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7557
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 19 FROM tab2 AS cor0
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7559
SELECT - CAST( col0 AS SIGNED ) + + col1 * + 54 FROM tab1 AS cor0
----
1401
476
622
skipif mysql # not compatible
query I rowsort label-7559
SELECT - CAST ( col0 AS INTEGER ) + + col1 * + 54 FROM tab1 AS cor0
----
1401
476
622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7560
SELECT ALL CAST( NULL AS SIGNED ) + + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL CAST ( NULL AS INTEGER ) + + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7561
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * ( col1 ) FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT DISTINCT tab2.col2 DIV + ( col1 ) FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT tab2.col2 / + ( col1 ) FROM tab2
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + tab2.col1 * - tab2.col2 col1 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT + col1 DIV + col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7565
SELECT + col1 / + col2 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL + 36 + ( col1 ) * - tab2.col1 + col2 * + col1 FROM tab2
----
-1911
-88
393
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1, tab1 AS cor0
----
13
query I rowsort
SELECT + 23 * + cor0.col0 + + col2 + - 25 * col1 AS col1 FROM tab1 AS cor0
----
-527
1279
1611
query I rowsort
SELECT 82 * - 14 FROM tab2 AS cor0
----
-1148
-1148
-1148
query I rowsort
SELECT - col1 + - 4 AS col2 FROM tab1 AS cor0
----
-14
-17
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7572
SELECT + col0 * col2 * col2 + + CAST( NULL AS DECIMAL ) * col1 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7572
SELECT + col0 * col2 * col2 + + CAST ( NULL AS REAL ) * col1 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT ALL + - col0 + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7575
SELECT - + CAST( NULL AS SIGNED ) + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7575
SELECT - + CAST ( NULL AS INTEGER ) + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 91 * col0 AS col1 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT col1 + col2 - + 20 AS col0 FROM tab0
----
153
78
99
query I rowsort
SELECT DISTINCT - col2 - + 26 AS col1 FROM tab0
----
-108
-27
-59
query I rowsort
SELECT DISTINCT - col0 * 45 - col0 * col1 AS col0 FROM tab1
----
-213
-3520
-4640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT - 49 + tab2.col2 AS col0 FROM tab2
----
-11
-22
-23
query I rowsort
SELECT tab1.col2 * ( + col1 + 66 ) AS col0 FROM tab1
----
4332
4968
7584
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199
onlyif mysql # use DIV operator for integer division
query I rowsort label-7585
SELECT ALL - - col0 DIV col1 col0 FROM tab1 cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - - col0 / col1 col0 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT DISTINCT 51 + col2 AS col2 FROM tab2
----
77
78
89
query I rowsort
SELECT ALL col0 * 97 + - col1 AS col0 FROM tab2
----
648
7507
7646
query I rowsort
SELECT - col1 + col2 * 20 FROM tab2 AS cor0
----
461
509
743
query I rowsort
SELECT ALL 67 AS col1 FROM tab1
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * col0 + col0 col2 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT ALL + col1 * col2 * ( + ( col1 ) ) FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ( col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 28 + + col2 + + 21 FROM tab2 cor0
----
75
76
87
query I rowsort
SELECT 75 * col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + tab1.col0 - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - col2 - + 68 AS col0 FROM tab2
----
-106
-94
-95
query I rowsort
SELECT DISTINCT col0 + - ( + 92 ) AS col1 FROM tab1
----
-12
-28
-89
query I rowsort
SELECT - cor0.col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7600
SELECT ALL - cor0.col0 - CAST( - col0 * col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - cor0.col0 - CAST ( - col0 * col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT ALL 42 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT - + col2 * + ( col2 ) * - col2 FROM tab2 cor0
----
17576
19683
54872
query I rowsort
SELECT + - col2 - + col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT col0 * - col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + col1 * - ( + col1 ) col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL ( 48 ) AS col2 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT DISTINCT col2 + 7 * - col0 AS col0 FROM tab2 cor0
----
-22
-515
-520
query I rowsort
SELECT + - 67 AS col0 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + cor0.col0 * + col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - - 64 - - ( + cor0.col1 ) FROM tab0 AS cor0
----
150
155
161
query I rowsort
SELECT + - ( + cor0.col2 ) + - cor0.col0 AS col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 * 70 + - col0 * col2 + col1 FROM tab0 AS cor0
----
-837
5314
6852
query I rowsort
SELECT - + ( - 55 ) FROM tab1 AS cor0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT col1 DIV - col0 + + col1 AS col2 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-7614
SELECT col1 / - col0 + + col1 AS col2 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT ALL - col0 * - 67 AS col1 FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) + col2 AS col2 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( + col0 + col1 AS REAL ) FROM tab2
----
1026
3562
3648
query I rowsort
SELECT DISTINCT col2 * - ( tab0.col0 + col1 ) FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT - col2 * 27 FROM tab0
----
-2214
-27
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-7620
SELECT DISTINCT col1 + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT col1 + col0 / - col2 AS col0 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT DISTINCT - 28 + - 39 FROM tab2 AS cor0
----
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 - + col1 col1 FROM tab2 AS cor0
----
-2
-30
12
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1 AS cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT + col1 + + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - cor0.col2 * 21 - - col2 AS col2 FROM tab0 cor0
----
-1640
-20
-660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7627
SELECT + CAST( col2 AS SIGNED ) * - col2 * 83 AS col0 FROM tab2 cor0
----
-119852
-56108
-60507
skipif mysql # not compatible
query I rowsort label-7627
SELECT + CAST ( col2 AS INTEGER ) * - col2 * 83 AS col0 FROM tab2 cor0
----
-119852
-56108
-60507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * + col0 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col1 * col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT + 37 * - cor0.col1 - - col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-370
-480
-944
skipif mysql # not compatible
query I rowsort label-7631
SELECT + 37 * - cor0.col1 - - col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-370
-480
-944
query I rowsort
SELECT DISTINCT + 67 FROM tab1, tab2 AS cor0
----
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab1 cor0
----
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT ALL - CAST( 74 AS SIGNED ) * - col2 * col2 FROM tab2 AS cor0
----
106856
50024
53946
skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - CAST ( 74 AS INTEGER ) * - col2 * col2 FROM tab2 AS cor0
----
106856
50024
53946
query I rowsort
SELECT 56 FROM tab0
----
56
56
56
query I rowsort
SELECT 75 AS col1 FROM tab1
----
75
75
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT ALL + CAST( NULL AS SIGNED ) * ( - col1 ) - + col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - col1 ) - + col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 15 * 62 FROM tab1 AS cor0
----
-930
-930
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT DISTINCT - col1 * col0 - + col2 DIV col0 AS col0 FROM tab2
----
-1343
-220
-4602
skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT - col1 * col0 - + col2 / col0 AS col0 FROM tab2
----
-1343
-220
-4602
query I rowsort
SELECT ALL + col1 * + 49 * - col1 FROM tab1 AS cor0
----
-33124
-4900
-8281
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 9 * - col2 AS col1 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ALL - 15 AS col0 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT + ( col1 ) + - col0 * col2 + + col1 AS col2 FROM tab2 cor0
----
-127
-1910
-2968
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + ( - col2 ) + - col0 * col1 * col0 FROM tab2
----
-106135
-1546
-358982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT 18 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT ALL + 3 + col2 * col0 + col1 FROM tab0 AS cor0
----
135
7392
881
query I rowsort
SELECT - 49 + col1 FROM tab1 AS cor0
----
-23
-36
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7655
SELECT + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7655
SELECT + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( ( col2 ) ) * col0 + col2 * - col2 + + col0 FROM tab0
----
-273
663
69
query I rowsort
SELECT DISTINCT col0 * col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7658
SELECT + col2 + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7658
SELECT + col2 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * - col0 * + col2 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT col0 * - 57 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT ALL col2 * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7662
SELECT + col1 DIV + 83 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7662
SELECT + col1 / + 83 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 + + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab2
----
12
query I rowsort
SELECT + 19 + tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6125de489530aad8bff8d37feb373452
query I rowsort
SELECT - ( + tab0.col0 + 82 ) AS col2 FROM tab0
----
-106
-117
-171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) + - 93 FROM tab0
----
-2
-7
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7670
SELECT DISTINCT - tab0.col2 + CAST( NULL AS SIGNED ) * col1 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - tab0.col2 + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab0
----
NULL
query I rowsort
SELECT 9 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL - col1 - col1 FROM tab2
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7673
SELECT col1 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7673
SELECT col1 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + cor0.col1 - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - cor0.col2 + col1 * - 2 AS col0 FROM tab0 AS cor0
----
-195
-205
-264
query I rowsort
SELECT DISTINCT col2 * + 51 AS col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT - + cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7678
SELECT ALL + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 + - 72 * col0 AS col2 FROM tab0 AS cor0
----
-1642
-2423
-6317
query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col1 * + CAST ( + col1 AS REAL ) col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT + col0 DIV col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7683
SELECT + col0 / col2 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab2
----
-96
query I rowsort
SELECT - 58 * col0 FROM tab2
----
-406
-4524
-4582
onlyif mysql # use DIV operator for integer division
query I rowsort label-7686
SELECT + ( col0 ) DIV - 71 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7686
SELECT + ( col0 ) / - 71 FROM tab2
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + + col2 + ( - col1 ) AS col1 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT ALL col1 * tab2.col2 + + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT 65 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - cor0.col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - + 69 * + col2 + + col2 AS col1 FROM tab1 cor0
----
-3672
-3876
-6528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT - - cor0.col0 * + col1 - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7693
SELECT - - cor0.col0 * + col1 - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0
----
-67
query I rowsort
SELECT ALL + + 9 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT ALL - col0 + col0 * + col2 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7697
SELECT DISTINCT - ( + col2 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - ( + col2 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT col2 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + col0 * 70 AS col2 FROM tab2
----
490
5460
5530
query I rowsort
SELECT cor0.col2 * + 61 * - col2 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-418445
-73825
-9470
query I rowsort
SELECT + + col1 + col1 * - col2 FROM tab2 cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT - col1 DIV + ( 28 ) + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7703
SELECT - col1 / + ( 28 ) + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 + 46 * 60 - + col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
2812
3390
3787
query I rowsort
SELECT DISTINCT + - col0 + + 89 AS col0 FROM tab2 cor0
----
10
11
82
query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + 51 AS col1 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7710
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 90 AS col2 FROM tab2
----
90
90
90
query I rowsort
SELECT DISTINCT + 92 FROM tab1
----
92
query I rowsort
SELECT + 60 + col2 AS col1 FROM tab2 AS cor0
----
86
87
98
query I rowsort
SELECT + + col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col1 - - col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 7 FROM tab0
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab1
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + tab2.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 360688844eea5f423bc1c9260da26ce8
query I rowsort
SELECT + 19 + - ( col0 + - tab1.col0 * + 2 ) AS col2 FROM tab1
----
22
83
99
query I rowsort
SELECT + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 28 * col2 AS col2 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT col1 * + col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 * - ( 0 + + col2 ) col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 51 * + 24 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to aa8e3b6cc9bab961364be36bf2285965
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - - 41 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
100
58
72
query I rowsort
SELECT DISTINCT + + 59 + col2 AS col0 FROM tab1 AS cor0
----
113
116
155
query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT DISTINCT - col0 DIV 17 AS col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - col0 / 17 AS col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT ALL + cor0.col1 + + col2 * + ( + col0 ) * 89 FROM tab2 cor0
----
16852
180551
267195
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab0
----
94
query I rowsort
SELECT - 88 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT 77 * tab0.col0 AS col1 FROM tab0
----
1848
2695
6853
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + col2 * 62 DIV col2 FROM tab1 AS cor0
----
62
62
62
skipif mysql # not compatible
query I rowsort label-7736
SELECT + col2 * 62 / col2 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT col1 * col1 + col2 * - cor0.col0 * - col0 FROM tab0 cor0
----
10634
26404
657803
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 58 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL col0 * - col2 * col1 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + 93 * - col2 FROM tab0 cor0
----
-3069
-7626
-93
query I rowsort
SELECT 7 * col0 + - col1 FROM tab0
----
148
532
82
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab0 cor0
----
64
query I rowsort
SELECT ALL - - ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7749
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 98 + col1 AS col1 FROM tab1 AS cor0
----
108
111
124
query I rowsort
SELECT col2 * 47 + col1 + 51 AS col0 FROM tab2 AS cor0
----
1332
1351
1854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) + + col0 col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT ALL + 22 * 46 - + col2 DIV + 2 AS col1 FROM tab2 AS cor0
----
993
999
999
skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + 22 * 46 - + col2 / + 2 AS col1 FROM tab2 AS cor0
----
993
999
999
onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT col0 + - 43 DIV col2 col0 FROM tab0
----
-8
23
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7756
SELECT col0 + - 43 / col2 col0 FROM tab0
----
-8
23
89
query I rowsort
SELECT col0 * + ( col2 + - col0 ) AS col1 FROM tab0
----
-1190
-623
216
query I rowsort
SELECT - col2 + - ( col2 ) * 90 AS col1 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + cor0.col2 + ( cor0.col2 ) * col0 * + col1 + col1 FROM tab2 cor0
----
119737
51089
5917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7761
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col2 * tab1.col0 - + col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT col0 + + col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + - col2 * + 92 col2 FROM tab2 AS cor0
----
-2288
-2450
-3379
query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + col1 + 13 * 83 FROM tab2 cor0
----
1096
1110
1138
query I rowsort
SELECT col1 + 82 * col0 FROM tab1 AS cor0
----
272
5258
6573
query I rowsort
SELECT DISTINCT + - cor0.col0 + ( - cor0.col0 ) * - col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col2 * ( cor0.col0 ) + col0 + col2 FROM tab2 AS cor0
----
2132
223
3119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 53 col0 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT - + col1 * - 15 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT ALL - ( tab2.col1 ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - - col2 * - col0 - 82 FROM tab1 AS cor0
----
-244
-3730
-7762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT ALL - col0 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + col2 + col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col0 + col0 * tab1.col1 FROM tab1
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7777
SELECT ALL col2 + CAST( col2 AS SIGNED ) col0 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL col2 + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col2 * col0 + + 43 AS col2 FROM tab2 AS cor0
----
-146
-1985
-2959
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7780
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) 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-7780
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7781
SELECT ALL col1 * + CAST( 65 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
1693
714
925
skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL col1 * + CAST ( 65 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
1693
714
925
query I rowsort
SELECT DISTINCT - col0 * - 75 + col1 FROM tab1
----
251
4810
6013
query I rowsort
SELECT DISTINCT - 37 FROM tab2, tab2 AS cor0
----
-37
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col2 + col0 * - col2 * + col0 FROM tab1 AS cor0
----
-233529
-540
-614496
query I rowsort
SELECT DISTINCT - + col0 + col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - + col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL + + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - 70 FROM tab2 AS cor0
----
70
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee
query I rowsort
SELECT ALL 12 * col1 AS col2 FROM tab0
----
1032
1092
1164
query I rowsort
SELECT - - cor0.col1 * + 37 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1016
427
577
query I rowsort
SELECT DISTINCT cor1.col1 + - 39 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-13
-26
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 col1 FROM tab1 AS cor0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - + cor0.col2 - col2 AS col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL ( col1 + - tab2.col0 * + col1 ) AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 27 AS col2 FROM tab1 AS cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * + ( ( col1 ) ) + ( + col0 ) col1 FROM tab0 cor0
----
-118790
-49512
-720722
query I rowsort
SELECT + 62 + col0 FROM tab0 AS cor0
----
151
86
97
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - 17 AS col2 FROM tab0 cor0
----
17
17
17
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * 89 AS col0 FROM tab1 AS cor0
----
1061
2260
833
query I rowsort
SELECT - 28 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT + ( col0 ) * col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT + col1 + 22 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT - col2 DIV 60 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7811
SELECT - col2 / 60 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( col2 ) + col2 * tab1.col0 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL 81 AS col1 FROM tab0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT - + 32 + + col0 * 54 FROM tab1 AS cor0
----
130
3424
4288
query I rowsort
SELECT 59 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT DISTINCT 96 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
96
query I rowsort
SELECT - col1 + - col0 - col2 FROM tab0 cor0
----
-133
-143
-262
query I rowsort
SELECT ALL - 82 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT ( + 68 ) FROM tab1
----
68
68
68
query I rowsort
SELECT ALL 81 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT + - ( - cor0.col2 ) * 16 * + 8 + + col0 - - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
10494
4162
66
query I rowsort
SELECT col0 + col0 * 4 AS col2 FROM tab2 cor0
----
35
390
395
query I rowsort
SELECT + 48 * col1 FROM tab0
----
4128
4368
4656
query I rowsort
SELECT ( - col0 ) * ( tab0.col2 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - col1 + col1 - 60 * col1 AS col1 FROM tab0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT - 40 * col1 - + ( 46 ) * - col1 FROM tab1
----
156
60
78
query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 - - col0 AS col1 FROM tab1
----
-1072
-1347
-449
query I rowsort
SELECT DISTINCT + 75 FROM tab0, tab1, tab2 AS cor0, tab2
----
75
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col1 + 62 FROM tab0 cor0
----
148
153
159
query I rowsort
SELECT tab1.col1 * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 * 19 AS col1 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT - 14 AS col0 FROM tab0
----
-14
-14
-14
query I rowsort
SELECT + col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 7 * - 18 FROM tab2 AS cor0
----
126
126
126
query I rowsort
SELECT - 73 * + ( - col2 ) * - col1 + col0 AS col1 FROM tab0
----
-207150
-544637
-7046
query I rowsort
SELECT + ( + col2 ) + - col0 * 5 FROM tab0
----
-174
-363
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7842
SELECT ALL + CAST( - col1 AS SIGNED ) * - col0 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + CAST ( - col1 AS INTEGER ) * - col0 FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7843
SELECT DISTINCT CAST( NULL AS SIGNED ) + 93 FROM tab1, tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 93 FROM tab1, tab0, tab2 cor0
----
NULL
query I rowsort
SELECT + 99 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT 74 * + col0 * + tab1.col2 - ( + col0 ) AS col2 FROM tab1
----
11985
269888
568240
query I rowsort
SELECT - + ( 90 ) AS col2 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT - 45 * + col1 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT - 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT + col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7849
SELECT + col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 23 FROM tab1 AS cor0
----
-23
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 + col1 AS col2 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7852
SELECT ALL + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + col1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7853
SELECT DISTINCT - - col1 DIV col1 + 41 * - 19 * - col1 AS col2 FROM tab1 AS cor0
----
10128
20255
7791
skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - - col1 / col1 + 41 * - 19 * - col1 AS col2 FROM tab1 AS cor0
----
10128
20255
7791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col2 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT - + col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7855
SELECT - + col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + ( col1 ) * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 94 + - col2 AS col2 FROM tab1 AS cor0
----
-148
-151
-190
query I rowsort
SELECT ALL - - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - - col2 * col2 - - col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT DISTINCT - col1 DIV col0 + col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - col1 / col0 + col1 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT ALL - - col1 * col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT ALL - col1 + + col0 DIV col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - col1 + + col0 / col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + ( + col0 ) + - ( + col2 ) AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - col2 * col2 + 76 AS col2 FROM tab1 AS cor0
----
-2840
-3173
-9140
query I rowsort
SELECT 21 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT + col1 - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 * ( + cor0.col2 ) * - col0 FROM tab0 cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT ALL col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + col2 * col0 + + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col1 + 82 AS col1 FROM tab0 AS cor0
----
168
173
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT ALL col0 DIV - col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL col0 / - col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT col0 + + 15 * + 64 * + cor0.col1 FROM tab0 AS cor0
----
82584
87449
93155
query I rowsort
SELECT col2 * 85 * cor0.col1 AS col0 FROM tab0 AS cor0
----
241230
634270
8245
query I rowsort
SELECT + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col1 + cor0.col2 * - 51 AS col2 FROM tab0 AS cor0
----
-1597
-4091
46
query I rowsort
SELECT ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + + ( + col0 ) * col2 + - 47 + 8 AS col1 FROM tab0 AS cor0
----
-4
7259
753
onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT + col1 DIV col2 + - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
97
skipif mysql # not compatible
query I rowsort label-7879
SELECT + col1 / col2 + - col2 / col0 AS col0 FROM tab0 AS cor0
----
1
1
97
query I rowsort
SELECT ALL + ( cor0.col1 ) * col0 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL 76 + 42 FROM tab1 AS cor0
----
118
118
118
query I rowsort
SELECT ALL + tab0.col1 * col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 73 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col2 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT ALL + + ( + col1 ) DIV ( - col0 ) - col2 AS col1 FROM tab0 cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL + + ( + col1 ) / ( - col0 ) - col2 AS col1 FROM tab0 cor0
----
-3
-36
-83
query I rowsort
SELECT - col1 * + cor0.col0 + 93 * + col2 AS col0 FROM tab2 AS cor0
----
-2184
2191
2294
query I rowsort
SELECT - 10 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
14
25
79
query I rowsort
SELECT ALL 59 + - col0 * + 16 FROM tab2 AS cor0
----
-1189
-1205
-53
query I rowsort
SELECT + col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT 5 + + col0 FROM tab2 AS cor0
----
12
83
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 + + col2 - - col2 col0 FROM tab0 cor0
----
-51
111
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 - - 26 FROM tab1 cor0
----
104
1066
666
query I rowsort
SELECT - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + + ( col2 ) + col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 * ( col2 ) FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - 27 FROM tab2 AS cor0
----
-27
query I rowsort
SELECT ALL + 93 + - col1 AS col1 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT DISTINCT + col2 * col2 * + 35 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
235422
36
38148
query I rowsort
SELECT DISTINCT - 93 FROM tab1, tab2 cor0, tab2 cor1
----
-93
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 AS col2 FROM tab2 cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + ( + col1 ) * col0 col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col0 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT - 94 DIV + col0 AS col2 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-7906
SELECT - 94 / + col0 AS col2 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT DISTINCT + 50 * col1 AS col2 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT col2 + - 70 * + col1 AS col0 FROM tab0 AS cor0
----
-5987
-6288
-6789
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + ( + col0 ) AS REAL ) + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL ( + 64 ) * col1 * - col1 FROM tab1 cor0
----
-10816
-43264
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7911
SELECT + CAST( - col2 AS SIGNED ) + + col2 * 64 FROM tab0 AS cor0
----
2079
5166
63
skipif mysql # not compatible
query I rowsort label-7911
SELECT + CAST ( - col2 AS INTEGER ) + + col2 * 64 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT 55 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - - cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT DISTINCT + tab0.col0 DIV - col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + tab0.col0 / - col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab2, tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT 81 * col1 FROM tab0
----
6966
7371
7857
query I rowsort
SELECT + col0 + col2 * - tab1.col1 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7920
SELECT CAST( NULL AS SIGNED ) * ( - col0 ) / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7920
SELECT CAST ( NULL AS INTEGER ) * ( - col0 ) / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * col1 col2 FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7923
SELECT + col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT 58 FROM tab2
----
58
query I rowsort
SELECT 84 * + col2 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT ( - col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - ( - col1 * ( + col0 ) ) FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 60 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT + 49 * col0 AS col1 FROM tab1
----
147
3136
3920
query I rowsort
SELECT ALL + col1 + cor0.col1 + + col2 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT - 50 AS col0 FROM tab1 AS cor0
----
-50
-50
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT DISTINCT - col1 DIV col1 + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT - col1 / col1 + col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL - cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ( cor0.col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + 61 + col0 AS col1 FROM tab1 cor0
----
125
141
64
query I rowsort
SELECT + + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col2 + + ( - col0 ) AS col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL - 73 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT col0 * - 15 AS col0 FROM tab1
----
-1200
-45
-960
query I rowsort
SELECT ALL - col0 + + 89 * col0 * col1 AS col0 FROM tab1
----
56896
6939
92480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT ALL + col1 DIV col0 + + 90 DIV col2 AS col1 FROM tab1
----
0
1
9
skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + col1 / col0 + + 90 / col2 AS col1 FROM tab1
----
0
1
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 52 col1 FROM tab1 AS cor0
----
-2808
-2964
-4992
query I rowsort
SELECT DISTINCT - 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-7946
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7948
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7948
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ( + 69 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT + + col1 DIV + col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7951
SELECT + + col1 / + col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT DISTINCT col2 DIV - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT col2 / - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col2 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT - col1 * 17 + - col2 FROM tab1 AS cor0
----
-227
-317
-496
query I rowsort
SELECT 8 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT ALL 51 AS col2 FROM tab1 cor0
----
51
51
51
query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0 cor0
----
85
query I rowsort
SELECT DISTINCT - 6 * col0 + col0 + col1 FROM tab0 AS cor0
----
-34
-354
-78
query I rowsort
SELECT - ( + col1 ) + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL 29 + + col2 AS col1 FROM tab0 AS cor0
----
111
30
62
query I rowsort
SELECT - + 60 AS col0 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 90 * + col1 + + col0 FROM tab1 AS cor0
----
1250
2343
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT ALL + col0 DIV - ( cor0.col2 ) AS col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + col0 / - ( cor0.col2 ) AS col2 FROM tab1 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7965
SELECT DISTINCT CAST( NULL AS SIGNED ) + 73 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 73 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 19 * 71 AS col2 FROM tab1 AS cor0
----
1349
1349
1349
query I rowsort
SELECT + - 90 * col2 FROM tab1 cor0
----
-4860
-5130
-8640
query I rowsort
SELECT + cor0.col1 + - ( + col0 ) * + 88 * col0 FROM tab2 AS cor0
----
-4281
-535333
-549191
query I rowsort
SELECT ALL + ( - col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 86 AS col1 FROM tab0 AS cor0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + ( cor0.col0 ) * - col0 col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + - col1 * - ( col2 ) + 51 AS col0 FROM tab0 AS cor0
----
148
2889
7513
query I rowsort
SELECT DISTINCT + 34 * col0 FROM tab0 cor0
----
1190
3026
816
query I rowsort
SELECT + - ( col2 ) * col1 * col2 + 76 * col1 FROM tab2 AS cor0
----
-20243
-23256
-35400
query I rowsort
SELECT + 75 + 32 FROM tab0 AS cor0
----
107
107
107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 74 * col2 col2 FROM tab2 AS cor0
----
1865
1967
2795
query I rowsort
SELECT - col1 * + 24 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7979
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col2 ) + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + + 83 + + 8 FROM tab1 AS cor0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT ALL - col2 DIV + 53 col1 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - col2 / + 53 col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 77 FROM tab1, tab0 AS cor0
----
-77
query I rowsort
SELECT ALL 4 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + 81 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab2 cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT col2 + cor0.col1 * + col1 AS col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT - 39 FROM tab1
----
-39
-39
-39
query I rowsort
SELECT DISTINCT - 2 FROM tab2
----
-2
query I rowsort
SELECT 56 + 0 FROM tab1
----
56
56
56
query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL + + 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # use DIV operator for integer division
query I rowsort label-7996
SELECT ALL + col0 * cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL + col0 * cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 + + col2 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1423
-709
-733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7998
SELECT - + col0 * - col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-7998
SELECT - + col0 * - col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col0 FROM tab2
----
80
80
80
query I rowsort
SELECT ALL - + 58 * - col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT + - col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - - cor0.col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + - col2 * + ( + 21 * - col2 ) AS col1 FROM tab2 cor0
----
14196
15309
30324
query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col2 * + col2 + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT - col1 * CAST( + col2 AS SIGNED ) + - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1249
-1422
-570
skipif mysql # not compatible
query I rowsort label-8007
SELECT - col1 * CAST ( + col2 AS INTEGER ) + - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-1249
-1422
-570
query I rowsort
SELECT ALL + 30 + + tab1.col2 AS col2 FROM tab1
----
126
84
87
query I rowsort
SELECT ALL + 33 * - col0 * col2 + + col2 FROM tab0
----
-1154
-240752
-26103
query I rowsort
SELECT - + col2 + col1 * + 30 - cor0.col0 AS col2 FROM tab0 cor0
----
2523
2559
2874
query I rowsort
SELECT - 30 + col1 AS col0 FROM tab1
----
-17
-20
-4
query I rowsort
SELECT + col1 - ( col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 * col1 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT DISTINCT + col2 * 63 + - col1 * col0 * + col0 AS col0 FROM tab0 cor0
----
-118762
-47457
-715645
query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col1 * - ( - cor0.col2 + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col1 * + 26 + col1 FROM tab2 AS cor0
----
-1475
-425
-775
onlyif mysql # use DIV operator for integer division
query I rowsort label-8019
SELECT DISTINCT col0 + - col0 DIV + 5 FROM tab1 AS cor0
----
3
52
64
skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT col0 + - col0 / + 5 FROM tab1 AS cor0
----
3
52
64
query I rowsort
SELECT + col2 + + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT + cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8021
SELECT + cor0.col2 / + cor0.col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2, tab1 AS cor0
----
27
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-10
-13
-26
query I rowsort
SELECT - ( col0 ) * + col1 * ( 27 ) FROM tab0 AS cor0
----
-218673
-55728
-91665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 71 col1 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT + col1 + - 34 FROM tab2 AS cor0
----
-17
-3
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 + - col2 * col2 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - + col2 + - col1 - col0 AS col2 FROM tab1 AS cor0
----
-131
-189
-83
query I rowsort
SELECT - ( - col1 ) * + ( + col2 ) * col0 + - col2 + col2 * col2 FROM tab1 AS cor0
----
108960
39672
7074
query I rowsort
SELECT tab1.col1 * + col0 * col2 FROM tab1
----
36480
4212
99840
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT 39 + - col2 FROM tab2 AS cor0
----
1
12
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8035
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT ALL + - 9 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT col1 + - tab2.col0 * - 42 AS col2 FROM tab2
----
325
3335
3335
query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT + col1 DIV col1 + ( - col2 ) * + col1 AS col1 FROM tab2
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-8039
SELECT + col1 / col1 + ( - col2 ) * + col1 AS col1 FROM tab2
----
-1533
-645
-836
query I rowsort
SELECT ALL - col0 * + col2 * col2 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - cor0.col2 + 50 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 636c3147e4fe3a68556b6e0e14fe7724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col1 + - 4 col0 FROM tab2 AS cor0
----
1339
213
4598
query I rowsort
SELECT + tab2.col2 + 90 FROM tab2
----
116
117
128
query I rowsort
SELECT DISTINCT + col1 + 98 * - col1 AS col1 FROM tab0 cor0
----
-8342
-8827
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8045
SELECT CAST( NULL AS SIGNED ) - cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8045
SELECT CAST ( NULL AS INTEGER ) - cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * + col0 col2 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT DISTINCT col1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 19 * col0 FROM tab0 AS cor0
----
1691
456
665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col0 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT col1 * tab1.col1 + + col0 * - col0 + + 88 FROM tab1
----
-3908
-6143
755
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT DISTINCT col2 + + col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - ( col1 ) * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 23 * + 0 FROM tab2 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8059
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 25 + col0 AS col0 FROM tab0 AS cor0
----
114
49
60
query I rowsort
SELECT DISTINCT - col1 * 75 AS col0 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT + 23 AS col2 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT ALL - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL 64 + + col1 + + col1 AS col2 FROM tab1 AS cor0
----
116
84
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col1 col1 FROM tab1 cor0
----
0
query I rowsort
SELECT 5 + col2 * col1 FROM tab1 AS cor0
----
1253
1409
575
query I rowsort
SELECT DISTINCT 30 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2369
-904
67
query I rowsort
SELECT DISTINCT cor0.col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT ALL + 31 + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + 31 + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 3 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + 78 + - col2 FROM tab1 AS cor0
----
-18
21
24
query I rowsort
SELECT DISTINCT col2 + - col1 * - 3 FROM tab2 AS cor0
----
120
203
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - 33 - - col2 col0 FROM tab0 AS cor0
----
-2805
-2921
-3200
query I rowsort
SELECT - 39 FROM tab0 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ALL + col2 * - col1 * col1 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643
onlyif mysql # use DIV operator for integer division
query I rowsort label-8077
SELECT - col1 * col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8077
SELECT - col1 * col2 / col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col1 + + ( col2 ) FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) + + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
242
3715
7789
skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) + + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
242
3715
7789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 * + col2 + cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col2 * 32 AS col1 FROM tab1 AS cor0
----
1728
1824
3072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT + ( 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40
query I rowsort
SELECT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL + cor0.col1 * 50 + - cor0.col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col2 * col1 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT ALL + col1 * + cor0.col1 + 40 + col1 AS col0 FROM tab0 cor0
----
7522
8412
9546
query I rowsort
SELECT + col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 + 9 AS col2 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT DISTINCT + + col2 * - ( + 25 ) + + col0 * col0 * + col2 AS col1 FROM tab0 cor0
----
1200
18183
647472
query I rowsort
SELECT ALL - - col1 * - col1 + + col2 - col2 * - col2 FROM tab0 cor0
----
-1475
-6274
-9407
query I rowsort
SELECT - + col2 * + ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + col0 + 21 FROM tab0 AS cor0
----
110
45
56
query I rowsort
SELECT + - col1 * - col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 9 AS col2 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT col1 * + 97 AS col0 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT + + 20 AS col1 FROM tab1 AS cor0
----
20
20
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8101
SELECT CAST( NULL AS SIGNED ) + 2 * - tab2.col0 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-8101
SELECT CAST ( NULL AS INTEGER ) + 2 * - tab2.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT col1 * col0 * + 85 FROM tab0 AS cor0
----
175440
288575
688415
query I rowsort
SELECT - + col0 * col1 * - 81 FROM tab1 AS cor0
----
51840
6318
84240
query I rowsort
SELECT ALL col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort
SELECT + + col0 * - col0 - CAST ( + 90 AS REAL ) * + col2 AS col2 FROM tab0 AS cor0
----
-1315
-15301
-3546
query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0 AS cor0
----
-78
query I rowsort
SELECT DISTINCT + 22 * - col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + tab2.col2 + + col0 col1 FROM tab2
----
129
199
212
query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL + ( tab0.col2 ) + col0 AS col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * + col2 * col0 col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + + 51 AS col1 FROM tab1, tab2, tab1 AS cor0
----
51
query I rowsort
SELECT DISTINCT - - 72 + col2 FROM tab2 cor0
----
110
98
99
query I rowsort
SELECT col1 * + col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT - 66 * col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + col0 * - tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col0 * - col0 * - col1 AS col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT CAST( + ( col1 ) AS SIGNED ) * - cor0.col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-8123
SELECT CAST ( + ( col1 ) AS INTEGER ) * - cor0.col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + 72 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1846
710
923
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 - - col2 + 3 FROM tab2 AS cor0
----
29
30
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT + col1 + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8127
SELECT + col1 + col2 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - - col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + col2 + 33 col1 FROM tab2 AS cor0
----
-383
-399
-575
query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 + col0 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - col0 + + col0 * - 63 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8135
SELECT DISTINCT 25 DIV - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-3
0
skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT 25 / - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-3
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL + col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT col1 DIV - col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8140
SELECT col1 / - col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - col1 * ( 84 * cor0.col1 ) - - 88 AS col1 FROM tab1 AS cor0
----
-14108
-56696
-8312
query I rowsort
SELECT col0 - ( 97 ) FROM tab2 AS cor0
----
-18
-19
-90
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
query I rowsort
SELECT col0 * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - 94 * 9 + col1 + col0 AS col0 FROM tab1 cor0
----
-753
-772
-817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT - cor0.col1 * col0 + - col1 * CAST( cor0.col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-124254
-52377
-6076
skipif mysql # not compatible
query I rowsort label-8146
SELECT - cor0.col1 * col0 + - col1 * CAST ( cor0.col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-124254
-52377
-6076
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8147
SELECT ALL + + CAST( cor0.col0 AS SIGNED ) + col0 * + col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + + CAST ( cor0.col0 AS INTEGER ) + col0 * + col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT 18 * + cor0.col1 FROM tab2 cor0
----
1062
306
558
query I rowsort
SELECT - + 20 * + 23 + col0 * 41 AS col2 FROM tab1 AS cor0
----
-337
2164
2820
query I rowsort
SELECT - col1 + 64 FROM tab2 AS cor0
----
33
47
5
query I rowsort
SELECT + col0 * col2 AS col0 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT ALL + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - 84 * + 12 - - col2 * + 2 AS col2 FROM tab0 AS cor0
----
-1006
-844
-942
query I rowsort
SELECT DISTINCT - col2 - + cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 38 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 3 ) + col1 * - 55 * 2 col2 FROM tab1 AS cor0
----
-1097
-1427
-2857
query I rowsort
SELECT + col1 * - col1 - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8160
SELECT CAST( NULL AS SIGNED ) + + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8160
SELECT CAST ( NULL AS INTEGER ) + + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8161
SELECT DISTINCT col2 DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT col2 / ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 * + 64 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT - + 90 * + 14 + cor0.col1 * col1 FROM tab2 AS cor0
----
-299
-971
2221
query I rowsort
SELECT DISTINCT + 91 * - col1 * - col2 FROM tab0 AS cor0
----
258258
679042
8827
query I rowsort
SELECT + - col0 * + 22 - + col2 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
14464
36438
4292
query I rowsort
SELECT DISTINCT - ( 88 ) * - col1 - 54 * col1 FROM tab0
----
2924
3094
3298
query I rowsort
SELECT + 62 + - 32 FROM tab0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col1 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT + col0 * col2 + 26 FROM tab2 AS cor0
----
2054
215
3028
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * - col0 col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - 0 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 62 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT col1 * 91 AS col2 FROM tab2
----
1547
2821
5369
query I rowsort
SELECT tab0.col1 * - 86 AS col0 FROM tab0
----
-7396
-7826
-8342
query I rowsort
SELECT ALL + col2 + col1 * + col0 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT + col2 * - ( 63 ) AS col1 FROM tab2 AS cor0
----
-1638
-1701
-2394
query I rowsort
SELECT 68 AS col2 FROM tab1
----
68
68
68
query I rowsort
SELECT + ( cor0.col0 ) * 54 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9badd3cca82253aa5abb0910f28c8ea9
query I rowsort
SELECT DISTINCT + + col1 * + ( 4 ) + - col1 * ( col1 ) + + col1 FROM tab0 AS cor0
----
-6966
-7826
-8924
query I rowsort
SELECT col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 + CAST ( 64 AS REAL ) AS col0 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT DISTINCT + cor0.col2 * 54 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL col0 + 11 AS col0 FROM tab2 AS cor0
----
18
89
90
query I rowsort
SELECT + cor0.col1 * ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab1
----
-29
-29
-29
query I rowsort
SELECT 96 + - 72 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT + col0 + 94 DIV - 4 FROM tab0 cor0
----
1
12
66
skipif mysql # not compatible
query I rowsort label-8189
SELECT + col0 + 94 / - 4 FROM tab0 cor0
----
1
12
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8190
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8190
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT - col2 DIV ( col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8192
SELECT - col2 / ( col0 ) AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col2 * - 70 FROM tab2 cor0
----
13230
141960
210140
onlyif mysql # use DIV operator for integer division
query I rowsort label-8194
SELECT - - col0 DIV 31 AS col2 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8194
SELECT - - col0 / 31 AS col2 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT ALL + col0 * 9 AS col2 FROM tab2
----
63
702
711
query I rowsort
SELECT ALL - col0 * - 63 AS col0 FROM tab2 AS cor0
----
441
4914
4977
onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT col0 DIV - 69 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8197
SELECT col0 / - 69 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - cor0.col1 + - ( col0 + - col1 ) * 92 AS col0 FROM tab0 AS cor0
----
5607
5618
93
query I rowsort
SELECT DISTINCT + - col0 * 53 + 48 FROM tab2 AS cor0
----
-323
-4086
-4139
onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT ALL col1 DIV ( col1 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL col1 / ( col1 ) FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - cor0.col1 * 92 + col1 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT ALL + col0 * + col0 + tab2.col1 AS col2 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - - col2 + - 40 AS col2 FROM tab0 AS cor0
----
-39
-7
42
query I rowsort
SELECT ALL - + col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - cor0.col1 + - 62 * 10 AS col1 FROM tab2 AS cor0
----
-637
-651
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8208
SELECT cor0.col1 DIV + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8208
SELECT cor0.col1 / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - + col1 * col0 * - 25 AS col0 FROM tab2 AS cor0
----
115050
33575
5425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8210
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8211
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8212
SELECT ALL - col2 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL - col2 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col2 * - 78 * col1 FROM tab0 AS cor0
----
221364
582036
7566
query I rowsort
SELECT ALL col1 * 96 AS col2 FROM tab0 AS cor0
----
8256
8736
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT ALL col2 * + col0 DIV - col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL col2 * + col0 / - col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - col1 * + col0 * - col0 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + - col2 > ( - col2 )
----
query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT + tab1.col1 DIV - col1 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8220
SELECT + tab1.col1 / - col1 AS col1 FROM tab1
----
-1
-1
-1
query III rowsort
SELECT * FROM tab2 WHERE NOT ( tab2.col1 + col2 + col0 ) NOT BETWEEN + tab2.col2 - col2 AND + col1
----
query I rowsort
SELECT col2 + col2 + col1 FROM tab0
----
152
255
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT tab0.col2 DIV col2 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8223
SELECT tab0.col2 / col2 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 + col1 + - col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT DISTINCT + tab0.col1 * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT DISTINCT col1 DIV col1 col2 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT col1 / col1 col2 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT col2 DIV + tab0.col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8227
SELECT col2 / + tab0.col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT + col1 * col2 + + col1 * - col1 FROM tab2 WHERE col2 - - col1 * + col2 BETWEEN + col1 AND ( NULL )
----
query I rowsort
SELECT - tab0.col0 * + tab0.col2 + col0 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT col2 * col2 * - tab1.col2 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT ALL + tab2.col1 * - col0 * tab2.col1 - + col2 * + col0 FROM tab2
----
-25833
-273546
-6916
query I rowsort
SELECT + tab0.col2 * + col2 AS col0 FROM tab0 WHERE NOT NULL IN ( tab0.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * tab0.col1 col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col0 + + col2 IN ( col2 )
----
query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + tab0.col0 * + col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL col2 * - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2 cor0
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT + cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8240
SELECT + cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - - 42 AS col0 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT ALL 11 FROM tab2
----
11
11
11
query I rowsort
SELECT DISTINCT + 9 + cor0.col1 * col1 FROM tab2 AS cor0
----
298
3490
970
query I rowsort
SELECT + - col2 * + col2 + ( - cor0.col1 ) FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - col2 * + col0 + + 26 FROM tab1 AS cor0
----
-136
-3622
-7654
query I rowsort
SELECT - col2 * - tab1.col1 + tab1.col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col1 * col1 - + col1 AS col2 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT ALL - 45 AS col1 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - + ( - cor0.col1 ) * cor0.col1 + 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd9a1345a97ed5261ef739116adc0a34
query I rowsort
SELECT ALL + + col1 * col1 + + 6 FROM tab2 AS cor0
----
295
3487
967
query I rowsort
SELECT + - col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT DISTINCT col0 DIV - col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT col0 / - col0 FROM tab0
----
-1
query I rowsort
SELECT 49 * col0 - - ( 88 + cor0.col1 ) * col2 FROM tab0 AS cor0
----
1900
19039
6918
query I rowsort
SELECT + + col0 + + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + - 52 - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1395
-269
-4654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col1 col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - + ( - cor0.col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8261
SELECT DISTINCT - cor0.col2 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - cor0.col2 + cor0.col0 / col2 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT ALL 94 * col2 + - 22 FROM tab0 AS cor0
----
3080
72
7686
query I rowsort
SELECT DISTINCT - + ( - col2 ) - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 + ( 29 ) AS col0 FROM tab2 cor0
----
107
108
36
query I rowsort
SELECT - col2 + col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL col1 * tab1.col0 * + col2 + + col0 AS col2 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT ALL + + ( + col1 ) + - cor0.col1 - - col2 * + 72 AS col1 FROM tab0 cor0
----
2376
5904
72
query I rowsort
SELECT 53 AS col0 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT ALL - + 64 AS col1 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT ( 53 ) + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1481
-593
-784
query I rowsort
SELECT ALL - col1 - - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) * col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - + 2 * + col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + 52 + - col0 * + col0 FROM tab0 AS cor0
----
-1173
-524
-7869
query I rowsort
SELECT ALL cor0.col0 + - 83 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 8ee6d1b0757c3910df0488b7d1bc0870
query I rowsort
SELECT - 30 FROM tab1, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ALL 28 + + 31 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 05f41d0d3fd0b5c29af79ab9209cab27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8280
SELECT - CAST( - 43 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
1032
1505
3827
skipif mysql # not compatible
query I rowsort label-8280
SELECT - CAST ( - 43 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT DISTINCT - col1 + col0 * - col1 * 59 AS col0 FROM tab2
----
-12834
-271577
-79254
query I rowsort
SELECT DISTINCT 35 + col0 FROM tab0
----
124
59
70
query I rowsort
SELECT col2 * - col0 + 49 AS col0 FROM tab1 AS cor0
----
-113
-3599
-7631
query I rowsort
SELECT col2 * - col2 - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-8285
SELECT + + col2 + col0 * col1 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
180
3396
95
skipif mysql # not compatible
query I rowsort label-8285
SELECT + + col2 + col0 * col1 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
180
3396
95
query I rowsort
SELECT 16 FROM tab2, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT 97 FROM tab2, tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT col0 + 28 AS col0 FROM tab0
----
117
52
63
query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col0 * + tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL - col2 + + col1 * + col0 FROM tab2
----
1305
190
4576
query I rowsort
SELECT DISTINCT col2 * - col0 * col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + cor0.col0 * - col2 + col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
-2318
-468
675
query I rowsort
SELECT - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - 72 AS col1 FROM tab1
----
-72
-72
-72
query I rowsort
SELECT - 14 FROM tab2, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT ALL + ( + col1 + + col0 ) FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT ALL CAST( col2 AS SIGNED ) DIV col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL CAST ( col2 AS INTEGER ) / col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT - 64 * col2 FROM tab0 AS cor0
----
-2112
-5248
-64
query I rowsort
SELECT DISTINCT + col2 * - col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762
query I rowsort
SELECT + 44 * col0 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT + - ( cor0.col1 ) - + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + + 35 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1378
252
4637
query I rowsort
SELECT - 44 + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2072
-233
-3046
query I rowsort
SELECT - col1 * col0 * col1 + + col1 * - col0 * + col0 + col1 * + col1 FROM tab1 AS cor0
----
-1586
-47260
-96551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8310
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col2 * - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col1 )
----
query I rowsort
SELECT ALL - col1 + + col2 * col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 * - col1 + - col0 FROM tab1 AS cor0
----
119728
32426
75813
query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 AS col2 FROM tab2
----
2054
216
3040
query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - col1 )
----
query I rowsort
SELECT col0 * col2 * - col1 - col0 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col0 AS col1 FROM tab0
----
35
7298
792
query III rowsort
SELECT * FROM tab1 WHERE col2 + col2 < col0
----
query I rowsort
SELECT ALL - col2 * tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL - col1 - + col2 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8326
SELECT col0 DIV + col0 + - tab2.col0 * - col1 + col0 col1 FROM tab2
----
1423
225
4681
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8326
SELECT col0 / + col0 + - tab2.col0 * - col1 + col0 col1 FROM tab2
----
1423
225
4681
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) NOT IN ( col0 )
----
query I rowsort
SELECT ALL + col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col0 * - col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - tab2.col1 * + col2 * col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - cor0.col2 + + col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL + col1 + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col2 * cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT tab1.col1 + col1 AS col1 FROM tab1 WHERE NOT col1 IN ( col1 * col2 )
----
20
26
52
query I rowsort
SELECT - + col0 + + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 97 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + ( + col1 ) * - col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 + - col0 * - col0 col2 FROM tab1 AS cor0
----
-4
4083
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 + + col0 * - col1 col0 FROM tab2 AS cor0
----
-1355
-229
-4614
query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - + 32 - col1 * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
36448
4180
99808
query I rowsort
SELECT DISTINCT - - ( - col1 ) * + col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 59 * - 2 AS col0 FROM tab2 AS cor0
----
118
query I rowsort
SELECT - + col2 * col0 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - - col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - 19 AS col1 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT + 83 + col1 AS col0 FROM tab1 cor0
----
109
93
96
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + ( tab1.col2 * + tab1.col0 ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 86 + - col0 * - col2 AS col1 FROM tab0
----
121
7384
878
query I rowsort
SELECT + col0 + 16 AS col2 FROM tab1 cor0
----
19
80
96
query I rowsort
SELECT DISTINCT col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col1 * col0 + col1 - - col2 * ( + col2 ) FROM tab1 AS cor0
----
2619
2864
8189
query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col2 * ( col0 ) + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - + col0 + - ( + col2 + - col1 ) FROM tab0 cor0
----
-80
29
61
query I rowsort
SELECT col0 - 3 AS col2 FROM tab0 AS cor0
----
21
32
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 86 col1 FROM tab2 AS cor0
----
103
117
145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8364
SELECT - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8364
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col1 + - col0 AS col2 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT 5 * tab2.col0 AS col0 FROM tab2
----
35
390
395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col2 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 39 * + col0 * col1 + + 76 AS col2 FROM tab0
----
132481
315937
80572
query I rowsort
SELECT 84 + + col0 AS col2 FROM tab1
----
148
164
87
query I rowsort
SELECT DISTINCT tab0.col0 * col1 + col2 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT + col0 + - col1 * - tab1.col0 + col1 DIV - ( col0 + + col1 * - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-8371
SELECT + col0 + - col1 * - tab1.col0 + col1 / - ( col0 + + col1 * - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 50 col1 FROM tab1 AS cor0
----
114
130
53
query I rowsort
SELECT + col0 * ( + col1 ) - col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + + col0 * 86 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT + + cor0.col1 * col1 * col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort
SELECT - + col1 - CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col1 * 89 + + tab2.col2 AS col1 FROM tab2
----
1551
2786
5277
query I rowsort
SELECT - col2 + ( 91 ) * col2 + - 53 AS col2 FROM tab2
----
2287
2377
3367
query I rowsort
SELECT DISTINCT col1 * - 98 AS col2 FROM tab2
----
-1666
-3038
-5782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 - - ( col1 ) col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8382
SELECT + ( col0 ) * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8382
SELECT + ( col0 ) * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab1, tab1 cor0, tab0 cor1
----
15
query I rowsort
SELECT DISTINCT + col1 * 48 AS col2 FROM tab0
----
4128
4368
4656
query I rowsort
SELECT - - col2 * + 69 FROM tab2 AS cor0
----
1794
1863
2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8387
SELECT + - CAST( NULL AS SIGNED ) * + col0 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8387
SELECT + - CAST ( NULL AS INTEGER ) * + col0 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8388
SELECT + CAST( NULL AS SIGNED ) * col1 - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8388
SELECT + CAST ( NULL AS INTEGER ) * col1 - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col1 - - col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - - col0 * - col2 + col0 * - cor0.col0 * - col2 FROM tab1 AS cor0
----
229824
324
606720
query I rowsort
SELECT ALL + 46 AS col0 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - + 96 + - cor0.col1 FROM tab2 AS cor0
----
-113
-127
-155
query I rowsort
SELECT ALL + col1 * - cor0.col2 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8395
SELECT ALL - + col2 * + col1 * CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - + col2 * + col1 * CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - 26 + - col1 FROM tab2 AS cor0
----
-43
-57
-85
query I rowsort
SELECT ALL ( + col0 ) + ( - col0 ) + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 89 FROM tab1 AS cor0
----
-89
query I rowsort
SELECT - + 93 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-23
query I rowsort
SELECT ALL + - ( - 67 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 + col1 col0 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT DISTINCT col2 * ( - col0 + - col2 ) AS col1 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT - col1 * 6 AS col0 FROM tab1 cor0
----
-156
-60
-78
query I rowsort
SELECT cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col0 * 40 + col0 FROM tab0 cor0
----
-1365
-3471
-936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + - 38 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + col1 + col2 AS col1 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8410
SELECT + col2 * ( + col0 ) DIV - col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8410
SELECT + col2 * ( + col0 ) / - col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * 50 col2 FROM tab1 cor0
----
2754
2907
4896
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT DISTINCT col0 * + col1 - + 88 DIV - 36 col2 FROM tab1 cor0
----
1042
642
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT col0 * + col1 - + 88 / - 36 col2 FROM tab1 cor0
----
1042
642
80
query I rowsort
SELECT - + 67 + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-102
-7365
-859
query I rowsort
SELECT + - col1 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - - 71 * col1 * ( 66 * - col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-2999097
-365562
-4873536
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT 46 * col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT 42 * col0 AS col2 FROM tab0
----
1008
1470
3738
query I rowsort
SELECT + + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 * + ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * + col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col1 * - ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * col0 * col1 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT + col1 + + 61 AS col1 FROM tab2 AS cor0
----
120
78
92
query I rowsort
SELECT ALL - col1 + col0 * 88 AS col0 FROM tab1 AS cor0
----
238
5622
7027
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 - - col0 * col0 col2 FROM tab2
----
-680
4797
5408
query I rowsort
SELECT ALL - 3 - cor0.col0 FROM tab1 AS cor0
----
-6
-67
-83
query I rowsort
SELECT - 48 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL 91 * + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
81 values hashing to fd7a360ab81eccbe497915693ff59fde
query I rowsort
SELECT ALL 31 AS col0 FROM tab1
----
31
31
31
query I rowsort
SELECT DISTINCT 6 FROM tab1, tab2, tab1 AS cor0
----
6
query I rowsort
SELECT ALL + 5 AS col2 FROM tab1
----
5
5
5
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 51 FROM tab0 cor0
----
51
51
51
query I rowsort
SELECT + + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 * 56 AS col1 FROM tab2 AS cor0
----
36176
46872
85904
query I rowsort
SELECT ALL + col1 * + col2 + col0 * ( + col0 ) FROM tab1 cor0
----
1413
4666
7648
query I rowsort
SELECT col0 - + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 59 FROM tab0
----
59
59
59
query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - + col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 19 * + col0 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT DISTINCT + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT - 60 * - col2 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT ALL - col1 * - col1 FROM tab2 cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col0 * - col1 + + 40 col1 FROM tab0
----
-16158
-4088
-6750
onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT ALL + col0 DIV - 80 + tab2.col0 * tab2.col0 * + 87 FROM tab2
----
4263
529308
542967
skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + col0 / - 80 + tab2.col0 * tab2.col0 * + 87 FROM tab2
----
4263
529308
542967
query I rowsort
SELECT col0 * - col0 * col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT ALL - 29 + - 42 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT - - 90 FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to fab53aad9716f1e35030c90a50184bfc
query I rowsort
SELECT + col1 - 9 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT DISTINCT - col2 + 47 AS col0 FROM tab2 cor0
----
20
21
9
query I rowsort
SELECT DISTINCT - 99 FROM tab0 AS cor0
----
-99
query I rowsort
SELECT ALL + 76 * col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT - - 32 * - ( - col0 ) + + 89 FROM tab1 AS cor0
----
185
2137
2649
query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - col1 + cor0.col2 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
-1354
-158243
-237175
query I rowsort
SELECT - 59 + + ( cor0.col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1189
1345
511
query I rowsort
SELECT ALL col1 + - 84 FROM tab2 AS cor0
----
-25
-53
-67
query I rowsort
SELECT ALL 74 + + 57 AS col2 FROM tab1 AS cor0
----
131
131
131
query I rowsort
SELECT col1 * - 89 FROM tab2
----
-1513
-2759
-5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 2 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT col1 + - 53 AS col1 FROM tab1
----
-27
-40
-43
query I rowsort
SELECT DISTINCT + col1 + ( + col0 + col2 ) FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT + 84 + + col2 DIV + col1 FROM tab2 AS cor0
----
84
84
86
skipif mysql # not compatible
query I rowsort label-8473
SELECT + 84 + + col2 / + col1 FROM tab2 AS cor0
----
84
84
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT DISTINCT + CAST( 34 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1292
884
918
skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + CAST ( 34 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT - - col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - + 11 AS col0 FROM tab2 AS cor0
----
-11
-11
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8477
SELECT CAST( - 25 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
1
13
2
skipif mysql # not compatible
query I rowsort label-8477
SELECT CAST ( - 25 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
1
13
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8478
SELECT - col0 * col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8478
SELECT - col0 * col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - tab2.col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - col1 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * col1 + ( col0 ) * - col2 col2 FROM tab2 AS cor0
----
-1506
2539
3164
query I rowsort
SELECT ALL + - col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - + col0 + - col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - - col2 + - col1 * 66 FROM tab0 AS cor0
----
-5643
-5924
-6401
query I rowsort
SELECT col1 - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col0 + - col1 + + ( + 92 + col2 * 51 ) FROM tab0 cor0
----
1713
4272
81
query I rowsort
SELECT + 12 * - col2 - cor0.col0 FROM tab2 AS cor0
----
-331
-390
-535
query I rowsort
SELECT ALL - + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + col2 + col0 * + col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + - cor0.col0 * 96 FROM tab2 cor0
----
-672
-7488
-7584
query I rowsort
SELECT ALL - col0 * 23 AS col2 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT ALL col2 + col2 + - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col2 * col0 + col1 * + col0 AS col2 FROM tab1 cor0
----
240
4288
8720
query I rowsort
SELECT DISTINCT - col2 * - 40 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ALL + - cor0.col0 * + 10 + 31 AS col1 FROM tab0 AS cor0
----
-209
-319
-859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * 61 col2 FROM tab1 AS cor0
----
237
3961
4976
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 + - 30 * - col0 FROM tab2 AS cor0
----
2366
237
2408
query I rowsort
SELECT DISTINCT - ( col1 ) + 52 * 50 FROM tab1
----
2574
2587
2590
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT + col1 + col2 DIV + 50 AS col2 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-8504
SELECT + col1 + col2 / + 50 AS col2 FROM tab0
----
86
92
97
query I rowsort
SELECT ALL - 38 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT - col2 + - 51 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-103
-105
-127
query I rowsort
SELECT + + col2 - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col1 + col0 * + 14 + + ( col2 ) FROM tab0
----
1237
283
394
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8509
SELECT ALL + cor0.col0 * + cor0.col2 + + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + cor0.col0 * + cor0.col2 + + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 62 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
3374
3544
5965
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT + + CAST( - col0 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-8511
SELECT + + CAST ( - col0 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + col0 + ( + col2 + col0 ) AS col1 FROM tab0 AS cor0
----
260
71
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT DISTINCT ( ( + col2 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT ( ( + col2 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col2 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - + 96 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT ALL - col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - + col1 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + 65 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT - col1 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + 80 FROM tab1 cor0
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT 8 AS col0 FROM tab2 AS cor0
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT ALL - + 66 * col1 DIV + cor0.col1 FROM tab1 cor0
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - + 66 * col1 / + cor0.col1 FROM tab1 cor0
----
-66
-66
-66
query I rowsort
SELECT DISTINCT + - ( - 36 ) + col1 AS col0 FROM tab1 AS cor0
----
46
49
62
query I rowsort
SELECT ALL + 84 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL + col2 * - tab1.col2 * col1 AS col0 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8528
SELECT ALL + + CAST( col1 AS SIGNED ) * cor0.col2 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + + CAST ( col1 AS INTEGER ) * cor0.col2 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col2 * + 19 - - col1 FROM tab0 AS cor0
----
116
1649
713
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT DISTINCT + col0 + - col0 DIV col1 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + col0 + - col0 / col1 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT - ( cor0.col2 ) + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + + 5 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT ALL + 57 * - col2 FROM tab2 cor0
----
-1482
-1539
-2166
query I rowsort
SELECT 8 * 0 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col1 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT CAST( NULL AS SIGNED ) * - tab2.col0 + - tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8536
SELECT CAST ( NULL AS INTEGER ) * - tab2.col0 + - tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * col1 - 78 FROM tab1 AS cor0
----
-1118
-156
-718
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8538
SELECT DISTINCT + col1 * col0 - - CAST( 19 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1362
236
4621
skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT + col1 * col0 - - CAST ( 19 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1362
236
4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * - col2 * 75 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + col1 ) + 60 * + col0 * col2 FROM tab2 AS cor0
----
11309
121621
180103
query I rowsort
SELECT - + 73 * + col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT + + 61 AS col2 FROM tab2 AS cor0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col2 * - ( col2 ) col2 FROM tab0 cor0
----
-1175
-6815
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - 9 col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 08f30aef1d0271aad217f7d44c633b44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 90 col2 FROM tab0
----
2970
7380
90
query I rowsort
SELECT DISTINCT + col1 * - 97 AS col2 FROM tab1
----
-1261
-2522
-970
query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT + CAST( - 1 AS SIGNED ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8548
SELECT + CAST ( - 1 AS INTEGER ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT 78 * cor0.col0 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT + 71 + col2 * col2 AS col0 FROM tab2
----
1515
747
800
query I rowsort
SELECT cor0.col2 * 5 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to eb014d3b44bcefac101824b69ab75e3d
query I rowsort
SELECT ALL - cor0.col2 + - col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL - + 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 16 AS col2 FROM tab1
----
16
16
16
query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT col2 + ( + col1 ) + + col2 * col2 * - tab1.col2 FROM tab1
----
-157384
-185126
-884627
query I rowsort
SELECT ALL - col2 + + tab2.col2 + + 8 FROM tab2
----
8
8
8
query I rowsort
SELECT col2 * - ( + col0 ) AS col0 FROM tab0
----
-35
-7298
-792
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT + + 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + tab0.col2 * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 + - cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT 53 + col1 AS col2 FROM tab0
----
139
144
150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8571
SELECT - - CAST( NULL AS DECIMAL ) + 48 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8571
SELECT - - CAST ( NULL AS REAL ) + 48 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8572
SELECT DISTINCT ( col2 ) DIV - col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT ( col2 ) / - col1 FROM tab2
----
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT ALL - CAST( 51 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-1224
-1785
-4539
skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL - CAST ( 51 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-1224
-1785
-4539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT - ( + 14 ) * col1 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT DISTINCT + - 54 FROM tab2 AS cor0
----
-54
query I rowsort
SELECT - + col1 * cor0.col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col1 + col1 * - cor0.col2 * ( - col1 * col0 ) FROM tab2 AS cor0
----
181598
7059409
867561
query I rowsort
SELECT DISTINCT - col2 * 9 FROM tab2 AS cor0
----
-234
-243
-342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 88 col1 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT DISTINCT + 9 + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
33
44
98
query I rowsort
SELECT - 20 FROM tab0 AS cor0
----
-20
-20
-20
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT DISTINCT + + col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT - + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + ( tab0.col1 ) * + col2 + 41 AS col1 FROM tab0
----
138
2879
7503
query I rowsort
SELECT - ( col1 + col2 ) * col2 AS col1 FROM tab1
----
-10464
-3819
-4320
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 * tab2.col2 AS col1 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8594
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col0 * + 6 AS col0 FROM tab1 AS cor0
----
-18
-384
-480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8597
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 40 AS col0 FROM tab2 AS cor0
----
118
119
47
query I rowsort
SELECT tab2.col2 FROM tab2, tab0, tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ( + col1 ) * + 48 * ( - col0 ) FROM tab1
----
-30720
-3744
-49920
query I rowsort
SELECT + + 63 FROM tab0 cor0
----
63
63
63
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( col2 ) col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 + + col0 + 37 AS col1 FROM tab0
----
28
44
71
query I rowsort
SELECT ALL - col0 * col0 + tab0.col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - col1 - + ( - tab0.col1 * col2 ) FROM tab0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT + col1 DIV - 20 + + 11 AS col2 FROM tab0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-8609
SELECT + col1 / - 20 + + 11 AS col2 FROM tab0
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT DISTINCT + 47 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT DISTINCT col1 + + tab2.col1 DIV 7 FROM tab2
----
19
35
67
skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT col1 + + tab2.col1 / 7 FROM tab2
----
19
35
67
query I rowsort
SELECT DISTINCT col2 * + col1 * col1 AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - tab0.col2 + - 39 FROM tab0
----
-121
-40
-72
query I rowsort
SELECT DISTINCT col2 * - col1 * + tab1.col1 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + 5 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT - 56 DIV - 86 - + col2 AS col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8617
SELECT - 56 / - 86 - + col2 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col0 * ( + col1 ) + col1 - 91 FROM tab2
----
-1417
-277
-4634
query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0, tab1 AS cor0
----
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT - col2 DIV - col1 col2 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8620
SELECT - col2 / - col1 col2 FROM tab1
----
2
5
7
query I rowsort
SELECT cor0.col0 * + 57 AS col2 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT - col1 + 53 - col2 FROM tab1
----
-14
-27
-56
query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab2
----
8
query I rowsort
SELECT 97 + - col1 * + col2 AS col1 FROM tab2
----
-1437
-549
-740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * - col1 col2 FROM tab0 AS cor0
----
-2322
-2457
-2619
query I rowsort
SELECT - col0 - - col1 * + ( col1 ) AS col0 FROM tab0 cor0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8627
SELECT + 23 * cor0.col0 - CAST( 9 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
152
1785
1808
skipif mysql # not compatible
query I rowsort label-8627
SELECT + 23 * cor0.col0 - CAST ( 9 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
152
1785
1808
query I rowsort
SELECT - ( col2 ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + - ( col1 ) * + col2 * - 61 FROM tab1 cor0
----
34770
76128
85644
query I rowsort
SELECT + cor0.col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 21 + + col0 FROM tab2 AS cor0
----
-14
57
58
query I rowsort
SELECT ALL - - col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT + col2 * col1 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + col2 * col1 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-118
-2
-83
query I rowsort
SELECT ALL + 29 FROM tab0 AS cor0
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8636
SELECT + ( col0 ) * - CAST( + col1 AS DECIMAL ) + col2 + - CAST( NULL AS SIGNED ) / cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8636
SELECT + ( col0 ) * - CAST ( + col1 AS REAL ) + col2 + - CAST ( NULL AS INTEGER ) / cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 63 * col0 + col0 FROM tab0 cor0
----
-1488
-2170
-5518
query I rowsort
SELECT + + col0 * cor0.col2 + + ( - ( + col2 ) ) + col1 AS col0 FROM tab0 cor0
----
131
7307
845
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 FROM tab2
----
196
2106
3081
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT col2 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8641
SELECT col2 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab1
----
2916
3249
9216
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col1 * col0 - col2 * - col1 )
----
query I rowsort
SELECT - tab2.col2 * col1 AS col1 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / col0 NOT IN ( tab0.col1 + col1 + col1 * - col0 )
----
query I rowsort
SELECT ALL + col1 - col1 * col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT tab0.col2 - tab0.col0 AS col1 FROM tab0
----
-34
-7
9
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - col2 + - col1 * + ( + tab0.col1 * col0 + + col0 * + col1 ) FROM tab0
----
-1474100
-355041
-658631
query I rowsort
SELECT DISTINCT + 38 FROM tab0 AS cor0
----
38
query I rowsort
SELECT - cor0.col1 * + col1 * - col0 AS col0 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT + + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + ( - col0 ) - 71 FROM tab0 AS cor0
----
-106
-160
-95
query I rowsort
SELECT + + ( cor0.col1 ) * + col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT ALL + col2 + + cor0.col1 DIV 31 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + col2 + + cor0.col1 / 31 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT tab2.col0 * tab2.col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + col2 + tab0.col0 - col2 col1 FROM tab0
----
131
2829
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 - col1 col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col0 * tab0.col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 - col1 / + cor0.col2 IN ( - col2 * col2 )
----
query I rowsort
SELECT ALL col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 + + col1 FROM tab1 WHERE NOT ( NULL ) <= col1 - col1 * - col1 * + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT col0 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8667
SELECT col0 / - col0 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col1 + col2 AS col1 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT col1 + - col0 DIV + tab2.col1 FROM tab2
----
13
31
58
skipif mysql # not compatible
query I rowsort label-8670
SELECT col1 + - col0 / + tab2.col1 FROM tab2
----
13
31
58
query I rowsort
SELECT col1 + + col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT + col1 + - tab2.col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT tab0.col2 - col0 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + col2 - + col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 + - col1 * - col0 * col2 + - col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8677
SELECT ALL tab0.col1 DIV - tab0.col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL tab0.col1 / - tab0.col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT 54 * col1 AS col1 FROM tab0
----
4644
4914
5238
query I rowsort
SELECT - 51 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT - col2 * 25 AS col0 FROM tab0 AS cor0
----
-2050
-25
-825
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 - col0 + - col2 * 37 AS col1 FROM tab2 AS cor0
----
-1006
-1040
-1485
query I rowsort
SELECT col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT cor0.col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT 68 AS col1 FROM tab1
----
68
68
68
query I rowsort
SELECT DISTINCT + 87 FROM tab2, tab0 AS cor0
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 72 ) col1 FROM tab1
----
72
72
72
query I rowsort
SELECT DISTINCT - 19 FROM tab1
----
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 * 95 col0 FROM tab0 AS cor0
----
196080
322525
769405
query I rowsort
SELECT + col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT ALL + col1 + col0 DIV col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + col1 + col0 / col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - - col1 * 77 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 19 + col2 AS col0 FROM tab1
----
115
73
76
query I rowsort
SELECT - col1 + ( col0 ) AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + tab1.col0 + 7 AS col1 FROM tab1
----
10
71
87
query I rowsort
SELECT + tab2.col0 + 14 * col2 FROM tab2
----
385
442
611
query I rowsort
SELECT - col2 * 44 AS col1 FROM tab2
----
-1144
-1188
-1672
onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT - + col0 DIV 36 + col1 * col2 FROM tab0 AS cor0
----
2838
7460
97
skipif mysql # not compatible
query I rowsort label-8701
SELECT - + col0 / 36 + col1 * col2 FROM tab0 AS cor0
----
2838
7460
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8702
SELECT + + CAST( NULL AS SIGNED ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8702
SELECT + + CAST ( NULL AS INTEGER ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + 76 FROM tab2
----
-532
-5928
-6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8704
SELECT CAST( NULL AS SIGNED ) * 56 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8704
SELECT CAST ( NULL AS INTEGER ) * 56 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * tab2.col0 AS col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8706
SELECT DISTINCT + + col0 DIV - col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT + + col0 / - col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + 46 FROM tab0 cor0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8708
SELECT + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT - 13 * col1 AS col0 FROM tab2
----
-221
-403
-767
query I rowsort
SELECT DISTINCT - 90 FROM tab1
----
-90
query I rowsort
SELECT ALL col1 + - col2 + col1 * + col1 AS col2 FROM tab1
----
53
648
86
query I rowsort
SELECT ALL 0 + col0 * - col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 2 * col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL tab0.col2 + - col1 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT CAST( NULL AS SIGNED ) + 29 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8717
SELECT CAST ( NULL AS INTEGER ) + 29 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + - tab1.col2 * - col1 * col1 AS col1 FROM tab1
----
16320
36558
5757
query I rowsort
SELECT - - 35 AS col0 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT ALL 26 AS col2 FROM tab2 AS cor0
----
26
26
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8721
SELECT - 6 DIV - col0 + cor0.col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
6
6
skipif mysql # not compatible
query I rowsort label-8721
SELECT - 6 / - col0 + cor0.col0 / + col1 AS col0 FROM tab1 AS cor0
----
2
6
6
query I rowsort
SELECT DISTINCT + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT - ( + col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8723
SELECT - ( + col2 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - + 55 AS col1 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT col1 * col1 * + col2 AS col0 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT ALL - col1 + 63 - - col1 FROM tab1
----
63
63
63
query I rowsort
SELECT DISTINCT col1 + col1 - + col2 AS col1 FROM tab0
----
100
139
193
query I rowsort
SELECT cor0.col2 + ( col2 ) * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col0 - - 5 FROM tab1 AS cor0
----
69
8
85
query I rowsort
SELECT + + col1 - 87 FROM tab0 AS cor0
----
-1
10
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT + col0 + + 69 + - col1 DIV col0 FROM tab0 AS cor0
----
102
157
90
skipif mysql # not compatible
query I rowsort label-8731
SELECT + col0 + + 69 + - col1 / col0 FROM tab0 AS cor0
----
102
157
90
query I rowsort
SELECT + - col0 - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - col1 + 68 FROM tab1 AS cor0
----
42
55
58
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL - 75 * col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
onlyif mysql # use DIV operator for integer division
query I rowsort label-8736
SELECT - 85 DIV ( col2 ) + + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
1
60
skipif mysql # not compatible
query I rowsort label-8736
SELECT - 85 / ( col2 ) + + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
1
60
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT ALL + col2 DIV col0 + + col1 * col0 + col0 FROM tab0 AS cor0
----
2089
3430
8188
skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + col2 / col0 + + col1 * col0 + col0 FROM tab0 AS cor0
----
2089
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col1 - - col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col0 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT col0 * col0 DIV tab2.col0 col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8741
SELECT col0 * col0 / tab2.col0 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col2 + col2 + tab0.col1 AS col0 FROM tab0
----
152
255
99
query I rowsort
SELECT DISTINCT - col2 * - col1 + - col1 * col0 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 AS col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT col0 * col1 - col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT + col0 DIV - col2 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-70
-7299
-792
skipif mysql # not compatible
query I rowsort label-8747
SELECT + col0 / - col2 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-70
-7299
-792
query I rowsort
SELECT DISTINCT col1 + cor0.col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - - col2 * + col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - + col2 + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - - col1 * + col0 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT + col0 DIV + col1 - col0 FROM tab2 cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-8753
SELECT + col0 / + col1 - col0 FROM tab2 cor0
----
-7
-75
-77
query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT ALL cor0.col0 DIV col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL cor0.col0 / col1 FROM tab1 AS cor0
----
0
6
6
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT DISTINCT - col2 * col1 + - col2 FROM tab0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT col1 * tab0.col1 DIV - col0 AS col0 FROM tab0
----
-268
-308
-93
skipif mysql # not compatible
query I rowsort label-8758
SELECT col1 * tab0.col1 / - col0 AS col0 FROM tab0
----
-268
-308
-93
query I rowsort
SELECT ALL col1 + col2 - col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8760
SELECT DISTINCT + col2 + col2 DIV - col1 + tab1.col1 FROM tab1
----
102
62
78
skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + col2 + col2 / - col1 + tab1.col1 FROM tab1
----
102
62
78
query I rowsort
SELECT ALL + col1 * + col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - col0 - cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + - col2 * col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT 67 * tab2.col0 AS col0 FROM tab2
----
469
5226
5293
query I rowsort
SELECT + col2 * col1 + tab2.col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT col0 - - col2 * + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL col0 * + col0 * + col1 AS col2 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col2 * cor0.col0 + col1 * col1 col0 FROM tab0 AS cor0
----
-18740
-590155
9374
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + col2 * - col1 + col2 * tab1.col2 AS col1 FROM tab1
----
1512
2679
7968
query I rowsort
SELECT + col0 + - col2 * + col0 AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + col1 * - col2 + + ( col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT col2 * col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL + 23 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT - col2 + - CAST( col1 AS SIGNED ) * + col1 * - col0 FROM tab1 AS cor0
----
13424
1974
6343
skipif mysql # not compatible
query I rowsort label-8777
SELECT - col2 + - CAST ( col1 AS INTEGER ) * + col1 * - col0 FROM tab1 AS cor0
----
13424
1974
6343
query I rowsort
SELECT ALL 32 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT DISTINCT col2 * ( col1 ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 20 * col1 * - col0 FROM tab1 AS cor0
----
-12800
-1560
-20800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8781
SELECT DISTINCT col0 DIV col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT col0 / col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 * CAST ( + 9 AS REAL ) AS col0 FROM tab1 AS cor0
----
27
576
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT - 94 DIV 59 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-8783
SELECT - 94 / 59 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + col1 * col1 + col0 + 8 FROM tab0
----
7428
8378
9452
query I rowsort
SELECT - ( col0 ) + + col1 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col0 * col2 - - col1 AS col1 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8787
SELECT CAST( NULL AS SIGNED ) + + col1 * + col1 * tab1.col1 + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8787
SELECT CAST ( NULL AS INTEGER ) + + col1 * + col1 * tab1.col1 + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 46 AS col0 FROM tab0
----
128
47
79
query I rowsort
SELECT ALL - col0 * - col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - 41 * + col0 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT - cor0.col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 88 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-589
-6838
-6914
query I rowsort
SELECT DISTINCT + ( 32 ) - col2 FROM tab1
----
-22
-25
-64
query I rowsort
SELECT ALL - col2 + - col2 + + col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + ( col1 ) * + tab1.col1 + - ( 25 ) AS col2 FROM tab1
----
144
651
75
query I rowsort
SELECT ALL col2 + 79 + col1 FROM tab2
----
134
137
164
onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT col2 + 31 DIV + col2 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8797
SELECT col2 + 31 / + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - cor0.col0 + - col2 * - 9 AS col0 FROM tab2 AS cor0
----
156
236
263
onlyif mysql # use DIV operator for integer division
query I rowsort label-8799
SELECT DISTINCT ( cor0.col0 ) * + col2 + cor0.col1 * col1 + ( col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
3748
7849
838
skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT ( cor0.col0 ) * + col2 + cor0.col1 * col1 + ( col1 ) / col2 AS col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT - - ( cor0.col0 ) * - col1 + + 93 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
-354
-6528
-8400
query I rowsort
SELECT ALL 46 + + col0 AS col0 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT ALL - 35 AS col2 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT DISTINCT + - 56 FROM tab0 AS cor0
----
-56
query I rowsort
SELECT + cor0.col1 * col0 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + - col0 + col2 + col1 * + 29 * col1 FROM tab1 AS cor0
----
19655
2893
4917
query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT + tab2.col2 DIV col0 AS col1 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8810
SELECT + tab2.col2 / col0 AS col1 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL - col2 + + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - col0 * - col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT 57 * - col0 FROM tab2
----
-399
-4446
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT - col2 * col2 DIV 98 AS col1 FROM tab2
----
-14
-6
-7
skipif mysql # not compatible
query I rowsort label-8814
SELECT - col2 * col2 / 98 AS col1 FROM tab2
----
-14
-6
-7
query I rowsort
SELECT - - col1 * 32 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT + col0 + 16 AS col2 FROM tab0 AS cor0
----
105
40
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT - + cor0.col2 DIV - 75 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8817
SELECT - + cor0.col2 / - 75 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8818
SELECT col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8818
SELECT col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 * 55 col0 FROM tab1 AS cor0
----
168
3584
4480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - ( - col1 ) ) col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + ( - col2 ) + + 30 FROM tab0
----
-3
-52
29
query I rowsort
SELECT - cor0.col0 * col1 + + col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465
query I rowsort
SELECT - col0 + + 6 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7414
-8364
-9438
query I rowsort
SELECT + - col0 + ( + col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8825
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8825
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + 47 * - col0 FROM tab2 cor0
----
-329
-3666
-3713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT ALL - - col2 DIV cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - - col2 / cor0.col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT DISTINCT + - 11 + + 53 DIV col0 FROM tab1 AS cor0
----
-11
6
skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + - 11 + + 53 / col0 FROM tab1 AS cor0
----
-11
6
query I rowsort
SELECT DISTINCT - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 79 col1 FROM tab2 AS cor0
----
79
79
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + col2 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col2 + + 13 AS col2 FROM tab2 AS cor0
----
-13
-14
-25
query I rowsort
SELECT ALL - + col2 + 26 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT + - 11 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1029
629
67
query I rowsort
SELECT - ( col0 ) * + col0 FROM tab1 cor0
----
-4096
-6400
-9
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 + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 83 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab1
----
-7
query I rowsort
SELECT ALL 67 * col0 + col0 * 24 AS col2 FROM tab0
----
2184
3185
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT - ( + cor0.col2 ) + col0 DIV - ( 5 ) AS col0 FROM tab2 AS cor0
----
-28
-41
-53
skipif mysql # not compatible
query I rowsort label-8843
SELECT - ( + cor0.col2 ) + col0 / - ( 5 ) AS col0 FROM tab2 AS cor0
----
-28
-41
-53
query I rowsort
SELECT ALL + col1 + 44 + - col2 AS col0 FROM tab1 AS cor0
----
-3
-39
16
query I rowsort
SELECT ALL + ( + col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( + 72 ) - + col1 AS col1 FROM tab1 AS cor0
----
46
59
62
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 * + ( col0 ) - col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145
query I rowsort
SELECT - col2 * col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8849
SELECT CAST( + col0 AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-8849
SELECT CAST ( + col0 AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + 10 * + 30 FROM tab1 AS cor0
----
300
300
300
query I rowsort
SELECT DISTINCT + - col1 + - col2 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8852
SELECT + - CAST( + col0 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-8852
SELECT + - CAST ( + col0 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + + 56 * + col2 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8856
SELECT DISTINCT 22 * 12 DIV col1 AS col0 FROM tab1 AS cor0
----
10
20
26
skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT 22 * 12 / col1 AS col0 FROM tab1 AS cor0
----
10
20
26
query I rowsort
SELECT + col0 * - ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - tab0.col2 * + tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + col2 * - col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + + 86 + - 84 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT - ( 99 ) AS col0 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT + 93 * - 50 FROM tab1 AS cor0
----
-4650
-4650
-4650
query I rowsort
SELECT ( col2 ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT + CAST( NULL AS DECIMAL ) + 82 - col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8865
SELECT + CAST ( NULL AS REAL ) + 82 - col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - cor1.col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 12 * col1 col0 FROM tab2 AS cor0
----
-16116
-2604
-55224
query I rowsort
SELECT - 67 AS col0 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT col1 - + col0 * - ( - col0 ) FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT col1 * + col1 - - col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT col0 + + 24 - col2 AS col0 FROM tab2
----
4
65
76
query I rowsort
SELECT DISTINCT + col0 - - ( - tab0.col2 * col2 ) AS col2 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + col2 DIV col1 + - 88 DIV + col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8875
SELECT + col2 / col1 + - 88 / + col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT - col2 + + 78 * 69 FROM tab1 AS cor0
----
5286
5325
5328
query I rowsort
SELECT DISTINCT + 51 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
51
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT ALL col0 * + 15 FROM tab0
----
1335
360
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT DISTINCT - cor0.col1 DIV - cor0.col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - cor0.col1 / - cor0.col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + - col1 * - 18 FROM tab1 AS cor0
----
180
234
468
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 + + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8883
SELECT ALL col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col0 * + tab2.col1 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL - cor0.col0 + 53 * col1 AS col1 FROM tab1 AS cor0
----
1375
466
609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8886
SELECT - CAST( NULL AS SIGNED ) * + 96 - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8886
SELECT - CAST ( NULL AS INTEGER ) * + 96 - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 + 95 * cor0.col1 * + ( 46 * col0 ) FROM tab0 AS cor0
----
14836151
35392712
9019713
query I rowsort
SELECT DISTINCT 51 * + col2 FROM tab1 cor0
----
2754
2907
4896
query I rowsort
SELECT + col2 - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - 45 + + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1180
531
7876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + ( cor0.col0 ) col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col0 * col0 + col2 * + col1 FROM tab2 AS cor0
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT + col1 - 13 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8893
SELECT + col1 - 13 / col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT + ( col1 ) + col1 * ( - col1 ) DIV - cor0.col2 FROM tab0 AS cor0
----
191
310
9506
skipif mysql # not compatible
query I rowsort label-8894
SELECT + ( col1 ) + col1 * ( - col1 ) / - cor0.col2 FROM tab0 AS cor0
----
191
310
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT ALL + cor0.col0 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + cor0.col0 + col1 / col2 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 12 * - col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT ALL - col2 + cor0.col1 * col2 + + col2 * col1 AS col2 FROM tab1 cor0
----
1083
2400
2754
query I rowsort
SELECT ALL - col0 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + 96 AS col2 FROM tab0 AS cor0
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT ALL + col0 DIV col2 + cor0.col0 FROM tab1 cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + col0 / col2 + cor0.col0 FROM tab1 cor0
----
3
65
80
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + 53 FROM tab2 AS cor0
----
53
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + col0 * 13 - + col2 AS col1 FROM tab2 AS cor0
----
-1040
-1065
-118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8905
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8905
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + col1 + + cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL cor0.col2 + - 87 FROM tab2 AS cor0
----
-49
-60
-61
query I rowsort
SELECT col1 * 90 AS col2 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( 37 ) * - cor0.col0 FROM tab2 AS cor0
----
-228
-2827
-2906
query I rowsort
SELECT DISTINCT - - col1 - + col1 FROM tab0 cor0
----
0
query I rowsort
SELECT + col2 * + ( + col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
query I rowsort
SELECT cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 * col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT 49 AS col2 FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT + 86 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
3010
627628
68112
query I rowsort
SELECT ALL + 48 * - col1 FROM tab1 AS cor0
----
-1248
-480
-624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8923
SELECT + CAST( NULL AS SIGNED ) + col0 / col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8923
SELECT + CAST ( NULL AS INTEGER ) + col0 / col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8925
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT DISTINCT ( + 85 ) + + col1 AS col2 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT - 7 * col1 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT DISTINCT + 34 FROM tab1 cor0
----
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT col2 + cor0.col2 DIV col0 FROM tab1 cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-8930
SELECT col2 + cor0.col2 / col0 FROM tab1 cor0
----
57
72
97
query I rowsort
SELECT 24 + col1 AS col2 FROM tab2
----
41
55
83
query I rowsort
SELECT DISTINCT col0 * 22 * col0 + + tab2.col0 * + 9 + col0 AS col0 FROM tab2
----
1148
134628
138092
query I rowsort
SELECT ALL col1 + ( - col2 ) + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 - + ( col0 + - col2 ) * + col0 FROM tab2 AS cor0
----
-3277
-4082
113
query I rowsort
SELECT DISTINCT col1 * 18 - - 98 AS col0 FROM tab0 AS cor0
----
1646
1736
1844
query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 60 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( col0 ) col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col1 - col1 * col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col1 * + 54 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT cor0.col0 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT col1 + col0 * - 77 FROM tab2
----
-508
-5947
-6066
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - - col0 * 25 col1 FROM tab0 AS cor0
----
3438
9687
972
query I rowsort
SELECT + + col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col0 * col0 + + col1 + col1 * 36 * col1 FROM tab1
----
12497
24371
7706
query I rowsort
SELECT ALL + 96 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT col0 + + 0 + col1 AS col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8949
SELECT ALL - tab0.col0 + + col1 * ( col1 ) * CAST( - col2 AS SIGNED ) FROM tab0
----
-244092
-679131
-9444
skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - tab0.col0 + + col1 * ( col1 ) * CAST ( - col2 AS INTEGER ) FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT - col0 + - col2 + col2 * col2 FROM tab1
----
2859
3128
9040
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 cor0, tab1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT ALL col2 + tab2.col1 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8953
SELECT - - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8953
SELECT - - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + cor0.col1 * 56 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT - 60 * - 23 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 41122633dcf4fe135eb5f1f6926b19a4
query I rowsort
SELECT DISTINCT + - 27 FROM tab2 AS cor0
----
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8957
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8959
SELECT - 6 DIV cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8959
SELECT - 6 / cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 11 FROM tab1
----
11
query I rowsort
SELECT 66 * col0 FROM tab0
----
1584
2310
5874
query I rowsort
SELECT - 82 * + col0 AS col2 FROM tab0
----
-1968
-2870
-7298
query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL ( 13 * tab1.col0 ) - 43 FROM tab1
----
-4
789
997
query I rowsort
SELECT DISTINCT - col0 * 49 - col1 AS col2 FROM tab1
----
-173
-3146
-3933
query I rowsort
SELECT ( + col2 ) - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8967
SELECT + - CAST( 42 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-131
-66
-77
skipif mysql # not compatible
query I rowsort label-8967
SELECT + - CAST ( 42 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-131
-66
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8968
SELECT + CAST( NULL AS DECIMAL ) * 12 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8968
SELECT + CAST ( NULL AS REAL ) * 12 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - 65 ) FROM tab2
----
-65
query I rowsort
SELECT + col1 + tab0.col2 * col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + 3 * - col1 FROM tab0
----
-258
-273
-291
query I rowsort
SELECT ALL 93 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT col2 * tab0.col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + + col1 * + 80 AS col1 FROM tab1 AS cor0
----
1040
2080
800
query I rowsort
SELECT col1 * 31 AS col1 FROM tab2 AS cor0
----
1829
527
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT col1 DIV - ( col0 ) col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8976
SELECT col1 / - ( col0 ) col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + tab0.col1 * + col0 * + col0 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab0
----
9
query I rowsort
SELECT 51 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab0
----
40
query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col2 + - cor0.col2 * + col1 * + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - cor0.col0 + 41 col1 FROM tab1 AS cor0
----
-121
-3607
-7639
query I rowsort
SELECT + + ( - col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - - col1 * col0 + ( ( cor0.col1 ) ) FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8989
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8989
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - ( - col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + + 21 + + col1 * - col0 FROM tab0 AS cor0
----
-2010
-3373
-7996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT ALL col0 + - CAST( col2 AS SIGNED ) * - col2 AS col2 FROM tab2 cor0
----
1523
736
754
skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL col0 + - CAST ( col2 AS INTEGER ) * - col2 AS col2 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT + - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT DISTINCT + + cor0.col1 + - col0 DIV 53 FROM tab1 AS cor0
----
12
26
9
skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + + cor0.col1 + - col0 / 53 FROM tab1 AS cor0
----
12
26
9
query I rowsort
SELECT - + col1 * - ( col1 ) - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - col2 * 80 + col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT - - col2 * 10 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT col2 * + cor0.col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT + - col0 + 79 * col0 FROM tab1 AS cor0
----
234
4992
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 * col0 - ( - cor0.col1 ) * 74 AS col1 FROM tab2 AS cor0
----
-1718
-4983
2245
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT ALL col2 - col2 DIV tab1.col2 AS col0 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL col2 - col2 / tab1.col2 AS col0 FROM tab1
----
53
56
95
query I rowsort
SELECT - + col0 * + ( + col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + 64 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + - ( cor0.col2 ) * col1 * col0 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - 96 + - 45 FROM tab1 AS cor0
----
-141
-141
-141
query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - - col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - + ( - 53 ) FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT + - ( 87 ) * col0 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT - col1 + - 3 AS col2 FROM tab1 AS cor0
----
-13
-16
-29
query I rowsort
SELECT ALL + - cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - col2 * + col0 * + 90 FROM tab0
----
-3150
-656820
-71280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + ( col1 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + ( col1 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - - 28 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL col0 + cor0.col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - 61 * - col1 + col1 * cor0.col2 * col2 FROM tab2 AS cor0
----
24490
25585
43483
query I rowsort
SELECT ( - tab0.col1 ) * col0 + - col2 * col2 FROM tab0
----
-14823
-3153
-3396
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + + col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab1
----
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 + col0 col1 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT + 95 + - col0 FROM tab2 AS cor0
----
16
17
88
query I rowsort
SELECT ALL - ( cor0.col2 ) + + ( + col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col2 * col2 * + col0 FROM tab0 AS cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL 99 + - col0 AS col2 FROM tab1 AS cor0
----
19
35
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT DISTINCT - col2 DIV cor0.col0 FROM tab2 cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT - col2 / cor0.col0 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT 75 AS col2 FROM tab1 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + ( 92 ) AS col0 FROM tab0
----
92
query I rowsort
SELECT ALL + 29 + col0 FROM tab1
----
109
32
93
query I rowsort
SELECT ALL 73 + 94 FROM tab2
----
167
167
167
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + col2 col2 FROM tab1 AS cor0
----
42
45
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL + - 91 DIV - col0 - 61 FROM tab0 AS cor0
----
-58
-59
-60
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + - 91 / - col0 - 61 FROM tab0 AS cor0
----
-58
-59
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 + cor0.col1 * 21 * - col1 FROM tab2 AS cor0
----
-20154
-6031
-73075
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + col1 + col2 * + ( 84 + col1 ) * + col2 FROM tab2 AS cor0
----
145861
83866
96727
query I rowsort
SELECT ALL - col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT DISTINCT - col1 + col0 DIV 73 FROM tab0 cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - col1 + col0 / 73 FROM tab0 cor0
----
-86
-90
-97
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + + col0 + col0 * + ( - 10 ) AS col1 FROM tab2 AS cor0
----
-63
-702
-711
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1
query I rowsort
SELECT - col1 + - 53 AS col1 FROM tab1 AS cor0
----
-63
-66
-79
query I rowsort
SELECT - col1 * col1 + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-7334
-8279
-9347
query I rowsort
SELECT ALL - - cor0.col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT col1 + - col2 * + 83 AS col0 FROM tab1 AS cor0
----
-4456
-4721
-7955
onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT ALL - col1 DIV CAST( 52 * col0 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - col1 / CAST ( 52 * col0 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 + + 97 + + col2 * - col1 * col0 FROM tab2
----
-119614
-50954
-5793
query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 AS col1 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL + 3 AS col0 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT - + col2 * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT tab2.col0 + col2 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9060
SELECT + CAST( col0 AS SIGNED ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9060
SELECT + CAST ( col0 AS INTEGER ) FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab0
----
4
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT cor0.col1 + ( col1 ) + ( col1 ) FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT DISTINCT - ( + 65 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-65
query I rowsort
SELECT DISTINCT - 84 * + 55 FROM tab2 AS cor0
----
-4620
query I rowsort
SELECT col0 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT + col0 + - cor0.col0 * + cor0.col0 DIV col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9069
SELECT + col0 + - cor0.col0 * + cor0.col0 / col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( 68 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
68
query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
51
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT - 99 * cor0.col2 FROM tab0 AS cor0
----
-3267
-8118
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT - col1 * col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-9075
SELECT - col1 * col2 / - col0 AS col2 FROM tab2 AS cor0
----
119
19
8
query I rowsort
SELECT DISTINCT 34 * + col2 AS col2 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 42 * col0 + ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
321
3302
3356
query I rowsort
SELECT DISTINCT + 11 * col1 FROM tab2
----
187
341
649
query I rowsort
SELECT - col1 * col2 + 98 FROM tab1 cor0
----
-1150
-1306
-472
query I rowsort
SELECT ALL + - col0 + - 71 * 55 FROM tab1 AS cor0
----
-3908
-3969
-3985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT col0 DIV 79 - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8098
skipif mysql # not compatible
query I rowsort label-9083
SELECT col0 / 79 - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9084
SELECT - col1 * + CAST( + col2 AS SIGNED ) FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-9084
SELECT - col1 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col2 * col0 * col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT col2 + col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 27 AS col2 FROM tab0
----
27
27
27
query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - ( + 44 ) AS col0 FROM tab0
----
-44
-44
-44
query I rowsort
SELECT + 79 FROM tab1
----
79
79
79
query I rowsort
SELECT - + 1 * 6 FROM tab2 cor0
----
-6
-6
-6
query I rowsort
SELECT ALL - col2 * - 52 + col2 AS col0 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT ALL + 61 * - col2 + cor0.col1 + col0 FROM tab0 AS cor0
----
-1903
-4822
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9095
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + col0 * col0 * + col2 + + cor0.col0 FROM tab2 AS cor0
----
1337
158340
237316
query I rowsort
SELECT 26 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 78d1f1a669989c2efce0556b049e9268
query I rowsort
SELECT - - 5 FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT col1 + + col2 + + col1 FROM tab1 AS cor0
----
106
122
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9100
SELECT + ( + col0 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9100
SELECT + ( + col0 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 95 * - col2 AS col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT - 80 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-77
0
query I rowsort
SELECT DISTINCT + ( col0 ) * ( 69 ) + col0 FROM tab0 AS cor0
----
1680
2450
6230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9104
SELECT DISTINCT + + 58 * col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + + 58 * col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( tab1.col0 ) * + col1 + - col0 FROM tab1
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9106
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT - 46 DIV tab1.col1 + - col0 * + 28 FROM tab1
----
-1796
-2243
-85
skipif mysql # not compatible
query I rowsort label-9107
SELECT - 46 / tab1.col1 + - col0 * + 28 FROM tab1
----
-1796
-2243
-85
query I rowsort
SELECT + - cor0.col1 + + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + + 66 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
469
5226
5293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 75 col0 FROM tab1 cor0
----
129
132
171
query I rowsort
SELECT col1 + 16 AS col1 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT DISTINCT + col1 * + 17 + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
1684
2254
8845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9113
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) * ( - col2 * col0 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) * ( - col2 * col0 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 + - 1 AS col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + col2 * + cor0.col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL 40 AS col2 FROM tab0
----
40
40
40
query I rowsort
SELECT ALL - 94 AS col0 FROM tab0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT 65 FROM tab2
----
65
query I rowsort
SELECT + - col2 + col1 + col0 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + + 61 * - col2 + + col2 + + col0 * 60 FROM tab2 cor0
----
-1200
2460
3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9122
SELECT ALL - col1 DIV + 69 + col0 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - col1 / + 69 + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + - col2 * 21 + col1 FROM tab1 AS cor0
----
-1108
-1187
-2003
query I rowsort
SELECT 87 + - col0 + col2 * - col2 FROM tab2 AS cor0
----
-1436
-649
-667
query I rowsort
SELECT ALL col2 + - tab1.col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9126
SELECT DISTINCT - col2 + - CAST( - col0 AS SIGNED ) * - col0 FROM tab2
----
-6110
-6279
-76
skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - col2 + - CAST ( - col0 AS INTEGER ) * - col0 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT - ( 63 ) AS col1 FROM tab2
----
-63
-63
-63
query I rowsort
SELECT DISTINCT 15 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
15
query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + - cor0.col1 * 60 AS col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT ( 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT + 20 AS col1 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ALL col2 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT ( - col2 ) + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( 54 ) AS col2 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT + col2 - 5 AS col1 FROM tab1
----
49
52
91
query I rowsort
SELECT tab1.col2 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + tab1.col0 + ( col2 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col2 + - col0 * - col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col0 * 23 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9141
SELECT DISTINCT + CAST( - 11 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-11
skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + CAST ( - 11 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT - + 30 FROM tab1 AS cor0
----
-30
-30
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT ALL + CAST( 73 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
14
42
56
skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + CAST ( 73 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT - 73 FROM tab1 cor0
----
-73
-73
-73
query I rowsort
SELECT - + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 82 * - col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9147
SELECT DISTINCT ( + 45 ) + - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT ( + 45 ) + - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col2 FROM tab0 cor0
----
16
16
16
query I rowsort
SELECT ALL - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 89 AS col1 FROM tab2 AS cor0
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * + col0 col1 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT DISTINCT - + ( 23 ) * col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT ALL - + 82 + - col1 * col2 FROM tab1 AS cor0
----
-1330
-1486
-652
query I rowsort
SELECT - + 10 FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - 79 + - 6 FROM tab1 AS cor0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT - - col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9157
SELECT - - col0 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT 17 - + col2 * - col0 AS col1 FROM tab0
----
52
7315
809
query I rowsort
SELECT + + 89 * - col0 AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT ALL + cor0.col1 * + col0 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + 42 * + cor0.col0 FROM tab0 AS cor0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + - col1 * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT cor0.col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 * col0 + 23 * col1 AS col1 FROM tab2 cor0
----
3385
3393
902
query I rowsort
SELECT ALL - col2 + - col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7339
8110
9373
query I rowsort
SELECT ALL + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + + col2 + col1 * - col2 FROM tab0 cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT DISTINCT cor0.col2 + - 32 * - col2 DIV + col2 col1 FROM tab1 AS cor0
----
128
86
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT cor0.col2 + - 32 * - col2 / + col2 col1 FROM tab1 AS cor0
----
128
86
89
query I rowsort
SELECT + - ( - 77 ) + - cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 859432101d590c45fbe96ced39d34ae7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT ALL col1 DIV - tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL col1 / - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 70 col1 FROM tab1 AS cor0
----
1820
700
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT cor0.col2 DIV - 51 + col2 AS col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9177
SELECT cor0.col2 / - 51 + col2 AS col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT + col1 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - cor0.col2 * + col0 * + col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + col0 + col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + col1 - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col1 + + 23 * col2 AS col0 FROM tab0 AS cor0
----
120
1977
845
query I rowsort
SELECT - + col1 * - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT tab2.col2 * tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col2 * 63 + col1 * col2 FROM tab1 AS cor0
----
-1998
-3021
-4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 17 col2 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ALL - - col2 + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - col2 * 26 + + col1 AS col2 FROM tab0 AS cor0
----
-2041
-772
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9192
SELECT - 44 DIV tab2.col1 + 91 AS col0 FROM tab2
----
89
90
91
skipif mysql # not compatible
query I rowsort label-9192
SELECT - 44 / tab2.col1 + 91 AS col0 FROM tab2
----
89
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9193
SELECT col0 + tab0.col2 DIV tab0.col1 col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9193
SELECT col0 + tab0.col2 / tab0.col1 col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + + col0 * + col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - col1 * - cor0.col0 + + 55 FROM tab0 AS cor0
----
2119
3450
8154
query I rowsort
SELECT ALL col1 * ( cor0.col0 ) + + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + cor0.col2 * + 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 0759b089d6fb4e40e511a1f725137392
query I rowsort
SELECT tab0.col1 + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col2 * col0 - + col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + - col1 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ( col1 ) * cor0.col0 * + 31 + col0 AS col2 FROM tab2 AS cor0
----
142740
41712
6734
query I rowsort
SELECT ALL 17 AS col2 FROM tab2
----
17
17
17
query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab0
----
2064
3395
8099
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + ( + col2 * col1 ) + ( + col0 ) FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col2 + col0 + + col1 AS col1 FROM tab1
----
131
189
83
query I rowsort
SELECT + col2 * + col0 - ( - 84 ) FROM tab2 AS cor0
----
2112
273
3086
query I rowsort
SELECT DISTINCT - - ( - col0 ) + 38 * 8 FROM tab2 AS cor0
----
225
226
297
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT ALL - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - col1 / col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - 15 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4081
-6385
6
query I rowsort
SELECT 70 * + col1 AS col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT ALL col0 * + cor0.col1 - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 + cor0.col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - + 69 * + col1 + + col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT - 49 AS col0 FROM tab2
----
-49
-49
-49
query I rowsort
SELECT - 98 AS col2 FROM tab1 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL + 39 AS col1 FROM tab0
----
39
39
39
query I rowsort
SELECT DISTINCT col2 * - col0 + + 62 + - 98 AS col0 FROM tab1 AS cor0
----
-198
-3684
-7716
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 - ( - 49 ) AS col0 FROM tab2 cor0
----
-1294
-168
-4553
query I rowsort
SELECT ALL + + col1 + - cor0.col2 * 80 AS col1 FROM tab2 AS cor0
----
-2021
-2129
-3023
query I rowsort
SELECT ALL col1 * col2 + + 11 FROM tab0 AS cor0
----
108
2849
7473
query I rowsort
SELECT + - 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT col0 / - col1 AS col2 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9226
SELECT + 44 DIV - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 55ede69e9d12a090b5db65c61b280904
skipif mysql # not compatible
query I rowsort label-9226
SELECT + 44 / - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 55ede69e9d12a090b5db65c61b280904
query I rowsort
SELECT + col2 * col0 * - col2 FROM tab2
----
-114076
-5103
-52728
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0, tab0 AS cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT + 19 AS col0 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT 99 * + col0 AS col1 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT ALL 76 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col2 AS REAL ) * col2 + CAST ( - cor0.col0 + - col0 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-3584
-4943
2898
query I rowsort
SELECT ALL - cor0.col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + ( 58 ) AS col0 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT 55 FROM tab2, tab2 AS cor0
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col1 FROM tab2
----
-77
-77
-77
query I rowsort
SELECT DISTINCT - + tab0.col1 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9239
SELECT ALL + 51 DIV 97 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + 51 / 97 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 7 + col1 col0 FROM tab2 AS cor0
----
10
24
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT col1 DIV col0 + + col2 FROM tab1 cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-9241
SELECT col1 / col0 + + col2 FROM tab1 cor0
----
57
62
96
query I rowsort
SELECT - col1 * + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + ( - col2 ) FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9244
SELECT - + 5 + - ( col2 ) * CAST( + 14 + col1 AS SIGNED ) FROM tab1 cor0
----
-1373
-2165
-2597
skipif mysql # not compatible
query I rowsort label-9244
SELECT - + 5 + - ( col2 ) * CAST ( + 14 + col1 AS INTEGER ) FROM tab1 cor0
----
-1373
-2165
-2597
query I rowsort
SELECT ALL + tab0.col0 + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT col1 - + col1 * + ( - tab2.col0 ) AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT 28 * col2 FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT - + 34 * - cor0.col1 * + col2 FROM tab2 AS cor0
----
21964
28458
52156
query I rowsort
SELECT + + col2 * + col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - + 98 * - col0 * - col1 FROM tab0 AS cor0
----
-202272
-332710
-793702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9253
SELECT + - col2 + ( - 60 + col0 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
-32
-82
24
skipif mysql # not compatible
query I rowsort label-9253
SELECT + - col2 + ( - 60 + col0 ) / - col2 AS col1 FROM tab0 AS cor0
----
-32
-82
24
query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
22
query I rowsort
SELECT - col1 - - ( + 66 ) FROM tab1 AS cor0
----
40
53
56
query I rowsort
SELECT col2 * + 20 AS col2 FROM tab1
----
1080
1140
1920
query I rowsort
SELECT col0 * 84 FROM tab1
----
252
5376
6720
query I rowsort
SELECT + + col0 - - col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT + 8 * - 42 + + cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-333
-336
-336
skipif mysql # not compatible
query I rowsort label-9259
SELECT + 8 * - 42 + + cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
-333
-336
-336
query I rowsort
SELECT ALL + + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + cor0.col0 * 32 + col0 AS col2 FROM tab1 AS cor0
----
2112
2640
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 44 + - col2 * ( + col0 ) * col2 col0 FROM tab2 AS cor0
----
-114824
-55324
-6467
query I rowsort
SELECT 63 * col0 AS col0 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT - 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT - 14 FROM tab1 cor0
----
-14
-14
-14
query I rowsort
SELECT ALL 35 FROM tab1, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT col1 + ( col0 + - col1 ) FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9269
SELECT ALL tab2.col0 * - CAST( 20 AS SIGNED ) AS col2 FROM tab2
----
-140
-1560
-1580
skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL tab2.col0 * - CAST ( 20 AS INTEGER ) AS col2 FROM tab2
----
-140
-1560
-1580
query I rowsort
SELECT DISTINCT - col2 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col2 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col2 * col2 * - col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1322
-619805
-94230
query I rowsort
SELECT col0 * - col2 + col2 FROM tab0 cor0
----
-34
-7216
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + col2 * - cor0.col0 * + col2 + - ( 26 * cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-10178
-209428
-739789
query I rowsort
SELECT - + 44 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT + 78 * + col0 FROM tab0
----
1872
2730
6942
query I rowsort
SELECT ALL + col1 * + col0 + - ( col0 ) AS col1 FROM tab1
----
576
75
960
query I rowsort
SELECT ALL col0 + ( + col0 ) * - cor0.col2 * + 8 AS col2 FROM tab0 AS cor0
----
-245
-58295
-6312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9280
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9281
SELECT + col2 * CAST( NULL AS SIGNED ) * 85 + tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9281
SELECT + col2 * CAST ( NULL AS INTEGER ) * 85 + tab0.col1 AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT ALL 45 DIV + cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL 45 / + cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT col1 DIV - col1 + + col1 AS col2 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9283
SELECT col1 / - col1 + + col1 AS col2 FROM tab2
----
16
30
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9284
SELECT DISTINCT - CAST( col2 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - CAST ( col2 AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 99 + + col0 - - col0 AS col1 FROM tab0
----
-29
-51
79
query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab1
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9287
SELECT ALL - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - cor0.col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 90 FROM tab2, tab0 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT + 46 * + ( cor0.col2 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1a0d44611c46529e3ed6510c31f77e77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT + 31 + col0 DIV col1 + + col0 DIV 20 FROM tab2
----
31
35
38
skipif mysql # not compatible
query I rowsort label-9290
SELECT + 31 + col0 / col1 + + col0 / 20 FROM tab2
----
31
35
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57
query I rowsort
SELECT + 61 * col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT ( + col0 ) * col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 + + col1 + col0 AS col0 FROM tab0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT - ( col0 ) + + col2 + + 16 DIV - 38 col1 FROM tab2
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9295
SELECT - ( col0 ) + + col2 + + 16 / - 38 col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col1 + - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT col0 DIV + col2 + + col1 + 66 DIV col0 col1 FROM tab1 AS cor0
----
12
13
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9297
SELECT col0 / + col2 + + col1 + 66 / col0 col1 FROM tab1 AS cor0
----
12
13
48
query I rowsort
SELECT - + 65 + - col2 * + col0 * 61 AS col0 FROM tab0 cor0
----
-2200
-445243
-48377
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT + col2 + col1 + 49 DIV + col1 AS col2 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-9299
SELECT + col2 + col1 + 49 / + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - - 18 - col1 FROM tab2 cor0
----
-13
-41
1
query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab0 AS cor0
----
-8
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - col2 + + col2 * 79 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 63 - - cor0.col1 FROM tab2 AS cor0
----
122
80
94
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - - 53 - col2 FROM tab0 AS cor0
----
-29
20
52
query I rowsort
SELECT col0 * - col2 + + ( col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT DISTINCT + + col1 * col1 * col1 + col0 AS col1 FROM tab0 AS cor0
----
636080
753660
912708
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT DISTINCT + 21 + col1 DIV col1 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6106
6263
71
skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + 21 + col1 / col1 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6106
6263
71
query I rowsort
SELECT - 51 FROM tab0 cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT + 21 DIV + col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9313
SELECT + 21 / + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 21 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
21
query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0
----
99
query I rowsort
SELECT + - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif mysql # not compatible
query I rowsort
SELECT ( col0 ) * - CAST ( - col1 AS REAL ) * col1 - - col0 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT DISTINCT + 63 FROM tab1 AS cor0
----
63
query I rowsort
SELECT 14 * + col0 * + 98 + + 63 + - col0 AS col0 FROM tab2 AS cor0
----
107001
108372
9660
query I rowsort
SELECT cor0.col1 * + cor0.col2 - + 28 * col2 AS col1 FROM tab1 AS cor0
----
-1026
-108
-1440
query I rowsort
SELECT ALL 68 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT col0 * ( + ( col1 ) ) + 0 + 51 * col2 AS col1 FROM tab2 AS cor0
----
1594
3281
5928
query I rowsort
SELECT ALL - + col1 + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + - ( cor0.col1 ) * - col2 * col2 + + ( col0 * col2 + + 51 ) FROM tab0 cor0
----
148
619144
94473
query I rowsort
SELECT + - col1 + + 17 FROM tab0 cor0
----
-69
-74
-80
query I rowsort
SELECT - col0 * col1 * col1 + cor0.col1 * + col0 + - 67 AS col1 FROM tab0 AS cor0
----
-175507
-325987
-728977
query I rowsort
SELECT ALL - + col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 * 65 AS col2 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT - col0 + col0 * 33 - col0 AS col1 FROM tab2
----
217
2418
2449
query I rowsort
SELECT DISTINCT + 10 + col1 AS col1 FROM tab1
----
20
23
36
query I rowsort
SELECT - + cor0.col1 + - ( cor0.col1 ) FROM tab1 cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col1 * col1 + 26 FROM tab2 AS cor0
----
315
3507
987
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( - ( - col2 ) AS REAL ) + ( + col1 ) * - col1 / + col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9335
SELECT ALL - col2 DIV cor0.col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - col2 / cor0.col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + 97 * 75 - col0 AS col1 FROM tab0 AS cor0
----
7186
7240
7251
query I rowsort
SELECT ALL + col0 + 84 AS col0 FROM tab1 AS cor0
----
148
164
87
query I rowsort
SELECT + + 2 + - cor0.col1 * + col1 FROM tab0 AS cor0
----
-7394
-8279
-9407
onlyif mysql # use DIV operator for integer division
query I rowsort label-9339
SELECT DISTINCT - + 90 DIV - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-12
-29
-58
skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - + 90 / - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-12
-29
-58
query I rowsort
SELECT DISTINCT - - col0 + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL ( + 81 ) + col2 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT DISTINCT - - ( - col2 ) * + col0 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT + 83 AS col0 FROM tab1 cor0
----
83
83
83
query I rowsort
SELECT DISTINCT - 17 FROM tab1 AS cor0
----
-17
query I rowsort
SELECT ALL - + cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + col2 * col1 - - col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT DISTINCT 25 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT 25 / + col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT DISTINCT + 62 * col0 DIV + cor0.col0 + col1 FROM tab2 cor0
----
121
79
93
skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT + 62 * col0 / + cor0.col0 + col1 FROM tab2 cor0
----
121
79
93
query I rowsort
SELECT + 37 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-21090
-46176
-51948
query I rowsort
SELECT ALL - - 10 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT ALL - - ( + col0 ) * - col2 * + ( + col0 + + col0 ) AS col2 FROM tab1 AS cor0
----
-1228800
-466944
-972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9355
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9356
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT ALL - col2 + - cor0.col1 DIV - col0 AS col2 FROM tab2 cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - col2 + - cor0.col1 / - col0 AS col2 FROM tab2 cor0
----
-23
-26
-38
query I rowsort
SELECT col1 + + col2 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 + + col1 col1 FROM tab2 cor0
----
-20
-34
8
query I rowsort
SELECT DISTINCT - 8 * + cor0.col1 * col1 FROM tab2 AS cor0
----
-2312
-27848
-7688
query I rowsort
SELECT DISTINCT + 30 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT ALL - - 34 * + col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT - 81 AS col1 FROM tab1 AS cor0
----
-81
-81
-81
query I rowsort
SELECT - 37 FROM tab1, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT DISTINCT col0 * 9 AS col0 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT ALL + cor0.col2 + col1 + + col2 FROM tab1 AS cor0
----
124
134
205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9367
SELECT DISTINCT - cor0.col0 * CAST( 56 AS SIGNED ) + + col2 * col2 FROM tab0 AS cor0
----
-1959
-255
1740
skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - cor0.col0 * CAST ( 56 AS INTEGER ) + + col2 * col2 FROM tab0 AS cor0
----
-1959
-255
1740
query I rowsort
SELECT ALL col2 * 97 - - col2 * col2 * 57 FROM tab0 AS cor0
----
154
391222
65274
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9369
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) + + col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + + col0 col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col2 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col1 * - 69 * - col1 FROM tab0 AS cor0
----
510324
571389
649221
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT - - cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9373
SELECT - - cor0.col2 / - col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab1, tab1 AS cor0
----
22
query I rowsort
SELECT cor0.col2 + ( col2 ) FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT + - ( col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
-91
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0, tab2 cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT + + col1 * col0 * 63 FROM tab2 AS cor0
----
13671
289926
84609
query I rowsort
SELECT - 77 + col0 * ( + col0 ) FROM tab0 cor0
----
1148
499
7844
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL + 44 AS col2 FROM tab2 cor0
----
44
44
44
query I rowsort
SELECT ALL + col1 + col0 * + ( cor0.col0 ) FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT col0 + cor0.col1 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2728
-7282
35
query I rowsort
SELECT 16 + col2 * + col1 FROM tab2 AS cor0
----
1550
662
853
query I rowsort
SELECT + 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT - 17 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab0 AS cor0
----
-7
-78
-79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ALL + tab2.col0 * col2 + ( - 58 ) FROM tab2
----
131
1970
2944
query I rowsort
SELECT ALL col2 * + col2 + - col0 AS col2 FROM tab0
----
-34
1065
6635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9394
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9394
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col0 * col1 - - col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - tab2.col1 AS REAL ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL 66 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT DISTINCT + 82 * + col0 * ( - col2 ) AS col2 FROM tab1
----
-13284
-299136
-629760
query I rowsort
SELECT - col2 * col2 * + col0 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT ALL col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col2 + ( - col2 ) * + col0 + - col1 FROM tab1 AS cor0
----
-242
-3715
-7789
query I rowsort
SELECT ALL + col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 97 * - col0 FROM tab0
----
-2328
-3395
-8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT ALL - 27 + col2 - ( col2 ) DIV col1 FROM tab1
----
25
25
62
skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - 27 + col2 - ( col2 ) / col1 FROM tab1
----
25
25
62
query I rowsort
SELECT + 57 * - col0 FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT + - 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT col1 + ( col0 ) + - tab2.col2 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL + col0 + + tab1.col2 * col2 * + col0 + col2 FROM tab1
----
208057
737456
8805
query I rowsort
SELECT ALL 32 * cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654
query I rowsort
SELECT + 80 * + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5fe60b47e9ebbe4e096e37b587970e35
query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab0, tab0 AS cor0
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9414
SELECT - - CAST( NULL AS SIGNED ) * 95 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9414
SELECT - - CAST ( NULL AS INTEGER ) * 95 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 93 + col1 AS col0 FROM tab1 AS cor0
----
103
106
119
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT - 63 + + col0 AS col2 FROM tab2 AS cor0
----
-56
15
16
query I rowsort
SELECT + + cor0.col0 * - col1 - 87 FROM tab2 AS cor0
----
-1430
-304
-4689
query I rowsort
SELECT - col0 * + col0 * + ( + 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT DISTINCT - col2 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT - col2 / col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + 41 FROM tab0, tab1, tab0 AS cor0, tab2
----
41
query I rowsort
SELECT DISTINCT + 17 * tab1.col0 FROM tab1
----
1088
1360
51
query I rowsort
SELECT + col1 * col0 + - ( col0 + col2 * 20 ) AS col2 FROM tab0 AS cor0
----
1380
3340
6370
query I rowsort
SELECT - 69 + - col1 AS col0 FROM tab0 cor0
----
-155
-160
-166
query I rowsort
SELECT - col1 * col1 + - col2 + + col0 FROM tab0 AS cor0
----
-7405
-8274
-9375
query I rowsort
SELECT ( + cor0.col0 ) + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - 95 * col0 AS col0 FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT ALL - 19 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
-544
-553
-739
query I rowsort
SELECT DISTINCT - + 13 * + 16 + cor0.col0 - col2 FROM tab2 AS cor0
----
-156
-167
-228
query I rowsort
SELECT 17 * - col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab2, tab2 AS cor0
----
52
query I rowsort
SELECT ALL + - 10 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT col2 * 2 FROM tab1
----
108
114
192
query I rowsort
SELECT - 76 * 43 + - cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to ca3f648bfafc532a68647e00e7b58fd5
query I rowsort
SELECT ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 27 FROM tab0 AS cor0
----
-27
query I rowsort
SELECT DISTINCT - 30 FROM tab1 AS cor0
----
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * col0 + col2 col0 FROM tab0
----
105
106
349
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col0 col2 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + 36 * - col1 col2 FROM tab1 AS cor0
----
-1000
-1014
-1508
query I rowsort
SELECT DISTINCT - - 19 * col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT + 53 AS col0 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + col1 col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL 75 + + col1 FROM tab1
----
101
85
88
query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - 26 * - col0 FROM tab1
----
1664
2080
78
query I rowsort
SELECT DISTINCT + col2 * + col1 + - tab0.col0 * col1 FROM tab0
----
-3298
-637
774
query I rowsort
SELECT DISTINCT col1 + col2 + col0 * col0 AS col2 FROM tab2
----
107
6169
6296
query I rowsort
SELECT - 43 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT - cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col0 * 82 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT - + col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT ALL + - col1 - cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + - col1 - cor0.col1 / + col0 FROM tab2 AS cor0
----
-17
-35
-59
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT col1 * - 43 * ( + col0 ) FROM tab2 AS cor0
----
-197886
-57749
-9331
query I rowsort
SELECT DISTINCT - col2 * 90 FROM tab1 cor0
----
-4860
-5130
-8640
query I rowsort
SELECT ALL col0 * + 47 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT ALL + 54 * - col1 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT col1 - col0 * col2 AS col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9463
SELECT DISTINCT + - col2 + col1 DIV col1 + col2 * - col0 FROM tab0 AS cor0
----
-35
-7379
-824
skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + - col2 + col1 / col1 + col2 * - col0 FROM tab0 AS cor0
----
-35
-7379
-824
query I rowsort
SELECT DISTINCT - col1 * 10 + - col2 AS col2 FROM tab1 AS cor0
----
-157
-226
-314
query I rowsort
SELECT col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 34 FROM tab1, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT col0 * - col0 + col2 AS col0 FROM tab2
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9468
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 28 FROM tab0, tab2 AS cor0
----
28
query I rowsort
SELECT + col0 * - 2 AS col2 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col1 + col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT DISTINCT cor0.col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT cor0.col1 / - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT - col1 * - col0 * 31 FROM tab0
----
105245
251069
63984
query I rowsort
SELECT + 80 FROM tab0, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL 10 * ( col1 ) AS col1 FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0
----
18
query I rowsort
SELECT ALL ( - cor0.col1 ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0 AS cor0
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT + + 63 DIV - col0 + + col0 - - 94 AS col1 FROM tab2 AS cor0
----
172
173
92
skipif mysql # not compatible
query I rowsort label-9479
SELECT + + 63 / - col0 + + col0 - - 94 AS col1 FROM tab2 AS cor0
----
172
173
92
query I rowsort
SELECT col1 * + cor0.col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 * 1 col0 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT + 38 + col2 * + col2 FROM tab2 AS cor0
----
1482
714
767
query I rowsort
SELECT - + 38 * - 8 AS col0 FROM tab2 AS cor0
----
304
304
304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9484
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 33 * 96 + + col0 * - cor0.col1 FROM tab2 cor0
----
-3385
-4511
-7770
onlyif mysql # use DIV operator for integer division
query I rowsort label-9487
SELECT ALL + + ( - cor0.col0 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + + ( - cor0.col0 ) / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9488
SELECT ALL - col0 - - ( col2 + - CAST( NULL AS SIGNED ) ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - col0 - - ( col2 + - CAST ( NULL AS INTEGER ) ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 91 * 54 FROM tab0 AS cor0
----
4914
4914
4914
query I rowsort
SELECT - col2 * 2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + ( - 86 ) * + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
-1424
-2639
-5048
onlyif mysql # use DIV operator for integer division
query I rowsort label-9492
SELECT ALL + 56 * col2 DIV - col1 - - 24 AS col0 FROM tab0 cor0
----
-26
24
3
skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + 56 * col2 / - col1 - - 24 AS col0 FROM tab0 cor0
----
-26
24
3
query I rowsort
SELECT DISTINCT - 99 FROM tab1 AS cor0
----
-99
query I rowsort
SELECT + 1 * 83 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT 1 FROM tab2
----
1
1
1
query I rowsort
SELECT + 21 * col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT DISTINCT + - ( col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 38 * - tab1.col2 + - col2 FROM tab1
----
-2106
-2223
-3744
query I rowsort
SELECT col0 + col1 * - ( col0 ) FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT 91 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
668
7157
7206
query I rowsort
SELECT ALL + + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 42 + - cor0.col2 FROM tab1 AS cor0
----
-138
-96
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT DISTINCT + cor0.col1 DIV cor0.col0 + - 72 FROM tab0 AS cor0
----
-69
-70
-71
skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + cor0.col1 / cor0.col0 + - 72 FROM tab0 AS cor0
----
-69
-70
-71
query I rowsort
SELECT ALL col1 + col0 * col0 AS col2 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - col0 + + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 47 + + col1 * 49 FROM tab1 AS cor0
----
1227
443
590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) + - col1 col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9510
SELECT col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col2 + - col2 * col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + cor0.col2 * 47 FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9513
SELECT + col1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT 11 * col0 - - col0 FROM tab1
----
36
768
960
query I rowsort
SELECT ALL col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 78 + tab0.col1 * + tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
7474
8359
9487
query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab2, tab0 cor0
----
98
query I rowsort
SELECT - 10 * + col1 * col2 FROM tab0
----
-28380
-74620
-970
onlyif mysql # use DIV operator for integer division
query I rowsort label-9520
SELECT - tab2.col1 DIV ( col0 + + 22 ) FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9520
SELECT - tab2.col1 / ( col0 + + 22 ) FROM tab2
----
-1
0
0
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 * - ( - col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9525
SELECT col2 * col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-9525
SELECT col2 * col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 41 * - col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1338
-3558
-898
query I rowsort
SELECT + col1 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col0 * col2 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + + col2 + + ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col0 + ( cor0.col0 ) * cor0.col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + + col0 * - col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-9534
SELECT DISTINCT col1 DIV - col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT col1 / - col2 AS col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * 91 col1 FROM tab1
----
273
5824
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT - col2 DIV 35 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-9536
SELECT - col2 / 35 AS col1 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - col0 + 17 AS col2 FROM tab0 cor0
----
-18
-7
-72
query I rowsort
SELECT - col1 * - 74 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT col0 * - col1 - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col0 * - 77 FROM tab0 cor0
----
-1848
-2695
-6853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9541
SELECT col1 * CAST( 40 AS SIGNED ) AS col2 FROM tab2
----
1240
2360
680
skipif mysql # not compatible
query I rowsort label-9541
SELECT col1 * CAST ( 40 AS INTEGER ) AS col2 FROM tab2
----
1240
2360
680
query I rowsort
SELECT - tab0.col1 * tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT 69 + col2 FROM tab0 AS cor0
----
102
151
70
query I rowsort
SELECT col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - ( col0 ) + + cor0.col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + 60 * + col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT + + 36 * - cor0.col0 * - col2 - - 83 AS col1 FROM tab1 AS cor0
----
131411
276563
5915
query I rowsort
SELECT - ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 56 * - col1 FROM tab2 AS cor0
----
-1736
-3304
-952
onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT DISTINCT - + cor0.col1 + col2 * col2 DIV 70 AS col1 FROM tab1 AS cor0
----
118
15
36
skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT - + cor0.col1 + col2 * col2 / 70 AS col1 FROM tab1 AS cor0
----
118
15
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + col1 col1 FROM tab0 AS cor0
----
70
75
81
query I rowsort
SELECT ALL + - 34 + 44 * + col1 AS col1 FROM tab1 AS cor0
----
1110
406
538
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + + col1 * - 15 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2529
3163
9101
query I rowsort
SELECT ALL + col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + + ( - col0 ) + col0 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * - col1 col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2 cor0
----
-46
query I rowsort
SELECT - 6 * + col2 FROM tab2
----
-156
-162
-228
query I rowsort
SELECT - col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col2 + - col0 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL col2 * 67 - - col2 * + 75 FROM tab1
----
13632
7668
8094
query I rowsort
SELECT ALL col1 + col2 - col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ( - 69 ) * + tab2.col1 * - 6 AS col1 FROM tab2
----
12834
24426
7038
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT DISTINCT - col1 - 24 AS col1 FROM tab1 AS cor0
----
-34
-37
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9567
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9567
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + ( - col1 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - - col0 * + cor0.col2 + col1 * - col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT + cor0.col1 * - col2 + + 32 AS col0 FROM tab0 cor0
----
-2806
-65
-7430
query I rowsort
SELECT - col2 * + ( cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 - - col1 * - col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9574
SELECT + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9574
SELECT + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT + 41 DIV + col2 FROM tab0 AS cor0
----
0
1
41
skipif mysql # not compatible
query I rowsort label-9575
SELECT + 41 / + col2 FROM tab0 AS cor0
----
0
1
41
query I rowsort
SELECT + 60 * + col2 AS col1 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 + - CAST ( 2 AS REAL ) FROM tab0 AS cor0
----
84
89
95
query I rowsort
SELECT ALL col2 * col2 * + 42 FROM tab2 AS cor0
----
28392
30618
60648
query I rowsort
SELECT - col0 - 27 * col0 FROM tab1 AS cor0
----
-1792
-2240
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT col0 * - col1 DIV col1 FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9581
SELECT col0 * - col1 / col1 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col1 * - 98 AS col0 FROM tab0 cor0
----
-8428
-8918
-9506
query I rowsort
SELECT DISTINCT - col0 * - 96 FROM tab0 AS cor0
----
2304
3360
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col0 FROM tab2
----
52
54
76
query I rowsort
SELECT + + col1 * + 97 FROM tab0 AS cor0
----
8342
8827
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 + col2 * col0 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9591
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9591
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col1 * cor0.col2 + + col1 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
-22106
-269906
-5883
query I rowsort
SELECT DISTINCT + 6 * 40 * - col0 AS col1 FROM tab0
----
-21360
-5760
-8400
query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL col1 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT ALL - - col2 DIV ( + col0 ) FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - - col2 / ( + col0 ) FROM tab2 AS cor0
----
0
0
3
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - col2 + - 80 + + col0 * col2 FROM tab2 AS cor0
----
-620
1272
1478
query I rowsort
SELECT DISTINCT + 54 + + col1 AS col1 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT DISTINCT - - 96 * + cor0.col0 * ( col1 * col0 ) FROM tab0 AS cor0
----
11407200
4755456
69197856
query I rowsort
SELECT ALL - 69 FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL ( - col1 ) * 7 + ( + cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-602
-637
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9609
SELECT ALL CAST( NULL AS SIGNED ) / + tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL CAST ( NULL AS INTEGER ) / + tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 23 AS col1 FROM tab0
----
23
23
23
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT 97 AS col2 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) * col0 + + ( col1 ) + 11 * ( + col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2913
6734
72270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9614
SELECT + CAST( NULL AS SIGNED ) + 94 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9614
SELECT + CAST ( NULL AS INTEGER ) + 94 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 17 AS col1 FROM tab1 cor0
----
17
17
17
query I rowsort
SELECT 29 AS col0 FROM tab1
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT col2 DIV 51 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9617
SELECT col2 / 51 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 * + col1 * - col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - col1 + - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT col1 * + col2 * - ( col2 ) + col2 AS col1 FROM tab2
----
-22572
-24510
-39858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9621
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9621
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT - col2 - - CAST( - 18 AS SIGNED ) AS col2 FROM tab1
----
-114
-72
-75
skipif mysql # not compatible
query I rowsort label-9622
SELECT - col2 - - CAST ( - 18 AS INTEGER ) AS col2 FROM tab1
----
-114
-72
-75
query I rowsort
SELECT + col1 + col2 + col2 FROM tab0
----
152
255
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) - - col0 DIV - col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) - - col0 / - col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT + 43 AS col2 FROM tab0 cor0
----
43
43
43
query I rowsort
SELECT + 86 + col2 * cor0.col2 FROM tab2 AS cor0
----
1530
762
815
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + - tab0.col1 * 56 AS col2 FROM tab0
----
-4792
-5007
-5397
query I rowsort
SELECT ALL 47 AS col2 FROM tab0
----
47
47
47
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT ALL + ( - ( - col2 ) ) * + col1 + + col0 * - col1 FROM tab0 AS cor0
----
-3298
-637
774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - cor0.col0 col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT ALL + - col0 DIV + ( + cor0.col0 ) + - col0 DIV 23 + + col1 * col0 AS col1 FROM tab1 cor0
----
1036
637
77
skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + - col0 / + ( + cor0.col0 ) + - col0 / 23 + + col1 * col0 AS col1 FROM tab1 cor0
----
1036
637
77
query I rowsort
SELECT col0 + - ( col2 ) * 83 FROM tab0 AS cor0
----
-2715
-48
-6717
query I rowsort
SELECT ALL 30 * + 5 AS col1 FROM tab2 AS cor0
----
150
150
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-9636
SELECT ALL ( col1 ) DIV + col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL ( col1 ) / + col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT - 88 * + 93 AS col2 FROM tab1 AS cor0
----
-8184
-8184
-8184
query I rowsort
SELECT ALL - ( ( - col2 ) ) * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 20 + col0 AS col0 FROM tab1 AS cor0
----
-17
44
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9640
SELECT - CAST( - 48 AS SIGNED ) * col2 + col1 * - 62 * + col0 AS col1 FROM tab0 AS cor0
----
-126384
-210442
-498202
skipif mysql # not compatible
query I rowsort label-9640
SELECT - CAST ( - 48 AS INTEGER ) * col2 + col1 * - 62 * + col0 AS col1 FROM tab0 AS cor0
----
-126384
-210442
-498202
query I rowsort
SELECT DISTINCT - 34 + col2 * + col0 FROM tab1 AS cor0
----
128
3614
7646
query I rowsort
SELECT ALL - col0 + tab1.col2 - + tab1.col1 AS col1 FROM tab1
----
-17
25
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * col1 col2 FROM tab2
----
205379
29791
4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + tab1.col1 * col1 col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT ALL - tab0.col1 * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL col2 * col1 * + col2 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col2 * col2 + col0 <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT tab0.col2 * tab0.col0 DIV col0 - + col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9649
SELECT tab0.col2 * tab0.col0 / col0 - + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * col0 * col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT - col0 * + col0 - + tab0.col1 AS col2 FROM tab0
----
-1322
-662
-8012
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col1 * + col2 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col2 + - col0 * - col1 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col1 + - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 + - tab0.col2 * - col1 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab1
----
100
169
676
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col2 )
----
query I rowsort
SELECT col2 * - col0 + col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL - tab2.col1 - col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL + tab2.col0 * + col1 + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col1 * - col1 + col2 AS col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT tab2.col1 * + col0 + col2 + col0 FROM tab2
----
1460
251
4706
onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT col0 * col2 DIV - col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9663
SELECT col0 * col2 / - col2 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab2
----
0
2
query I rowsort
SELECT col2 * tab2.col1 * col1 + + col2 - col2 AS col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 + col0 * + col2 - col2 * + tab2.col2 AS col1 FROM tab2
----
-323
2901
5954
onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT ALL - col1 DIV - col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - col1 / - col0 FROM tab1
----
0
0
8
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT + - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT ALL - + col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - + col1 / - col1 FROM tab0 AS cor0
----
1
1
1
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN ( col2 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT ALL - col2 + + col2 DIV - col2 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - col2 + + col2 / - col2 AS col1 FROM tab1
----
-55
-58
-97
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT col1 + col2 * tab1.col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT col2 + - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col1 + + ( - cor0.col2 ) FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - - col0 + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - + ( 98 ) + col2 AS col1 FROM tab0 AS cor0
----
-16
-65
-97
query I rowsort
SELECT ALL 83 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + + 47 col1 FROM tab2 AS cor0
----
128
128
128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 * + col2 col0 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9690
SELECT - - CAST( NULL AS DECIMAL ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9690
SELECT - - CAST ( NULL AS REAL ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + + col0 + + col0 * - ( col1 ) FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) + col0 col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9693
SELECT CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9693
SELECT CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9694
SELECT CAST( NULL AS DECIMAL ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9694
SELECT CAST ( NULL AS REAL ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 40 FROM tab2, tab0 AS cor0
----
40
query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab1, tab1 AS cor0
----
38
query I rowsort
SELECT col2 * - col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col2 + col1 * - col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 * col0 AND NULL
----
query I rowsort
SELECT ALL - col1 * + col0 + + col1 * - col2 AS col0 FROM tab2
----
-1054
-1989
-6136
query I rowsort
SELECT + tab1.col0 + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 * 26 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4f07ac7d19bbd6166ee41e58e75bef28
query I rowsort
SELECT - 66 AS col1 FROM tab1
----
-66
-66
-66
query I rowsort
SELECT - cor0.col2 + ( col1 ) AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col0 + - col1 * 11 AS col0 FROM tab1 AS cor0
----
-283
-46
-63
query I rowsort
SELECT cor0.col0 + 13 AS col1 FROM tab1 AS cor0
----
16
77
93
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0, tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 69 * col1 * + ( - 20 ) FROM tab2
----
-23460
-42780
-81420
query I rowsort
SELECT DISTINCT + ( tab0.col0 ) * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab2.col2 + + tab2.col1 * col2 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL 27 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * + ( col1 ) + - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT - 10 * - 6 + - col0 * + col1 FROM tab0
----
-2004
-3335
-8039
query I rowsort
SELECT ( col0 ) * cor0.col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9719
SELECT - CAST( NULL AS SIGNED ) / - ( + col2 ) + col2 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9719
SELECT - CAST ( NULL AS INTEGER ) / - ( + col2 ) + col2 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( - 37 ) * col2 + - col2 AS col0 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT DISTINCT + col0 * - col1 + col2 + col2 AS col2 FROM tab2 cor0
----
-1267
-163
-4550
query I rowsort
SELECT - col1 * - 10 AS col0 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - - 16 - col1 * - col0 AS col1 FROM tab1 cor0
----
1056
656
94
query I rowsort
SELECT DISTINCT - 68 + + col0 AS col0 FROM tab0 cor0
----
-33
-44
21
query I rowsort
SELECT DISTINCT - ( - col2 ) + + ( + col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0, tab2, tab1 AS cor0
----
78
query I rowsort
SELECT - col1 * - col2 - + col0 FROM tab2
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT DISTINCT col0 + - col2 DIV tab1.col1 AS col2 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT col0 + - col2 / tab1.col1 AS col2 FROM tab1
----
1
59
73
query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT ALL - 46 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 22 FROM tab2 cor0
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT + 29 + col0 DIV - 15 + - col2 AS col1 FROM tab0 AS cor0
----
-5
-58
26
skipif mysql # not compatible
query I rowsort label-9735
SELECT + 29 + col0 / - 15 + - col2 AS col1 FROM tab0 AS cor0
----
-5
-58
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * + 10 col1 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT ALL - cor0.col2 * - ( - 55 ) FROM tab1 AS cor0
----
-2970
-3135
-5280
query I rowsort
SELECT + - col0 + + 65 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2121
30
5241
query I rowsort
SELECT ALL + - col1 * ( - 27 ) FROM tab2 AS cor0
----
1593
459
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9740
SELECT ALL cor0.col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL cor0.col2 / + col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + col1 + 26 AS col0 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT + - col2 * + 34 + col2 * col0 AS col1 FROM tab0 AS cor0
----
-330
1
4510
query I rowsort
SELECT cor0.col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT DISTINCT + col0 * ( 36 ) * + col0 AS col0 FROM tab0 AS cor0
----
20736
285156
44100
query I rowsort
SELECT + 4 * - col1 FROM tab2
----
-124
-236
-68
query I rowsort
SELECT - 8 FROM tab2
----
-8
-8
-8
query I rowsort
SELECT DISTINCT + col2 + col2 * + 68 + + col1 FROM tab0
----
166
2363
5749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 96 col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT + col0 + - ( - col1 ) * col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9751
SELECT DISTINCT + col2 DIV - col0 + col2 DIV + col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + col2 / - col0 + col2 / + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col1 * col1 + - cor0.col0 + col2 AS col2 FROM tab1 cor0
----
185
727
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9757
SELECT DISTINCT - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - col0 / + col2 AS col0 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT - - col1 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9758
SELECT - - col1 + col2 / col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT - col1 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col1 * + cor0.col1 + + col0 * - col2 * col2 FROM tab1 AS cor0
----
-207836
-737111
-8072
query I rowsort
SELECT ALL - col1 + + tab2.col0 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT + col0 + - cor0.col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9763
SELECT + col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT ALL + col0 DIV - tab1.col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + col0 / - tab1.col2 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT ALL + col1 DIV col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL + col1 / col1 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT + - col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - cor0.col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col0 + col1 * col1 AS col2 FROM tab1 cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT DISTINCT - col1 * + col0 - - col0 DIV - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT - col1 * + col0 - - col0 / - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * - col1 col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + - 10 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
15340
6460
8370
onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT ALL cor0.col2 DIV col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL cor0.col2 / col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT ALL - 13 + - col1 AS col0 FROM tab0 AS cor0
----
-104
-110
-99
query I rowsort
SELECT 66 * + col2 + col1 FROM tab0 AS cor0
----
163
2264
5503
query I rowsort
SELECT DISTINCT 82 + col1 FROM tab1 AS cor0
----
108
92
95
query I rowsort
SELECT 64 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - 18 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-11
60
61
query I rowsort
SELECT + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - 67 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT - col1 + + 55 AS col2 FROM tab1
----
29
42
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT - col2 * - col0 + tab2.col0 DIV tab2.col0 AS col0 FROM tab2
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-9782
SELECT - col2 * - col0 + tab2.col0 / tab2.col0 AS col0 FROM tab2
----
190
2029
3003
query I rowsort
SELECT - 80 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-177
-2918
-7542
query I rowsort
SELECT - col0 + - col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL - col2 * + col2 + + col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT - col2 * - col0 + col0 + tab1.col1 AS col1 FROM tab1
----
191
3722
7773
query I rowsort
SELECT 94 * col2 AS col0 FROM tab1
----
5076
5358
9024
query I rowsort
SELECT 80 AS col1 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + - col1 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - ( col0 ) - + cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - 40 * + col2 + - col2 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT DISTINCT + - col2 * col0 + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * + cor0.col1 + cor0.col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - col2 * - col0 + + col2 * col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL + col2 * col0 + col1 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT + col1 DIV col1 col1 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9799
SELECT + col1 / col1 col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT col0 DIV - col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9800
SELECT col0 / - col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - 7 + + cor0.col2 * 78 FROM tab0 AS cor0
----
2567
6389
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT - 98 DIV cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9803
SELECT - 98 / cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-98
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT - col1 DIV - ( - col1 ) col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9805
SELECT - col1 / - ( - col1 ) col0 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9806
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 24 AS col1 FROM tab0
----
24
24
24
query I rowsort
SELECT - cor0.col2 - - col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT col2 - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-9809
SELECT col2 - cor0.col1 / - col0 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT ALL + col0 * + 66 FROM tab0 cor0
----
1584
2310
5874
query I rowsort
SELECT - 71 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT + - col0 + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + ( 13 ) FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee
query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9815
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1, 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-9815
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - tab1.col2 + + 21 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-33
-36
-75
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT + - 31 + 35 AS col0 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + 81 * - cor0.col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT ALL - 25 + 2 * col2 AS col1 FROM tab2 cor0
----
27
29
51
query I rowsort
SELECT DISTINCT ( 93 ) AS col0 FROM tab2
----
93
query I rowsort
SELECT DISTINCT col1 * + 87 FROM tab1
----
1131
2262
870
query I rowsort
SELECT 62 * col2 FROM tab1
----
3348
3534
5952
query I rowsort
SELECT + 4 AS col2 FROM tab0
----
4
4
4
query I rowsort
SELECT + col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + cor0.col0 - cor0.col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT 86 * col2 FROM tab2 cor0
----
2236
2322
3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT DISTINCT 1 DIV - col1 - - col2 * - 82 FROM tab1 AS cor0
----
-4428
-4674
-7872
skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT 1 / - col1 - - col2 * - 82 FROM tab1 AS cor0
----
-4428
-4674
-7872
query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ALL ( - tab1.col2 ) * tab1.col0 + - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9834
SELECT DISTINCT + col2 + col1 DIV - tab0.col0 AS col1 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT + col2 + col1 / - tab0.col0 AS col1 FROM tab0
----
-1
30
81
query I rowsort
SELECT - col0 * + tab1.col0 AS col0 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 + + col2 ) * col2 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 63 + - col1 AS col2 FROM tab0 AS cor0
----
-23
-28
-34
query I rowsort
SELECT ALL + 91 * col2 + - col2 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT ALL - col1 - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + 99 + - col1 FROM tab1 cor0
----
73
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT ALL + + 31 DIV - cor0.col0 + + ( cor0.col0 ) FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + + 31 / - cor0.col0 + + ( cor0.col0 ) FROM tab2 AS cor0
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9843
SELECT DISTINCT - 91 + col2 * col1 DIV col1 FROM tab2 AS cor0
----
-53
-64
-65
skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - 91 + col2 * col1 / col1 FROM tab2 AS cor0
----
-53
-64
-65
query I rowsort
SELECT + 89 * - cor0.col1 * 25 FROM tab1 AS cor0
----
-22250
-28925
-57850
query I rowsort
SELECT 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to 9abcb2f48b3a009aa8d65d82a30c843f
query I rowsort
SELECT ALL col1 + - 35 - + col1 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT DISTINCT col2 * 53 FROM tab2
----
1378
1431
2014
query I rowsort
SELECT ALL 57 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60
query I rowsort
SELECT + - cor0.col1 * 80 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT col0 + + col0 + 40 AS col1 FROM tab1 AS cor0
----
168
200
46
query I rowsort
SELECT col2 * cor0.col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - - 22 * col2 AS col1 FROM tab1 cor0
----
1188
1254
2112
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 3 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-9856
SELECT 12 DIV + 49 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-9856
SELECT 12 / + 49 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT + col0 + - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-9857
SELECT + col0 + - col2 / col0 AS col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - cor0.col0 * + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
query I rowsort
SELECT ALL - col0 + - col1 * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * + col1 * col0 col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL - - col2 * + 49 AS col0 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT + + cor0.col0 * col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT DISTINCT - col2 * - col0 + 42 DIV col1 FROM tab1 AS cor0
----
163
3652
7683
skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - col2 * - col0 + 42 / col1 FROM tab1 AS cor0
----
163
3652
7683
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9868
SELECT ALL col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * 1 * - 20 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9870
SELECT DISTINCT - 0 * - col1 DIV 12 + 61 FROM tab1
----
61
skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - 0 * - col1 / 12 + 61 FROM tab1
----
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT DISTINCT 31 DIV col0 + + col2 + - tab1.col0 FROM tab1
----
-7
16
61
skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 31 / col0 + + col2 + - tab1.col0 FROM tab1
----
-7
16
61
query I rowsort
SELECT DISTINCT col0 + + col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT 68 - - col1 AS col2 FROM tab1
----
78
81
94
query I rowsort
SELECT ALL - col2 * 86 FROM tab2 AS cor0
----
-2236
-2322
-3268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9875
SELECT + cor0.col0 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-9875
SELECT + cor0.col0 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT - cor0.col2 * 28 + col2 * - col2 FROM tab0 cor0
----
-2013
-29
-9020
query I rowsort
SELECT col1 * col0 + 8 * col1 AS col1 FROM tab2 AS cor0
----
1479
465
5074
query I rowsort
SELECT - + col0 * col1 + 84 FROM tab2 AS cor0
----
-1259
-133
-4518
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 * CAST ( + col0 AS REAL ) + col0 * + CAST ( + col0 * - col2 + + col2 AS REAL ) AS col0 FROM tab1 cor0
----
-229184
-246
-605680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9882
SELECT - tab0.col1 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9882
SELECT - tab0.col1 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT CAST( + 1 AS SIGNED ) DIV col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9883
SELECT CAST ( + 1 AS INTEGER ) / col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + tab2.col0 * 79 FROM tab2, tab2 AS cor0
----
9 values hashing to 6646573ec3d7b7e653272e873993a6b1
query I rowsort
SELECT DISTINCT + + col2 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9886
SELECT + cor0.col0 + + cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9886
SELECT + cor0.col0 + + cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 9a8c5b685ae97f053cdce34c34044cb4
query I rowsort
SELECT DISTINCT - ( col2 ) - col1 FROM tab1
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 17 * col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT + + col1 * + col1 + ( col0 * col2 ) FROM tab0 AS cor0
----
15579
8188
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9895
SELECT + CAST( NULL AS DECIMAL ) + - 62 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9895
SELECT + CAST ( NULL AS REAL ) + - 62 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT - col2 * + col0 + 30 FROM tab0
----
-5
-7268
-762
query I rowsort
SELECT ALL - col1 + + col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT - col1 + - col2 DIV tab2.col1 AS col0 FROM tab2
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-9899
SELECT - col1 + - col2 / tab2.col1 AS col0 FROM tab2
----
-19
-31
-59
query I rowsort
SELECT DISTINCT tab1.col2 * col2 + col0 * - col0 FROM tab1
----
-847
2816
2907
query I rowsort
SELECT DISTINCT - col2 * col0 * 29 + + col0 AS col1 FROM tab0
----
-211553
-22944
-980
query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-36
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 91 + + cor0.col2 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT DISTINCT + 67 * - col0 AS col0 FROM tab1 cor0
----
-201
-4288
-5360
query I rowsort
SELECT + col1 - + cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9907
SELECT DISTINCT + col2 DIV cor0.col1 - - col1 AS col0 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + col2 / cor0.col1 - - col1 AS col0 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT DISTINCT 22 * + col2 - - 97 AS col0 FROM tab0 AS cor0
----
119
1901
823
query I rowsort
SELECT ALL + col1 * col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + cor0.col0 * + col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - + col2 - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT 48 * + col1 AS col1 FROM tab1 AS cor0
----
1248
480
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-9913
SELECT DISTINCT + - col1 + col0 DIV - ( - col2 * col0 ) FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + - col1 + col0 / - ( - col2 * col0 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT tab0.col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 - ( - cor0.col0 + - cor0.col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
231
8034
9164
onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT DISTINCT - + col1 DIV 59 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - + col1 / 59 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9917
SELECT cor0.col1 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9917
SELECT cor0.col1 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - tab1.col0 col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a
query I rowsort
SELECT + 99 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - + col1 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + 3 AS col0 FROM tab1
----
3
3
3
query I rowsort
SELECT ALL - ( + 53 ) * col0 AS col2 FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT ALL col2 * + col0 + + col1 FROM tab2 cor0
----
2087
220
3019
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT - - 63 DIV col0 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-9929
SELECT - - 63 / col0 FROM tab2 AS cor0
----
0
0
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT DISTINCT + col2 DIV col2 + cor0.col0 * 35 * col2 FROM tab1 AS cor0
----
127681
268801
5671
skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + col2 / col2 + cor0.col0 * 35 * col2 FROM tab1 AS cor0
----
127681
268801
5671
query I rowsort
SELECT + 99 AS col0 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT ALL col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9933
SELECT DISTINCT + + CAST( + 57 AS SIGNED ) + - col1 + - col0 FROM tab0 AS cor0
----
-123
-53
-75
skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT + + CAST ( + 57 AS INTEGER ) + - col1 + - col0 FROM tab0 AS cor0
----
-123
-53
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT - col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9934
SELECT - col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( col1 ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT + + 9 DIV + cor0.col2 FROM tab0 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-9936
SELECT + + 9 / + cor0.col2 FROM tab0 AS cor0
----
0
0
9
query I rowsort
SELECT ALL 97 AS col1 FROM tab0 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * - col1 * + cor0.col1 col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + ( - tab2.col0 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT 71 AS col0 FROM tab0
----
71
71
71
query I rowsort
SELECT DISTINCT 99 * + col1 * col0 FROM tab1
----
102960
63360
7722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT ALL - col1 * - col2 DIV col2 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - col1 * - col2 / col2 AS col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9944
SELECT ALL ( + col0 ) DIV - col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL ( + col0 ) / - col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL + col1 * - ( + col0 + + col1 ) FROM tab0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab2
----
1534
646
837
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT - CAST( NULL AS SIGNED ) * 8 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9949
SELECT - CAST ( NULL AS INTEGER ) * 8 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 22 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT - col1 * + col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col2 * 30 AS col1 FROM tab1
----
1620
1710
2880
query I rowsort
SELECT DISTINCT + tab0.col0 * + 53 AS col2 FROM tab0
----
1272
1855
4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT - col2 + - 51 DIV - col0 FROM tab1 cor0
----
-37
-57
-96
skipif mysql # not compatible
query I rowsort label-9954
SELECT - col2 + - 51 / - col0 FROM tab1 cor0
----
-37
-57
-96
query I rowsort
SELECT DISTINCT 33 + + ( col1 ) * 35 FROM tab0 AS cor0
----
3043
3218
3428
query I rowsort
SELECT - ( tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + col1 * col1 * ( col2 ) + col2 * col0 AS col1 FROM tab2 AS cor0
----
13984
26136
92534
query I rowsort
SELECT col2 - cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - + 34 FROM tab2 cor0
----
-34
query I rowsort
SELECT ALL + col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + + col0 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT col1 DIV col0 + 64 - + col1 * col2 FROM tab2 AS cor0
----
-1470
-582
-769
skipif mysql # not compatible
query I rowsort label-9962
SELECT col1 / col0 + 64 - + col1 * col2 FROM tab2 AS cor0
----
-1470
-582
-769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9963
SELECT DISTINCT col0 + col1 + tab0.col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-7286
-8101
-9277
skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT col0 + col1 + tab0.col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-7286
-8101
-9277
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9965
SELECT + col0 + col1 DIV 85 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9965
SELECT + col0 + col1 / 85 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col1 * col1 + ( - col2 ) AS col0 FROM tab2 cor0
----
-327
-3507
-988
query I rowsort
SELECT - cor0.col2 - 82 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 941607720ae6d8bf5a4ead9e731c2796
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT + - cor0.col1 DIV - cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9969
SELECT + - cor0.col1 / - cor0.col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
64
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9972
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT ALL + col2 + + ( - col2 ) DIV col1 AS col0 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + col2 + + ( - col2 ) / col1 AS col0 FROM tab1 AS cor0
----
52
52
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9974
SELECT col1 * + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9974
SELECT col1 * + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col1 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - col0 + ( + 8 ) FROM tab1 AS cor0
----
-56
-72
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9977
SELECT + col2 + - CAST( - 46 AS SIGNED ) * col1 * - col0 FROM tab0 AS cor0
----
-156169
-372472
-94911
skipif mysql # not compatible
query I rowsort label-9977
SELECT + col2 + - CAST ( - 46 AS INTEGER ) * col1 * - col0 FROM tab0 AS cor0
----
-156169
-372472
-94911
query I rowsort
SELECT ALL + col0 * - col0 + - ( - col1 ) FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9979
SELECT col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 + + col1 * - col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT col1 + - 34 AS col0 FROM tab2 cor0
----
-17
-3
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT ALL col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col1 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * + 10 + col2 FROM tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * + col2 + 98 - + col2 * col0 AS col2 FROM tab0
----
-476
395
64
query I rowsort
SELECT 18 + - tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4aeacdeb01551577e26c6af293dc3e9f
query I rowsort
SELECT ALL 59 + tab1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed23ad8619a8874cbe5690cfcc70d815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 72 * + col2 col1 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT col1 - + ( + col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9991
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL col1 * - CAST ( NULL AS REAL ) + - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 85 * + tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 542cfc09926ca2de32e19f57770d6dc1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT + col2 DIV + col2 - + col0 AS col2 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9993
SELECT + col2 / + col2 - + col0 AS col2 FROM tab1
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT - + CAST( NULL AS DECIMAL ) * + col2 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-9994
SELECT - + CAST ( NULL AS REAL ) * + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 90 * col2 ) AS col1 FROM tab1
----
4860
5130
8640
query I rowsort
SELECT ALL - col1 - col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ( + col1 ) + ( col1 * - col1 + col1 ) FROM tab1
----
-143
-624
-80
query I rowsort
SELECT DISTINCT 29 - tab0.col1 FROM tab0
----
-57
-62
-68
query I rowsort
SELECT ALL + 64 * col2 FROM tab1 AS cor0
----
3456
3648
6144