hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT DISTINCT tab0.col2 * col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL + 64 FROM tab1 cor0
----
64
64
64
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + - ( 35 * col0 ) FROM tab1 AS cor0
----
1408
4880
57
query I rowsort
SELECT - col0 * + 55 FROM tab1
----
-165
-3520
-4400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT DISTINCT + col2 * + tab0.col1 + - col0 DIV - col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - + 3 * - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
291
292
355
query I rowsort
SELECT DISTINCT - col2 + col2 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - col2 * 7 + col0 AS col1 FROM tab2 AS cor0
----
-104
-182
-187
query I rowsort
SELECT col2 + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + + 74 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT ALL + 77 * - 77 FROM tab2 AS cor0
----
-5929
-5929
-5929
query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-12
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 + 59 FROM tab2 AS cor0
----
21
32
33
query I rowsort
SELECT DISTINCT - cor0.col2 * - 46 FROM tab0 AS cor0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT ALL col2 DIV 52 + - col0 * - col2 AS col1 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-15
SELECT ALL col2 / 52 + - col0 * - col2 AS col1 FROM tab1
----
163
3649
7681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-16
SELECT ALL - col1 + CAST( - col1 AS SIGNED ) * col2 FROM tab1
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - col1 + CAST ( - col1 AS INTEGER ) * col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL + 86 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 + - col2 col2 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-22
SELECT + - CAST( col0 AS SIGNED ) + col1 FROM tab1 cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-22
SELECT + - CAST ( col0 AS INTEGER ) + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL + - col1 + - col2 * cor0.col0 * 70 FROM tab0 AS cor0
----
-2547
-510951
-55526
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 42 ) col2 FROM tab2 cor0
----
42
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 81 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT ALL - + 22 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL cor0.col1 * - col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + + 56 * - col1 AS col1 FROM tab1 cor0
----
-1456
-560
-728
query I rowsort
SELECT + + col1 * - cor0.col1 + col0 * col2 FROM tab0 AS cor0
----
-6604
-9374
-983
query I rowsort
SELECT ALL + 9 + - ( + col2 ) FROM tab1 AS cor0
----
-45
-48
-87
query I rowsort
SELECT DISTINCT - + col1 + col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-33
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT ALL - col2 DIV ( + cor0.col1 ) + 69 AS col0 FROM tab0 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - col2 / ( + cor0.col1 ) + 69 AS col0 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT col1 + ( + 83 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2653
-6715
14
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 col2 * 38 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT col0 * tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( col0 + col2 ) FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 41 + + col0 FROM tab0 AS cor0
----
-17
-6
48
query I rowsort
SELECT ALL - + 29 FROM tab0 AS cor0
----
-29
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-44
SELECT col2 / cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 40 + col0 FROM tab0 AS cor0
----
129
64
75
query I rowsort
SELECT + 95 * + 49 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6b7bb3fccfaf7f231f3397f1c3afea26
query I rowsort
SELECT col2 * col1 * - col0 + - col2 * 22 + - tab0.col0 FROM tab0
----
-3452
-666011
-68862
query I rowsort
SELECT ALL 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ( col0 + col0 ) AS col1 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + 52 * col0 AS col0 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT ALL 66 FROM tab2
----
66
66
66
query I rowsort
SELECT DISTINCT ( tab0.col0 ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + tab2.col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - 8 FROM tab0
----
-8
query I rowsort
SELECT ALL - ( - 83 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT DISTINCT - 3 + col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6107
6276
73
query I rowsort
SELECT DISTINCT + 77 * col1 AS col0 FROM tab2 AS cor0
----
1309
2387
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + ( + 55 ) col1 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col0 + col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab0
----
65
query I rowsort
SELECT 20 AS col1 FROM tab0
----
20
20
20
query I rowsort
SELECT tab0.col0 - col0 * col2 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + 58 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL - col1 * col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 16 + - col0 * - 51 AS col2 FROM tab1 AS cor0
----
169
3280
4096
query I rowsort
SELECT - col1 + col2 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab1.col0 + + col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + col2 - col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col2 + + 44 * 34 * col0 AS col2 FROM tab2 AS cor0
----
10499
116714
118222
query I rowsort
SELECT - - col2 + - ( - col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 + - col1 * col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT DISTINCT + col1 + - 14 DIV ( + col1 ) + col1 FROM tab1 AS cor0
----
19
25
52
skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT + col1 + - 14 / ( + col1 ) + col1 FROM tab1 AS cor0
----
19
25
52
query I rowsort
SELECT ALL - col1 * 24 AS col1 FROM tab2 cor0
----
-1416
-408
-744
query I rowsort
SELECT ALL cor0.col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * + 9 col1 FROM tab0, tab0 cor0
----
9 values hashing to 4d46dc1ba5f1cec596972d175a7de877
query I rowsort
SELECT ALL 15 AS col2 FROM tab1
----
15
15
15
query I rowsort
SELECT ALL - col2 + ( 30 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT col0 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col2 - 30 AS col2 FROM tab1 AS cor0
----
24
27
66
query I rowsort
SELECT ALL col0 + cor0.col1 + - col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - + col2 + 53 FROM tab2 AS cor0
----
15
26
27
query I rowsort
SELECT ALL + + col2 * 23 + 53 AS col0 FROM tab1 AS cor0
----
1295
1364
2261
query I rowsort
SELECT DISTINCT cor0.col1 * + 36 - + 62 AS col0 FROM tab1 AS cor0
----
298
406
874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-92
SELECT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-92
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + 71 * cor0.col0 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT + 34 * tab0.col0 + col0 DIV + tab0.col0 FROM tab0
----
1191
3027
817
skipif mysql # not compatible
query I rowsort label-96
SELECT + 34 * tab0.col0 + col0 / + tab0.col0 FROM tab0
----
1191
3027
817
query I rowsort
SELECT - - 54 * col1 + - col1 * 87 FROM tab0 AS cor0
----
-2838
-3003
-3201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-98
SELECT + CAST( NULL AS SIGNED ) * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-98
SELECT + CAST ( NULL AS INTEGER ) * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-99
SELECT ( + 33 ) * - cor0.col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-99
SELECT ( + 33 ) * - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-100
SELECT CAST( col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-100
SELECT CAST ( col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - - cor0.col1 * col2 + - col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ALL + col2 - col1 * + col0 * + 24 FROM tab1 AS cor0
----
-15303
-1818
-24864
query I rowsort
SELECT ALL - cor1.col0 * 38 + 61 + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f55993f90d147df29331b0e72ae747a6
query I rowsort
SELECT + 22 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT 88 AS col1 FROM tab0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT 20 + + 90 + - col2 FROM tab0 AS cor0
----
109
28
77
query I rowsort
SELECT + + col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - ( + 11 ) FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT cor0.col0 * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + cor0.col0 * - 3 * - cor0.col2 + col2 FROM tab2 AS cor0
----
594
6110
9044
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * + 39 AS col0 FROM tab2 AS cor0
----
-2339
1020
273
query I rowsort
SELECT + - ( col0 ) * + col0 + - 20 AS col2 FROM tab2 AS cor0
----
-6104
-6261
-69
query I rowsort
SELECT DISTINCT - - col2 + ( + col1 ) * - ( + col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - ( - 68 ) FROM tab0 AS cor0
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( cor0.col0 ) ) + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col1 * 44 FROM tab2 AS cor0
----
1364
2596
748
query I rowsort
SELECT DISTINCT + col0 + 90 * + col2 FROM tab2 AS cor0
----
2418
2437
3499
query I rowsort
SELECT 1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-125
SELECT ALL CAST( - cor0.col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-125
SELECT ALL CAST ( - cor0.col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * - ( ( + col1 ) ) AS col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-130
SELECT col0 * CAST( NULL AS SIGNED ) * col0 - col1 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-130
SELECT col0 * CAST ( NULL AS INTEGER ) * col0 - col1 * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + ( - col0 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col0 ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + ( + 77 ) FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + col0 + 1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab1 AS cor0
----
-97
query I rowsort
SELECT - col0 + cor0.col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0
----
28
query I rowsort
SELECT + + col2 + + 79 FROM tab0 AS cor0
----
112
161
80
query I rowsort
SELECT ALL - - 72 * - cor0.col1 + - col0 * col0 * cor0.col1 FROM tab2 cor0
----
-107321
-363204
-3751
onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT ALL col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-140
SELECT ALL col2 / + col0 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + 39 col1 FROM tab0 AS cor0
----
121
40
72
query I rowsort
SELECT DISTINCT - - col0 * - 4 AS col2 FROM tab1 AS cor0
----
-12
-256
-320
query I rowsort
SELECT 55 FROM tab2
----
55
55
55
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 + + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 * col1 - col0 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT ( col0 ) * col2 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-149
SELECT - ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-149
SELECT - ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - tab1.col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-152
SELECT - col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-152
SELECT - col2 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( 82 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col1 * ( col1 ) AS col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - col0 + - col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT col1 * ( + col0 ) + + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT tab2.col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + - col1 + + 8 FROM tab2 AS cor0
----
-23
-51
-9
query I rowsort
SELECT ALL cor0.col2 + - ( col0 ) + col1 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + - col0 + cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 + + ( col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + cor0.col0 + 88 AS col1 FROM tab1 AS cor0
----
24
8
85
query I rowsort
SELECT - - col2 * - cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 * col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-170
SELECT ALL - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT DISTINCT - col2 DIV ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - col2 / ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT col0 DIV - col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-177
SELECT col0 / - col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT cor0.col2 * cor0.col0 + - ( - col1 ) * - ( cor0.col2 + col0 ) AS col1 FROM tab1 AS cor0
----
-1320
2438
5392
onlyif mysql # use DIV operator for integer division
query I rowsort label-180
SELECT ALL - col2 DIV 82 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - col2 / 82 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 cor0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT ALL + 67 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-184
SELECT CAST( NULL AS SIGNED ) * 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-184
SELECT CAST ( NULL AS INTEGER ) * 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT ALL + col2 DIV + 59 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + col2 / + 59 FROM tab1 cor0
----
0
0
1
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
query I rowsort
SELECT DISTINCT + ( 82 ) AS col1 FROM tab0, tab2 AS cor0
----
82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
query I rowsort
SELECT - 75 + - 50 FROM tab1 cor0
----
-125
-125
-125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-192
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-192
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - 93 FROM tab2, tab0 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 22 * - col1 - 97 * + col0 FROM tab0 AS cor0
----
-10635
-4220
-5529
query I rowsort
SELECT cor0.col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + - 66 FROM tab0 cor0
----
-66
-66
-66
query I rowsort
SELECT tab0.col1 * - col1 * 79 AS col1 FROM tab0
----
-584284
-654199
-743311
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT + 25 - col1 DIV + 82 col0 FROM tab1 AS cor0
----
25
25
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-200
SELECT + 25 - col1 / + 82 col0 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT 20 + col2 * col2 FROM tab0 AS cor0
----
1109
21
6744
query I rowsort
SELECT col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * - col0 * - col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col1 col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT col1 DIV - 97 + + col0 AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-206
SELECT col1 / - 97 + + col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + + cor0.col2 * + 54 * cor0.col1 + + col0 FROM tab2 AS cor0
----
34963
45205
82914
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT ALL 46 * col2 + col2 DIV - col1 AS col1 FROM tab0
----
1518
3772
46
skipif mysql # not compatible
query I rowsort label-208
SELECT ALL 46 * col2 + col2 / - col1 AS col1 FROM tab0
----
1518
3772
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-209
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL col1 + col2 * col0 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL + col1 + - col1 + col2 * + col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col2 + col1 + + col0 AS col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - col0 * - col1 + col2 - col0 AS col1 FROM tab0 cor0
----
2073
3361
8092
query I rowsort
SELECT col2 * - 46 * col2 + + col1 + + col0 * - col0 * + col0 FROM tab1 AS cor0
----
-134137
-411588
-935923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + col0 + + 57 col0 FROM tab0
----
143
154
208
query I rowsort
SELECT DISTINCT col0 + col0 * + 37 * tab1.col2 + + col2 AS col2 FROM tab1
----
135097
284336
6051
query I rowsort
SELECT + - 60 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT ALL tab1.col2 + - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - col1 + - col2 * + ( - col1 ) FROM tab2
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-221
SELECT ALL + col1 + col2 * CAST( NULL AS SIGNED ) / + tab0.col0 + + col2 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + col1 + col2 * CAST ( NULL AS INTEGER ) / + tab0.col0 + + col2 col2 FROM tab0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 cor0, tab0
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT DISTINCT - 15 FROM tab0, tab0 AS cor0
----
-15
query I rowsort
SELECT ( - col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ( - col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - - col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT + + ( + col2 ) * - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-229
SELECT + + ( + col2 ) * - col1 / col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 16 + - col2 FROM tab0 cor0
----
-17
-66
15
query I rowsort
SELECT ALL - 32 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-232
SELECT - col2 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - + cor0.col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT cor0.col1 * - col2 + + col2 FROM tab1 cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - col0 - + col0 * + cor0.col1 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + col2 + col1 + col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 58 FROM tab1, tab1 cor0
----
-58
query I rowsort
SELECT + 35 AS col1 FROM tab0
----
35
35
35
query I rowsort
SELECT ALL 22 * col1 FROM tab1
----
220
286
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT ALL ( 89 ) DIV + col1 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-242
SELECT ALL ( 89 ) / + col1 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + 4 AS col1 FROM tab1
----
4
4
4
query I rowsort
SELECT + - cor0.col0 + - 84 * - 36 + + col1 FROM tab1 AS cor0
----
2957
2970
3047
query I rowsort
SELECT + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT cor0.col1 * 38 + cor0.col0 FROM tab0 AS cor0
----
3292
3547
3721
query I rowsort
SELECT - 77 AS col2 FROM tab0
----
-77
-77
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + col1 * tab1.col2 * - col0 col2 FROM tab1
----
-36434
-4166
-99794
query I rowsort
SELECT cor0.col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 80 * col1 * - 62 FROM tab2
----
-153760
-292640
-84320
query I rowsort
SELECT + 39 + + col1 FROM tab1
----
49
52
65
query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + 50 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + + col2 * - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-641
2435
572
query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + + col2 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col1 + col0 * - col0 - col2 FROM tab0 AS cor0
----
-1129
-523
-7912
query I rowsort
SELECT tab2.col0 * + col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT cor0.col2 * col2 * col0 - - col2 AS col0 FROM tab2 AS cor0
----
114114
5130
52754
onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT ALL + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab1 cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 + col2 col1 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT + col2 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col2 * col2 - - col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - + col2 FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT ALL col2 * - tab1.col2 * col2 + col2 DIV col0 FROM tab1
----
-157446
-185193
-884735
skipif mysql # not compatible
query I rowsort label-272
SELECT ALL col2 * - tab1.col2 * col2 + col2 / col0 FROM tab1
----
-157446
-185193
-884735
query I rowsort
SELECT ALL col2 + col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - tab1.col0 * - tab1.col1 * - col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 * + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * + col1 + col0 AND ( col2 ) OR NOT ( col1 ) NOT IN ( + col0 * col2 - - col2 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col2 * cor0.col1 + - col0 * col0 FROM tab1 AS cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - ( tab0.col1 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + tab2.col0 * tab2.col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL 80 * col1 * - col1 AS col1 FROM tab0
----
-591680
-662480
-752720
query I rowsort
SELECT + col1 * col2 * + col0 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 - - col2 col0 FROM tab2 AS cor0
----
40
41
52
query I rowsort
SELECT col2 + - tab2.col0 * + col1 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT + - col0 * + col2 + col0 * col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
skipif mysql # not compatible
query I rowsort label-291
SELECT + - col0 * + col2 + col0 * col1 / - col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col1 + col0 + - col0 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT tab1.col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col0 + col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT ALL - + cor0.col2 * + col0 + col1 - col2 * col0 DIV col0 FROM tab1 AS cor0
----
-190
-3695
-7763
skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - + cor0.col2 * + col0 + col1 - col2 * col0 / col0 FROM tab1 AS cor0
----
-190
-3695
-7763
onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT DISTINCT - cor0.col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - cor0.col1 / col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT ( + col1 ) + 2 * - 48 + col1 AS col0 FROM tab0 AS cor0
----
76
86
98
query I rowsort
SELECT cor0.col0 + + col2 * + ( cor0.col1 ) * cor0.col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL - + cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - - col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - + 26 AS col2 FROM tab2 AS cor0
----
-26
-26
-26
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 - col2 + + col0 * 14 FROM tab2 AS cor0
----
1066
1068
71
query I rowsort
SELECT ALL + - col0 + col1 + col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + - col0 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL 55 FROM tab2
----
55
55
55
query I rowsort
SELECT col2 * - col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0
----
1225
576
7921
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0, tab1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT ALL - tab2.col0 + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - 8 * col2 FROM tab2 AS cor0
----
-208
-216
-304
onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT ALL cor0.col1 * col1 DIV + ( col0 ) FROM tab2 AS cor0
----
137
3
44
skipif mysql # not compatible
query I rowsort label-317
SELECT ALL cor0.col1 * col1 / + ( col0 ) FROM tab2 AS cor0
----
137
3
44
query I rowsort
SELECT - 80 * - col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + ( col2 + col2 ) * - 44 FROM tab0 AS cor0
----
-840
3307
883
query I rowsort
SELECT DISTINCT 65 + col2 FROM tab0 AS cor0
----
147
66
98
query I rowsort
SELECT ALL + col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - - col2 + + col0 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + 37 * col2 + - 51 * - col1 FROM tab0 AS cor0
----
4984
5607
7675
query I rowsort
SELECT - ( - 29 ) + cor0.col1 * + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b7b30f18a985a7c87a60a5f5c6b248db
query I rowsort
SELECT ALL col0 + col2 + + col1 FROM tab2 cor0
----
134
163
65
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT DISTINCT 14 FROM tab2
----
14
query I rowsort
SELECT + col1 + + col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT DISTINCT - ( col2 ) + + col0 DIV - 35 FROM tab0 AS cor0
----
-2
-33
-84
skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - ( col2 ) + + col0 / - 35 FROM tab0 AS cor0
----
-2
-33
-84
query I rowsort
SELECT + col1 * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT DISTINCT + col1 DIV - 74 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + col1 / - 74 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 49 FROM tab2 AS cor0
----
49
49
49
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT - 85 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 8ce7eaf1d4fdd7c890ea84abed830333
query I rowsort
SELECT 35 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL + col0 - - col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT ALL + col2 * - col2 + col0 DIV col2 FROM tab0
----
-1089
-6723
34
skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + col2 * - col2 + col0 / col2 FROM tab0
----
-1089
-6723
34
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + col2 * + ( col1 ) + - tab2.col2 FROM tab2
----
1508
608
810
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 86 AS REAL ) - - col1 / col1 AS col0 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL + + 75 FROM tab2 AS cor0
----
75
75
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT ALL + col2 DIV ( + col0 ) - - 99 FROM tab2 AS cor0
----
102
99
99
skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + col2 / ( + col0 ) - - 99 FROM tab2 AS cor0
----
102
99
99
query I rowsort
SELECT - + 46 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-295
-3562
-3596
query I rowsort
SELECT ALL - 8 * - 50 FROM tab0 AS cor0
----
400
400
400
query I rowsort
SELECT DISTINCT col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 72 FROM tab1
----
72
72
72
query I rowsort
SELECT + 97 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col1 * + col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab2
----
0
query I rowsort
SELECT tab1.col1 * + 14 FROM tab1
----
140
182
364
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT col1 * + col2 * col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - 52 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT ALL - 80 * cor0.col1 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT ALL - 79 * col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 45 AS col2 FROM tab2
----
45
45
45
query I rowsort
SELECT - + 47 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab1 AS cor0
----
-81
-81
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * ( col2 ) col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
54
57
96
query I rowsort
SELECT 65 FROM tab0
----
65
65
65
query I rowsort
SELECT - 54 * + col1 AS col2 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT DISTINCT tab1.col2 * + col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col1 * - col2 * - CAST ( + col0 + col2 AS REAL ) col0 FROM tab1
----
219648
68970
80028
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col0 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + 20 + - cor0.col0 * 5 FROM tab1 AS cor0
----
-300
-380
5
query I rowsort
SELECT - col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col1 * - 60 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT + - col0 * 65 * col1 FROM tab0 AS cor0
----
-134160
-220675
-526435
query I rowsort
SELECT col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-380
SELECT col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-380
SELECT col0 / + col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-381
SELECT - + col2 * CAST( + col1 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-381
SELECT - + col2 * CAST ( + col1 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col0 + 44 * col0 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 * + 21 + - col0 AS col2 FROM tab0 cor0
----
-14
1633
669
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 + 24 * col1 FROM tab1 AS cor0
----
304
392
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-387
SELECT DISTINCT ( 92 ) * + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT ( 92 ) * + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 93 * + col1 FROM tab0 AS cor0
----
-7998
-8463
-9021
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT DISTINCT + col0 DIV - col0 + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + col0 / - col0 + col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL + - col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + 52 AS col0 FROM tab1 AS cor0
----
52
query I rowsort
SELECT ALL cor0.col0 * 75 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT col1 * col2 - + col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-396
SELECT + col2 DIV - col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-396
SELECT + col2 / - col0 + + col1 AS col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT ALL + 44 FROM tab1 AS cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT + 35 + 51 DIV - cor0.col1 FROM tab0 cor0
----
35
35
35
skipif mysql # not compatible
query I rowsort label-398
SELECT + 35 + 51 / - cor0.col1 FROM tab0 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT 66 * 99 * - col0 AS col1 FROM tab1 AS cor0
----
-19602
-418176
-522720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-400
SELECT - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-400
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * - ( - col1 * col1 ) AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT col0 * - cor0.col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT tab0.col2 + col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + 24 * col0 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 86 * 5 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b533d1b3b9c4b8030def0ab6c47733e
query I rowsort
SELECT ALL - 59 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT DISTINCT col2 * + col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - col0 + 90 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT + - col1 + col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT - + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-411
SELECT - + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT DISTINCT col1 + + col2 DIV tab1.col1 AS col0 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT col1 + + col2 / tab1.col1 AS col0 FROM tab1
----
15
20
28
query I rowsort
SELECT + 65 * - 6 * - col1 FROM tab0 cor0
----
33540
35490
37830
query I rowsort
SELECT 73 AS col1 FROM tab2 cor0
----
73
73
73
query I rowsort
SELECT - - ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + tab2.col2 + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col1 * + col1 - col1 FROM tab2 AS cor0
----
22814
271459
6696
skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col1 * + col1 - col1 FROM tab2 AS cor0
----
22814
271459
6696
query I rowsort
SELECT ALL 93 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
query I rowsort
SELECT - - ( + cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col2 + ( + col0 ) FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * 41 col2 FROM tab1 AS cor0
----
-2378
-2378
-2378
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-426
SELECT + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 52 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT 24 * col0 FROM tab2
----
168
1872
1896
query I rowsort
SELECT DISTINCT col1 * - col1 - + col2 * - col2 FROM tab2 cor0
----
-232
-2805
1155
query I rowsort
SELECT ( col0 ) FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * col1 col0 FROM tab1
----
1040
2080
800
query I rowsort
SELECT ALL tab0.col2 * col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT DISTINCT - tab1.col1 DIV col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT - tab1.col1 / col0 AS col1 FROM tab1
----
-8
0
query I rowsort
SELECT - - cor0.col1 * - cor0.col2 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 36 ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT + 78 AS col2 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT - + col1 + - 87 FROM tab0 AS cor0
----
-173
-178
-184
onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT col2 + - CAST( col0 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-438
SELECT col2 + - CAST ( col0 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-440
SELECT col0 + - CAST( + 28 AS SIGNED ) FROM tab1 AS cor0
----
-25
36
52
skipif mysql # not compatible
query I rowsort label-440
SELECT col0 + - CAST ( + 28 AS INTEGER ) FROM tab1 AS cor0
----
-25
36
52
query I rowsort
SELECT - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + col0 * col2 * + col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - + col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - tab1.col0 * col1 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab2
----
53
query I rowsort
SELECT ALL tab0.col1 * - col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + 97 AS col0 FROM tab1
----
97
97
97
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 + col1 FROM tab2
----
118
34
62
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT col1 * ( ( col2 ) ) * - cor0.col2 + col2 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT + + 33 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL - - cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-457
SELECT + col2 * 80 + + col0 * cor0.col1 DIV ( 54 ) FROM tab0 AS cor0
----
142
2678
6709
skipif mysql # not compatible
query I rowsort label-457
SELECT + col2 * 80 + + col0 * cor0.col1 / ( 54 ) FROM tab0 AS cor0
----
142
2678
6709
onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT + cor0.col0 + + col2 * col0 DIV col2 AS col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-458
SELECT + cor0.col0 + + col2 * col0 / col2 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT 28 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT - col2 * - tab0.col2 * 19 FROM tab0
----
127756
19
20691
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT DISTINCT col1 DIV + col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col1 / + col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL - tab1.col0 * - col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 91 + col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT DISTINCT col1 * col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + ( + col1 ) * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + 98 * col0 AS col1 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT DISTINCT - 49 * - col1 AS col0 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT col2 * col0 + - cor0.col2 * - 64 FROM tab2 AS cor0
----
1917
3692
5434
query I rowsort
SELECT ALL col1 + 70 AS col0 FROM tab1
----
80
83
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + + 59 + col2 col0 FROM tab0
----
7439
884
95
query I rowsort
SELECT - col1 * col1 + ( + col0 ) * col1 AS col0 FROM tab0
----
-182
-5332
-6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT DISTINCT - col2 * 19 + + col0 DIV + col2 AS col2 FROM tab0
----
-1557
-627
16
skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT - col2 * 19 + + col0 / + col2 AS col2 FROM tab0
----
-1557
-627
16
query I rowsort
SELECT - col2 * + 18 FROM tab1
----
-1026
-1728
-972
query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - - 62 AS col0 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + - ( col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 41 * - col2 + col0 AS col0 FROM tab2 cor0
----
-1100
-1479
-988
query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * - col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 62 + - col0 FROM tab0 cor0
----
-27
27
38
query I rowsort
SELECT ALL col0 * + cor0.col0 + + cor0.col0 + + col2 FROM tab2 AS cor0
----
6188
6358
83
query I rowsort
SELECT DISTINCT - 5 + col0 AS col0 FROM tab1 cor0
----
-2
59
75
query I rowsort
SELECT DISTINCT 48 + cor0.col2 AS col1 FROM tab0 AS cor0
----
130
49
81
query I rowsort
SELECT + 6 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - + col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-491
SELECT DISTINCT - col0 + col2 + 74 * col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-34
37
59
skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - col0 + col2 + 74 * col2 / + col1 AS col0 FROM tab0 AS cor0
----
-34
37
59
query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab0
----
44
44
44
query I rowsort
SELECT ALL - 54 * col2 * - col0 AS col1 FROM tab2
----
10206
109512
162108
query I rowsort
SELECT ALL tab0.col1 + + col2 * col2 - col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL tab0.col1 * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col1 * col2 + ( col1 * col1 ) + + col0 AS col2 FROM tab0 cor0
----
10258
15832
9541
query I rowsort
SELECT 84 AS col1 FROM tab0 cor0
----
84
84
84
query I rowsort
SELECT col0 AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT DISTINCT col2 + col2 * col1 - + tab2.col1 DIV + col1 FROM tab2
----
1559
683
863
skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT col2 + col2 * col1 - + tab2.col1 / + col1 FROM tab2
----
1559
683
863
query I rowsort
SELECT + 36 + col1 - col2 AS col1 FROM tab1 AS cor0
----
-11
-47
8
query I rowsort
SELECT DISTINCT - ( 88 ) * col0 + - 90 * col0 AS col0 FROM tab2
----
-1246
-13884
-14062
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL - 86 + 19 FROM tab1
----
-67
-67
-67
query I rowsort
SELECT DISTINCT - col0 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT cor0.col2 - - 4 AS col1 FROM tab0 cor0
----
37
5
86
query I rowsort
SELECT - 91 AS col0 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab1 cor0
----
93
query I rowsort
SELECT ALL 92 AS col0 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT + 77 - - col1 * + col2 AS col2 FROM tab2 cor0
----
1611
723
914
query I rowsort
SELECT ALL - ( col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - ( + col1 * col1 ) + 74 * col2 AS col2 FROM tab2
----
-1557
1037
2523
query I rowsort
SELECT ALL + - 61 FROM tab2 cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT - 81 + - col0 AS col1 FROM tab2 AS cor0
----
-159
-160
-88
query I rowsort
SELECT ALL + - 76 AS col2 FROM tab0 cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + + col0 * col0 * col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT DISTINCT + + col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 + - cor0.col0 col0 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT + col2 DIV + col0 + + ( col2 ) * col2 FROM tab0 cor0
----
1
1090
6724
skipif mysql # not compatible
query I rowsort label-521
SELECT + col2 / + col0 + + ( col2 ) * col2 FROM tab0 cor0
----
1
1090
6724
query I rowsort
SELECT 25 * cor0.col1 + - cor0.col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT ALL + - 75 AS col2 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT DISTINCT + - cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + cor0.col0 * + col2 * + col2 - - ( 35 ) FROM tab1 AS cor0
----
207981
737328
8809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col0 * col0 - + 34 AS col0 FROM tab2 AS cor0
----
15
6050
6207
query I rowsort
SELECT ALL - ( 57 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT ALL 98 + + col2 AS col0 FROM tab2
----
124
125
136
query I rowsort
SELECT ALL ( col1 * col0 ) + - tab2.col1 * col2 FROM tab2
----
-620
3068
697
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
1690
1733
4157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * col1 col0 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL + col1 + - col1 * col0 + - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-4726
-61
-7427
query I rowsort
SELECT 23 * col0 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT DISTINCT + - col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 88 * col0 + col1 * - col0 FROM tab0 cor0
----
-15931
-4176
-6475
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT DISTINCT col1 DIV + col1 col2 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT col1 / + col1 col2 FROM tab2 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT DISTINCT + col2 DIV ( + ( cor0.col0 ) ) + 34 col1 FROM tab1 cor0
----
34
35
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + col2 / ( + ( cor0.col0 ) ) + 34 col1 FROM tab1 cor0
----
34
35
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT - - cor0.col2 DIV col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-540
SELECT - - cor0.col2 / col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT ALL + col2 + + 66 DIV - 12 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2092
3391
8176
skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + col2 + + 66 / - 12 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2092
3391
8176
query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col2 * + col1 * + col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT + col2 + col0 DIV - col0 col1 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-549
SELECT + col2 + col0 / - col0 col1 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-550
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - - col1 * + 73 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 * 92 * + col0 FROM tab1 AS cor0
----
-14904
-335616
-706560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT DISTINCT - col2 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - col2 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT - + col2 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-558
SELECT - + col2 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col0 * 35 AS col1 FROM tab1 cor0
----
105
2240
2800
onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT DISTINCT col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT col2 + col0 + + col1 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + 56 * col0 AS col1 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT 11 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * 94 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT 7 * col2 AS col0 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT ALL col2 * 76 FROM tab2
----
1976
2052
2888
query I rowsort
SELECT - tab0.col0 + - 77 AS col2 FROM tab0
----
-101
-112
-166
query I rowsort
SELECT - - 46 FROM tab2 AS cor0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col0 col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT ALL + - CAST( + col1 AS SIGNED ) + + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930
skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + - CAST ( + col1 AS INTEGER ) + + cor0.col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT col1 DIV col1 AS col2 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT col1 / col1 AS col2 FROM tab2
----
1
query I rowsort
SELECT tab0.col0 AS col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + 0 * 67 col2 FROM tab1
----
3
64
80
query I rowsort
SELECT + col1 + + col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT 1 + - 85 * col0 DIV + 23 AS col0 FROM tab0 AS cor0
----
-128
-327
-87
skipif mysql # not compatible
query I rowsort label-579
SELECT 1 + - 85 * col0 / + 23 AS col0 FROM tab0 AS cor0
----
-128
-327
-87
query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT - 30 * cor0.col0 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
30
30
30
skipif mysql # not compatible
query I rowsort label-581
SELECT - 30 * cor0.col0 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT + col0 - + col0 DIV + col2 AS col1 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-582
SELECT + col0 - + col0 / + col2 AS col1 FROM tab0
----
0
24
88
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT - ( col1 ) * + col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT 28 DIV + col0 FROM tab1
----
0
0
9
skipif mysql # not compatible
query I rowsort label-585
SELECT 28 / + col0 FROM tab1
----
0
0
9
query I rowsort
SELECT DISTINCT col2 + ( col0 ) AS col1 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT - col1 + - col1 DIV + col2 AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-587
SELECT - col1 + - col1 / + col2 AS col1 FROM tab1
----
-10
-13
-26
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 cor0
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT DISTINCT ( cor1.col1 ) * - cor0.col1 + 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dc9310f30028539345f6825721cfd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT DISTINCT col0 DIV col1 + + col1 * + col2 FROM tab2
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT col0 / col1 + + col1 * + col2 FROM tab2
----
1535
650
837
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT - col1 + + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT + - 16 * 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1568
query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - 20 + - 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2415a631ce8606b8e4cce4f738cdf609
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT ALL col1 DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-601
SELECT ALL col1 / col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT + ( + 66 ) FROM tab1, tab2 AS cor0
----
66
query I rowsort
SELECT ALL - col2 + 18 FROM tab0 AS cor0
----
-15
-64
17
query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col0 + + cor0.col0 * 89 AS col1 FROM tab2 cor0
----
616
6864
6952
query I rowsort
SELECT + - col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - col1 + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT cor0.col2 + 91 * cor0.col1 + 75 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1d936ecd6d61e6e8d08b7714ba2298b0
onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT ALL col1 DIV col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-610
SELECT ALL col1 / col0 AS col1 FROM tab2
----
0
0
4
query I rowsort
SELECT + - 72 AS col2 FROM tab2 AS cor0
----
-72
-72
-72
query I rowsort
SELECT ALL cor0.col2 + + 23 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b54cd7e99676953f35cce80f6ec3c34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col0 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT 74 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab1 AS cor0
----
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab2.col1 ) col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL + col1 + col2 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT DISTINCT + col1 + + col2 * - CAST( NULL AS DECIMAL ) + col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + col1 + + col2 * - CAST ( NULL AS REAL ) + col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL tab2.col0 + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + col2 * + 29 AS col0 FROM tab0
----
2378
29
957
query I rowsort
SELECT - col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col1 * - 66 FROM tab1 AS cor0
----
1716
660
858
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT ( cor1.col0 ) + + ( cor1.col0 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c6e84d7f635ba3a028c9a60b14e4bac
query I rowsort
SELECT - col0 * col0 * col1 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + col0 - - ( + 77 ) FROM tab2 AS cor0
----
155
156
84
query I rowsort
SELECT - 77 * col0 * + col0 FROM tab1 AS cor0
----
-315392
-492800
-693
query I rowsort
SELECT + col1 * - col1 * col1 + col0 FROM tab1 cor0
----
-17573
-2117
-936
query I rowsort
SELECT + col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL tab2.col2 * 19 FROM tab2
----
494
513
722
query I rowsort
SELECT DISTINCT cor0.col2 + - 32 FROM tab2 AS cor0
----
-5
-6
6
query I rowsort
SELECT 61 * col0 FROM tab1 AS cor0
----
183
3904
4880
query I rowsort
SELECT ALL + - 95 AS col1 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT 41 FROM tab2 AS cor0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - col1 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 39 FROM tab2, tab1 AS cor0
----
39
query I rowsort
SELECT 61 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT col2 * + col2 + col0 AS col2 FROM tab1 cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) - col1 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT 18 AS col0 FROM tab2 AS cor0
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT col1 DIV + 4 FROM tab1
----
2
3
6
skipif mysql # not compatible
query I rowsort label-652
SELECT col1 / + 4 FROM tab1
----
2
3
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab2.col0 - col0 col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - 68 - - col2 FROM tab2
----
-30
-41
-42
query I rowsort
SELECT DISTINCT tab0.col2 * col0 + tab0.col2 - col1 AS col2 FROM tab0
----
-61
7289
739
query I rowsort
SELECT ALL col1 - - col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT + 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ( col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + 69 * col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT 10 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT cor1.col0 * + 27 FROM tab2, tab1 AS cor0, tab1 cor1
----
1728
2160
81
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 * + cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + col1 col2 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT DISTINCT + 2 * + col0 + - col0 DIV 19 + col0 AS col0 FROM tab0 AS cor0
----
104
263
71
skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT + 2 * + col0 + - col0 / 19 + col0 AS col0 FROM tab0 AS cor0
----
104
263
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - 8 * col0 * - col0 + 71 FROM tab1 AS cor0
----
143
32839
51271
query I rowsort
SELECT ALL - col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - 72 + - cor0.col2 FROM tab2 AS cor0
----
-110
-98
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT + col2 + - col1 + 52 DIV 69 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-674
SELECT + col2 + - col1 + 52 / 69 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 79 FROM tab1 AS cor0
----
79
query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab1 cor0
----
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT + 61 DIV + col0 AS col2 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-678
SELECT + 61 / + col0 AS col2 FROM tab0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-679
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-679
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 69 * - 66 * tab1.col1 FROM tab1
----
-118404
-45540
-59202
query I rowsort
SELECT DISTINCT 28 - col0 AS col0 FROM tab0
----
-61
-7
4
query I rowsort
SELECT ALL + col2 + + col1 * - 29 FROM tab2 AS cor0
----
-1685
-455
-872
onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT DISTINCT + col0 DIV + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + col0 / + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - ( - col1 ) FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 * - 97 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT + col1 + - 57 AS col2 FROM tab2 AS cor0
----
-26
-40
2
query I rowsort
SELECT + col1 + ( - col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col2 * + 45 FROM tab0 AS cor0
----
-1485
-3690
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-695
SELECT ALL + + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + 73 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT + cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-699
SELECT + col2 + CAST( NULL AS DECIMAL ) + - 15 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-699
SELECT + col2 + CAST ( NULL AS REAL ) + - 15 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 14 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-701
SELECT ALL - - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + 13 FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT ALL - - ( cor0.col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab2
----
-289
-3481
-961
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - 18 + - 42 FROM tab2, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT cor0.col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-709
SELECT ALL - cor0.col1 * + col1 + + col1 * col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-709
SELECT ALL - cor0.col1 * + col1 + + col1 * col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-710
SELECT ALL + cor0.col1 + - CAST( + col0 * col0 + ( 29 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1157
-519
-7859
skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + cor0.col1 + - CAST ( + col0 * col0 + ( 29 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1157
-519
-7859
query I rowsort
SELECT - + col0 * 32 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + 30 FROM tab2
----
30
query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT ALL - cor0.col1 DIV 66 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - cor0.col1 / 66 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT - col0 * 73 DIV ( - col2 ) FROM tab0 AS cor0
----
2555
53
79
skipif mysql # not compatible
query I rowsort label-716
SELECT - col0 * 73 / ( - col2 ) FROM tab0 AS cor0
----
2555
53
79
query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 * - 99 + + col0 - + col0 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT - 71 + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dbd96dc8312072e1bad27035708ab47
query I rowsort
SELECT - col1 * 71 + + col0 AS col0 FROM tab1 AS cor0
----
-1843
-646
-843
onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT ALL + + col0 * 48 + - cor0.col2 DIV col0 + col1 FROM tab2 cor0
----
364
3803
3809
skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + + col0 * 48 + - cor0.col2 / col0 + col1 FROM tab2 cor0
----
364
3803
3809
query I rowsort
SELECT DISTINCT + cor0.col1 + ( - col0 + - col2 ) AS col0 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT - col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - - cor0.col1 * + ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-725
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-725
SELECT ALL + col0 * CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT ALL - cor0.col1 + col0 DIV col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - cor0.col1 + col0 / col1 FROM tab2 AS cor0
----
-13
-31
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-727
SELECT col1 + 22 DIV col2 AS col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-727
SELECT col1 + 22 / col2 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * - ( - col0 ) AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col1 * 18 + col1 AS col1 FROM tab2 AS cor0
----
1121
323
589
onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT - col0 DIV - cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-731
SELECT - col0 / - cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT ALL + col2 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + 76 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-735
SELECT ALL + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-736
SELECT CAST( - 93 AS SIGNED ) FROM tab2
----
-93
-93
-93
skipif mysql # not compatible
query I rowsort label-736
SELECT CAST ( - 93 AS INTEGER ) FROM tab2
----
-93
-93
-93
query I rowsort
SELECT ALL - col1 * + col2 * - col1 AS col1 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT - 95 * + col2 FROM tab1 AS cor0
----
-5130
-5415
-9120
query I rowsort
SELECT ALL - - col2 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - ( - 9 ) AS col0 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT - col0 * 88 FROM tab1 cor0
----
-264
-5632
-7040
query I rowsort
SELECT - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 27 AS col2 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT + col0 + + 68 FROM tab0 AS cor0
----
103
157
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-747
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col1 * ( - col2 ) + 71 * cor0.col1 FROM tab1 AS cor0
----
-325
140
442
query I rowsort
SELECT - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - 78 * - cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT ALL - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT 57 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-754
SELECT ALL 94 - col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-5990
-6147
45
skipif mysql # not compatible
query I rowsort label-754
SELECT ALL 94 - col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-5990
-6147
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 44 col2 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT - 77 * col0 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT + col2 + - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT DISTINCT col1 - col0 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT DISTINCT cor0.col0 + + cor0.col2 + CAST( NULL AS SIGNED ) * + col2 * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT cor0.col0 + + cor0.col2 + CAST ( NULL AS INTEGER ) * + col2 * col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * col0 - - 70 AS col2 FROM tab2 AS cor0
----
-6014
-6171
21
query I rowsort
SELECT ALL col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + 96 * cor0.col2 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT col1 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + 6 * col2 AS col1 FROM tab2 cor0
----
156
162
228
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 * col1 + - ( + 11 ) * + col0 col0 FROM tab1 AS cor0
----
-364
-438
851
query I rowsort
SELECT DISTINCT - 95 FROM tab1 AS cor0
----
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * col2 col1 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL + ( + col0 ) DIV + 36 AS col0 FROM tab0 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + ( + col0 ) / + 36 AS col0 FROM tab0 cor0
----
0
0
2
query I rowsort
SELECT ALL - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 * - col2 + - 69 AS col1 FROM tab1 AS cor0
----
-2985
-3318
-9285
onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT + col1 + + col1 DIV ( 45 ) FROM tab0 cor0
----
87
93
99
skipif mysql # not compatible
query I rowsort label-775
SELECT + col1 + + col1 / ( 45 ) FROM tab0 cor0
----
87
93
99
query I rowsort
SELECT col1 + col0 + - col1 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 13 + col1 FROM tab2 AS cor0
----
18
4
46
query I rowsort
SELECT + ( + col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT + col0 DIV + 63 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-782
SELECT + col0 / + 63 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + 21 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT ALL col0 * 36 + + col2 DIV - 90 AS col1 FROM tab0 AS cor0
----
1260
3204
864
skipif mysql # not compatible
query I rowsort label-785
SELECT ALL col0 * 36 + + col2 / - 90 AS col1 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) * + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 * col0 + + cor0.col1 AS col2 FROM tab0 cor0
----
-1128
-490
-7830
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 DISTINCT + col1 * + 37 AS col1 FROM tab0 AS cor0
----
3182
3367
3589
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT DISTINCT + 20 * + col2 FROM tab1 AS cor0
----
1080
1140
1920
query I rowsort
SELECT - 93 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT col2 * - 99 + col0 + - col1 AS col1 FROM tab2
----
-2555
-2697
-3700
query I rowsort
SELECT ALL col1 + tab0.col0 * 52 + - col2 * + col2 FROM tab0
----
-2005
1916
245
query I rowsort
SELECT DISTINCT col1 * + 64 + 74 FROM tab2
----
1162
2058
3850
query I rowsort
SELECT DISTINCT 90 * tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
1530
2790
5310
query I rowsort
SELECT col2 + col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT + col2 * + 41 FROM tab1
----
2214
2337
3936
query I rowsort
SELECT ALL 58 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL 81 * 3 + + col2 * 60 FROM tab0
----
2223
303
5163
query I rowsort
SELECT DISTINCT - 85 + + 75 + col1 AS col0 FROM tab1
----
0
16
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT ALL + tab1.col1 * col0 + - col1 DIV + col2 col1 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + tab1.col1 * col0 + - col1 / + col2 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + ( col0 * + tab0.col1 ) AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 + - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 98 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-806
SELECT ALL + 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-806
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - col2 * - ( col2 * col1 ) FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - ( cor0.col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 78 FROM tab1
----
-78
query I rowsort
SELECT ( ( + col2 ) + - col1 ) FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-812
SELECT DISTINCT ( col1 ) DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT ( col1 ) / col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 87 + cor0.col1 col2 FROM tab1 AS cor0
----
116
161
180
query I rowsort
SELECT - col0 + + col2 - col1 AS col0 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT - + col1 * - 15 + + col1 + col0 AS col1 FROM tab2 AS cor0
----
1022
351
503
query I rowsort
SELECT - cor0.col0 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT + + col0 * col1 + + col0 + col1 * col0 FROM tab2 AS cor0
----
2765
441
9282
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col2 col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - - col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 + - cor0.col0 * + 28 AS col1 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT ALL - col2 * 71 AS col0 FROM tab2 AS cor0
----
-1846
-1917
-2698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT ALL - col0 * CAST( 94 + + col1 AS SIGNED ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
1498315
371520
648445
skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - col0 * CAST ( 94 + + col1 AS INTEGER ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
1498315
371520
648445
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col2 - - 41 AS col0 FROM tab1 cor0
----
137
95
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-826
SELECT col1 * CAST( NULL AS SIGNED ) * col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-826
SELECT col1 * CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + col1 + 64 AS col1 FROM tab1 AS cor0
----
138
157
93
query I rowsort
SELECT DISTINCT col0 * 48 AS col0 FROM tab2 AS cor0
----
336
3744
3792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + - col1 + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 32 * - 2 FROM tab0 cor0
----
-64
-64
-64
query I rowsort
SELECT ALL + 56 + 73 * + col2 AS col1 FROM tab2 AS cor0
----
1954
2027
2830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + 85 * + 12 * - cor0.col0 + col2 * - col2 * - col1 FROM tab2 AS cor0
----
-39676
-56032
15459
query I rowsort
SELECT - col0 + + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * col0 * col2 FROM tab0
----
3395
664118
68112
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col2 * - col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-841
SELECT - cor1.col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-841
SELECT - cor1.col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL ( col0 * - col1 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL 63 AS col1 FROM tab2
----
63
63
63
query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab2
----
-60
query I rowsort
SELECT ALL 65 * + col0 AS col0 FROM tab1
----
195
4160
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT ALL + col2 DIV - col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + col2 / - col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + ( - col2 ) * col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 4 AS col1 FROM tab1
----
4
4
4
query I rowsort
SELECT ALL cor0.col2 * 61 FROM tab0, tab1 AS cor0
----
9 values hashing to 4e743e0f52fe290648d09d671bc05229
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT tab0.col2 DIV col1 + col2 * + col2 FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-852
SELECT tab0.col2 / col1 + col2 * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 * - col2 - + col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT ALL - 52 AS col0 FROM tab0
----
-52
-52
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - col1 + + col2 * + col0 * tab0.col1 AS col0 FROM tab0
----
3298
664027
68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col2 + cor0.col0 col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col0 * col0 * - col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
233415
432
614304
query I rowsort
SELECT col2 * - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - + cor0.col2 * + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT ALL - col0 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - col0 + col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT ALL + 27 + - col1 AS col0 FROM tab2
----
-32
-4
10
query I rowsort
SELECT + col1 * col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 72 FROM tab0
----
-72
-72
-72
query I rowsort
SELECT ALL + ( col1 ) * + col0 + tab2.col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT 0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - - 79 + + col0 FROM tab0 AS cor0
----
103
114
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - ( col1 + + tab1.col0 ) FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - 96 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col2 FROM tab0 cor0
----
2
62
query I rowsort
SELECT + - 41 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL ( - col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 77 * cor0.col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - 61 AS col1 FROM tab0 cor0
----
-61
-61
-61
query I rowsort
SELECT + ( col1 ) + + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL 3 FROM tab2
----
3
3
3
query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2, tab2 AS cor0
----
10
query I rowsort
SELECT DISTINCT - + col0 + + col2 * cor0.col0 * - col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL - - col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT ALL col2 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-891
SELECT ALL col2 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + 27 + - cor0.col2 FROM tab0 AS cor0
----
-55
-6
26
query I rowsort
SELECT ALL 46 AS col1 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - - col0 * col2 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - col2 * col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL + + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 + + ( col2 + col1 ) AS col1 FROM tab1 AS cor0
----
143
4220
6605
query I rowsort
SELECT ALL - col0 + + col0 + cor0.col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT DISTINCT - - col1 + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - - col1 + col2 / col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - + 50 FROM tab2 AS cor0
----
-50
query I rowsort
SELECT DISTINCT + 84 FROM tab0 cor0
----
84
query I rowsort
SELECT ALL ( - 85 ) AS col0 FROM tab2 AS cor0
----
-85
-85
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT + ( - col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 42 * col1 AS col1 FROM tab2
----
1302
2478
714
query I rowsort
SELECT 50 + ( col1 ) * 35 FROM tab1
----
400
505
960
query I rowsort
SELECT DISTINCT 34 * tab1.col1 AS col1 FROM tab1
----
340
442
884
query I rowsort
SELECT 31 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL col2 * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT col2 + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + ( col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT 12 + + col0 * col0 FROM tab1
----
21
4108
6412
query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL ( + 54 ) FROM tab1
----
54
54
54
query I rowsort
SELECT tab0.col2 * - 84 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 647eca340bdd20f8f3398e65624af952
query I rowsort
SELECT ALL - col2 * + col1 + - 20 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1464
-1850
-2848
query I rowsort
SELECT col2 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col1 + 70 FROM tab2 AS cor0
----
101
129
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-922
SELECT DISTINCT + col2 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-924
SELECT ALL col0 + - col1 * col2 * col2 + + ( - col2 ) * + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-924
SELECT ALL col0 + - col1 * col2 * col2 + + ( - col2 ) * + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * - cor0.col1 + col0 AS col1 FROM tab1 cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - col1 + 13 col2 FROM tab0
----
-49
719
7220
query I rowsort
SELECT ALL + col1 * col0 + - col2 * + col2 * + col0 AS col0 FROM tab0
----
-24072
-590337
3360
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
24
35
89
query I rowsort
SELECT - tab2.col2 + + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - + col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col0 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col1 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col0 * - col0 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1226
-14645
-1665
query I rowsort
SELECT ALL + cor0.col2 * - ( col1 * - col2 ) FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + col2 * col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT DISTINCT + col0 DIV 24 FROM tab0 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + col0 / 24 FROM tab0 AS cor0
----
1
3
query I rowsort
SELECT DISTINCT col1 + ( cor0.col1 + col2 ) * col0 AS col1 FROM tab2 AS cor0
----
4362
437
6689
onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT + col1 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-940
SELECT + col1 / ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + cor0.col2 * ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col2 + + 90 * + col0 AS col2 FROM tab1 AS cor0
----
324
5817
7296
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col2 * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT - col2 * ( + col1 ) + - col0 DIV ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-945
SELECT - col2 * ( + col1 ) + - col0 / ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-946
SELECT ALL + col2 DIV + cor0.col0 col0 FROM tab1 cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + col2 / + cor0.col0 col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT + - ( col0 ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - ( + 32 ) * col1 AS col0 FROM tab2
----
-1810
-465
-985
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab1, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 84 * + 55 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b5bc5325086de9ee245d0162c7a67c3c
query I rowsort
SELECT + col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col2 - 34 FROM tab0 AS cor0
----
-116
-35
-67
query I rowsort
SELECT + 65 AS col0 FROM tab1 cor0
----
65
65
65
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-957
SELECT ALL CAST( - 59 AS SIGNED ) + col0 * col0 FROM tab0 AS cor0
----
1166
517
7862
skipif mysql # not compatible
query I rowsort label-957
SELECT ALL CAST ( - 59 AS INTEGER ) + col0 * col0 FROM tab0 AS cor0
----
1166
517
7862
query I rowsort
SELECT 35 * - col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT DISTINCT + CAST( 78 AS SIGNED ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
78
skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT + CAST ( 78 AS INTEGER ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
78
query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 55 AS col1 FROM tab0
----
55
55
55
query I rowsort
SELECT - 10 + col2 AS col0 FROM tab1 AS cor0
----
44
47
86
query I rowsort
SELECT - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - - 96 * + col0 AS col0 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT + - 49 FROM tab0 AS cor0
----
-49
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-967
SELECT DISTINCT + 44 * col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + 44 * col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT cor0.col0 - + cor0.col2 * 77 * + col2 AS col2 FROM tab0 AS cor0
----
-42
-517659
-83829
query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col0 col1 FROM tab1
----
128
160
6
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-973
SELECT DISTINCT col2 * col0 + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT col2 * col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * + col0 - - 77 AS col2 FROM tab2 AS cor0
----
1420
294
4679
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT DISTINCT ( - col0 ) * col1 * + col1 + + col1 * ( + col1 ) DIV col1 FROM tab1 cor0
----
-13507
-2002
-6390
skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT ( - col0 ) * col1 * + col1 + + col1 * ( + col1 ) / col1 FROM tab1 cor0
----
-13507
-2002
-6390
query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - + col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - + ( - col2 ) AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-981
SELECT + col0 * - ( cor0.col1 ) + col0 DIV 26 FROM tab0 AS cor0
----
-2064
-3394
-8096
skipif mysql # not compatible
query I rowsort label-981
SELECT + col0 * - ( cor0.col1 ) + col0 / 26 FROM tab0 AS cor0
----
-2064
-3394
-8096
query I rowsort
SELECT - col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT + 73 * + col2 + col2 + + col2 AS col2 FROM tab2
----
1950
2025
2850
query I rowsort
SELECT - + tab1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT DISTINCT 28 FROM tab1
----
28
query I rowsort
SELECT 86 * col2 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT + col1 + + 0 * 48 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + - col2 * 50 AS col0 FROM tab2 cor0
----
-1300
-1350
-1900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-993
SELECT DISTINCT - + col0 + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - + col0 + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 90 AS col0 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT - - col2 * ( + 51 ) + cor0.col0 FROM tab2 AS cor0
----
1384
1404
2017
query I rowsort
SELECT + cor2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT + + col1 * 84 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT + - ( 15 ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT + cor0.col2 * 26 AS col0 FROM tab0 cor0
----
2132
26
858
query I rowsort
SELECT + 73 + + col1 * cor0.col2 FROM tab2 cor0
----
1607
719
910
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT + 96 DIV + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
skipif mysql # not compatible
query I rowsort label-1003
SELECT + 96 / + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
query I rowsort
SELECT DISTINCT + col1 * + col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT + col0 + 64 AS col2 FROM tab1 AS cor0
----
128
144
67
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - + col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 + col0 * 78 AS col2 FROM tab1 AS cor0
----
288
5049
6336
query I rowsort
SELECT ALL + cor0.col0 * - col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1010
SELECT ALL - col0 DIV - tab1.col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - col0 / - tab1.col2 FROM tab1
----
0
0
1
query I rowsort
SELECT col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT 33 * + col1 AS col0 FROM tab1
----
330
429
858
query I rowsort
SELECT ALL + 80 FROM tab0
----
80
80
80
query I rowsort
SELECT ALL - - col0 + + col0 * col0 AS col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT + 42 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL + + cor0.col0 + + col1 * + ( col2 ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col0 * - col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL cor0.col1 + col0 * 89 + 36 * + col1 FROM tab0 cor0
----
11288
5318
6704
query I rowsort
SELECT ALL - cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
query I rowsort
SELECT DISTINCT - 59 FROM tab0 AS cor0
----
-59
query I rowsort
SELECT + + col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * - 82 + + col1 FROM tab1 AS cor0
----
-194
-5228
-6534
query I rowsort
SELECT + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT tab0.col0 * col1 * col0 - 95 * col0 * - col2 FROM tab0
----
122150
124776
1414121
query I rowsort
SELECT + 30 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT col1 DIV col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1029
SELECT col1 / col1 FROM tab2 AS cor0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 * 9 FROM tab2
----
63
702
711
onlyif mysql # use DIV operator for integer division
query I rowsort label-1033
SELECT - col2 DIV 17 AS col1 FROM tab0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1033
SELECT - col2 / 17 AS col1 FROM tab0
----
-1
-4
0
query I rowsort
SELECT - 87 + + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT - col2 + - ( + col2 + col0 ) FROM tab0 AS cor0
----
-253
-37
-90
query I rowsort
SELECT ALL - col2 * + 40 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT + col2 * 5 FROM tab2
----
130
135
190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT tab0.col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1038
SELECT tab0.col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + ( - ( col1 ) ) * col2 - - col0 col2 FROM tab1
----
-1155
-1375
-496
query I rowsort
SELECT col2 - 18 FROM tab1
----
36
39
78
query I rowsort
SELECT ALL + 97 + - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 98e3db10c3310dd911275346777771b5
query I rowsort
SELECT - 51 * col2 + + col0 + col1 FROM tab1 AS cor0
----
-2725
-2833
-4803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT DISTINCT - CAST( 88 AS SIGNED ) + - tab2.col1 FROM tab2
----
-105
-119
-147
skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - CAST ( 88 AS INTEGER ) + - tab2.col1 FROM tab2
----
-105
-119
-147
query I rowsort
SELECT ALL 14 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
1204
1274
1358
onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT DISTINCT - ( col1 ) * col0 * col2 + + cor0.col0 DIV - col2 FROM tab1 cor0
----
-36481
-4212
-99840
skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - ( col1 ) * col0 * col2 + + cor0.col0 / - col2 FROM tab1 cor0
----
-36481
-4212
-99840
query I rowsort
SELECT - col2 * 55 - col1 FROM tab2 AS cor0
----
-1489
-1516
-2107
query I rowsort
SELECT DISTINCT col2 + 42 AS col2 FROM tab2 AS cor0
----
68
69
80
query I rowsort
SELECT col2 * + cor0.col1 + col0 AS col0 FROM tab0 cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1049
SELECT ALL + + CAST( + 22 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-16
-4
-5
skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + + CAST ( + 22 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-16
-4
-5
query I rowsort
SELECT col0 + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + ( + col2 ) * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1052
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * 42 col2 FROM tab0 cor0
----
-336
-336
-336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 74 col2 FROM tab1 cor0
----
-48
-61
-64
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col0 FROM tab2
----
-55
-58
-85
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE + col1 + - col0 BETWEEN ( NULL ) AND cor0.col2
----
query I rowsort
SELECT DISTINCT col1 * - col2 * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col0 * tab1.col1 - + col0 AS col0 FROM tab1
----
576
75
960
query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT tab0.col1 + col2 * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col1 * col2 NOT IN ( tab1.col2 * + col0 )
----
query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT ALL + col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = cor0.col1
----
query I rowsort
SELECT DISTINCT - col2 * - col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col2 * col0 AS col1 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col0 )
----
query I rowsort
SELECT col0 + col2 + tab0.col2 FROM tab0
----
253
37
90
query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + tab1.col2 col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT DISTINCT col1 DIV col0 + + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT col1 / col0 + + col0 FROM tab2
----
11
78
79
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT ALL col0 DIV col0 + - col0 * - col1 AS col2 FROM tab2
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL col0 / col0 + - col0 * - col1 AS col2 FROM tab2
----
1344
218
4603
query I rowsort
SELECT - col1 * col0 AS col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT + col1 * col0 + + col1 DIV - col2 FROM tab0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-1081
SELECT + col1 * col0 + + col1 / - col2 FROM tab0
----
2062
3298
8098
query I rowsort
SELECT DISTINCT + tab2.col2 + + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT col2 * + col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col0 - col0 FROM tab1 WHERE NULL NOT IN ( + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + col1 * + col0 col1 FROM tab1
----
4736
7440
87
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL IN ( col2 + - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT col1 DIV tab1.col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1087
SELECT col1 / tab1.col1 FROM tab1
----
1
1
1
query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col2 / + col2 + + col2 * - col1 > col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1089
SELECT + col0 DIV - col0 + + tab0.col1 + + col1 AS col1 FROM tab0
----
171
181
193
skipif mysql # not compatible
query I rowsort label-1089
SELECT + col0 / - col0 + + tab0.col1 + + col1 AS col1 FROM tab0
----
171
181
193
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 - col2 AND NULL
----
query I rowsort
SELECT col0 * + col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col0 * - col0 * cor0.col2 + - col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT + col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT DISTINCT cor0.col2 + - col1 + + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
29
48
84
skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT cor0.col2 + - col1 + + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
29
48
84
query I rowsort
SELECT + col1 * + col0 - + col1 * col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 - + tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 - col2 * - col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col1 - col1 * col1 AS col1 FROM tab2
----
-1922
-578
-6962
query I rowsort
SELECT col0 + tab1.col0 FROM tab1
----
128
160
6
query I rowsort
SELECT - col0 + col0 * + col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT + col1 - col2 * - col0 AS col0 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + cor0.col2 * col0 col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT col0 * + col2 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT col1 * col0 DIV - col0 AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1114
SELECT col1 * col0 / - col0 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + col1 - - col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1116
SELECT DISTINCT col2 - col0 DIV + col1 col2 FROM tab2
----
25
27
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT col2 - col0 / + col1 col2 FROM tab2
----
25
27
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT DISTINCT + col1 DIV + col0 + col2 + - col2 AS col1 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + col1 / + col0 + col2 + - col2 AS col1 FROM tab2
----
0
4
query I rowsort
SELECT tab0.col2 * + col0 * col1 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 * col2 + tab0.col2 + + col0 FROM tab0
----
3431
664289
68169
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT - col0 DIV col0 + col1 + + col1 * col0 col2 FROM tab1
----
103
1052
649
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1121
SELECT - col0 / col0 + col1 + + col1 * col0 col2 FROM tab1
----
103
1052
649
query I rowsort
SELECT col1 + + col1 * - tab2.col1 AS col0 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - tab0.col1 + - col1 * col1 + col2 * - col2 FROM tab0
----
-15096
-8571
-9507
onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT col2 DIV col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1124
SELECT col2 / col0 AS col2 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * - col2 col0 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT + col2 * + tab2.col0 + + col1 DIV - col0 FROM tab2
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-1128
SELECT + col2 * + tab2.col0 + + col1 / - col0 FROM tab2
----
185
2028
3002
query I rowsort
SELECT DISTINCT - col1 + col1 * col0 * + col0 AS col0 FROM tab2
----
106080
1488
358897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 + - col0 AS col0 FROM tab2
----
1302
237
4550
onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT col2 * - col0 DIV tab1.col0 AS col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1132
SELECT col2 * - col0 / tab1.col0 AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - + col0 * col0 - 10 AS col1 FROM tab0 AS cor0
----
-1235
-586
-7931
query I rowsort
SELECT ALL + ( col1 ) + - 53 + 58 * - col2 AS col2 FROM tab2
----
-1502
-1588
-2240
query I rowsort
SELECT + + col1 * - 17 FROM tab1 AS cor0
----
-170
-221
-442
query I rowsort
SELECT col1 - + 88 * col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 31 * col1 FROM tab2
----
1829
527
961
query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col0 * col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col1 + - col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 65 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1145
SELECT + col2 * + CAST( NULL AS SIGNED ) + 79 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-1145
SELECT + col2 * + CAST ( NULL AS INTEGER ) + 79 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT + col1 DIV col0 + + 59 col2 FROM tab1 AS cor0
----
59
59
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1146
SELECT + col1 / col0 + + 59 col2 FROM tab1 AS cor0
----
59
59
67
query I rowsort
SELECT - col0 * - col2 + + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT - 27 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 96d69a44243853624f324b296563e205
onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT DISTINCT + col1 DIV ( 85 ) + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + col1 / ( 85 ) + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT - col2 + 36 AS col1 FROM tab1 AS cor0
----
-18
-21
-60
query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT tab0.col2 * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * - col0 + col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col2 col1 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT tab0.col0 - - tab0.col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 = - col1 + - col2
----
86
91
97
query I rowsort
SELECT col1 * tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT col1 * + col0 AS col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - col1 col0 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT - col1 + col1 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 AND ( col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) <> NULL
----
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + col0 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - cor0.col0 + col1 col1 FROM tab1 cor0
----
188
3658
7693
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT 37 - + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1052
-6687
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1169
SELECT ALL - cor0.col1 * + col0 + + CAST( NULL AS SIGNED ) - - 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - cor0.col1 * + col0 + + CAST ( NULL AS INTEGER ) - - 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
85
query I rowsort
SELECT + - col1 + + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT + 10 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 + + cor0.col0 * col2 * col0 AS col0 FROM tab2 AS cor0
----
1134
156156
234156
query I rowsort
SELECT - 26 AS col2 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL col2 * tab2.col0 FROM tab2 WHERE col2 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT + col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + ( + col0 ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1180
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 + - col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT - col0 * col2 * col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT DISTINCT + ( 45 ) + + col0 DIV 71 AS col1 FROM tab1 AS cor0
----
45
46
skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + ( 45 ) + + col0 / 71 AS col1 FROM tab1 AS cor0
----
45
46
query I rowsort
SELECT ALL - ( - 65 ) + col1 AS col2 FROM tab0 cor0
----
151
156
162
query I rowsort
SELECT + + col1 * 8 + + col2 FROM tab1 AS cor0
----
137
200
262
query I rowsort
SELECT 0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT DISTINCT - + col1 + + col0 * col2 DIV + 74 AS col2 FROM tab1 AS cor0
----
-24
39
90
skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT - + col1 + + col0 * col2 / + 74 AS col2 FROM tab1 AS cor0
----
-24
39
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT ALL - 72 DIV - col0 FROM tab2 cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - 72 / - col0 FROM tab2 cor0
----
0
0
10
query I rowsort
SELECT ALL + col2 * + 67 * col0 + col0 + col2 * 69 FROM tab0
----
2449
494713
55365
query I rowsort
SELECT ALL col0 + + 11 AS col0 FROM tab1
----
14
75
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1191
SELECT DISTINCT CAST( 89 AS SIGNED ) FROM tab2, tab0 AS cor0
----
89
skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT CAST ( 89 AS INTEGER ) FROM tab2, tab0 AS cor0
----
89
query I rowsort
SELECT 52 FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL + 35 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT 11 * col1 FROM tab0
----
1001
1067
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 * col0 col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - ( + col0 ) + col1 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1197
SELECT col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT DISTINCT - - 51 DIV col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT - - 51 / col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + ( - cor0.col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - tab1.col2 + 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f067ceefcbf91cff0d665ad2eee8bb7
query I rowsort
SELECT ALL - 94 * col0 FROM tab0
----
-2256
-3290
-8366
query I rowsort
SELECT DISTINCT + - 65 * 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-6305
query I rowsort
SELECT - 48 - - col1 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT ( + col1 ) * - col2 + col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + col2 + - ( - col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
7
78
79
query I rowsort
SELECT + + cor0.col1 * - col1 + col1 * col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 63 * tab1.col2 * col0 AS col1 FROM tab1
----
10206
229824
483840
query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + col0 + - ( col2 ) FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT ALL + - col1 + ( col1 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + - col1 + ( col1 ) / - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT ALL - col1 DIV col1 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - col1 / col1 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + cor0.col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col0 * col2 - - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT - cor0.col1 - col0 * col0 * col0 AS col0 FROM tab2 cor0
----
-374
-474611
-493056
query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1226
SELECT ALL cor0.col1 - CAST( + ( col1 ) * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL cor0.col1 - CAST ( + ( col1 ) * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - col1 + - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + - 50 + + col1 FROM tab0 AS cor0
----
36
41
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 31 + col2 col0 FROM tab1 AS cor0
----
147
2041
2576
query I rowsort
SELECT DISTINCT - 41 + - col0 FROM tab0 AS cor0
----
-130
-65
-76
query I rowsort
SELECT - 30 + col0 * - col2 FROM tab2 AS cor0
----
-2058
-219
-3032
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-1234
SELECT DISTINCT + col2 DIV ( col1 ) + col2 AS col2 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + col2 / ( col1 ) + col2 AS col2 FROM tab1
----
103
56
62
query I rowsort
SELECT ALL col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1236
SELECT ALL - col1 * - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - col1 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * - ( 22 ) col1 FROM tab2 AS cor0
----
101244
29546
4774
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2 AS cor0
----
58
query I rowsort
SELECT - 71 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT - 73 AS col1 FROM tab1
----
-73
-73
-73
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + ( 49 * col0 + - col1 ) AS col0 FROM tab0
----
1090
1618
4270
query I rowsort
SELECT - 97 * + col0 AS col2 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT DISTINCT - 76 FROM tab2 cor0
----
-76
query I rowsort
SELECT - 18 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + col2 * + col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + 29 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 4ffdaaf27fe62f3aa6cc6bee2d5812a8
query I rowsort
SELECT DISTINCT + + 41 * col1 FROM tab0 AS cor0
----
3526
3731
3977
query I rowsort
SELECT + - 17 * col2 FROM tab2 AS cor0
----
-442
-459
-646
query I rowsort
SELECT ALL + - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1252
SELECT + CAST( cor0.col0 AS SIGNED ) * - tab0.col1 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
243 values hashing to d9694c1172ca3c958d6b7d6ee04cd7a3
skipif mysql # not compatible
query I rowsort label-1252
SELECT + CAST ( cor0.col0 AS INTEGER ) * - tab0.col1 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
243 values hashing to d9694c1172ca3c958d6b7d6ee04cd7a3
query I rowsort
SELECT ALL - col1 - + col1 AS col0 FROM tab0
----
-172
-182
-194
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT + col0 - + tab1.col0 FROM tab1
----
0
query I rowsort
SELECT - tab2.col2 + - col1 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 24 - col2 AS col1 FROM tab1
----
-30
-33
-72
query I rowsort
SELECT ALL col1 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 36 col1 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 * + col1 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col1 * col0 + tab0.col1 AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL tab0.col1 * + col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 49 AS col1 FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT col2 + col1 - col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL col1 * + col2 - col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT DISTINCT - 43 - + col1 AS col2 FROM tab1
----
-53
-56
-69
query I rowsort
SELECT ALL col2 - - tab2.col0 * - tab2.col1 AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - tab2.col2 * - 13 + + col0 FROM tab2
----
358
416
573
query I rowsort
SELECT + col0 * + col0 * + ( cor0.col2 ) + + col2 FROM tab1 AS cor0
----
233529
540
614496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1274
SELECT + - col1 / cor0.col1 + + ( - col0 + cor0.col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1274
SELECT + - col1 / cor0.col1 + + ( - col0 + cor0.col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 42 AS col2 FROM tab1 cor0
----
-42
-42
-42
query I rowsort
SELECT col1 * + col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - col1 * tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT ALL + ( + col2 ) + + cor0.col1 * - 85 AS col1 FROM tab1 AS cor0
----
-1009
-2156
-793
query I rowsort
SELECT ALL + + col2 FROM tab2 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT - CAST( NULL AS SIGNED ) * + col1 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1281
SELECT - CAST ( NULL AS INTEGER ) * + col1 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col2 * + tab1.col2 * - 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 6e83566b035fc64c1adf5a3678447af5
query I rowsort
SELECT DISTINCT + + 31 + - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-131
-3617
-7649
query I rowsort
SELECT DISTINCT - 17 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-17
query I rowsort
SELECT ALL - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 27 * col0 * 69 FROM tab1
----
119232
149040
5589
query I rowsort
SELECT - 18 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT ALL + + cor0.col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1289
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) * 14 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * 14 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT col2 + + col2 * col2 AS col1 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT col0 * 63 AS col2 FROM tab2
----
441
4914
4977
query I rowsort
SELECT ALL - - col0 * cor0.col0 - col0 * col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1295
SELECT cor0.col1 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-1295
SELECT cor0.col1 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT ALL col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1299
SELECT cor0.col0 * CAST( col1 + col2 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
1401127
245616
332710
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1299
SELECT cor0.col0 * CAST ( col1 + col2 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
1401127
245616
332710
query I rowsort
SELECT DISTINCT - col2 + 72 AS col0 FROM tab2 AS cor0
----
34
45
46
query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT - cor2.col0 - 38 FROM tab1, tab0 AS cor0, tab1 cor1, tab1 cor2
----
-102
-118
-41
query I rowsort
SELECT ALL 55 * - col1 - col2 FROM tab1 AS cor0
----
-1484
-607
-811
query I rowsort
SELECT ALL - 45 + col1 * col2 FROM tab1 AS cor0
----
1203
1359
525
query I rowsort
SELECT + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2 AS cor0
----
85
query I rowsort
SELECT - + col1 - - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 21 * col2 - col2 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT + - col2 * + ( - col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT ALL + cor0.col1 DIV + col2 + - cor0.col2 * ( col1 ) FROM tab0 AS cor0
----
-2836
-7461
0
skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + cor0.col1 / + col2 + - cor0.col2 * ( col1 ) FROM tab0 AS cor0
----
-2836
-7461
0
query I rowsort
SELECT + 49 * col1 + + col0 FROM tab1 AS cor0
----
1277
554
717
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT DISTINCT - col2 + 37 DIV col1 FROM tab1 AS cor0
----
-53
-54
-94
skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - col2 + 37 / col1 FROM tab1 AS cor0
----
-53
-54
-94
query I rowsort
SELECT - col1 * + col0 + cor0.col0 * - 96 AS col2 FROM tab2 AS cor0
----
-12090
-889
-8927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 93 + col2 col0 FROM tab1 AS cor0
----
-36
-39
3
query I rowsort
SELECT tab0.col2 * - col2 + 44 AS col0 FROM tab0
----
-1045
-6680
43
query I rowsort
SELECT - tab0.col2 * - col1 + - 99 * - col1 AS col1 FROM tab0
----
11352
16471
9700
query I rowsort
SELECT - + ( col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - ( cor0.col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT + ( + col0 ) + cor0.col0 * 61 AS col1 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT 81 FROM tab2, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL - 82 FROM tab0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col0 + - ( 41 + - cor0.col0 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4013626397bf5e36685d719d5b519de3
query I rowsort
SELECT ( + 45 ) FROM tab2
----
45
45
45
query I rowsort
SELECT + cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 55 FROM tab2, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ( + col1 ) * col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT col0 * - 93 AS col0 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT - cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT ALL - col0 DIV - 71 + + col1 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - col0 / - 71 + + col1 FROM tab0
----
86
92
97
query I rowsort
SELECT ALL + + 45 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-1
query I rowsort
SELECT - + ( col1 ) + - 5 AS col2 FROM tab0 AS cor0
----
-102
-91
-96
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 col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT cor0.col0 * - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab2
----
9
9
9
query I rowsort
SELECT - 44 * + 34 + cor0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 884be824c478d6d34b4a8e288bf6a6e4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col2 AS col0 FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT - + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1345
SELECT - + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + + col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1347
SELECT - col0 * 54 + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-161
-3455
-4319
skipif mysql # not compatible
query I rowsort label-1347
SELECT - col0 * 54 + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
-161
-3455
-4319
query I rowsort
SELECT - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + col2 col1 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( 25 * + col1 ) col0 FROM tab0 AS cor0
----
186550
2425
70950
query I rowsort
SELECT ALL 5 * - col1 FROM tab2
----
-155
-295
-85
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT 14 FROM tab0
----
14
query I rowsort
SELECT + 10 + + col0 * - col2 FROM tab1
----
-152
-3638
-7670
query I rowsort
SELECT 36 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 + - 97 col2 FROM tab1
----
1151
1307
473
query I rowsort
SELECT 67 FROM tab1, tab1 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - tab2.col2 FROM tab2
----
-26
-27
-38
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - - col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT - col2 + ( col2 ) DIV - col1 + + col0 AS col2 FROM tab2 cor0
----
-20
39
52
skipif mysql # not compatible
query I rowsort label-1364
SELECT - col2 + ( col2 ) / - col1 + + col0 AS col2 FROM tab2 cor0
----
-20
39
52
query I rowsort
SELECT ALL + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col0 * ( - col0 * - col0 ) FROM tab0 AS cor0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( 16 ) * col0 col2 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - col1 + cor0.col0 * + 42 FROM tab1 AS cor0
----
100
2678
3347
query I rowsort
SELECT + + col1 + - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col0 + col2 * 46 AS col0 FROM tab1 AS cor0
----
2487
2686
4496
query I rowsort
SELECT ALL - - cor0.col0 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT col1 DIV + col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1374
SELECT col1 / + col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + + 46 + + col1 AS col0 FROM tab1 AS cor0
----
56
59
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT - col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1377
SELECT - col1 / col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 63 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 34 AS col1 FROM tab1
----
34
34
34
query I rowsort
SELECT + 13 AS col1 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT ALL - - cor0.col1 + - cor0.col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT col1 * - cor0.col0 + - ( col1 + + col0 ) FROM tab1 AS cor0
----
-107
-1133
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col0 col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 26 * + col0 FROM tab0
----
2314
624
910
query I rowsort
SELECT ALL 65 + + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e103ff351207331df45167e81121018
query I rowsort
SELECT ( + 66 + - col2 ) AS col0 FROM tab1
----
-30
12
9
query I rowsort
SELECT 1 AS col1 FROM tab0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1391
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT - + col0 + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - col1 + + col2 * + ( 11 ) AS col1 FROM tab0 AS cor0
----
-86
277
811
query I rowsort
SELECT DISTINCT 50 * col2 + 51 FROM tab0
----
101
1701
4151
query I rowsort
SELECT - tab1.col0 + tab1.col1 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2 AS cor0
----
10
13
26
query I rowsort
SELECT - ( cor0.col0 ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 42 + col0 AS col1 FROM tab1 AS cor0
----
-39
22
38
query I rowsort
SELECT cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col0 - - col2 * + col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT col0 * + col0 - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - - col2 + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1407
SELECT + col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL tab0.col2 - col0 * - col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ( - 76 ) + col0 AS col2 FROM tab0 AS cor0
----
-41
-52
13
query I rowsort
SELECT DISTINCT 3 - + cor0.col0 FROM tab0 cor0
----
-21
-32
-86
query I rowsort
SELECT + + 36 FROM tab1 cor0
----
36
36
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1413
SELECT - - CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1413
SELECT - - CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 26 + - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-188
-3674
-7706
query I rowsort
SELECT - 78 AS col1 FROM tab2 AS cor0
----
-78
-78
-78
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ALL - 78 DIV cor0.col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - 78 / cor0.col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + 65 + + col1 FROM tab1
----
75
78
91
query I rowsort
SELECT 80 AS col0 FROM tab2 AS cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT DISTINCT cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT ALL + - 32 * col2 FROM tab1 AS cor0
----
-1728
-1824
-3072
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf
query I rowsort
SELECT ALL 97 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT + + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + 78 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
1
11
skipif mysql # not compatible
query I rowsort label-1430
SELECT + 78 / + col0 AS col0 FROM tab2 AS cor0
----
0
1
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT DISTINCT + col1 DIV col0 FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + col1 / col0 FROM tab1 cor0
----
0
8
query I rowsort
SELECT + + col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 37 * cor0.col0 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT - + col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 96 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT col0 * + 27 AS col1 FROM tab2
----
189
2106
2133
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + + 29 FROM tab0 AS cor0
----
-6
-60
5
query I rowsort
SELECT - + col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT DISTINCT - col2 * - ( col2 ) - - col1 DIV + 8 FROM tab0 AS cor0
----
1099
13
6735
skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - col2 * - ( col2 ) - - col1 / + 8 FROM tab0 AS cor0
----
1099
13
6735
onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT DISTINCT col0 DIV + 5 - - col1 AS col1 FROM tab2 AS cor0
----
32
74
skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT col0 / + 5 - - col1 AS col1 FROM tab2 AS cor0
----
32
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1446
SELECT DISTINCT CAST( 41 AS SIGNED ) * col1 col0 FROM tab1 AS cor0
----
1066
410
533
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT CAST ( 41 AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
1066
410
533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1447
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * col0 AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * col0 AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + 30 * + col2 AS col1 FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT - ( ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 86 * + col1 + col1 - + col0 FROM tab0 AS cor0
----
7458
7828
8404
query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 73 * 50 FROM tab0 AS cor0
----
3650
3650
3650
query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT DISTINCT + col1 * + 38 + - col0 DIV - col1 FROM tab0 cor0
----
3268
3458
3686
skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + col1 * + 38 + - col0 / - col1 FROM tab0 cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT col2 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT - cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 - cor0.col2 * + col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL 29 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT - col0 + 62 FROM tab2
----
-16
-17
55
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 11 * + col0 FROM tab2
----
77
858
869
query I rowsort
SELECT - cor1.col2 * - 75 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to b71f29d713903c700e8fcb7b370e3599
query I rowsort
SELECT ALL + 47 * cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0515330288550c0798d66ea9d72a5c7
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab1, tab2 AS cor0
----
26
27
38
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 ALL ( + cor0.col1 ) + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT ALL - col1 + col1 * col1 + tab0.col1 AS col0 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT ALL + cor0.col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + cor0.col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 * ( - 97 * col1 + col1 ) FROM tab1
----
-61440
-7488
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 * - tab1.col2 + + col1 * - col0 AS col2 FROM tab1
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col1 * + col1 col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT col2 + cor0.col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT tab2.col2 + col2 * + col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT + 27 FROM tab0
----
27
27
27
query I rowsort
SELECT 14 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 63 FROM tab2 cor0
----
63
63
63
query I rowsort
SELECT DISTINCT 38 * - col1 + + col0 * col0 FROM tab0 AS cor0
----
-2461
-2692
4463
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 + col0 + + col0 FROM tab1 AS cor0
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT ALL 4 DIV col1 + - col2 * 51 FROM tab1 AS cor0
----
-2754
-2907
-4896
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 4 / col1 + - col2 * 51 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT 28 FROM tab2 cor0
----
28
query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col1 * + col1 - - col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10
query I rowsort
SELECT - - col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT DISTINCT - col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - col1 / + col0 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL + col0 + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + 13 AS col0 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - + 75 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-18
-21
21
query I rowsort
SELECT + col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 64 * col2 FROM tab1 AS cor0
----
3456
3648
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1506
SELECT - cor0.col1 * col2 DIV 66 AS col0 FROM tab0 AS cor0
----
-1
-113
-43
skipif mysql # not compatible
query I rowsort label-1506
SELECT - cor0.col1 * col2 / 66 AS col0 FROM tab0 AS cor0
----
-1
-113
-43
query I rowsort
SELECT ALL - 35 * col1 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT DISTINCT - 19 FROM tab2 AS cor0
----
-19
query I rowsort
SELECT + ( - col2 ) * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 54 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1514
SELECT + + col0 * + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1514
SELECT + + col0 * + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 41 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - col0 + ( + col2 ) * col1 AS col0 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2
----
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col2 + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1527
SELECT ALL + CAST( NULL AS SIGNED ) + - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + CAST ( NULL AS INTEGER ) + - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 col0 FROM tab0 AS cor0
----
-76
-76
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + ( + col2 ) + col1 FROM tab0 AS cor0
----
195
205
264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT + CAST( col0 AS SIGNED ) + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-1532
SELECT + CAST ( col0 AS INTEGER ) + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + 97 + col1 AS col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT ( + 75 ) + col0 * cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-106022
-1444
-358881
query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab1 AS cor0
----
97
query I rowsort
SELECT - ( + col1 ) + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-148
-159
-93
query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - 28 + col0 FROM tab0 AS cor0
----
117
52
63
query I rowsort
SELECT + col2 * 36 + col0 FROM tab2 cor0
----
1014
1447
979
query I rowsort
SELECT col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 + - col1 * - col0 FROM tab2 cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * col1 + ( - col2 ) col2 FROM tab0 AS cor0
----
2719
2830
3103
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * + col1 - - col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col1 * + col2 - + col0 AS col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ( - col1 ) * + tab0.col2 - 54 * col2 FROM tab0
----
-11890
-151
-4620
onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT ( col0 ) DIV col2 + - 70 * col2 * col2 + 59 * + col1 * - col1 FROM tab1
----
-233329
-244004
-655091
skipif mysql # not compatible
query I rowsort label-1549
SELECT ( col0 ) / col2 + - 70 * col2 * col2 + 59 * + col1 * - col1 FROM tab1
----
-233329
-244004
-655091
query I rowsort
SELECT DISTINCT - 45 * - tab0.col2 - + col2 FROM tab0
----
1452
3608
44
query I rowsort
SELECT + 78 + 14 AS col0 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT ALL + ( - 30 ) FROM tab0 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL - col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT DISTINCT + + ( 0 ) * - col2 * - 9 - col0 DIV + col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + + ( 0 ) * - col2 * - 9 - col0 / + col0 FROM tab1 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT + 72 DIV + col0 - - col2 AS col0 FROM tab0 AS cor0
----
3
36
82
skipif mysql # not compatible
query I rowsort label-1555
SELECT + 72 / + col0 - - col2 AS col0 FROM tab0 AS cor0
----
3
36
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1556
SELECT CAST( - col1 AS SIGNED ) + + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224
skipif mysql # not compatible
query I rowsort label-1556
SELECT CAST ( - col1 AS INTEGER ) + + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab0 AS cor0
----
87
query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col1 + - col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL + 37 + col0 AS col0 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT - - 90 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT ALL - col2 * col2 - ( col0 ) * - col2 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT col2 - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT ALL + + col0 + col2 DIV col0 AS col2 FROM tab2 cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + + col0 + col2 / col0 AS col2 FROM tab2 cor0
----
10
78
79
query I rowsort
SELECT DISTINCT + col1 + col0 * ( - col1 * col0 ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-205
-40886
-83107
query I rowsort
SELECT col1 * 7 FROM tab0
----
602
637
679
query I rowsort
SELECT ( - col0 ) * col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL 84 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1573
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 * + col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 * + col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col1 * + col2 * col2 - - tab2.col0 FROM tab2
----
22606
24627
39962
query I rowsort
SELECT + cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 * - 40 FROM tab1 AS cor0
----
-1998
1368
3840
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col0 * col0 + 55 AS col1 FROM tab0 AS cor0
----
1280
631
7976
query I rowsort
SELECT - ( - cor0.col0 ) + - 71 FROM tab1 AS cor0
----
-68
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1581
SELECT ALL + CAST( - 65 AS SIGNED ) FROM tab1
----
-65
-65
-65
skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + CAST ( - 65 AS INTEGER ) FROM tab1
----
-65
-65
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT - - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1582
SELECT - - col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - col2 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + col2 * - col1 * - col0 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT - - col0 * ( - col0 ) AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT col2 * + 40 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
-145930
-307213
-6506
query I rowsort
SELECT + col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL col0 + - ( + 43 ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT + + col1 - cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1594
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 * cor0.col2 + - col1 / ( col0 ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 * cor0.col2 + - col1 / ( col0 ) AS col2 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1595
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 * + col2 * + ( - col2 * col0 ) FROM tab0
----
-2247696
-3395
-54457676
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT ALL - tab1.col0 * col0 AS col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 - ( ( tab0.col0 ) ) FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1600
SELECT + + 38 * cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
14
34
skipif mysql # not compatible
query I rowsort label-1600
SELECT + + 38 * cor0.col2 / col1 FROM tab0 AS cor0
----
0
14
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT ALL - 0 * col0 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - 0 * col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1603
SELECT ALL - - CAST( NULL AS SIGNED ) + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - - CAST ( NULL AS INTEGER ) + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 82 + col1 FROM tab2 AS cor0
----
-23
-51
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT DISTINCT - cor0.col0 DIV - cor0.col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - cor0.col0 / - cor0.col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL + - 37 * - col1 FROM tab2 AS cor0
----
1147
2183
629
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT + + CAST( NULL AS SIGNED ) * 85 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1607
SELECT + + CAST ( NULL AS INTEGER ) * 85 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + - 20 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ( col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL 71 * - col1 FROM tab2 AS cor0
----
-1207
-2201
-4189
query I rowsort
SELECT DISTINCT - 23 FROM tab2 cor0
----
-23
query I rowsort
SELECT tab2.col2 - - 43 FROM tab2
----
69
70
81
query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + tab2.col2 * col1 col2 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT col0 + - 37 DIV + 68 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1618
SELECT col0 + - 37 / + 68 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col2 * - ( + col1 ) + - col2 * + col2 FROM tab1
----
-10464
-3819
-4320
query I rowsort
SELECT - 37 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT ALL - 8 * - tab0.col1 FROM tab0
----
688
728
776
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT + col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 58 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) * - cor0.col0 + col2 col2 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT 51 AS col0 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col2 * - 87 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT DISTINCT - - 27 * col1 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT - ( ( col2 ) ) * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - ( - col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 * - col2 * 4 AS col1 FROM tab1
----
-11664
-12996
-36864
query I rowsort
SELECT DISTINCT tab0.col2 + col1 AS col1 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1638
SELECT col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1638
SELECT col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - - cor0.col0 + + cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + 8 + + col1 AS col2 FROM tab0
----
105
94
99
query I rowsort
SELECT + col1 + - 25 FROM tab0
----
61
66
72
query I rowsort
SELECT + col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 * col2 * col0 + - cor0.col0 FROM tab1 AS cor0
----
36416
4209
99760
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col1 + - 49 AS col2 FROM tab2
----
-18
-32
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT col0 + - col2 DIV col0 col0 FROM tab1
----
-15
64
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1648
SELECT col0 + - col2 / col0 col0 FROM tab1
----
-15
64
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT ALL tab2.col1 DIV 54 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL tab2.col1 / 54 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT col2 * + ( + ( - col2 ) ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + 37 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT - col1 * + ( - col2 + - col2 ) AS col0 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465
query I rowsort
SELECT col0 + ( - cor0.col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - + col1 * + 63 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT - col1 * + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1657
SELECT - col1 * + 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 ALL - col0 + + col1 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + col2 * - ( col0 ) FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 * col1 FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 + col2 * - col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT DISTINCT - col2 DIV - col2 AS col1 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - col2 / - col2 AS col1 FROM tab1 cor0
----
1
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * + col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) >= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( - col1 * - tab1.col1 - tab1.col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-1681
SELECT DISTINCT - col1 * cor0.col2 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - col1 * cor0.col2 / cor0.col1 AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - tab0.col0 * + col2 + - tab0.col2 + col1 FROM tab0
----
-7289
-739
61
query I rowsort
SELECT 83 FROM tab0
----
83
83
83
query I rowsort
SELECT DISTINCT + col1 + - col1 * col2 + - col2 FROM tab1
----
-1331
-1432
-617
query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL > ( NULL ) AND NULL IN ( col1 * col1 )
----
query I rowsort
SELECT col1 + + col2 * - col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - - col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - - col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col2 + - col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT DISTINCT - col2 DIV + col1 col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - col2 / + col1 col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - tab0.col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT + tab0.col1 AS col2 FROM tab0
----
86
91
97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT - - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1705
SELECT - - col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 > col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 + + tab2.col1 AS col2 FROM tab2
----
55
58
85
query III rowsort
SELECT * FROM tab0 WHERE col2 / + col1 BETWEEN col2 * + col1 * - col0 AND col1 / col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 * + col2 + col1 FROM tab1
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col2 FROM tab1
----
3
64
80
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col0 AND ( NULL )
----
query I rowsort
SELECT ALL col0 + - col0 + 82 AS col0 FROM tab0
----
82
82
82
query I rowsort
SELECT DISTINCT + 31 * - col0 AS col1 FROM tab2
----
-217
-2418
-2449
query I rowsort
SELECT DISTINCT col1 * + col2 * col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col1 * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - - col2 + col1 * col1 + 24 FROM tab1 AS cor0
----
181
289
754
query I rowsort
SELECT - - col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + tab1.col2 FROM tab1 WHERE - col2 NOT IN ( col1 / col1 )
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT - col0 DIV col1 + + col2 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1719
SELECT - col0 / col1 + + col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab0
----
0
query I rowsort
SELECT + tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * + col1 - col0 * + tab1.col0 AS col0 FROM tab1
----
-3526
-5152
1395
onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT ALL + col2 DIV + col1 + + col0 AS col0 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + col2 / + col1 + + col0 AS col0 FROM tab1
----
5
69
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT ALL - col1 DIV col2 + - col0 * col0 AS col1 FROM tab0
----
-1322
-578
-7922
skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - col1 / col2 + - col0 * col0 AS col1 FROM tab0
----
-1322
-578
-7922
query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col1 * tab2.col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 * + cor0.col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT DISTINCT - col1 + col1 DIV + col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - col1 + col1 / + col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col1 * - cor0.col1 + col0 col0 FROM tab1 AS cor0
----
-13440
-2025
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 * - col2 + col0 * + col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT ALL + col1 DIV col1 + col0 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + col1 / col1 + col0 AS col1 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT col1 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 + - col1 AS col2 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT DISTINCT - col2 DIV + col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - col2 / + col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT col0 * tab2.col0 + - col2 * col0 + + tab2.col1 AS col0 FROM tab2
----
-109
3256
4115
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT ALL - col1 * col2 + - col0 * - col1 + + col2 DIV - col1 AS col2 FROM tab2
----
-620
3068
695
skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - col1 * col2 + - col0 * - col1 + + col2 / - col1 AS col2 FROM tab2
----
-620
3068
695
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - col1 )
----
query I rowsort
SELECT col0 * col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT col1 * + col1 * + col0 AS col0 FROM tab1
----
13520
2028
6400
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) <= NULL
----
query I rowsort
SELECT - col0 * col0 * col1 + + col2 + - col2 * + col0 FROM tab1
----
-342
-44551
-90784
query I rowsort
SELECT col1 * - tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1750
SELECT ALL col1 DIV + tab2.col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL col1 / + tab2.col1 FROM tab2
----
1
1
1
query I rowsort
SELECT - col2 * col2 + tab0.col1 + col0 FROM tab0
----
-6544
-979
131
onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT col1 / col1 AS col0 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 * + col0 col2 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col2 * col2 )
----
query I rowsort
SELECT DISTINCT + col1 * - col0 * + col2 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 + + col1 FROM tab0
----
193
2891
7471
query I rowsort
SELECT + col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col2 * - col2 + + col0 + tab0.col1 FROM tab0
----
1199
133
6904
query I rowsort
SELECT DISTINCT col2 * tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + tab1.col0 * + col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 * + col0 FROM tab2
----
49
6084
6241
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND col0 + col2
----
query I rowsort
SELECT ALL tab0.col2 + - col2 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * - tab2.col2 AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col0 + tab0.col1 col1 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT col1 DIV col1 + - col2 - - col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1766
SELECT col1 / col1 + - col2 - - col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL + tab1.col1 * + col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 86 AS col0 FROM tab1
----
86
86
86
query I rowsort
SELECT + cor0.col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab0 AS cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT tab2.col1 - - col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT col1 + col0 * - ( + 14 ) AS col0 FROM tab0
----
-1155
-250
-393
query I rowsort
SELECT ALL - - col1 - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + - col0 + col1 * - 28 FROM tab2 AS cor0
----
-1730
-555
-875
query I rowsort
SELECT ALL - - cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - + col1 AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL - col1 + ( + col0 ) * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - - cor0.col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT - + col2 DIV + 59 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1780
SELECT - + col2 / + 59 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 * + 22 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT ALL col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col0 * - 30 FROM tab0 AS cor0
----
1050
2670
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT + col1 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-1786
SELECT + col1 * col1 / col2 AS col0 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 * - 2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + + col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1790
SELECT + cor0.col2 / - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - - col2 * + 5 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT + 60 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT - 90 AS col0 FROM tab0 AS cor0
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1794
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1794
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT - - CAST( cor0.col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-1795
SELECT - - CAST ( cor0.col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ( col2 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + col0 * 29 FROM tab0 AS cor0
----
1015
2581
696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT - + CAST( NULL AS SIGNED ) + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CAST ( NULL AS INTEGER ) + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - + col0 + col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 - - col2 col2 FROM tab2 cor0
----
-6
-7
5
query I rowsort
SELECT - + 83 * + col2 AS col2 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT ALL col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * - col0 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT ALL + 31 + col0 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT DISTINCT col2 - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + 15 AS col2 FROM tab1
----
15
15
15
query I rowsort
SELECT + ( - tab2.col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
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 ALL col0 * + col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 * + col2 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - - col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 81 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - - col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0
----
-35
query I rowsort
SELECT ALL + 67 AS col1 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT + cor0.col2 * col0 + 55 FROM tab0 AS cor0
----
7353
847
90
query I rowsort
SELECT DISTINCT + 74 * - col1 * col2 + + col1 AS col1 FROM tab1
----
-103870
-42170
-92339
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT + - ( col0 ) DIV col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1829
SELECT + - ( col0 ) / col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT ( + col2 ) DIV ( - 30 ) AS col2 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1831
SELECT ( + col2 ) / ( - 30 ) AS col2 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - col1 * + col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL cor0.col2 + col0 * 67 FROM tab0 AS cor0
----
1641
2346
6045
query I rowsort
SELECT DISTINCT + + 84 FROM tab0 AS cor0
----
84
query I rowsort
SELECT DISTINCT + 67 + - col1 AS col2 FROM tab0 cor0
----
-19
-24
-30
query I rowsort
SELECT DISTINCT + 90 * - col1 * - ( col2 * col1 ) FROM tab0 AS cor0
----
21966120
61113780
846810
query I rowsort
SELECT cor0.col0 + + cor0.col2 * - cor0.col1 * + col2 FROM tab2 cor0
----
-22592
-24469
-39806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT ALL + col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + col0 / + col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + - 24 + 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL col1 + - col0 - - ( col2 ) FROM tab1 AS cor0
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 42 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab717ad5cb3f836ae7ac797f4f86b4b2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT ( cor0.col0 ) + cor0.col2 DIV col1 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-1843
SELECT ( cor0.col0 ) + cor0.col2 / col1 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT DISTINCT + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - - col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL col0 + - col2 * + tab1.col1 + - col1 AS col1 FROM tab1
----
-1181
-1427
-516
query I rowsort
SELECT ALL col0 + - col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT ALL CAST( NULL AS SIGNED ) + - col1 + col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0, tab0 AS cor0
----
22
query I rowsort
SELECT ALL - + col0 * - 7 AS col1 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab1 AS cor0
----
-23
query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2, tab1 AS cor0
----
78
query I rowsort
SELECT ALL + col1 * col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT cor0.col1 DIV 12 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-1859
SELECT cor0.col1 / 12 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT + col0 + + ( col0 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col2 + - 14 AS col2 FROM tab1
----
40
43
82
query I rowsort
SELECT - col1 * + col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 + - 58 FROM tab0 AS cor0
----
-140
-59
-91
query I rowsort
SELECT ALL + - col2 + - col1 * 9 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-783
-812
-839
query I rowsort
SELECT ALL + - col1 + - 9 AS col1 FROM tab1 AS cor0
----
-19
-22
-35
query I rowsort
SELECT + - col2 + + 89 * col1 FROM tab0 AS cor0
----
7621
8017
8632
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col1 * 98 + 56 FROM tab0 AS cor0
----
8484
8974
9562
query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col2 * 39 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT ALL col1 * col0 + ( + col1 + - 89 * ( col2 ) ) FROM tab0 AS cor0
----
-787
3403
892
query I rowsort
SELECT ALL + + col1 * cor0.col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * + 92 FROM tab2 cor0
----
4508
559728
574172
query I rowsort
SELECT - 56 AS col2 FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT cor1.col2 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT ALL - ( + col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 40 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT + 43 + + col2 AS col2 FROM tab2 cor0
----
69
70
81
query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT tab0.col1 + 69 FROM tab0
----
155
160
166
query I rowsort
SELECT col0 * - 21 + 61 * col0 FROM tab2
----
280
3120
3160
query I rowsort
SELECT - cor1.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - ( + col0 ) * col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * ( col1 ) col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - - 60 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col1 + + col2 * ( 51 ) FROM tab0 AS cor0
----
148
1769
4273
query I rowsort
SELECT ALL - 49 AS col0 FROM tab0 cor0
----
-49
-49
-49
query I rowsort
SELECT + - ( - col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT - cor0.col1 - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1893
SELECT - cor0.col1 - col1 / - col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT + col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col1 * ( + col0 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT 26 + - col0 FROM tab0
----
-63
-9
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT col1 DIV col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1899
SELECT col1 / col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL 81 * 32 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bca957a5d6bc0681daad8bf36eb7d2e6
query I rowsort
SELECT - - col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + - col2 + + ( - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col0 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + col2 col2 FROM tab1
----
-18
-21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT - col1 + - col2 * col2 DIV - col0 + - col0 DIV + ( - col2 ) FROM tab0
----
-15
-41
-62
skipif mysql # not compatible
query I rowsort label-1907
SELECT - col1 + - col2 * col2 / - col0 + - col0 / + ( - col2 ) FROM tab0
----
-15
-41
-62
query I rowsort
SELECT ALL ( col2 * col1 ) + col0 * + col1 * + col2 FROM tab0
----
3492
671580
70950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab0.col1 * col1 col2 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + col0 + col2 * col1 + + col0 * col1 FROM tab2 AS cor0
----
1061
2068
6214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * col0 col1 FROM tab0 AS cor0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( 2 ) - col0 col0 FROM tab2 AS cor0
----
-26
-3
47
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-76
query I rowsort
SELECT - col2 * - col0 * 32 AS col2 FROM tab2
----
6048
64896
96064
query I rowsort
SELECT - col2 + + 11 AS col2 FROM tab2 AS cor0
----
-15
-16
-27
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab0
----
53
9
96
query I rowsort
SELECT - + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT cor0.col1 * + 90 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 65d6e4a43a87cca85b0d3a00f67fb876
query I rowsort
SELECT ALL - col0 * + col0 AS col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT tab0.col2 * - ( + 14 * + col0 ) AS col0 FROM tab0
----
-102172
-11088
-490
onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT col2 * ( col2 ) DIV + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1922
SELECT col2 * ( col2 ) / + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 * 22 AS col0 FROM tab2
----
572
594
836
query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 35 + col0 FROM tab1 AS cor0
----
115
38
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 * + ( col1 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT - cor0.col0 * 5 + col2 - - col0 AS col0 FROM tab0 AS cor0
----
-139
-274
-63
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ( 39 ) FROM tab2
----
39
39
39
query I rowsort
SELECT 32 FROM tab0, tab2, tab0 cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT - - col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 53 AS col0 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT 17 FROM tab1
----
17
query I rowsort
SELECT ALL tab1.col0 * tab1.col0 AS col1 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL - col0 DIV col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - col0 / col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT ALL + 52 FROM tab0
----
52
52
52
query I rowsort
SELECT DISTINCT 88 FROM tab1, tab1 AS cor0
----
88
query I rowsort
SELECT ALL col1 * col2 * col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-189
-2028
-3002
query I rowsort
SELECT + 93 * col0 * col2 FROM tab0 AS cor0
----
3255
678714
73656
query I rowsort
SELECT 23 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-598
-621
-874
query I rowsort
SELECT - + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + ( - col2 ) * 84 AS col1 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT ALL - col1 * - col0 + ( - col1 ) FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - + col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 43 + cor0.col0 * col0 FROM tab0 AS cor0
----
1268
619
7964
query I rowsort
SELECT - 28 + + cor0.col1 AS col0 FROM tab0 cor0
----
58
63
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT ALL + CAST( col2 AS SIGNED ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + CAST ( col2 AS INTEGER ) / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - - 13 AS col1 FROM tab2 AS cor0
----
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT CAST( NULL AS DECIMAL ) * - col0 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1954
SELECT CAST ( NULL AS REAL ) * - col0 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + ( col1 ) AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 * + 30 * - col0 AS col1 FROM tab1 cor0
----
-122944
-192080
-273
onlyif mysql # use DIV operator for integer division
query I rowsort label-1957
SELECT ALL - 59 DIV col2 FROM tab0 AS cor0
----
-1
-59
0
skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - 59 / col2 FROM tab0 AS cor0
----
-1
-59
0
query I rowsort
SELECT - + 9 * - col1 AS col1 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT ALL - 63 * 36 FROM tab1 AS cor0
----
-2268
-2268
-2268
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - tab0.col1 - - tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 39 FROM tab1
----
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL ( - col0 ) * + tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 27 FROM tab2
----
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1969
SELECT + CAST( - 2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-1969
SELECT + CAST ( - 2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2, tab2 AS cor0
----
-1
query I rowsort
SELECT - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col2 - + tab0.col1 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + 87 + col1 FROM tab0
----
173
178
184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1977
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1977
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 20 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT 93 DIV - col2 AS col2 FROM tab0
----
-1
-2
-93
skipif mysql # not compatible
query I rowsort label-1979
SELECT 93 / - col2 AS col2 FROM tab0
----
-1
-2
-93
query I rowsort
SELECT - col2 * + col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT - col0 * 5 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-1981
SELECT - col0 * 5 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL - - col2 * 77 + col2 FROM tab2 cor0
----
2028
2106
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1983
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - col2 - + tab2.col1 * + col0 AS col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT - col2 * - col0 + col0 + + col1 FROM tab2
----
2165
227
3098
query I rowsort
SELECT ALL + col1 - + col2 * - tab0.col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT col0 * col1 - 5 FROM tab2
----
1338
212
4597
query I rowsort
SELECT - col2 + - col2 + ( col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - col1 + col1 - col2 AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + col0 - - col0 FROM tab0
----
178
48
70
query I rowsort
SELECT + - col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT + col2 + - ( ( cor0.col2 ) ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1992
SELECT + col2 + - ( ( cor0.col2 ) ) / col2 AS col2 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT + col2 + - tab0.col0 DIV tab0.col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1993
SELECT + col2 + - tab0.col0 / tab0.col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) + col2 * - 64 col0 FROM tab1
----
-3008
-3378
-5104
query I rowsort
SELECT ALL + + col1 + - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1996
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT - col0 DIV + 77 + col1 FROM tab2 AS cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-1997
SELECT - col0 / + 77 + col1 FROM tab2 AS cor0
----
16
31
58
query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT + + col0 + col2 DIV 42 AS col2 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-1999
SELECT + + col0 + col2 / 42 AS col2 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT - col2 + - 26 FROM tab1 AS cor0
----
-122
-80
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT - col1 + + 79 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-2001
SELECT - col1 + + 79 / ( col2 ) AS col1 FROM tab1 AS cor0
----
-13
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT ALL - col0 * + 32 * col1 + col1 DIV col0 FROM tab2 AS cor0
----
-147264
-42976
-6940
skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - col0 * + 32 * col1 + col1 / col0 FROM tab2 AS cor0
----
-147264
-42976
-6940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - col0 + col1 ) col1 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0, tab0 AS cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT DISTINCT - col2 + + 42 FROM tab2 AS cor0
----
15
16
4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT ALL - col1 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + cor0.col2 + + col0 * - col1 * + cor0.col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT 72 FROM tab2, tab2 AS cor0
----
72
query I rowsort
SELECT ALL + - col2 * - ( col0 ) + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col2 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - - col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 + 31 AS col1 FROM tab0 AS cor0
----
113
32
64
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - 87 * + col0 + col0 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-798
-8814
-9875
query I rowsort
SELECT DISTINCT col1 - col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + 23 + col1 FROM tab2 AS cor0
----
-6
36
8
query I rowsort
SELECT ALL 1 * col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL col0 * col2 * col0 AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col0 + - 15 * + col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col0 + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 + + 92 + - 40 FROM tab0
----
134
53
85
query I rowsort
SELECT + ( + col2 ) * + col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - 11 * + 79 AS col2 FROM tab2 AS cor0
----
-869
-869
-869
query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + 46 * col1 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 65 + + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1469
-581
-772
query I rowsort
SELECT + col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + col2 * col0 + - col1 * col1 FROM tab2 cor0
----
-1150
-3291
-5509
query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0
----
-65
query I rowsort
SELECT ALL - - 10 + + col1 FROM tab1 cor0
----
20
23
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 * - col2 - - col1 col0 FROM tab2 AS cor0
----
2529
2596
3627
query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 55 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT + - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 86 FROM tab2
----
86
86
86
query I rowsort
SELECT + ( col1 * col2 ) FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 32 * col1 + - 66 AS col2 FROM tab0 AS cor0
----
-2818
-2978
-3170
onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT ALL - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - col1 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - 69 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - 59 * + col0 FROM tab1 AS cor0
----
-177
-3776
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT DISTINCT + col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - col2 * ( - ( col0 ) ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col1 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - + col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab0, tab2 cor0
----
75
skipif mysql # not compatible
query I rowsort
SELECT + - col0 + + CAST ( 89 + cor0.col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
151
151
91
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT DISTINCT col2 * + 18 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT ALL ( col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT + col2 + + cor0.col1 + col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT - 77 + col0 AS col0 FROM tab1 AS cor0
----
-13
-74
3
query I rowsort
SELECT DISTINCT - col1 + tab2.col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - ( - col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - + col1 + col2 * - 66 - - 74 * col0 AS col2 FROM tab0 AS cor0
----
-488
1083
2427
query I rowsort
SELECT - ( + cor0.col2 ) * - ( + cor0.col1 ) + cor0.col0 - ( 48 ) AS col2 FROM tab1 AS cor0
----
1280
1359
586
query I rowsort
SELECT ALL - col0 * + col2 + col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ALL col0 + col1 * col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL - 12 + - ( col2 * col1 ) AS col1 FROM tab0
----
-109
-2850
-7474
onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT ALL 55 DIV 58 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL 55 / 58 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT cor0.col1 * + cor0.col0 + + 58 * col0 + + col1 * col0 FROM tab1 cor0
----
330
4992
6720
query I rowsort
SELECT - + col1 * col1 + + 86 FROM tab0 AS cor0
----
-7310
-8195
-9323
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT ALL 10 AS col2 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT ALL 82 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 + - 90 * - col1 FROM tab2 AS cor0
----
1609
2797
5388
onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT ALL cor0.col2 DIV col1 + - col1 + + col0 FROM tab2 AS cor0
----
-24
19
64
skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL cor0.col2 / col1 + - col1 + + col0 FROM tab2 AS cor0
----
-24
19
64
query I rowsort
SELECT ALL + - col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col2 * + col0 + 20 AS col0 FROM tab2 AS cor0
----
2048
209
3022
query I rowsort
SELECT - + col1 * + 93 AS col1 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col2 * ( ( col2 ) ) + + 23 FROM tab0 AS cor0
----
1112
24
6747
onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT - col2 DIV + 23 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2089
SELECT - col2 / + 23 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * ( + col2 * + col0 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 + 3 FROM tab2 AS cor0
----
-1378
-241
-4625
query I rowsort
SELECT col1 + col0 - col0 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL - + ( + col1 ) * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 40 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT ALL 29 DIV + col2 col0 FROM tab0
----
0
0
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL 29 / + col2 col0 FROM tab0
----
0
0
29
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab0 AS cor0
----
60
query I rowsort
SELECT DISTINCT - - 93 FROM tab0, tab2, tab2 AS cor0
----
93
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - 79 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT 13 + - col0 AS col2 FROM tab0 AS cor0
----
-11
-22
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col0 col0 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - cor0.col2 + + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 74 AS col0 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( ( cor0.col0 ) ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 39 + 16 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT - 10 DIV - col0 - + col1 FROM tab2 AS cor0
----
-17
-30
-59
skipif mysql # not compatible
query I rowsort label-2111
SELECT - 10 / - col0 - + col1 FROM tab2 AS cor0
----
-17
-30
-59
query I rowsort
SELECT 92 + col2 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT 41 AS col2 FROM tab2
----
41
41
41
query I rowsort
SELECT - 27 FROM tab1
----
-27
-27
-27
query I rowsort
SELECT - 15 * - col1 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( + col1 * - col1 + - col1 ) FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT - + col1 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col1 + - col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT + col0 + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - - col1 * + col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2122
SELECT - + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2122
SELECT - + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col0 ) - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col2 * - ( 49 * col1 ) AS col1 FROM tab0
----
-139062
-365638
-4753
query I rowsort
SELECT DISTINCT - 91 * col0 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT + ( + ( - col2 ) ) + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2130
SELECT - + ( col1 ) + CAST( 20 * - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-117
-1731
-746
skipif mysql # not compatible
query I rowsort label-2130
SELECT - + ( col1 ) + CAST ( 20 * - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-117
-1731
-746
query I rowsort
SELECT DISTINCT col1 + - col1 * tab2.col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT ALL col0 * col0 + CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab2
----
6887
7618
886
skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL col0 * col0 + CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab2
----
6887
7618
886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2133
SELECT DISTINCT ( col2 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col1 + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT DISTINCT col0 + - col2 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT col0 + - col2 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + col2 + col0 * ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - ( col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + 8 * + col0 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT col1 * - 59 + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-1453
-1640
1999
query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col0 - ( 62 ) * - col1 AS col2 FROM tab1 AS cor0
----
1609
556
726
query I rowsort
SELECT DISTINCT 60 * tab0.col0 AS col0 FROM tab0
----
1440
2100
5340
query I rowsort
SELECT + ( - col2 ) * + 87 FROM tab2
----
-2262
-2349
-3306
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + 73 * col2 AS col2 FROM tab2 AS cor0
----
1957
2002
2791
onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT - + cor0.col2 + + col0 DIV - col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - + cor0.col2 + + col0 / - col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT ALL + col1 + col1 * cor0.col1 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - 68 - col0 col0 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT DISTINCT + col0 - - col2 DIV - col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + col0 - - col2 / - col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT + + col0 * col1 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT ALL + 50 + col0 FROM tab0
----
139
74
85
query I rowsort
SELECT DISTINCT 60 FROM tab2, tab0 AS cor0, tab0 cor1
----
60
query I rowsort
SELECT ALL + tab1.col1 + + col2 + - col2 FROM tab1
----
10
13
26
query I rowsort
SELECT - cor0.col1 * col1 * + col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT 32 * + col1 AS col0 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT cor0.col0 * + 19 FROM tab0 cor0
----
1691
456
665
onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT ALL ( + col2 ) DIV + col1 + + ( - col1 + + col1 * col0 ) col1 FROM tab2 AS cor0
----
1328
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL ( + col2 ) / + col1 + + ( - col1 + + col1 * col0 ) col1 FROM tab2 AS cor0
----
1328
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2163
SELECT - col1 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT 5 * 90 - + col2 AS col2 FROM tab0 cor0
----
368
417
449
query I rowsort
SELECT - - ( col2 ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col1 FROM tab0 AS cor0
----
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2168
SELECT + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2168
SELECT + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - cor0.col1 ) * col1 * - col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL ( 30 ) * col1 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 87 ) col0 FROM tab2 AS cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2173
SELECT cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 69 FROM tab2 cor0
----
69
69
69
query I rowsort
SELECT - tab2.col0 + + 99 * + col1 * + col1 FROM tab2
----
28532
344541
95132
onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT DISTINCT col2 DIV + ( ( col0 ) + + ( + col1 ) ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT col2 / + ( ( col0 ) + + ( + col1 ) ) FROM tab0
----
0
query I rowsort
SELECT - 28 + - 62 * - tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cf668d8c76f6916ecd509443e4e5ac51
query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ( - ( tab1.col2 ) ) * ( + col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - ( col1 ) * col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + - col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ( + col0 ) - - col0 AS col2 FROM tab0 cor0
----
178
48
70
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-2184
SELECT + col0 DIV col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2184
SELECT + col0 / col2 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL + 15 + - col2 - + col1 * + tab0.col2 FROM tab0
----
-2856
-7529
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT CAST( NULL AS SIGNED ) - - col0 / + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2186
SELECT CAST ( NULL AS INTEGER ) - - col0 / + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col2 * col1 + + tab2.col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT 58 FROM tab1
----
58
query I rowsort
SELECT - 90 FROM tab2
----
-90
-90
-90
query I rowsort
SELECT 77 + col1 FROM tab2
----
108
136
94
query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 14 FROM tab2
----
14
14
14
query I rowsort
SELECT + 63 + - col2 * col2 AS col2 FROM tab1 cor0
----
-2853
-3186
-9153
onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT + ( col2 ) DIV col1 + col1 * col0 * col1 - + col2 * col1 col1 FROM tab0 cor0
----
174666
329218
729547
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2194
SELECT + ( col2 ) / col1 + col1 * col0 * col1 - + col2 * col1 col1 FROM tab0 cor0
----
174666
329218
729547
query I rowsort
SELECT DISTINCT 95 + + 72 - - tab1.col0 FROM tab1
----
170
231
247
query I rowsort
SELECT ALL + tab1.col0 * 37 * col2 AS col0 FROM tab1
----
134976
284160
5994
onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT DISTINCT 0 DIV col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT 0 / col2 AS col1 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT + 89 DIV + col0 + col0 * col0 * - col1 FROM tab0
----
-118823
-49533
-720810
skipif mysql # not compatible
query I rowsort label-2198
SELECT + 89 / + col0 + col0 * col0 * - col1 FROM tab0
----
-118823
-49533
-720810
query I rowsort
SELECT 79 FROM tab2, tab0 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col2 FROM tab1
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT col0 + + 61 FROM tab1
----
125
141
64
query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + ( col1 ) + col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * col1 col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + 20 + cor0.col2 * col0 FROM tab2 AS cor0
----
169
2008
2982
query I rowsort
SELECT tab0.col1 + col0 * col1 + col2 AS col2 FROM tab0
----
2183
3493
8272
onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT 92 * col0 DIV col0 AS col0 FROM tab2
----
92
92
92
skipif mysql # not compatible
query I rowsort label-2209
SELECT 92 * col0 / col0 AS col0 FROM tab2
----
92
92
92
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 * - cor0.col0 + col2 AS col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - + 49 * + col2 FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT ALL + - col1 * col2 * - col2 + col1 AS col0 FROM tab1 cor0
----
119821
32500
75842
query I rowsort
SELECT + - col2 + - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + + 41 AS col0 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col2 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col2 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT DISTINCT - 14 * + col2 + col0 FROM tab2 AS cor0
----
-286
-371
-453
query I rowsort
SELECT ALL + col2 + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - 57 + + col1 AS col0 FROM tab0 AS cor0
----
29
34
40
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT DISTINCT + + 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16
query I rowsort
SELECT ALL - + col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL col2 * cor0.col1 + + col0 * + col1 * col0 FROM tab2 AS cor0
----
106743
2356
360490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + cor0.col2 - - col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - + col1 + - ( 1 * + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col1 + - 87 AS col1 FROM tab2 AS cor0
----
-28
-56
-70
query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col2 * ( col1 + - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - - 49 * 19 + + col0 FROM tab1 AS cor0
----
1011
934
995
query I rowsort
SELECT ALL 59 - col1 FROM tab2 AS cor0
----
0
28
42
query I rowsort
SELECT ALL 25 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + cor0.col1 * col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 + ( - cor0.col2 ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + - 26 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - + 78 FROM tab2 cor0
----
-78
-78
-78
query I rowsort
SELECT 83 * ( col0 ) AS col2 FROM tab1 AS cor0
----
249
5312
6640
onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT DISTINCT + + 16 * + ( - col0 ) - + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1425
-384
-595
skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + + 16 * + ( - col0 ) - + col0 / col2 AS col0 FROM tab0 AS cor0
----
-1425
-384
-595
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 + - col2 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col0 * ( col2 * cor0.col2 + - col1 ) AS col0 FROM tab1 AS cor0
----
-207296
-736240
-8670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col0 * - ( + col2 ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT ALL - cor0.col0 DIV + ( - col1 * + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - cor0.col0 / + ( - col1 * + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + col2 ) col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 88 FROM tab0
----
88
query I rowsort
SELECT ( 35 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT + col2 DIV + col0 col0 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2266
SELECT + col2 / + col0 col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - col2 * 10 AS col2 FROM tab1 AS cor0
----
-540
-570
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab1
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT 55 FROM tab1, tab0 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT + - col1 - - 89 AS col2 FROM tab0 AS cor0
----
-2
-8
3
query I rowsort
SELECT ALL + col0 + col1 * + 22 AS col2 FROM tab2 cor0
----
1376
453
689
query I rowsort
SELECT DISTINCT + col1 * col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col0 * 71 AS col1 FROM tab2
----
-497
-5538
-5609
query I rowsort
SELECT + 92 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - 34 * - cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
1666
206856
212194
query I rowsort
SELECT DISTINCT ( col0 * + col1 + - col0 ) AS col1 FROM tab1
----
576
75
960
query I rowsort
SELECT ALL + 5 * - col0 FROM tab0
----
-120
-175
-445
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT cor0.col2 * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * + col1 col0 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT + cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2288
SELECT DISTINCT + + 31 + - col0 * CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + + 31 + - col0 * CAST ( NULL AS REAL ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 62 AS col1 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT 57 FROM tab1
----
57
57
57
query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT + + col0 * col0 DIV 7 AS col0 FROM tab2 AS cor0
----
7
869
891
skipif mysql # not compatible
query I rowsort label-2292
SELECT + + col0 * col0 / 7 AS col0 FROM tab2 AS cor0
----
7
869
891
query I rowsort
SELECT cor0.col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - 55 FROM tab1
----
-55
-55
-55
query I rowsort
SELECT DISTINCT + 68 + col2 FROM tab1
----
122
125
164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + cor0.col2 * + col2 col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - cor0.col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 65 * 58 - - col2 * + ( - 9 ) * col0 FROM tab2 AS cor0
----
-14482
-23248
2069
query I rowsort
SELECT + col2 * + tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 30 FROM tab0 cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT + + 80 DIV cor0.col0 + + ( - ( col0 ) ) * col1 AS col1 FROM tab0 AS cor0
----
-2061
-3393
-8099
skipif mysql # not compatible
query I rowsort label-2303
SELECT + + 80 / cor0.col0 + + ( - ( col0 ) ) * col1 AS col1 FROM tab0 AS cor0
----
-2061
-3393
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 68 * - col1 + ( col1 ) * - col1 FROM tab2 AS cor0
----
-1445
-3069
-7493
query I rowsort
SELECT + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT tab1.col1 * + 44 AS col2 FROM tab1
----
1144
440
572
query I rowsort
SELECT 37 * ( tab1.col2 ) AS col2 FROM tab1
----
1998
2109
3552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38
query I rowsort
SELECT - + 2 AS col0 FROM tab0 cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT - col1 * col1 + - CAST( NULL AS SIGNED ) * 97 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2311
SELECT - col1 * col1 + - CAST ( NULL AS INTEGER ) * 97 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * + 30 + + cor0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to cb8074a09ff3f337db646191c11e9c13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2313
SELECT ALL CAST( - col0 AS SIGNED ) * + tab0.col0 - + CAST( + col0 AS SIGNED ) FROM tab0
----
-1260
-600
-8010
skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL CAST ( - col0 AS INTEGER ) * + tab0.col0 - + CAST ( + col0 AS INTEGER ) FROM tab0
----
-1260
-600
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + cor0.col0 + 55 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 77 AS col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT ALL col2 * col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col2 - 19 AS col1 FROM tab2 AS cor0
----
19
7
8
query I rowsort
SELECT ALL + - ( - 61 ) + - cor0.col0 AS col0 FROM tab1 cor0
----
-19
-3
58
query I rowsort
SELECT DISTINCT + + col2 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - 45 AS col0 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT + col1 + 0 * tab0.col2 * 8 + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - - ( col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - + col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * - col1 * - col1 AS col2 FROM tab0 cor0
----
244101
679124
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + col2 + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + cor0.col0 * + col1 - + col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2332
SELECT + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 61 FROM tab0 AS cor0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - - 50 * col0 * 68 + 41 AS col0 FROM tab1 AS cor0
----
10241
217641
272041
query I rowsort
SELECT + - 80 AS col2 FROM tab0 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab0 cor0
----
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 - ( - col0 ) col0 FROM tab2
----
-59
12
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col0 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col1 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + - col0 + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + + 75 AS col1 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT col2 * + col0 + - col1 * col0 * + col0 FROM tab2 cor0
----
-103095
-1330
-356928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT col1 * - 84 * col2 + - col2 DIV 70 FROM tab2
----
-128856
-54264
-70308
skipif mysql # not compatible
query I rowsort label-2347
SELECT col1 * - 84 * col2 + - col2 / 70 FROM tab2
----
-128856
-54264
-70308
query I rowsort
SELECT col1 - col1 * - ( - col1 ) * col2 AS col0 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT - col2 + - ( col2 ) FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - col2 + + 77 * - col0 FROM tab2 AS cor0
----
-566
-6032
-6121
query I rowsort
SELECT + col1 * + 66 * col1 AS col1 FROM tab2 AS cor0
----
19074
229746
63426
onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT ALL - - col2 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - - col2 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - col1 * - 6 AS col0 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 23 + cor0.col0 * + col0 col0 FROM tab0 AS cor0
----
1202
553
7898
query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT - ( - 71 ) AS col0 FROM tab0 AS cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT DISTINCT + - col1 * - 52 + - col0 + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
4447
4642
5008
skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + - col1 * - 52 + - col0 + - col2 / col2 AS col1 FROM tab0 AS cor0
----
4447
4642
5008
query I rowsort
SELECT 94 FROM tab2 cor0
----
94
94
94
query I rowsort
SELECT ALL ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT cor0.col0 * ( col1 ) + - col2 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col0 FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT 24 FROM tab0 AS cor0
----
24
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - ( col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 57 * col2 * col1 AS col2 FROM tab2 AS cor0
----
-36822
-47709
-87438
query I rowsort
SELECT DISTINCT + ( 45 ) + + col2 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
7343
80
837
query I rowsort
SELECT col0 * - 93 * 8 + + col0 AS col0 FROM tab0
----
-17832
-26005
-66127
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
90
query I rowsort
SELECT + ( 67 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT DISTINCT + col1 * - ( + ( + col1 ) + - ( col2 ) ) AS col2 FROM tab1
----
1079
470
728
query I rowsort
SELECT - col1 + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + - 46 * - col2 + col2 * + cor0.col1 + 32 AS col2 FROM tab2 AS cor0
----
2111
2426
2762
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + cor0.col0 + + 83 - - col1 * ( col1 ) FROM tab2 AS cor0
----
1051
3642
451
query I rowsort
SELECT DISTINCT + cor0.col2 + + 69 AS col2 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + ( col2 ) * col0 + + 70 * col2 FROM tab2 AS cor0
----
2079
3848
5662
query I rowsort
SELECT + 93 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT + + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2383
SELECT + + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 84 FROM tab2
----
-84
-84
-84
query I rowsort
SELECT + ( col1 ) + col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT - - col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 38 FROM tab2 cor0
----
38
38
38
query I rowsort
SELECT DISTINCT 31 * - col2 FROM tab0
----
-1023
-2542
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 40 col1 FROM tab1
----
-14
-17
-56
query I rowsort
SELECT + tab1.col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - ( tab1.col1 + col1 ) * col2 AS col1 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT + ( - 23 ) FROM tab2
----
-23
-23
-23
query I rowsort
SELECT tab1.col1 * - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 + 85 col0 FROM tab2 AS cor0
----
2113
274
3087
query I rowsort
SELECT - + cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 + - 44 * 12 AS col2 FROM tab1 AS cor0
----
-432
-471
-474
query I rowsort
SELECT - 2 - - col0 AS col1 FROM tab2
----
5
76
77
query I rowsort
SELECT ( col0 ) FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT DISTINCT + 52 + col1 + - tab0.col0 DIV + tab0.col1 FROM tab0
----
138
143
149
skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + 52 + col1 + - tab0.col0 / + tab0.col1 FROM tab0
----
138
143
149
query I rowsort
SELECT + - col0 * ( 22 + cor0.col0 ) * 58 AS col0 FROM tab1 AS cor0
----
-319232
-4350
-473280
query I rowsort
SELECT + - col0 + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 * 37 AS col1 FROM tab0 cor0
----
1295
3293
888
query I rowsort
SELECT DISTINCT col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 * - ( + col2 ) * + col0 AS col0 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT + cor0.col2 * 83 AS col0 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT DISTINCT col0 * col0 + + col1 AS col2 FROM tab1
----
35
4106
6413
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT + ( + col0 ) * col1 - + tab1.col2 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT DISTINCT 95 DIV - 21 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-4
skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 95 / - 21 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-4
skipif mysql # not compatible
query I rowsort
SELECT 34 + col1 * - CAST ( - col1 AS REAL ) AS col2 FROM tab1
----
134
203
710
query I rowsort
SELECT + col0 + - ( 55 * - col2 ) AS col2 FROM tab1
----
2973
3199
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-2414
SELECT ALL + cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + cor0.col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 + - col1 FROM tab0 cor0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT ALL col0 * CAST( - cor0.col1 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL col0 * CAST ( - cor0.col1 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - - col2 * 8 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT + cor0.col2 * col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2420
SELECT col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * + 82 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT ALL + tab1.col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT ALL 82 DIV col0 FROM tab2
----
1
1
11
skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 82 / col0 FROM tab2
----
1
1
11
query I rowsort
SELECT + 88 * - col2 + ( 62 + + cor0.col2 ) FROM tab1 AS cor0
----
-4636
-4897
-8290
onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT DISTINCT col0 DIV - col1 col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT col0 / - col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT col2 * col0 DIV 96 FROM tab2 AS cor0
----
1
21
31
skipif mysql # not compatible
query I rowsort label-2427
SELECT col2 * col0 / 96 FROM tab2 AS cor0
----
1
21
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2428
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 51 FROM tab0
----
51
51
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT 60 + + col0 AS col1 FROM tab0
----
149
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + 1 * col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + + cor0.col2 + - 74 FROM tab0 AS cor0
----
-41
-73
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col2 + 32 AS col2 FROM tab1 AS cor0
----
128
86
89
query I rowsort
SELECT ALL + - 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT + col0 + 69 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT 33 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT ( + ( cor0.col0 ) ) + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + 33 AS col1 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT + ( col1 ) + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + ( col2 ) * - cor0.col0 + - col0 AS col1 FROM tab0 cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2447
SELECT + CAST( NULL AS SIGNED ) + + col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2447
SELECT + CAST ( NULL AS INTEGER ) + + col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 63 - col2 AS col1 FROM tab1 cor0
----
-117
-120
-159
query I rowsort
SELECT + col0 + col0 + col0 AS col2 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT col2 + col1 - + cor0.col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT cor0.col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ( + cor0.col1 ) + col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-5966
-6207
13
query I rowsort
SELECT col0 * col1 * - col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT - - col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT DISTINCT + 2 - 52 AS col1 FROM tab0, tab2 AS cor0
----
-50
query I rowsort
SELECT + col0 + - col2 * - 70 FROM tab2 cor0
----
1897
1898
2739
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT ALL - 55 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - 55 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + 6 + - col0 FROM tab2 cor0
----
-13
-84
-85
query I rowsort
SELECT - col1 + cor0.col0 * - ( - col2 + col1 ) FROM tab0 AS cor0
----
-1358
-3457
-892
query I rowsort
SELECT DISTINCT + 26 FROM tab2 AS cor0
----
26
query I rowsort
SELECT + + col0 + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 62 * cor0.col0 AS col1 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT + cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 + - col1 * + 32 * + col1 FROM tab2 AS cor0
----
-111314
-30745
-9169
query I rowsort
SELECT + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 85 * col1 * col1 + 5 FROM tab0 AS cor0
----
-628655
-703880
-799760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT DISTINCT - col2 DIV - col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - col2 / - col0 FROM tab2 AS cor0
----
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2471
SELECT - + col2 / col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT col1 * - col1 + - 14 DIV col0 AS col2 FROM tab1
----
-100
-169
-680
skipif mysql # not compatible
query I rowsort label-2476
SELECT col1 * - col1 + - 14 / col0 AS col2 FROM tab1
----
-100
-169
-680
query I rowsort
SELECT 27 FROM tab2
----
27
27
27
query I rowsort
SELECT + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 + + col0 AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT + cor0.col1 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col0 * - tab0.col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT - - 49 FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
49
query I rowsort
SELECT + col1 - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col0 - 13 AS col2 FROM tab2
----
-6
65
66
query I rowsort
SELECT DISTINCT 43 * 12 AS col2 FROM tab2
----
516
query I rowsort
SELECT 98 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2488
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT col2 + + col2 - + tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - - col1 + - 67 AS col1 FROM tab1 AS cor0
----
-41
-54
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT + ( + col1 ) * - col0 + + col1 DIV - col0 - col0 AS col1 FROM tab0 AS cor0
----
-2091
-3432
-8189
skipif mysql # not compatible
query I rowsort label-2491
SELECT + ( + col1 ) * - col0 + + col1 / - col0 - col0 AS col1 FROM tab0 AS cor0
----
-2091
-3432
-8189
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT ALL + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * col1 AS col1 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * - col0 col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT ALL - cor1.col1 DIV 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - cor1.col1 / 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + ( - 30 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT 84 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * - col0 col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT 15 * 97 * tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
125130
132405
141135
query I rowsort
SELECT - col1 * tab1.col2 + + col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col2 * - 40 - - tab2.col1 AS col2 FROM tab2
----
1099
1111
1537
query I rowsort
SELECT + tab1.col2 * col2 + - 59 FROM tab1
----
2857
3190
9157
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + col2 + + col1 * + col1 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT + 56 * col1 * + col2 FROM tab0
----
158928
417872
5432
query I rowsort
SELECT 49 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2510
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + - col1 + col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 71 * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccc7069c3937d867bad9a6537fa566f8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + - col0 * - col2 * 28 + col0 * + col1 * col2 FROM tab0 AS cor0
----
4375
868462
90288
query I rowsort
SELECT ALL + + col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 15 + col2 * col0 AS col2 FROM tab0 AS cor0
----
50
7313
807
query I rowsort
SELECT + - 67 * col0 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT DISTINCT - + ( 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8
query I rowsort
SELECT DISTINCT col2 * col1 + + 75 FROM tab2 AS cor0
----
1609
721
912
query I rowsort
SELECT DISTINCT - + 37 - + col0 AS col1 FROM tab1 AS cor0
----
-101
-117
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 + col2 * ( - cor0.col0 ) FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT 92 * cor0.col2 + - 12 FROM tab0 AS cor0
----
3024
7532
80
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0, tab1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT DISTINCT + 59 * + col1 FROM tab1
----
1534
590
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT col2 / col1 AS col2 FROM tab2
----
0
2
query I rowsort
SELECT ALL - tab2.col0 * 49 FROM tab2
----
-343
-3822
-3871
query I rowsort
SELECT 80 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT - 91 * col1 + 71 AS col2 FROM tab2 cor0
----
-1476
-2750
-5298
onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT ALL - cor0.col2 DIV col1 + 47 col2 FROM tab0 AS cor0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - cor0.col2 / col1 + 47 col2 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT + - 90 AS col1 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT 66 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT DISTINCT - col0 * col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT ALL - col0 DIV - cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - col0 / - cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - + 89 + col2 * 81 * - 11 FROM tab2 cor0
----
-23255
-24146
-33947
query I rowsort
SELECT ALL + 56 * + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL cor0.col0 * 32 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654
query I rowsort
SELECT - col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab0
----
-49
query I rowsort
SELECT ALL 58 * col2 AS col1 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL 9 FROM tab1 AS cor0
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + col0 * 19 col0 FROM tab2 AS cor0
----
1544
1563
195
query I rowsort
SELECT ALL - 65 AS col2 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL col0 * col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - col2 + + 90 AS col0 FROM tab2 cor0
----
52
63
64
query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + col2 * + 8 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + 12 FROM tab0 AS cor0
----
47
7310
804
query I rowsort
SELECT ALL + - col2 + - col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT col1 + + 33 FROM tab0 AS cor0
----
119
124
130
query I rowsort
SELECT col0 + - col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - col2 * col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT ( col2 ) * col2 * col2 AS col0 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT ALL - - ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 47 AS col1 FROM tab2 AS cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT DISTINCT col0 DIV + ( + col1 * col1 ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT col0 / + ( + col1 * col1 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 - 43 col0 FROM tab0 AS cor0
----
-141
-141
-141
query I rowsort
SELECT ALL + - col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + - 11 + - col0 AS col2 FROM tab1 AS cor0
----
-14
-75
-91
query I rowsort
SELECT DISTINCT - - 83 AS col1 FROM tab2 AS cor0
----
83
query I rowsort
SELECT - ( + 99 ) + col2 * 41 * + col0 AS col2 FROM tab0 AS cor0
----
1336
299119
32373
query I rowsort
SELECT col1 * col1 - - 92 FROM tab1
----
192
261
768
query I rowsort
SELECT + tab0.col2 + + 49 + - col1 * - col1 AS col2 FROM tab0
----
7478
8412
9459
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT ALL - + CAST( - col1 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - + CAST ( - col1 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 59 + + 92 FROM tab2 AS cor0
----
33
33
33
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-2580
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - 82 col2 FROM tab2
----
-108
-109
-120
query I rowsort
SELECT - col1 + col0 - + col1 * + ( - col2 ) FROM tab1
----
1315
1381
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT + CAST( NULL AS SIGNED ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2584
SELECT + CAST ( NULL AS INTEGER ) * - tab1.col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 13 + col0 + tab1.col2 FROM tab1
----
134
189
70
query I rowsort
SELECT - ( col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + + ( col0 ) + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + col2 * 48 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
1189
1265
1807
query I rowsort
SELECT - col1 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT DISTINCT + col1 DIV col2 + + cor0.col0 - 40 AS col1 FROM tab1 AS cor0
----
-37
24
40
skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + col1 / col2 + + cor0.col0 - 40 AS col1 FROM tab1 AS cor0
----
-37
24
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 * - 75 FROM tab1
----
-1950
-750
-975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + tab1.col2 * ( ( col1 ) ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * ( col1 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * + 12 FROM tab1
----
36
768
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT DISTINCT + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 7 + - col1 FROM tab1 AS cor0
----
-17
-20
-33
query I rowsort
SELECT - cor0.col2 * 47 AS col2 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT - cor0.col0 * + col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT - col1 * col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2604
SELECT - col1 * col0 / col0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + col2 * + 62 + - cor0.col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT - 12 + col0 + - col2 * col1 * 21 FROM tab1 AS cor0
----
-11918
-26140
-29493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 * 49 col0 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT - 59 * col0 * + col2 + col2 FROM tab2 AS cor0
----
-11124
-119626
-177080
query I rowsort
SELECT ALL + + col0 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col0 + col0 * - tab2.col2 * col0 + - col1 FROM tab2
----
-1347
-158165
-237096
query I rowsort
SELECT + col0 * cor0.col0 + + col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT 12 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT + col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col0 * + col2 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col0 + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT cor0.col1 + + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL col0 + - col0 * col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - 11 - col1 AS col2 FROM tab2 AS cor0
----
-28
-42
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 * + CAST ( col1 AS REAL ) + - col1 * 37 FROM tab1 AS cor0
----
-1010
-1040
-1521
query I rowsort
SELECT col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT - col1 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2623
SELECT - col1 / col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col1 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT col2 DIV col1 AS col0 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2625
SELECT col2 / col1 AS col0 FROM tab1
----
2
5
7
query I rowsort
SELECT + 56 * 9 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2a3b241c9d2509836ef0873d98e29b7b
query I rowsort
SELECT ( + col2 ) * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ( tab0.col2 ) * 23 AS col1 FROM tab0
----
1886
23
759
query I rowsort
SELECT + col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 - col2 col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + col2 - - col1 FROM tab0
----
119
173
98
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad
query I rowsort
SELECT cor0.col2 - - 71 AS col1 FROM tab1 AS cor0
----
125
128
167
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + - CAST ( 8 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1
70
71
query I rowsort
SELECT ALL + + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col1 - + col2 * - col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + col1 + 66 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT + + col2 - - 52 AS col1 FROM tab1 AS cor0
----
106
109
148
query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL cor0.col1 * 90 FROM tab1 AS cor0
----
1170
2340
900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + col0 * - col2 + col1 + - 61 FROM tab0 AS cor0
----
-7268
-767
1
query I rowsort
SELECT - 83 * - cor0.col1 + col0 * ( col2 ) FROM tab2 AS cor0
----
2762
4413
6925
query I rowsort
SELECT ALL 47 + 67 * col2 AS col0 FROM tab2 AS cor0
----
1789
1856
2593
query I rowsort
SELECT - 13 AS col2 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT 18 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT ALL - + 6 AS col2 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - 43 + 50 FROM tab1 AS cor0
----
93
93
93
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT ALL + - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT + col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 49 FROM tab1 AS cor0
----
-49
-49
-49
query I rowsort
SELECT - + col1 * col1 * ( - 39 ) FROM tab2 cor0
----
11271
135759
37479
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab1 AS cor0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) FROM tab2, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL - ( col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT - 3 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT - 97 * - col2 FROM tab0 cor0
----
3201
7954
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT col1 DIV - col1 - col2 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-2669
SELECT col1 / - col1 - col2 AS col1 FROM tab1
----
-55
-58
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2670
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - + col0 * col0 * - col2 FROM tab0 AS cor0
----
1190
18984
649433
skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - + col0 * col0 * - col2 FROM tab0 AS cor0
----
1190
18984
649433
query I rowsort
SELECT ALL - 42 FROM tab0 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL col0 * - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + col2 + ( + col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - - col1 * 62 AS col2 FROM tab0 AS cor0
----
5332
5642
6014
query I rowsort
SELECT ALL + ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col1 - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( - col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col1 * - 62 + - col0 AS col1 FROM tab0 AS cor0
----
5308
5553
5979
query I rowsort
SELECT ALL 87 AS col0 FROM tab0
----
87
87
87
query I rowsort
SELECT ALL - col0 * - 65 + col2 AS col1 FROM tab0 cor0
----
1593
2276
5867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + ( + col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - + 98 + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-13
-40
-43
query I rowsort
SELECT DISTINCT - col2 + 67 AS col1 FROM tab2
----
29
40
41
query I rowsort
SELECT - 13 + col2 FROM tab2 AS cor0
----
13
14
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col2 FROM tab0 AS cor0
----
-4
-4
-4
query I rowsort
SELECT - col0 * ( col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab0.col1 + col2 * - 58 AS col1 FROM tab0
----
-1828
-4665
39
query I rowsort
SELECT + col1 + - col0 * col2 * col0 AS col1 FROM tab0
----
-1128
-18922
-649431
query I rowsort
SELECT col2 * + col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - - ( cor0.col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT DISTINCT - + ( 16 ) + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - + ( 16 ) + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2694
SELECT ALL - - CAST( NULL AS SIGNED ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - - CAST ( NULL AS INTEGER ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - cor0.col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col1 * - 95 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT + col0 * cor0.col0 + col2 FROM tab2 cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * cor0.col1 col1 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT ALL + + col0 * 54 + + col1 * - col2 FROM tab2 AS cor0
----
-459
2678
3620
query I rowsort
SELECT col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL - cor0.col1 * + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col2 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 26 col2 FROM tab0 cor0
----
26
query I rowsort
SELECT - + col1 + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT ALL - 65 + col2 DIV col0 FROM tab2 AS cor0
----
-62
-65
-65
skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - 65 + col2 / col0 FROM tab2 AS cor0
----
-62
-65
-65
query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 25 AS col0 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT - cor0.col1 + ( + col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * ( + 35 ) AS col0 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT - - col2 FROM tab1 cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT ALL col1 * ( + 32 ) + col0 FROM tab0 cor0
----
2776
3001
3139
query I rowsort
SELECT ALL + - col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col1 * 95 AS col1 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT col0 + col0 + - col1 AS col1 FROM tab1
----
-20
118
147
query I rowsort
SELECT col1 + tab2.col2 + - col0 AS col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - col1 * - col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 + ( + col2 ) AS col1 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2723
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT + col1 DIV 10 col2 FROM tab1 AS cor0
----
1
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2724
SELECT + col1 / 10 col2 FROM tab1 AS cor0
----
1
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
query I rowsort
SELECT - col2 * 74 AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT col2 DIV tab2.col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2729
SELECT col2 / tab2.col1 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT - col1 * cor0.col2 - - col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-2730
SELECT - col1 * cor0.col2 - - col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT DISTINCT + - col0 * col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT col2 DIV 69 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2732
SELECT col2 / 69 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL 88 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab1
----
-99
query I rowsort
SELECT 43 * col2 FROM tab2
----
1118
1161
1634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2738
SELECT CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2738
SELECT CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 91 + - col0 FROM tab0 AS cor0
----
-115
-126
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT DISTINCT - 37 DIV cor0.col2 AS col1 FROM tab0 cor0
----
-1
-37
0
skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - 37 / cor0.col2 AS col1 FROM tab0 cor0
----
-1
-37
0
query I rowsort
SELECT cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - - 89 + col0 * - col0 FROM tab2 AS cor0
----
-5995
-6152
40
query I rowsort
SELECT ALL + 39 * col0 FROM tab1 AS cor0
----
117
2496
3120
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-2745
SELECT + ( col2 ) DIV col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2745
SELECT + ( col2 ) / col1 FROM tab1 cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT col2 DIV - ( col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2746
SELECT col2 / - ( col1 ) AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT - ( + col1 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 56 FROM tab1
----
56
56
56
query I rowsort
SELECT + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + 90 * col2 FROM tab2
----
2340
2430
3420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + col1 * col2 * + col0 col0 FROM tab1
----
36499
4231
99859
query I rowsort
SELECT ( 22 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col1 * + col0 - + 44 FROM tab1 AS cor0
----
34
596
996
query I rowsort
SELECT DISTINCT + col0 + col1 + + ( + ( col2 ) ) FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT ALL + 95 + col2 AS col0 FROM tab0 cor0
----
128
177
96
query I rowsort
SELECT ALL - ( - col1 ) * 43 - col2 AS col2 FROM tab1 AS cor0
----
1064
373
463
query I rowsort
SELECT ALL - - 40 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
-1399
-3478
-927
query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + - col0 + - cor0.col1 - 75 * - col0 AS col1 FROM tab0 AS cor0
----
1690
2493
6495
query I rowsort
SELECT ALL - - col1 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 + + 58 * + col0 + + col1 * col0 FROM tab1 AS cor0
----
249
4288
5600
query I rowsort
SELECT col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT DISTINCT col2 + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
52
89
skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT col2 + - col2 / col1 AS col1 FROM tab1 AS cor0
----
52
89
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT - col1 + 56 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-25
skipif mysql # not compatible
query I rowsort label-2768
SELECT - col1 + 56 / + col2 FROM tab1 AS cor0
----
-10
-13
-25
query I rowsort
SELECT DISTINCT ( - col2 + 95 ) AS col0 FROM tab2
----
57
68
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + tab1.col2 + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab0
----
2
62
62
query I rowsort
SELECT col2 + - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + 10 FROM tab2
----
10
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2
----
73
query I rowsort
SELECT - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT + + 4 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - 65 - ( cor0.col2 * 70 ) AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 2676730637d014c37f8bfe53d8fc27c8
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT DISTINCT - ( - col0 ) * tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - col0 + 91 FROM tab2 AS cor0
----
12
13
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2788
SELECT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2788
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - cor0.col2 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT tab2.col2 * - col0 * col2 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col2 + tab2.col2 + - col1 AS col0 FROM tab2
----
-7
23
59
query I rowsort
SELECT ALL - 25 FROM tab2, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT - col1 DIV col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2794
SELECT - col1 / col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - col2 * - col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL 73 AS col1 FROM tab0
----
73
73
73
query I rowsort
SELECT + cor0.col2 + + 82 FROM tab1, tab2 cor0
----
9 values hashing to 8b6ecd7fbc7bb6c63808b9228b45ce38
query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab0
----
35
query I rowsort
SELECT - col0 + tab2.col0 * + col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ( 45 ) + - col1 AS col1 FROM tab1 AS cor0
----
19
32
35
query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT DISTINCT - col2 DIV tab0.col0 AS col2 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - col2 / tab0.col0 AS col2 FROM tab0
----
-1
0
query I rowsort
SELECT + 87 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT ALL col1 DIV cor0.col0 AS col0 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL col1 / cor0.col0 AS col0 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT - - ( - 39 ) + + col1 * 82 FROM tab1 cor0
----
1027
2093
781
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT - 61 DIV - col0 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2807
SELECT - 61 / - col0 FROM tab2
----
0
0
8
query I rowsort
SELECT DISTINCT + 12 * col2 AS col0 FROM tab2
----
312
324
456
onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT + + cor0.col1 + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2809
SELECT + + cor0.col1 + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT + col2 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + cor0.col2 * - 71 FROM tab1 cor0
----
-3834
-4047
-6816
query I rowsort
SELECT + 83 AS col1 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT ALL + ( col0 + col2 ) AS col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT + tab0.col0 - col2 DIV - tab0.col2 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2814
SELECT + tab0.col0 - col2 / - tab0.col2 AS col0 FROM tab0
----
25
36
90
query I rowsort
SELECT - ( col0 ) - + col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL + col2 * col0 * + col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT ALL col1 * + 66 FROM tab1
----
1716
660
858
query I rowsort
SELECT + ( col0 ) + tab0.col2 FROM tab0
----
171
36
57
query I rowsort
SELECT + ( + ( cor0.col0 ) ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( - col0 ) * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + - 55 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
1484
607
811
query I rowsort
SELECT DISTINCT 75 FROM tab1
----
75
query I rowsort
SELECT 75 - col1 * - col0 AS col2 FROM tab0
----
2139
3470
8174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT + CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2824
SELECT + CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col2 + - col0 + 66 FROM tab1 AS cor0
----
225
3650
7666
query I rowsort
SELECT + - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + - col2 * + col0 + cor0.col2 * cor0.col1 - + col1 AS col2 FROM tab0 AS cor0
----
-35
1960
73
query I rowsort
SELECT ALL + - col2 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT + col0 + col2 DIV + 57 + 28 FROM tab1 cor0
----
109
31
93
skipif mysql # not compatible
query I rowsort label-2829
SELECT + col0 + col2 / + 57 + 28 FROM tab1 cor0
----
109
31
93
query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0 AS cor0
----
98
query I rowsort
SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - tab1.col0 - col0 AS col2 FROM tab1
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + + col1 - - col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - 68 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT + - col1 * col2 + 36 FROM tab2 AS cor0
----
-1498
-610
-801
query I rowsort
SELECT - - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col0 * + col1 * col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2845
SELECT ALL - col2 + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - col2 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 + col0 * ( - 74 + col0 ) FROM tab2 AS cor0
----
-442
339
422
query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 30 + + col0 FROM tab1 AS cor0
----
110
33
94
query I rowsort
SELECT - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col2 + col0 * + 89 FROM tab1
----
321
5753
7216
query I rowsort
SELECT col1 - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 37 * 14 FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 4d94fc4f38fbad07fb84114f59d1a593
query I rowsort
SELECT + col0 * 14 * col0 FROM tab0 AS cor0
----
110894
17150
8064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col1 + + 80 AS col0 FROM tab2 AS cor0
----
111
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT ALL - col0 DIV + 42 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - col0 / + 42 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - 33 + - col1 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT ALL + - ( + 40 ) * - col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT DISTINCT 60 * + col0 DIV - col0 FROM tab1 AS cor0
----
-60
skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT 60 * + col0 / - col0 FROM tab1 AS cor0
----
-60
query I rowsort
SELECT - + 40 * - col0 * cor0.col0 FROM tab1 AS cor0
----
163840
256000
360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2868
SELECT col0 + ( - col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2868
SELECT col0 + ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col1 * - 57 FROM tab2 AS cor0
----
-36901
-47716
-87516
query I rowsort
SELECT - col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2872
SELECT + CAST( + 36 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
skipif mysql # not compatible
query I rowsort label-2872
SELECT + CAST ( + 36 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL + + ( - 36 ) * col2 + + ( col1 ) AS col0 FROM tab0 cor0
----
-1102
-2861
61
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT ALL + 5 DIV - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + 5 / - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT ALL + + cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 27 + - col0 * - col1 * 68 col1 FROM tab2 AS cor0
----
15593
314529
91783
query I rowsort
SELECT + col1 * + col0 + - tab0.col2 + col0 AS col2 FROM tab0
----
2055
3429
8106
query I rowsort
SELECT DISTINCT tab1.col0 + - 52 AS col0 FROM tab1
----
-49
12
28
query I rowsort
SELECT DISTINCT + - col0 * + col1 * col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT DISTINCT - col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - col2 * ( col1 ) + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT - cor0.col0 DIV - col0 + + 80 col0 FROM tab1 cor0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2884
SELECT - cor0.col0 / - col0 + + 80 col0 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT ALL - + col0 * col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT DISTINCT col1 * CAST( col1 AS SIGNED ) - col2 col2 FROM tab0 cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT col1 * CAST ( col1 AS INTEGER ) - col2 col2 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + - col1 * 10 AS col2 FROM tab1 AS cor0
----
-100
-130
-260
query I rowsort
SELECT + + col0 - 16 * + col2 * col2 FROM tab0 AS cor0
----
-107495
-17400
19
query I rowsort
SELECT DISTINCT + + col0 * - col0 + col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1404
-4819
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT DISTINCT + col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * col1 + + col2 * col2 FROM tab1 cor0
----
10256
2994
3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 93 * - col1 col0 FROM tab0 AS cor0
----
-7965
-8381
-9020
query I rowsort
SELECT DISTINCT - 0 * col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT ALL - - CAST( NULL AS SIGNED ) * 83 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - - CAST ( NULL AS INTEGER ) * 83 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 + + col1 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL ( 93 ) FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT col0 * cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - + col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 + - col0 col0 FROM tab0 cor0
----
-1260
-600
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT ALL - col0 DIV + 21 + col1 AS col1 FROM tab1 AS cor0
----
10
26
7
skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - col0 / + 21 + col1 AS col1 FROM tab1 AS cor0
----
10
26
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2905
SELECT ALL + CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - - col2 - + col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col0 * col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col2 * + col1 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 tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 - - col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col0 - + col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - col0 + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + - 51 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT ALL - col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT tab0.col0 + col0 - col1 AS col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT col1 * col2 * + col1 - - 61 FROM tab2
----
11043
26008
90567
query I rowsort
SELECT 63 * - col2 + - tab2.col2 FROM tab2
----
-1664
-1728
-2432
query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - cor0.col0 + + 31 * + ( - cor0.col0 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-5852
-62790
-92983
query I rowsort
SELECT + - col1 + ( col2 + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-61
13931
1795
query I rowsort
SELECT col0 - - 94 * - col2 FROM tab0 AS cor0
----
-3078
-59
-7619
query I rowsort
SELECT DISTINCT + col1 * + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT DISTINCT cor0.col2 * 77 + cor1.col2 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
9 values hashing to 26bf9103c7525daefa9c6b9a5da95486
query I rowsort
SELECT + col0 + col2 - + col2 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - ( tab1.col2 ) * ( + 69 ) * - col1 FROM tab1
----
39330
86112
96876
query I rowsort
SELECT DISTINCT 84 - - col2 FROM tab1
----
138
141
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT - col2 * col1 - col1 DIV - 46 AS col1 FROM tab0
----
-2837
-7461
-95
skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - col2 * col1 - col1 / - 46 AS col1 FROM tab0
----
-2837
-7461
-95
query I rowsort
SELECT col1 + 57 * 95 AS col0 FROM tab2 AS cor0
----
5432
5446
5474
query I rowsort
SELECT - cor0.col1 * + 74 * col1 AS col0 FROM tab0 AS cor0
----
-547304
-612794
-696266
query I rowsort
SELECT cor0.col0 - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 63 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT DISTINCT - 88 DIV - cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - 88 / - cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
2
3
query I rowsort
SELECT tab2.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - col1 + 75 AS col1 FROM tab1
----
49
62
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col0 * - ( cor0.col0 ) - - col1 * ( + col1 * cor0.col1 ) FROM tab2 AS cor0
----
-1328
199295
29742
query I rowsort
SELECT ALL + + col0 + + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - - cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT - col2 DIV - col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2945
SELECT - col2 / - col0 AS col2 FROM tab1
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2946
SELECT col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2946
SELECT col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + tab2.col0 * - col2 + col1 * - col0 AS col0 FROM tab2
----
-406
-4345
-6630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT - - 60 DIV - 86 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2950
SELECT - - 60 / - 86 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + - col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL - 11 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT 7 FROM tab1
----
7
query I rowsort
SELECT + + ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 59 FROM tab1 AS cor0
----
59
query I rowsort
SELECT DISTINCT - col1 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT ( col2 ) + - col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT + col2 * + col1 + col1 + + ( + 45 ) FROM tab0 AS cor0
----
239
2969
7598
query I rowsort
SELECT ALL + ( + 85 ) FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL - 28 * - col0 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT 79 + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-3569
-7601
-83
query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - col2 * - col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT + + 82 DIV col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2968
SELECT + + 82 / col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT ALL - col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - 52 FROM tab1 AS cor0
----
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT DISTINCT col1 + - col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT col1 + - col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - 0 * + col0 * 7 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 27 + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 79594e5a945fc94179551fa2b81a8e26
query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ( col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - ( - col0 ) * + 24 AS col0 FROM tab1 AS cor0
----
1536
1920
72
query I rowsort
SELECT DISTINCT + col2 + + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT - ( cor0.col0 ) + ( 87 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-89
skipif mysql # not compatible
query I rowsort label-2980
SELECT - ( cor0.col0 ) + ( 87 ) / col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-89
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + ( col1 ) * col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT DISTINCT + + col1 * - col1 DIV ( + col1 ) + cor0.col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + + col1 * - col1 / ( + col1 ) + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - + col1 * - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + + cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * col1 - cor0.col0 * col0 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT ALL col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - tab1.col2 * - col2 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL + col1 + + col1 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT - + cor0.col2 * col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2992
SELECT - col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT + - col0 DIV col0 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2993
SELECT + - col0 / col0 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL + col2 * - col1 * - col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 * - col2 * + col1 col0 FROM tab2 AS cor0
----
-22568
-24531
-39825
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 - + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( - col2 ) * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT 26 * 73 AS col0 FROM tab0
----
1898
query I rowsort
SELECT + 90 FROM tab0, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ( + col0 ) + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT 75 + + col1 FROM tab2
----
106
134
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab2
----
4
4
4
query I rowsort
SELECT - ( - col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 69 AS col0 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT ALL - ( col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab0
----
26
query I rowsort
SELECT DISTINCT - 38 * tab1.col0 AS col1 FROM tab1
----
-114
-2432
-3040
query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL tab2.col1 + + col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 + col0 FROM tab1
----
29
74
93
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( + col2 * - tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col2 * col0 + - col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT ALL col2 + col1 * + col1 AS col2 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab1.col2 + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 / col2 FROM tab0 WHERE ( NULL ) <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col0 NOT BETWEEN ( col1 ) AND col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * + col1 col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab1
----
0
query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 + - tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL - col1 + col0 FROM tab0 WHERE NOT NULL <= ( col0 * col2 )
----
query I rowsort
SELECT DISTINCT + col1 * tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col1 * + col1 * tab1.col0 AS col1 FROM tab1 WHERE NULL <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT - tab2.col0 DIV col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3032
SELECT - tab2.col0 / col0 FROM tab2
----
-1
-1
-1
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND + col1
----
query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - tab2.col2 + + col2 - - col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT col0 + - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL - col0 + - col1 * col1 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL <= col1 * - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col0 * col0 AS col2 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col2 + col2 * - col0 FROM tab2
----
-162
-2002
-2964
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 + col2 )
----
query I rowsort
SELECT tab2.col2 * col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col2 + col2 * - col2 + + col0 * tab2.col1 AS col0 FROM tab2
----
-139
-539
3900
query I rowsort
SELECT - col1 + - col2 * col0 + col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col1 - col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col0 - + col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT col2 + - col0 * + col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT col2 + + col2 - - col0 FROM tab0
----
253
37
90
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( col1 * + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 <= ( col2 + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + col1 )
----
query I rowsort
SELECT tab0.col1 * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT ALL + col2 DIV + col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + col2 / + col0 FROM tab0
----
0
0
1
query I rowsort
SELECT - cor0.col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT cor0.col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col1 - col1 FROM tab1
----
-20
-26
-52
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT + col0 * - col2 * col2 + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-132
-26138
-598437
skipif mysql # not compatible
query I rowsort label-3066
SELECT + col0 * - col2 * col2 + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-132
-26138
-598437
query I rowsort
SELECT + cor0.col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT col1 * tab1.col1 FROM tab1 WHERE NOT NULL <> ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT ALL + col1 + col0 DIV tab2.col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + col1 + col0 / tab2.col1 AS col0 FROM tab2
----
21
31
60
query I rowsort
SELECT - col0 * col1 / col0 + + col0 * col0 FROM tab0 WHERE - col1 + col0 = + col0
----
query I rowsort
SELECT col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 ) <= col1 * - col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1 + + col1 )
----
query I rowsort
SELECT ALL col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab1 cor0
----
121
176
57
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT DISTINCT + col0 DIV col2 + cor0.col1 DIV col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1262
579
7923
skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + col0 / col2 + cor0.col1 / col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1262
579
7923
query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab2.col2 * + col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col1 * col0 + col0 col1 FROM tab2 AS cor0
----
-1185
-203
-4446
query I rowsort
SELECT col0 + - col0 * col0 AS col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT 36 * col0 + col0 - - CAST( NULL AS SIGNED ) / ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3089
SELECT 36 * col0 + col0 - - CAST ( NULL AS INTEGER ) / ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab1.col1 + 30 * col2 + 75 * - col0 AS col1 FROM tab1
----
-3080
-3107
1421
query I rowsort
SELECT - 9 + col1 * + col0 * 52 - 41 FROM tab0
----
107278
176490
421098
query I rowsort
SELECT - col1 + col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - + 3 * + col0 + - 41 + + col2 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1722
-791
-951
query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + + col1 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT 34 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT - 66 FROM tab1
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab1
----
-26
-26
-26
query I rowsort
SELECT + 21 * - 39 + col2 * 35 AS col2 FROM tab2
----
126
511
91
query I rowsort
SELECT DISTINCT - 25 FROM tab2, tab0 AS cor0
----
-25
query I rowsort
SELECT DISTINCT 35 FROM tab1
----
35
query I rowsort
SELECT ALL + 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT ALL 95 * col1 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT - 59 * cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-1923
-24
-4749
onlyif mysql # use DIV operator for integer division
query I rowsort label-3105
SELECT + ( col2 ) DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( col2 ) / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + + col0 * col0 + cor0.col0 + col2 FROM tab1 cor0
----
4217
6576
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT DISTINCT - 36 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - 36 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL 46 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT cor0.col0 * col0 + + 18 - - col1 AS col2 FROM tab0 AS cor0
----
1340
680
8030
query I rowsort
SELECT ALL + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 - col2 col1 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT ALL - 60 FROM tab2 AS cor0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT + - 42 * - col0 FROM tab2 cor0
----
294
3276
3318
onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT ALL + - col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + - col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 76 FROM tab0 cor0
----
-76
-76
-76
query I rowsort
SELECT ALL + 32 * col0 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3121
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3121
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 81 + 94 FROM tab2, tab0 AS cor0
----
9 values hashing to df1e0ae2b82e246cd0e229a92da26b08
skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * col1 + + 56 * - col1 * + col1 FROM tab0 AS cor0
----
-1127854
-482288
-530299
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 * col1 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT ALL + col2 + - 19 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + ( - 48 ) FROM tab1 AS cor0
----
-48
query I rowsort
SELECT ( + col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 91 + cor0.col1 FROM tab2 AS cor0
----
-32
-60
-74
query I rowsort
SELECT ALL + 38 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - - col1 AS col2 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 8 col1 FROM tab2
----
-34
-35
-46
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT col1 * - 62 AS col0 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT DISTINCT 83 FROM tab2 AS cor0
----
83
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3142
SELECT - - ( col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3142
SELECT - - ( col2 ) / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( + 0 ) + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + ( - col2 ) + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col0 + ( + col0 ) AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + 14 AS col0 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT - 81 FROM tab2 AS cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col2 + + cor0.col0 * ( col1 ) * - col0 FROM tab1 AS cor0
----
-40390
-81952
1170
query I rowsort
SELECT ALL + + ( - col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 36 + col0 AS col1 FROM tab0 AS cor0
----
125
60
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3152
SELECT ALL - CAST( - col0 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - CAST ( - col0 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - - col0 + col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT ALL 71 DIV - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
31
82
skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL 71 / - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
31
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab1
----
31
31
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 8 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT col0 + - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 82 col0 FROM tab0 AS cor0
----
168
173
179
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( col0 ) + col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 41 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT 56 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT col2 + + cor0.col1 * 72 * - cor0.col0 FROM tab0 AS cor0
----
-148575
-244439
-583046
query I rowsort
SELECT - cor0.col0 + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + col1 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT - - col0 DIV col2 + + 12 AS col0 FROM tab0 AS cor0
----
12
13
47
skipif mysql # not compatible
query I rowsort label-3169
SELECT - - col0 / col2 + + 12 AS col0 FROM tab0 AS cor0
----
12
13
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - col2 * col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL + col2 + 39 AS col2 FROM tab2 AS cor0
----
65
66
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3173
SELECT ALL 44 * col0 + - CAST( NULL AS SIGNED ) / - col0 + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 44 * col0 + - CAST ( NULL AS INTEGER ) / - col0 + col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3174
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT ( + 81 ) AS col1 FROM tab2, tab1 AS cor0
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col1 * ( tab0.col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col2 + col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - - cor0.col1 * ( 52 ) AS col0 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT ALL col2 DIV 69 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL col2 / 69 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT col0 + + ( - col0 ) * col2 * 25 AS col2 FROM tab1
----
-191920
-4047
-91136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3187
SELECT ALL col1 + 7 * col2 DIV col0 + ( + col1 * + col1 ) FROM tab0 AS cor0
----
7491
8378
9506
skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL col1 + 7 * col2 / col0 + ( + col1 * + col1 ) FROM tab0 AS cor0
----
7491
8378
9506
query I rowsort
SELECT col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 * 23 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 cor0, tab0
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - 58 * + col2 * - col0 FROM tab2
----
10962
117624
174116
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3195
SELECT - CAST( cor0.col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3195
SELECT - CAST ( cor0.col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + ( col2 ) * col1 * ( - 16 * - col2 ) + ( 45 * + col0 + 27 ) AS col2 FROM tab2 cor0
----
361926
396350
641681
query I rowsort
SELECT + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 39 * + col0 + - col1 FROM tab0 AS cor0
----
1268
3380
850
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT + cor0.col2 DIV col2 + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
122
177
58
skipif mysql # not compatible
query I rowsort label-3200
SELECT + cor0.col2 / col2 + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
122
177
58
query I rowsort
SELECT - ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + ( 48 ) AS col2 FROM tab0
----
48
query I rowsort
SELECT ALL + - 52 + col0 * 26 AS col1 FROM tab0 AS cor0
----
2262
572
858
query I rowsort
SELECT + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 70 AS col1 FROM tab2
----
70
70
70
query I rowsort
SELECT - 26 AS col2 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - col2 + col2 * ( col1 + col2 ) AS col1 FROM tab2
----
1539
2052
2184
query I rowsort
SELECT - - col2 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL 9 + col2 * col0 FROM tab0 AS cor0
----
44
7307
801
query I rowsort
SELECT DISTINCT - - col2 - col2 * ( col1 + - col1 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 20 + - col0 AS col2 FROM tab0 cor0
----
-15
-4
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT DISTINCT + cor0.col2 / + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + cor0.col2 / + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT + col1 * col1 + + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ( 58 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL + cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 53 * col2 + - cor0.col0 + + col2 * - cor0.col0 FROM tab1 cor0
----
-2672
-691
2697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3220
SELECT - CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3220
SELECT - CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT DISTINCT + - col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + - col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col2 * col2 + 98 AS col1 FROM tab1 AS cor0
----
3014
3347
9314
query I rowsort
SELECT ALL - + col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col0 * + 51 AS col1 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT + col2 * + col2 + col0 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-4718
-5330
687
query I rowsort
SELECT ALL - + col0 + col0 + + 2 AS col2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT ALL tab0.col2 + col0 * + ( - col0 ) AS col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT ALL ( col0 ) + col2 * - col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + col2 * + col0 * col0 - - 18 FROM tab1
----
233490
504
614418
query I rowsort
SELECT + col0 - + col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 + col1 * - col1 * + col0 FROM tab0
----
-177471
-329314
-736927
query I rowsort
SELECT ALL ( col0 ) + - ( + col1 ) AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL col0 + - 57 * col0 FROM tab2 cor0
----
-392
-4368
-4424
onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT DISTINCT - - col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - - col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + + 80 * col0 + col1 * 9 + + col0 AS col2 FROM tab0 AS cor0
----
2718
3708
8028
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - + 11 * - col1 col1 FROM tab0 AS cor0
----
1090
1102
970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 18 col1 FROM tab1 cor0
----
-46
-62
15
query I rowsort
SELECT - + 74 * + col1 AS col0 FROM tab0 AS cor0
----
-6364
-6734
-7178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 + col1 col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL - ( + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - ( - col1 ) + - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + 57 AS col0 FROM tab0 AS cor0
----
139
58
90
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 * - 92 FROM tab0
----
-2208
-3220
-8188
query I rowsort
SELECT ALL - tab2.col1 * + col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - col2 + + 20 * - col2 * - col1 + + col1 AS col1 FROM tab0 cor0
----
149249
2036
56813
query I rowsort
SELECT col2 * - col0 + col2 + - 82 AS col2 FROM tab2 AS cor0
----
-2084
-244
-3046
query I rowsort
SELECT col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT ALL - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT - col0 + ( - tab1.col0 ) AS col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT - col0 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3263
SELECT col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + 53 * col1 AS col1 FROM tab2 AS cor0
----
1616
3101
863
query I rowsort
SELECT ALL + - col1 * 97 + col0 - - col2 FROM tab1 AS cor0
----
-1085
-2465
-849
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3267
SELECT cor0.col2 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3267
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3268
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + + col2 * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + + col2 * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - col0 * + col0 - + 73 AS col1 FROM tab1 AS cor0
----
-4169
-6473
-82
query I rowsort
SELECT - - col1 * 66 AS col0 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT DISTINCT + + col2 + 85 * + 12 AS col0 FROM tab0 AS cor0
----
1021
1053
1102
query I rowsort
SELECT - col0 + + col2 * 21 FROM tab2
----
468
560
719
query I rowsort
SELECT - ( col1 ) + + 51 * - col0 * - col0 AS col0 FROM tab0
----
29290
403880
62378
query I rowsort
SELECT ALL - 85 * + col2 AS col1 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT ALL col2 * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 54 * cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL col1 * + tab2.col0 * 71 FROM tab2
----
15407
326742
95353
query I rowsort
SELECT ALL col0 + + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col2 * + 6 * + 69 FROM tab2 AS cor0
----
10764
11178
15732
onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT col0 DIV + 35 col1 FROM tab1 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3282
SELECT col0 / + 35 col1 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + cor0.col1 * ( - col0 + - col2 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - cor0.col2 col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + 69 * col2 * - 58 FROM tab1 cor0
----
216108
228114
384192
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT ALL col1 * + ( + col2 ) + tab0.col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT - col1 + - 39 AS col1 FROM tab1 AS cor0
----
-49
-52
-65
query I rowsort
SELECT DISTINCT + 57 * tab2.col1 + col1 FROM tab2
----
1798
3422
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab1
----
99
99
99
query I rowsort
SELECT ( col2 * col0 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + ( col2 ) * - col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3295
SELECT + col2 * col0 + CAST( col0 AS SIGNED ) * + col2 FROM tab2
----
378
4056
6004
skipif mysql # not compatible
query I rowsort label-3295
SELECT + col2 * col0 + CAST ( col0 AS INTEGER ) * + col2 FROM tab2
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT ALL + 35 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + 35 / cor0.col0 FROM tab2 AS cor0
----
0
0
5
query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT + 90 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3298
SELECT + 90 / + cor0.col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 53 * cor0.col2 * - 19 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 11bf38d86ef6434b82b1478c6de74651
query I rowsort
SELECT ALL - col2 + - cor0.col0 * col0 AS col1 FROM tab2 cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT DISTINCT - ( + col1 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - ( + col1 ) / - col1 AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + + col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT - col2 DIV - col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3304
SELECT - col2 / - col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT 17 FROM tab0
----
17
query I rowsort
SELECT ALL - col0 - col2 * + col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - cor0.col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + - col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - 12 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT - + cor0.col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + + 51 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL + - col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + + cor0.col1 * col2 + - 73 AS col1 FROM tab0 AS cor0
----
24
2765
7389
query I rowsort
SELECT ALL - + 82 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - 70 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1766
-2547
-6321
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT DISTINCT 46 FROM tab2, tab1 AS cor0
----
46
query I rowsort
SELECT - col2 * 16 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT DISTINCT - col1 + 32 AS col1 FROM tab2 AS cor0
----
-27
1
15
query I rowsort
SELECT + col1 + 23 FROM tab2 AS cor0
----
40
54
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) + cor0.col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL 90 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
-7707
-8108
-8729
query I rowsort
SELECT DISTINCT + col1 + 81 * - col2 AS col2 FROM tab0 AS cor0
----
-2587
-6551
16
query I rowsort
SELECT DISTINCT - ( + 80 ) + - col0 * ( 38 ) AS col1 FROM tab1 AS cor0
----
-194
-2512
-3120
query I rowsort
SELECT - 95 * col2 FROM tab0 AS cor0
----
-3135
-7790
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL ( - 47 ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47
query I rowsort
SELECT ALL ( col2 ) + col2 * col1 + - cor0.col1 FROM tab0 AS cor0
----
1
2785
7453
query I rowsort
SELECT + 64 + col2 FROM tab0 AS cor0
----
146
65
97
query I rowsort
SELECT - + 35 AS col2 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT - col2 * col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - - cor0.col2 + - col2 * 53 + col1 AS col2 FROM tab0 AS cor0
----
-1630
-4173
45
query I rowsort
SELECT - + col2 + cor0.col1 * col0 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * col0 + + col0 + + 83 * - cor0.col1 col0 FROM tab1 cor0
----
-2404
-6078
-7639
query I rowsort
SELECT - 48 AS col0 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + col2 + - col0 + col0 * ( col0 * col2 ) AS col1 FROM tab2
----
1343
158132
237117
query I rowsort
SELECT tab0.col1 + - col2 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT - - 64 * 83 DIV col2 + cor0.col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
161
5312
64
skipif mysql # not compatible
query I rowsort label-3343
SELECT - - 64 * 83 / col2 + cor0.col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
161
5312
64
query I rowsort
SELECT DISTINCT 30 FROM tab0 AS cor0
----
30
query I rowsort
SELECT ALL tab1.col1 * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ( 33 ) + - col2 FROM tab1 AS cor0
----
-21
-24
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT ALL col0 DIV tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL col0 / tab2.col0 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1, tab0, tab1 AS cor0
----
57
query I rowsort
SELECT ALL - col0 + + tab0.col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( col2 ) - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * col1 + col1 * col2 FROM tab0
----
14924
194
5676
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT col0 * tab0.col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT 0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 42 * + 42 AS col1 FROM tab2 AS cor0
----
-1764
-1764
-1764
query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 29 FROM tab2, tab1 AS cor0, tab0 cor1
----
29
query I rowsort
SELECT - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT - ( tab1.col2 ) DIV 12 FROM tab1
----
-4
-4
-8
skipif mysql # not compatible
query I rowsort label-3359
SELECT - ( tab1.col2 ) / 12 FROM tab1
----
-4
-4
-8
query I rowsort
SELECT ALL - col1 * col1 + + col2 * col1 FROM tab2
----
-124
-1947
357
query I rowsort
SELECT - 21 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT DISTINCT - col1 + + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT + col2 + col1 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col2 * 66 col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT - ( + col2 ) FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 4 FROM tab1
----
4
4
4
query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col1 + 45 AS col2 FROM tab0 cor0
----
131
136
142
query I rowsort
SELECT ALL - ( - 46 * cor0.col0 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to e6b08b0a6a2e0ed89fc3295c77629162
query I rowsort
SELECT - col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT + col0 DIV col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3373
SELECT + col0 / col1 FROM tab1 cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 * tab1.col1 + 31 col0 FROM tab1
----
16255
36535
5731
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT col0 + col1 DIV ( col1 ) AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT col0 + col1 / ( col1 ) AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT - col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + cor0.col1 * col2 + - 97 AS col1 FROM tab0 cor0
----
0
2741
7365
query I rowsort
SELECT DISTINCT 48 + 3 FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT ALL + col0 DIV col1 + col1 DIV + col0 - col0 * + col2 FROM tab0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL + col0 / col1 + col1 / + col0 - col0 * + col2 FROM tab0
----
-33
-7297
-789
query I rowsort
SELECT DISTINCT + col1 + 86 FROM tab2
----
103
117
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT col0 + CAST( - ( - col1 ) AS SIGNED ) + tab0.col0 * + ( tab0.col0 ) DIV ( - col0 ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3381
SELECT col0 + CAST ( - ( - col1 ) AS INTEGER ) + tab0.col0 * + ( tab0.col0 ) / ( - col0 ) FROM tab0
----
86
91
97
query I rowsort
SELECT - tab1.col1 + + ( - 1 ) - + col1 FROM tab1
----
-21
-27
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 - col1 FROM tab0
----
-7300
-854
-97
query I rowsort
SELECT - 31 FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT DISTINCT col0 - + tab2.col0 FROM tab2
----
0
query I rowsort
SELECT col0 + + ( col2 + + col0 ) AS col0 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT cor0.col1 * ( 73 ) AS col2 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col2 * cor0.col2 - cor0.col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT ( 86 ) * + col0 AS col2 FROM tab1 AS cor0
----
258
5504
6880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT + - col1 DIV col0 - - col0 AS col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-3393
SELECT + - col1 / col0 - - col0 AS col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT - col0 DIV 31 AS col1 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-3394
SELECT - col0 / 31 AS col1 FROM tab2 AS cor0
----
-2
-2
0
query I rowsort
SELECT ALL - + ( col1 ) * col0 * - col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT 56 * col0 AS col0 FROM tab1 cor0
----
168
3584
4480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab2 AS cor0
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3398
SELECT ALL ( col2 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL ( col2 ) / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - + col1 * - col1 + - col2 FROM tab2 AS cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 48 * col2 col1 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT ALL - 29 + - 1 AS col0 FROM tab1 cor0
----
-30
-30
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT - ( + col2 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3402
SELECT - ( + col2 ) / + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * col0 col1 FROM tab1 AS cor0
----
-243
-5184
-6480
query I rowsort
SELECT ALL - + 11 + 29 FROM tab2 cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col2 col2 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 - + 69 FROM tab2
----
-10
-38
-52
query I rowsort
SELECT col1 + - 60 AS col0 FROM tab1
----
-34
-47
-50
query I rowsort
SELECT ALL - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + col1 * - 17 * + col1 AS col1 FROM tab1 AS cor0
----
-11492
-1700
-2873
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ( 42 ) AS col2 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT 48 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 + col1 FROM tab1 AS cor0
----
1066
130
660
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT ALL - 63 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-63
0
skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - 63 / col2 AS col0 FROM tab0 AS cor0
----
-1
-63
0
query I rowsort
SELECT ( - col2 ) AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 8 * col2 * + col0 + ( col2 ) FROM tab2 cor0
----
1539
16250
24054
onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT DISTINCT - 64 DIV cor0.col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-63
32
82
skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - 64 / cor0.col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-63
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col2 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col2 * + ( - col0 ) col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL col0 + + cor0.col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT 10 + + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2054
-3385
-8089
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 65 + col2 col1 FROM tab2 AS cor0
----
-27
-38
-39
query I rowsort
SELECT DISTINCT - col1 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + 71 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT + 79 * col2 + + tab1.col1 * - col0 FROM tab1
----
3863
4188
6544
query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - + 5 * - col0 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - + ( - col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 92 FROM tab2
----
-92
-92
-92
query I rowsort
SELECT 93 FROM tab2 AS cor0
----
93
93
93
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT DISTINCT 39 FROM tab2 AS cor0
----
39
query I rowsort
SELECT ALL - col2 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + 53 * - cor0.col2 + + col2 FROM tab1 AS cor0
----
-2808
-2964
-4992
query I rowsort
SELECT + col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - - 29 + cor0.col2 FROM tab1 AS cor0
----
125
83
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT + col1 DIV col1 + col2 * + col2 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-3442
SELECT + col1 / col1 + col2 * + col2 FROM tab1 AS cor0
----
2917
3250
9217
onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3443
SELECT + col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL + - col1 + + 27 AS col1 FROM tab1 AS cor0
----
1
14
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * - 87 + + col2 * col2 col2 FROM tab0 AS cor0
----
-178479
-295364
-697889
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0
----
37
query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0
----
-1
-33
-82
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col0 * col2 AND NULL
----
query I rowsort
SELECT - col2 + + col1 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - tab1.col2 + col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT col0 - col2 AS col1 FROM tab0
----
-9
34
7
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + col1 * col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( col1 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT DISTINCT col2 DIV + col0 AS col1 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT col2 / + col0 AS col1 FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT DISTINCT + col1 DIV col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + col1 / col1 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT DISTINCT + col1 DIV + tab1.col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + col1 / + tab1.col1 FROM tab1
----
1
query I rowsort
SELECT tab0.col2 + col2 - col1 AS col1 FROM tab0
----
-20
-95
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * col0 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col0 + col2 + + col1 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT col0 DIV tab0.col0 + - col0 AS col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3463
SELECT col0 / tab0.col0 + - col0 AS col1 FROM tab0
----
-23
-34
-88
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > col2 / - col1 + col0
----
78
59
26
79
17
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 / col0 col1 FROM tab1 WHERE NOT - col1 NOT IN ( col0 * + col1 )
----
query I rowsort
SELECT DISTINCT + col2 + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT - col1 - - col0 > NULL
----
query I rowsort
SELECT ALL + col0 + col1 + col1 AS col1 FROM tab0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT ALL + col2 DIV col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + col2 / col0 AS col2 FROM tab0
----
0
0
1
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 - - col2 ) < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT + col0 DIV col2 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3471
SELECT + col0 / col2 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT + col2 + col2 * + col2 + - col1 AS col1 FROM tab0
----
-95
1036
6715
query I rowsort
SELECT - col0 * - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * - col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - tab1.col0 * col2 * col1 AS col1 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT col0 + - col1 * col1 + - col1 * + col1 FROM tab1
----
-1349
-136
-258
query I rowsort
SELECT + col0 + col2 - + tab0.col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + col1 + col1 FROM tab0 WHERE ( NULL ) <> ( col1 )
----
query I rowsort
SELECT ALL + tab1.col0 * col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT + col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT - col2 + col0 DIV + col0 col1 FROM tab1
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3486
SELECT - col2 + col0 / + col0 col1 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT DISTINCT - col1 * - tab1.col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab1.col2 * col1 * tab1.col1 AS col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL + col2 * tab0.col2 AS col1 FROM tab0
----
1
1089
6724
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 + - tab0.col1 * - col0 ) NOT IN ( col1 * + col1 )
----
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col1 * col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort
SELECT + 10 + + col1 * CAST ( - 55 AS REAL ) AS col2 FROM tab1 AS cor0
----
-1420
-540
-705
query I rowsort
SELECT - - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1, tab0 AS cor0
----
73
query I rowsort
SELECT 72 FROM tab1
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col2 FROM tab1 AS cor0
----
-91
-91
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 * + col1 col2 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT - - col0 - + col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 * - 32 AS col1 FROM tab1
----
-1728
-1824
-3072
query I rowsort
SELECT ALL tab0.col1 + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT - col1 + 69 FROM tab1
----
43
56
59
query I rowsort
SELECT - col0 * col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - + ( col0 ) * 16 + - col0 AS col1 FROM tab0 AS cor0
----
-1513
-408
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - - cor0.col1 + col2 * - ( ( + col1 ) ) FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3510
SELECT 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-3510
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + + cor0.col1 * 88 AS col0 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT ALL - col0 * - col1 + ( col2 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col1 + 43 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1364
2596
748
query I rowsort
SELECT DISTINCT + - col2 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * + 1 col0 FROM tab1 AS cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 * + col2 col1 FROM tab0
----
1914
4756
58
query I rowsort
SELECT 65 FROM tab2
----
65
65
65
query I rowsort
SELECT + 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ( 13 ) FROM tab0 cor0
----
13
13
13
query I rowsort
SELECT + + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 37 * 91 FROM tab2 AS cor0
----
3367
3367
3367
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT - - CAST( - col2 AS SIGNED ) + - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-3528
SELECT - - CAST ( - col2 AS INTEGER ) + - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * + col1 * cor0.col0 col2 FROM tab2 AS cor0
----
-13671
-289926
-84609
query I rowsort
SELECT col2 - + col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - + col0 * col0 - col1 * - col0 FROM tab2 cor0
----
-1482
-4898
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 * - col2 + col1 col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL + 55 + col2 * col2 FROM tab1 AS cor0
----
2971
3304
9271
query I rowsort
SELECT - col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 11 * + col0 AS col2 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + cor0.col0 + col1 * + col0 - + col2 * + col2 FROM tab0 AS cor0
----
1464
3429
999
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT DISTINCT 52 DIV + col1 col0 FROM tab1 cor0
----
2
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT 52 / + col1 col0 FROM tab1 cor0
----
2
4
5
query I rowsort
SELECT - col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - 95 + - col0 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
106002
1424
358861
query I rowsort
SELECT + col0 - col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - - col1 * col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT DISTINCT col2 DIV - col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT col2 / - col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT col0 DIV - col2 + + cor0.col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-3550
SELECT col0 / - col2 + + cor0.col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT ALL + col2 + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT col1 + cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL + + col2 * col1 + + col2 * col0 AS col0 FROM tab0 cor0
----
132
14760
3630
query I rowsort
SELECT ALL + col1 - + col1 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT DISTINCT col1 DIV col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT col1 / col0 AS col2 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL ( - col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col1 * - col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT ALL - + col0 + col2 * - col1 AS col0 FROM tab2 cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT DISTINCT col1 + col2 - col0 * cor0.col2 DIV col2 FROM tab0 AS cor0
----
63
84
95
skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT col1 + col2 - col0 * cor0.col2 / col2 FROM tab0 AS cor0
----
63
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3561
SELECT - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3561
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 62 FROM tab0, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT col1 * col1 * - col1 FROM tab1 cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT + col1 * 53 * - col1 AS col0 FROM tab1
----
-35828
-5300
-8957
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ( col2 + + tab2.col0 ) * col2 AS col1 FROM tab2
----
2704
4446
918
query I rowsort
SELECT ALL ( col1 ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 31 FROM tab1
----
31
31
31
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + 50 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + ( col2 ) * col1 * - col0 + tab1.col1 AS col0 FROM tab1
----
-36470
-4186
-99827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - cor0.col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT DISTINCT col0 * - cor0.col0 DIV col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT col0 * - cor0.col0 / col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab0 AS cor0 WHERE NOT + col0 + col0 NOT IN ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT - col0 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3578
SELECT - col0 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT + col0 + - tab1.col2 FROM tab1
----
-16
-51
7
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT ALL - col1 * tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT - col2 - tab0.col0 DIV tab0.col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-3585
SELECT - col2 - tab0.col0 / tab0.col2 FROM tab0
----
-33
-36
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
17
31
59
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL - tab0.col0 * col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab2.col1 + - col2 + tab2.col0 AS col1 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab2 WHERE col0 + - col0 IN ( - col0 )
----
query I rowsort
SELECT col1 * col0 * - col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + tab2.col1 + - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab2
----
-21
33
4
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 + col2 col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT col2 DIV tab1.col1 + - col0 FROM tab1
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-3599
SELECT col2 / tab1.col1 + - col0 FROM tab1
----
-1
-59
-73
query I rowsort
SELECT DISTINCT col2 + col2 + col0 AS col0 FROM tab2
----
130
155
61
query I rowsort
SELECT col1 * col1 + + col1 FROM tab2
----
306
3540
992
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND + col2
----
query I rowsort
SELECT - col2 * col1 * tab0.col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL + col2 / + col0 - - col0 FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND + col0
----
query I rowsort
SELECT ALL col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
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 ALL - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3608
SELECT ALL col2 DIV - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2914
3244
9209
skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL col2 / - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2914
3244
9209
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab1
----
0
query I rowsort
SELECT ALL col1 + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - col1 + col1 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col2 * + col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - col2 * col0 * + col2 - col2 FROM tab2
----
-114114
-5130
-52754
query I rowsort
SELECT DISTINCT - tab1.col1 + - col1 FROM tab1
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL tab2.col0 * tab2.col1 * + tab2.col1 + + col2 * col2 + col1 FROM tab2
----
24292
272253
7487
query I rowsort
SELECT ALL col1 * - col0 + + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + col2 + - col2 * + col0 + + col1 FROM tab0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT ALL col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - col2 * cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 * col0 AS col1 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + col2 col2 FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT + col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT DISTINCT + col1 DIV + col0 col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + col1 / + col0 col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT + + col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col1 * col1 * - col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT ALL + col2 + col1 * 4 DIV + tab1.col2 AS col2 FROM tab1
----
55
57
96
skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + col2 + col1 * 4 / + tab1.col2 AS col2 FROM tab1
----
55
57
96
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT col0 DIV 29 AS col2 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-3647
SELECT col0 / 29 AS col2 FROM tab0
----
0
1
3
query I rowsort
SELECT col1 + ( 35 ) * col2 AS col1 FROM tab0
----
1241
132
2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * col0 * - col0 col2 FROM tab1
----
233482
512
614413
query I rowsort
SELECT ALL + col1 + col0 + - 15 AS col0 FROM tab2
----
122
23
81
query I rowsort
SELECT DISTINCT cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + - col1 + + col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col2 - - col2 * col2 col2 FROM tab2 cor0
----
-108
-858
798
query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - 23 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2 cor0
----
63
query I rowsort
SELECT ALL - + 53 AS col2 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + 28 + col2 * - col2 AS col1 FROM tab0 cor0
----
-1061
-6696
27
query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 77 * ( cor0.col0 * - ( col2 ) ) + cor0.col1 * col2 FROM tab2 AS cor0
----
-13716
-154622
-230508
query I rowsort
SELECT ALL ( + ( + tab0.col0 ) ) * col1 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + 25 * col2 * col0 + + 1 * 38 FROM tab0 AS cor0
----
182488
19838
913
onlyif mysql # use DIV operator for integer division
query I rowsort label-3665
SELECT col1 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3665
SELECT col1 / ( col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + - 62 * col1 AS col0 FROM tab0 AS cor0
----
-5332
-5642
-6014
query I rowsort
SELECT DISTINCT tab1.col1 + - 50 FROM tab1
----
-24
-37
-40
query I rowsort
SELECT ALL - - 84 FROM tab2 AS cor0
----
84
84
84
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-3670
SELECT - - ( - 9 ) DIV + col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3670
SELECT - - ( - 9 ) / + col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT col1 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + - 32 * - col2 * - col2 FROM tab0 cor0
----
-215168
-32
-34848
query I rowsort
SELECT + ( + 76 ) * col2 + + cor0.col1 FROM tab1 AS cor0
----
4130
4342
7309
query I rowsort
SELECT DISTINCT 69 + col1 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 65 * + col1 * - col1 FROM tab0 AS cor0
----
-480740
-538265
-611585
query I rowsort
SELECT DISTINCT + 53 + cor0.col1 FROM tab2 AS cor0
----
112
70
84
query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col0 + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 93 AS col2 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3685
SELECT ALL + 16 * col1 + col1 DIV col1 FROM tab1 cor0
----
161
209
417
skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + 16 * col1 + col1 / col1 FROM tab1 cor0
----
161
209
417
query I rowsort
SELECT ALL + 69 - + col2 AS col1 FROM tab1 AS cor0
----
-27
12
15
query I rowsort
SELECT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 16 * cor0.col1 + 4 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-485
-862
onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT DISTINCT - 72 - - cor0.col0 DIV 17 FROM tab0 AS cor0
----
-67
-70
-71
skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT - 72 - - cor0.col0 / 17 FROM tab0 AS cor0
----
-67
-70
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * ( - col0 ) + col2 * - ( ( col1 ) ) col1 FROM tab1 cor0
----
-1566
-4218
-8928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + col2 col0 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT + + col1 * + col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 + + col0 * + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col0 + - cor0.col0 * col2 AS col1 FROM tab1 cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - + 2 * + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - 48 + + col2 + - 10 FROM tab1 AS cor0
----
-1
-4
38
query I rowsort
SELECT ALL col1 + - col2 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
22630
24565
39943
query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT ALL - col2 DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - col2 / + col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col0 + + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 * - col0 - - col0 AS col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL - 15 + col0 * tab0.col0 FROM tab0
----
1210
561
7906
query I rowsort
SELECT - - cor0.col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
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 - + cor0.col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col2 + ( col1 ) * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - cor0.col1 * 33 FROM tab2 AS cor0
----
-1023
-1947
-561
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT - + col1 - - CAST( NULL AS SIGNED ) / - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3710
SELECT - + col1 - - CAST ( NULL AS INTEGER ) / - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 48 AS col0 FROM tab1 AS cor0
----
-1248
-480
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col1 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - 6 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + col2 * tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col1 + + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col0 * 92 AS col0 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT + 86 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to 435f4131b25a0822065966508fa6e31a
query I rowsort
SELECT + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 37 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT - - col0 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-3721
SELECT - - col0 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
-3395
-62
-98
query I rowsort
SELECT col0 + + col1 FROM tab0
----
110
132
180
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT DISTINCT 52 FROM tab1, tab0 cor0
----
52
query I rowsort
SELECT ALL 59 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL 83 AS col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT DISTINCT + col0 * tab2.col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col2 + + col0 * + tab0.col0 AS col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + ( - col1 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 26 AS col2 FROM tab0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + ( + ( - cor1.col0 ) ) FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT + cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3735
SELECT + cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 85 FROM tab2
----
85
85
85
query I rowsort
SELECT - 46 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ( col0 ) * 91 * cor0.col1 FROM tab0 cor0
----
187824
308945
737009
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 160649b428b8d254517cd2096e054d21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT DISTINCT col1 DIV + ( tab0.col2 ) FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT col1 / + ( tab0.col2 ) FROM tab0
----
1
2
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2, tab0 cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT + ( - col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 43 + + 82 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1351
-2499
-4795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT + CAST( col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3748
SELECT + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT + col0 DIV cor0.col2 + 3 DIV col1 - + col1 FROM tab0 cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-3749
SELECT + col0 / cor0.col2 + 3 / col1 - + col1 FROM tab0 cor0
----
-62
-86
-90
query I rowsort
SELECT ALL - - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 64 FROM tab0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3753
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3753
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 15 * - col1 FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT - 21 * col2 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-11906
-26128
-29481
query I rowsort
SELECT + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 7 col0 FROM tab2
----
0
71
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + ( 47 ) col1 FROM tab2 AS cor0
----
1222
1269
1786
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT + col0 + - ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + tab1.col0 * col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 58 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
1019
347
3539
query I rowsort
SELECT - ( 72 ) FROM tab2 AS cor0
----
-72
-72
-72
query I rowsort
SELECT ALL + cor0.col1 - + col2 * cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col1 * - col2 + col1 * + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + - 88 * + col0 FROM tab2 AS cor0
----
-616
-6864
-6952
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT 31 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + + col0 + 56 AS col1 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT DISTINCT - 22 + - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-21
1067
6702
query I rowsort
SELECT - - 75 * col1 FROM tab0 cor0
----
6450
6825
7275
query I rowsort
SELECT ALL - - cor0.col1 * - col1 - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2240
3149
9047
query I rowsort
SELECT ALL + col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + 81 + col2 * - col0 FROM tab2 AS cor0
----
-108
-1947
-2921
query I rowsort
SELECT cor1.col2 * 87 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5123bfd9988bb394b329db06f843d940
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT CAST( NULL AS SIGNED ) + 90 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3779
SELECT CAST ( NULL AS INTEGER ) + 90 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab1 cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT ALL col0 * + ( 68 ) + col2 AS col2 FROM tab0
----
1665
2381
6134
query I rowsort
SELECT DISTINCT 54 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col2 col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col2 * - col2 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - - col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 39 * + col0 - + tab1.col1 FROM tab1
----
-143
-2506
-3133
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT DISTINCT + 9 * + col0 - + ( col2 + - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1
529
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 79 AS col0 FROM tab0 cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT - ( 2 ) * - col1 + col2 DIV 22 AS col0 FROM tab0
----
173
185
194
skipif mysql # not compatible
query I rowsort label-3793
SELECT - ( 2 ) * - col1 + col2 / 22 AS col0 FROM tab0
----
173
185
194
query I rowsort
SELECT ALL - ( tab2.col1 ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT 81 + + col2 FROM tab0
----
114
163
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 + ( - 8 ) * cor0.col0 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7ae2c595e81acb9d040790f6cf13c1cb
query I rowsort
SELECT DISTINCT - tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * 18 col1 FROM tab0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT + col0 * ( - 56 * col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-35830
-4342
-58227
query I rowsort
SELECT ALL + 41 * col2 FROM tab1
----
2214
2337
3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT 16 - col1 * - ( + tab0.col1 ) DIV col1 AS col1 FROM tab0
----
102
107
113
skipif mysql # not compatible
query I rowsort label-3801
SELECT 16 - col1 * - ( + tab0.col1 ) / col1 AS col1 FROM tab0
----
102
107
113
query I rowsort
SELECT - tab2.col0 * + col1 + 8 * 6 + - col0 * + ( - col0 * col2 ) AS col0 FROM tab2
----
1154
153630
235863
onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT DISTINCT + col2 + col2 * + col0 - col0 DIV col0 FROM tab2
----
2053
215
3039
skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT + col2 + col2 * + col0 - col0 / col0 FROM tab2
----
2053
215
3039
query I rowsort
SELECT + col0 * - col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT 37 - - col2 * + 59 FROM tab2
----
1571
1630
2279
query I rowsort
SELECT col0 + col1 AS col0 FROM tab2
----
137
38
96
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 ) col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col0 * + 87 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - + col1 * - col2 + + cor0.col1 * - col1 * + col0 FROM tab0 AS cor0
----
-174666
-329218
-729547
query I rowsort
SELECT DISTINCT - - col1 + col0 * 90 AS col1 FROM tab0 AS cor0
----
2246
3247
8101
query I rowsort
SELECT ALL + col2 * 0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + col2 + cor0.col0 * - 57 FROM tab0 AS cor0
----
-1335
-1994
-4991
query I rowsort
SELECT - col2 * ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col2 + col0 * + 16 * + col0 FROM tab1 AS cor0
----
102496
198
65593
query I rowsort
SELECT ALL + col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - - col2 + col0 * - col0 AS col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT - cor0.col1 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) + col1 * 1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - - col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3826
SELECT + ( col0 ) * CAST( 53 AS SIGNED ) FROM tab2
----
371
4134
4187
skipif mysql # not compatible
query I rowsort label-3826
SELECT + ( col0 ) * CAST ( 53 AS INTEGER ) FROM tab2
----
371
4134
4187
query I rowsort
SELECT ALL 41 AS col1 FROM tab2
----
41
41
41
query I rowsort
SELECT ALL + 1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT - col2 + tab1.col2 DIV ( - col1 ) FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - col2 + tab1.col2 / ( - col1 ) FROM tab1
----
-103
-56
-62
query I rowsort
SELECT DISTINCT col1 * - tab1.col0 + ( - 82 + col1 * + 25 ) FROM tab1
----
-472
-797
490
query I rowsort
SELECT ALL + 59 * - col1 + - col0 * + col1 AS col0 FROM tab2
----
-2046
-2346
-8083
query I rowsort
SELECT ALL - + 30 FROM tab2 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL col0 - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + - cor0.col2 * col1 * col1 - col1 AS col1 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 96 * + col1 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 - - col0 col0 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col1 + + 94 FROM tab1
----
104
107
120
query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 * col0 * ( col2 ) + tab0.col2 AS col1 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT - col0 * col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - + col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col2 * + col2 * col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - + tab2.col1 + cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
9 values hashing to 179f1c4ecae3615ed02c294cbc435c7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 * - col2 col2 FROM tab1
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3852
SELECT + col2 + ( + tab0.col2 ) DIV col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3852
SELECT + col2 + ( + tab0.col2 ) / col2 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL + col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0
----
66
query I rowsort
SELECT ALL + ( col2 ) * - col2 - ( cor0.col2 ) FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + - 16 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-112
-1248
-1264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( cor0.col2 ) + col0 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + 74 * 60 + col1 FROM tab1 AS cor0
----
4450
4453
4466
query I rowsort
SELECT DISTINCT 85 * col2 * col2 + - col0 * col1 - - col0 AS col2 FROM tab1 AS cor0
----
247785
275589
782400
query I rowsort
SELECT - 45 AS col0 FROM tab0 cor0
----
-45
-45
-45
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT + - ( 5 ) * col1 + - cor0.col1 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT - - 51 * - col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT - ( cor0.col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 22 AS col1 FROM tab2 AS cor0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col0 FROM tab2 AS cor0
----
66
query I rowsort
SELECT ALL - ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT - CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3870
SELECT - CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - + ( col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 + col2 * col2 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT 77 * - col2 AS col0 FROM tab1 AS cor0
----
-4158
-4389
-7392
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) * + cor0.col0 * - col0 AS col0 FROM tab0 cor0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3878
SELECT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 66 FROM tab1
----
66
query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT 26 * - col2 AS col1 FROM tab0 AS cor0
----
-2132
-26
-858
query I rowsort
SELECT DISTINCT - 25 FROM tab0, tab2 AS cor0
----
-25
query I rowsort
SELECT - - 33 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT + col1 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3886
SELECT + col0 * col2 * CAST( + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3886
SELECT + col0 * col2 * CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - col2 * - cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT 68 * + cor0.col1 FROM tab1 AS cor0
----
1768
680
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col2 col1 FROM tab0 AS cor0
----
2178
5412
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT - ( cor0.col2 ) DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3890
SELECT - ( cor0.col2 ) / col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT 22 FROM tab2
----
22
22
22
query I rowsort
SELECT ALL - + 81 + col1 FROM tab1 AS cor0
----
-55
-68
-71
query I rowsort
SELECT ALL - col1 * 60 FROM tab1
----
-1560
-600
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV + col0 AS col2 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / + col0 AS col2 FROM tab2
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT DISTINCT - col2 DIV 31 FROM tab1
----
-1
-3
skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - col2 / 31 FROM tab1
----
-1
-3
query I rowsort
SELECT + 29 * col0 AS col1 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT + - 34 FROM tab1 AS cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - cor0.col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3902
SELECT DISTINCT col0 - + CAST( - 58 AS SIGNED ) FROM tab2 cor0
----
136
137
65
skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT col0 - + CAST ( - 58 AS INTEGER ) FROM tab2 cor0
----
136
137
65
query I rowsort
SELECT - col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 + + 10 AS col1 FROM tab2 AS cor0
----
-68
-69
3
query I rowsort
SELECT + + col0 * + col1 + - cor0.col1 * col1 * + col1 AS col1 FROM tab1 AS cor0
----
-1157
-17498
-360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT + - cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3906
SELECT + - cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col2 * col0 * col1 + + col1 * 60 FROM tab2 AS cor0
----
123192
52054
7719
query I rowsort
SELECT col1 + + col0 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT + 80 * 90 FROM tab2 AS cor0
----
7200
7200
7200
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + 7 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT - + cor0.col0 * ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + ( - col0 ) * col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 76 FROM tab0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - cor0.col2 * + 69 FROM tab2 AS cor0
----
-1794
-1863
-2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT DISTINCT - - col0 + col1 DIV 54 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - - col0 + col1 / 54 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT ALL tab0.col1 + - col1 DIV - col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL tab0.col1 + - col1 / - col1 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab0
----
-88
query I rowsort
SELECT + col2 * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 71 AS col1 FROM tab2
----
71
71
71
query I rowsort
SELECT + col0 * 4 - tab0.col1 * + col0 AS col0 FROM tab0
----
-1968
-3255
-7743
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT DISTINCT - col0 * col1 - - 24 AS col0 FROM tab1 AS cor0
----
-1016
-54
-616
query I rowsort
SELECT ALL - col1 * - 83 AS col1 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT - col0 * ( col2 * col0 + - ( + 10 ) * col2 ) AS col1 FROM tab2 AS cor0
----
-137904
-207138
567
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col0 + 53 * + 22 FROM tab1 AS cor0
----
1086
1102
1163
query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - ( 9 ) FROM tab0
----
-9
-9
-9
query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 + 21 + cor0.col2 AS col1 FROM tab0 AS cor0
----
192
57
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT + col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3939
SELECT + col2 / col1 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT - + col1 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3940
SELECT - + col1 / col2 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT - col0 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3941
SELECT - col0 / - col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT + col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3943
SELECT + col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + 85 + col0 AS col0 FROM tab1 cor0
----
149
165
88
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + col1 * - cor0.col1 + col2 AS col0 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT - 28 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT + ( col1 ) + + 64 * 91 AS col2 FROM tab0 AS cor0
----
5910
5915
5921
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab1
----
76
76
76
query I rowsort
SELECT col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL + col0 * col1 + - 38 AS col1 FROM tab0 AS cor0
----
2026
3357
8061
query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * - col1 col1 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT + - col1 * col0 + 2 FROM tab0 AS cor0
----
-2062
-3393
-8097
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col0 + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + col2 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL + col2 + - col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - ( cor0.col0 ) * - col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col1 + + col0 * col2 * + col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT + 43 FROM tab0 AS cor0
----
43
query I rowsort
SELECT - 76 * - col2 * col0 + - col2 + - col0 FROM tab1 AS cor0
----
12255
277127
583504
query I rowsort
SELECT ALL - + 11 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT - col2 * col0 + ( + 29 + + col2 ) AS col0 FROM tab0 AS cor0
----
-5
-7187
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT + col2 * - col1 + + 20 DIV col0 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3972
SELECT + col2 * - col1 + + 20 / col0 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT DISTINCT + - col1 + ( 16 ) * col0 DIV col0 FROM tab1 AS cor0
----
-10
3
6
skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + - col1 + ( 16 ) * col0 / col0 FROM tab1 AS cor0
----
-10
3
6
query I rowsort
SELECT col2 * + 47 + col1 FROM tab0 AS cor0
----
144
1637
3945
query I rowsort
SELECT ALL + col0 + + col1 * - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT ALL + - col2 + + 82 FROM tab0 AS cor0
----
0
49
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3978
SELECT - col1 * CAST( - 62 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
1666
677
902
skipif mysql # not compatible
query I rowsort label-3978
SELECT - col1 * CAST ( - 62 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
1666
677
902
query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57
query I rowsort
SELECT DISTINCT - - col1 + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 75 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT 58 + - tab0.col2 * - col1 FROM tab0
----
155
2896
7520
query I rowsort
SELECT col1 + col0 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
7300
854
97
query I rowsort
SELECT ALL + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col2 * + col2 * + col0 AS col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 39 * 76 * col1 - 11 AS col1 FROM tab2 AS cor0
----
174865
50377
91873
query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT ALL col1 + + tab1.col0 - col1 DIV - col0 FROM tab1
----
37
74
93
skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL col1 + + tab1.col0 - col1 / - col0 FROM tab1
----
37
74
93
query I rowsort
SELECT - tab2.col2 * col0 + col0 + ( col0 ) AS col1 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT tab1.col2 + col2 * - col0 + - col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 41 * cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
1278
2497
776
query I rowsort
SELECT ALL - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4000
SELECT - col2 * col2 * col2 + col2 + 4 DIV col1 FROM tab0
----
-35904
-551286
0
skipif mysql # not compatible
query I rowsort label-4000
SELECT - col2 * col2 * col2 + col2 + 4 / col1 FROM tab0
----
-35904
-551286
0
query I rowsort
SELECT 77 * col1 FROM tab2
----
1309
2387
4543
query I rowsort
SELECT ALL + col0 + + ( col0 ) FROM tab1
----
128
160
6
query I rowsort
SELECT - col2 * col2 + col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT 83 + col1 + + col2 AS col1 FROM tab2
----
138
141
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4005
SELECT CAST( col2 AS SIGNED ) - + col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( col2 AS INTEGER ) - + col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT - CAST( NULL AS SIGNED ) - - col2 * - col2 * + 3 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4007
SELECT - CAST ( NULL AS INTEGER ) - - col2 * - col2 * + 3 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 - col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT ( tab1.col1 ) + col2 * 94 AS col1 FROM tab1
----
5102
5368
9037
query I rowsort
SELECT - col0 + cor0.col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + ( + cor0.col2 ) col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + - col0 + - ( - 4 ) FROM tab2 AS cor0
----
-3
-74
-75
query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT DISTINCT + col2 * col1 + cor0.col0 + col1 DIV 68 AS col1 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + col2 * col1 + cor0.col0 + col1 / 68 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT DISTINCT - + col2 - - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - + col2 - - col1 / col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT DISTINCT - col2 + 22 * col1 FROM tab2 AS cor0
----
1272
336
655
query I rowsort
SELECT + col2 * col0 + col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col0 * + col1 * col0 + + tab1.col0 FROM tab1
----
237
41024
83280
query I rowsort
SELECT 10 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT + - 34 + + ( + col0 ) FROM tab2 AS cor0
----
-27
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT col0 DIV col0 + col0 * col2 AS col0 FROM tab2
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-4023
SELECT col0 / col0 + col0 * col2 AS col0 FROM tab2
----
190
2029
3003
query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - 23 * + tab1.col1 AS col0 FROM tab1
----
-230
-299
-598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4026
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + tab2.col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + tab2.col2 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT - col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col1 * col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( - col1 ) + 89 FROM tab1 AS cor0
----
63
76
79
query I rowsort
SELECT - + cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 12 + tab2.col0 FROM tab2
----
19
90
91
query I rowsort
SELECT ALL col0 + 16 + col1 * - 41 AS col0 FROM tab0
----
-3486
-3626
-3926
query I rowsort
SELECT ALL 6 * col1 + col1 FROM tab0
----
602
637
679
query I rowsort
SELECT ALL 4 + 68 * - col1 FROM tab1
----
-1764
-676
-880
query I rowsort
SELECT DISTINCT ( + col0 ) + col2 * + 37 FROM tab0
----
1245
3123
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 74 ) + col1 col2 FROM tab0
----
12
17
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT ALL col0 * col0 + + col1 DIV - col0 FROM tab1
----
1
4096
6400
skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL col0 * col0 + + col1 / - col0 FROM tab1
----
1
4096
6400
query I rowsort
SELECT + 1 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 39b923c661908711dfacd7bdda640f1d
query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + + 29 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT col1 + + col1 * - ( col2 ) AS col0 FROM tab1 cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - 44 * + col0 AS col2 FROM tab0 cor0
----
-1056
-1540
-3916
query I rowsort
SELECT + cor0.col0 + col2 * + ( col2 + - col2 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col2 * col2 * - 52 AS col2 FROM tab2 AS cor0
----
-35152
-37908
-75088
query I rowsort
SELECT - + col2 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT DISTINCT - - col1 + col1 * + CAST( - 75 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
-1241
-2263
-4307
skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - - col1 + col1 * + CAST ( - 75 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT - col2 * col2 * + col1 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL + 8 AS col0 FROM tab0
----
8
8
8
query I rowsort
SELECT - 56 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
query I rowsort
SELECT 86 * - col1 AS col0 FROM tab2
----
-1462
-2666
-5074
query I rowsort
SELECT col2 + + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + ( + col0 ) * col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 35 * - tab1.col1 AS col2 FROM tab1
----
-350
-455
-910
query I rowsort
SELECT ( col1 ) AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - col2 + col0 * 53 FROM tab2 AS cor0
----
344
4108
4149
query I rowsort
SELECT col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 * + ( tab2.col2 ) * col0 AS col1 FROM tab2
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col1 + - 84 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1079
-2158
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4068
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * + ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4070
SELECT + col2 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4070
SELECT + col2 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 + - col0 * + col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL 62 + 3 AS col2 FROM tab0 AS cor0
----
65
65
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT - col2 + col2 - + col1 DIV - col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4073
SELECT - col2 + col2 - + col1 / - col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 16 * cor0.col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT + 9 + tab0.col1 + + col2 FROM tab0
----
107
128
182
query I rowsort
SELECT ALL - 31 FROM tab1, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + 61 FROM tab0 cor0
----
150
85
96
query I rowsort
SELECT ALL + col0 + 12 + + col2 FROM tab2 AS cor0
----
116
129
46
query I rowsort
SELECT - - 12 + + col1 AS col1 FROM tab0 AS cor0
----
103
109
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT ALL - ( col2 ) * cor0.col0 DIV - 93 + cor0.col0 * + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
19016
649600
skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - ( col2 ) * cor0.col0 / - 93 + cor0.col0 * + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
19016
649600
query I rowsort
SELECT + 56 * col0 * + col1 + + 60 FROM tab2 cor0
----
12212
257772
75268
query I rowsort
SELECT + - 13 AS col2 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT - col1 * col1 + - cor0.col2 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT - 38 AS col2 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT DISTINCT ( col0 * col2 ) + - 61 + col1 AS col1 FROM tab1
----
127
3597
7632
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT 53 DIV + col0 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-4089
SELECT 53 / + col0 FROM tab2
----
0
0
7
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT - + col2 DIV col0 + 42 col0 FROM tab2 AS cor0
----
39
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4091
SELECT - + col2 / col0 + 42 col0 FROM tab2 AS cor0
----
39
42
42
query I rowsort
SELECT cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + tab2.col1 * col1 + tab2.col2 + ( - tab2.col2 ) * - col2 AS col1 FROM tab2
----
1717
1771
4183
query I rowsort
SELECT DISTINCT - - ( + 93 ) * - col2 AS col1 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 + + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - + 91 AS col0 FROM tab2 cor0
----
-91
-91
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col2 ) + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - 84 FROM tab0 AS cor0
----
-84
-84
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( + col0 * + 0 ) - - col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col0 * 6 FROM tab2 AS cor0
----
-42
-468
-474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4103
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 + + col2 * + col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - 68 AS col0 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT tab1.col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT col0 * ( col0 ) DIV + col1 FROM tab1
----
0
409
492
skipif mysql # not compatible
query I rowsort label-4110
SELECT col0 * ( col0 ) / + col1 FROM tab1
----
0
409
492
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT DISTINCT + col1 * + cor0.col2 DIV col2 AS col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + col1 * + cor0.col2 / col2 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 - 90 FROM tab2 AS cor0
----
-107
-121
-149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT ALL + ( + col0 ) + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + ( + col0 ) + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT col0 * col0 * + col0 FROM tab1
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT - + cor1.col2 DIV - cor1.col1 + - 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1a4e42a82f99140154e850f971f2d08a
skipif mysql # not compatible
query I rowsort label-4117
SELECT - + cor1.col2 / - cor1.col1 + - 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1a4e42a82f99140154e850f971f2d08a
query I rowsort
SELECT ALL + 29 AS col2 FROM tab1
----
29
29
29
query I rowsort
SELECT ALL - 18 FROM tab2, tab0 cor0, tab1, tab0 AS cor1
----
81 values hashing to 4b8f1109b78a52c6ee572810d1973a42
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT - ( col2 ) * - col1 + 47 FROM tab2 cor0
----
1581
693
884
query I rowsort
SELECT - 55 AS col0 FROM tab2
----
-55
-55
-55
query I rowsort
SELECT 31 * + col0 AS col1 FROM tab0
----
1085
2759
744
query I rowsort
SELECT DISTINCT - + col0 * + 51 AS col2 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT 12 * 43 - + cor0.col0 * + 75 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 76f611d5006fb2f749448e0f4439cc78
query I rowsort
SELECT - col0 + - col0 * col1 * - col1 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT + col2 * col0 * col2 + col2 * col2 * col2 + col0 FROM tab1 AS cor0
----
1622096
166215
393193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 62 col2 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ALL - col1 + col0 * 87 FROM tab0 AS cor0
----
2002
2948
7652
query I rowsort
SELECT DISTINCT col0 * col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - 29 DIV + col0 FROM tab1
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-4133
SELECT - 29 / + col0 FROM tab1
----
-9
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 - - 36 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 46eff12260500631f7c310d7b61c09ff
onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT col2 DIV ( tab1.col0 ) AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4135
SELECT col2 / ( tab1.col0 ) AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL + col0 + + 39 - + col2 AS col2 FROM tab0
----
30
46
73
query I rowsort
SELECT DISTINCT col1 + col0 * + ( - col0 ) FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT col1 - ( + col0 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT col0 * 61 FROM tab2
----
427
4758
4819
query I rowsort
SELECT DISTINCT + col0 * + col2 - col2 * col1 FROM tab0
----
-164
-2046
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4141
SELECT ALL - col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4142
SELECT + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 31 col2 FROM tab1
----
-33
-49
28
query I rowsort
SELECT col0 * - 3 - - col2 AS col0 FROM tab1 AS cor0
----
-135
-144
45
query I rowsort
SELECT DISTINCT + col0 + ( col1 ) + - col1 AS col2 FROM tab1
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT DISTINCT - - col1 + + 30 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col1 + ( col2 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL col0 + ( ( + col1 ) ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL 23 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL tab1.col1 + tab1.col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + 90 AS col0 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT - + col2 * - 30 AS col0 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col0 * 29 * cor0.col0 + col2 FROM tab1 AS cor0
----
118841
185696
315
query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL 52 AS col2 FROM tab1 cor0
----
52
52
52
query I rowsort
SELECT - 85 AS col1 FROM tab0 cor0
----
-85
-85
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4161
SELECT ALL CAST( NULL AS SIGNED ) + 66 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL CAST ( NULL AS INTEGER ) + 66 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 39 FROM tab1 AS cor0
----
-39
query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + 26 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - 20 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT + + 43 + 57 AS col1 FROM tab0 AS cor0
----
100
100
100
query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + + 66 AS col2 FROM tab0 AS cor0
----
66
query I rowsort
SELECT 50 - + cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d7b105c4f9a262c60a08a89798be167
query I rowsort
SELECT ALL 65 FROM tab0
----
65
65
65
query I rowsort
SELECT DISTINCT 52 * + col2 FROM tab1 cor0
----
2808
2964
4992
query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - 58 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT 14 * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-756
-798
query I rowsort
SELECT ALL + col0 - + col1 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL - 49 + + col0 FROM tab0 AS cor0
----
-14
-25
40
query I rowsort
SELECT ALL - 49 + - col0 FROM tab0 AS cor0
----
-138
-73
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT ALL col0 + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL col0 + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 34 AS col0 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT - col2 + - 29 * 82 FROM tab0 AS cor0
----
-2379
-2411
-2460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4182
SELECT - col1 + + CAST( NULL AS SIGNED ) * col1 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4182
SELECT - col1 + + CAST ( NULL AS INTEGER ) * col1 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - - col1 * - 93 AS col0 FROM tab0 AS cor0
----
-7998
-8463
-9021
query I rowsort
SELECT ALL cor0.col2 + 45 * col2 AS col1 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT DISTINCT - col1 * - 97 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT DISTINCT - col2 * 66 + + col1 DIV cor0.col2 + - col1 DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
-2177
-5412
30
skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - col2 * 66 + + col1 / cor0.col2 + - col1 / ( col1 ) AS col2 FROM tab0 AS cor0
----
-2177
-5412
30
query I rowsort
SELECT ALL - + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + + col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col0 + + ( col0 ) FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT ALL col1 + - col1 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL col1 + - col1 / + cor0.col1 col0 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + 52 FROM tab2
----
52
52
52
query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + 62 AS col0 FROM tab0
----
62
62
62
query I rowsort
SELECT 34 FROM tab1
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT cor0.col2 DIV col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4200
SELECT cor0.col2 / col1 FROM tab1 cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT DISTINCT + + col0 * col2 DIV + col1 FROM tab0 cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + + col0 * col2 / + col1 FROM tab0 cor0
----
0
80
9
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 81 * col0 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col2 + + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + 0 * col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + ( col0 ) * + col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL - cor0.col2 * 49 * 29 AS col1 FROM tab1 AS cor0
----
-136416
-76734
-80997
query I rowsort
SELECT - col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab2
----
42
query I rowsort
SELECT - 8 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT 60 + + tab2.col1 FROM tab2
----
119
77
91
query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT ALL CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 63 AS col0 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT ALL + 65 * cor0.col2 FROM tab1 AS cor0
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT ALL + + ( col1 ) DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + + ( col1 ) / - col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT cor0.col2 DIV col2 + - col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4220
SELECT cor0.col2 / col2 + - col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT ( + col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT DISTINCT + cor0.col1 * - CAST( NULL AS SIGNED ) + - 4 FROM tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + cor0.col1 * - CAST ( NULL AS INTEGER ) + - 4 FROM tab0, tab2 cor0
----
NULL
query I rowsort
SELECT ALL cor0.col0 * col1 * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 12 * + cor0.col0 + + col1 FROM tab2 AS cor0
----
-53
-877
-931
query I rowsort
SELECT - col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 12 * col2 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT - col2 * + col2 * ( + 83 ) + col2 * 9 AS col2 FROM tab2 AS cor0
----
-119510
-55874
-60264
query I rowsort
SELECT - - 7 AS col1 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT ( + col2 * col0 ) + - col0 AS col0 FROM tab1
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT col0 + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4232
SELECT col0 + cor0.col1 / - col1 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + 32 + col1 col0 FROM tab1 AS cor0
----
20490
2522
33293
query I rowsort
SELECT - - col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 44 * - ( col0 ) + - col0 AS col2 FROM tab0
----
1032
1505
3827
query I rowsort
SELECT ALL 37 FROM tab0
----
37
37
37
query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 * - ( + col0 ) + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col1 * + 61 + col1 AS col2 FROM tab1
----
1612
620
806
query I rowsort
SELECT col2 + - col0 + col0 AS col1 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT col2 + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + ( + cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT 94 FROM tab1
----
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 91 FROM tab0
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT ALL + col2 + - col1 * + col1 + - col0 * col2 FROM tab0 AS cor0
----
-15497
-8155
-9443
query I rowsort
SELECT - col0 + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + 74 FROM tab1
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - cor0.col1 * 46 FROM tab2, tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 77 * tab0.col2 FROM tab0
----
-2541
-6314
-77
query I rowsort
SELECT 7 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT + tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT tab1.col2 + ( + col2 + col0 ) AS col1 FROM tab1
----
111
178
272
query I rowsort
SELECT + ( - cor0.col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 * 52 FROM tab1
----
-1352
-520
-676
query I rowsort
SELECT ALL - 52 * col1 AS col0 FROM tab1
----
-1352
-520
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT ( - col0 ) DIV col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4264
SELECT ( - col0 ) / col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT + 55 FROM tab0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT - CAST( col2 AS SIGNED ) DIV col2 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4266
SELECT - CAST ( col2 AS INTEGER ) / col2 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col0 * + 11 + col2 FROM tab0 AS cor0
----
1061
297
386
query I rowsort
SELECT + col0 * - 65 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT + ( - 97 ) FROM tab2 cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT tab0.col1 + - col0 * + col1 + tab0.col0 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT ALL + 64 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - col2 * - 19 + - col1 AS col0 FROM tab0
----
-78
1467
541
query I rowsort
SELECT ALL - tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT col2 * - 91 + col2 + col1 AS col1 FROM tab0
----
-2884
-7289
7
query I rowsort
SELECT DISTINCT + col1 * 95 + 36 FROM tab0
----
8206
8681
9251
query I rowsort
SELECT DISTINCT col0 + 23 AS col1 FROM tab1 AS cor0
----
103
26
87
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4281
SELECT - col1 DIV 46 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4281
SELECT - col1 / 46 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT + 98 * - col0 AS col0 FROM tab1 AS cor0
----
-294
-6272
-7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
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-4285
SELECT col1 / - col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - + ( ( col0 ) ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col2 * col1 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col1 * + cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT col0 * + col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) * + ( col0 ) + - cor0.col0 * ( - col1 ) AS col0 FROM tab2 cor0
----
10686
266
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4292
SELECT CAST( NULL AS SIGNED ) + - col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4292
SELECT CAST ( NULL AS INTEGER ) + - col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 79 * - col0 AS col1 FROM tab2 AS cor0
----
-553
-6162
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT + + cor0.col2 + + col1 DIV - col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-4294
SELECT + + cor0.col2 + + col1 / - col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT ALL - - 31 + col1 AS col0 FROM tab1 AS cor0
----
41
44
57
query I rowsort
SELECT + - ( + 67 ) + + col2 FROM tab2 AS cor0
----
-29
-40
-41
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-4298
SELECT DISTINCT col0 DIV col1 - + col2 * + col1 * - ( 96 ) AS col2 FROM tab2
----
147265
62020
80352
skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT col0 / col1 - + col2 * + col1 * - ( 96 ) AS col2 FROM tab2
----
147265
62020
80352
query I rowsort
SELECT ALL ( - 42 ) * col1 * 67 FROM tab0 AS cor0
----
-242004
-256074
-272958
query I rowsort
SELECT + 11 FROM tab1 cor0
----
11
11
11
query I rowsort
SELECT ALL + col0 * - 29 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT - cor0.col0 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - + 52 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 + col2 col1 FROM tab2 cor0
----
84
85
96
query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + + 72 FROM tab0 cor0
----
72
72
72
query I rowsort
SELECT ALL - 11 * - cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cc87622a8962ac006100580f8aa516b
query I rowsort
SELECT DISTINCT col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col2 + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - 71 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT + 69 FROM tab1 AS cor0
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4313
SELECT ALL - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( + col0 ) FROM tab0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) + - col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) + - col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL col0 * - ( - 40 ) - + col0 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT DISTINCT + + col0 - + 36 AS col1 FROM tab0 AS cor0
----
-1
-12
53
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - col2 + col1 AS col1 FROM tab2 cor0
----
1567
625
841
query I rowsort
SELECT ALL - + col2 + 96 AS col2 FROM tab0 AS cor0
----
14
63
95
query I rowsort
SELECT DISTINCT + col0 - col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - + col2 + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0
----
73
query I rowsort
SELECT ALL 85 AS col2 FROM tab0
----
85
85
85
query I rowsort
SELECT + 29 AS col2 FROM tab1
----
29
29
29
query I rowsort
SELECT ALL col0 * + col1 + ( + col0 ) * 16 FROM tab0
----
2448
3955
9523
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT + col2 + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col2 * - col0 + - col0 + col2 FROM tab0 AS cor0
----
1
7291
801
query I rowsort
SELECT ALL - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col0 * 94 FROM tab2 AS cor0
----
-658
-7332
-7426
query I rowsort
SELECT - + col2 * 73 AS col1 FROM tab1 cor0
----
-3942
-4161
-7008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
SELECT ALL + - col2 * + CAST( + col0 AS SIGNED ) + + col2 * - cor0.col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + - col2 * + CAST ( + col0 AS INTEGER ) + + col2 * - cor0.col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT + col1 + - 91 AS col0 FROM tab0 AS cor0
----
-5
0
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4334
SELECT ALL col2 DIV + col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL col2 / + col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab2
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - col1 + col0 * ( col0 ) FROM tab1 AS cor0
----
-17
4086
6387
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT + col0 + col0 DIV + col1 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-4339
SELECT + col0 + col0 / + col1 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT ALL + 37 FROM tab2 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT tab2.col1 DIV + 52 + + col0 * + col1 AS col1 FROM tab2
----
1343
217
4603
skipif mysql # not compatible
query I rowsort label-4341
SELECT tab2.col1 / + 52 + + col0 * + col1 AS col1 FROM tab2
----
1343
217
4603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * col1 * + col0 + + col2 col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT + col0 + col2 * + col1 * + ( + col1 + + col2 ) FROM tab1 AS cor0
----
112323
136112
38254
query I rowsort
SELECT - 63 * col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT cor0.col2 + + 59 - 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 2b5ade85be5319861c59c5f0e150ea0b
query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + 59 * - col1 AS col1 FROM tab2
----
-1003
-1829
-3481
query I rowsort
SELECT DISTINCT col1 * col2 * - col0 AS col1 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT ALL cor0.col0 + - col2 * CAST( + col1 + col2 * + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-158865
-185699
-885904
skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL cor0.col0 + - col2 * CAST ( + col1 + col2 * + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-158865
-185699
-885904
query I rowsort
SELECT ALL + col2 - col0 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT + ( col2 ) * + ( - col2 ) + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - ( - col1 ) * 1 + + col1 * col1 * - col2 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT DISTINCT + + 66 + - cor0.col0 + col0 FROM tab2 cor0
----
66
query I rowsort
SELECT ALL - col0 - + col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - + col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT ALL - col0 + col1 * 66 + - col1 AS col2 FROM tab2
----
1026
2008
3757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4359
SELECT + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 26 * + tab1.col2 AS col0 FROM tab1
----
1404
1482
2496
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 - tab1.col0 * col0 col0 FROM tab1
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT 33 * col0 AS col1 FROM tab0
----
1155
2937
792
query I rowsort
SELECT - ( - col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 27 col0 FROM tab0 AS cor0
----
-27
query I rowsort
SELECT + 13 * col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0
----
16
query I rowsort
SELECT + 56 * - col2 * ( col0 ) + + col0 FROM tab0
----
-1925
-408599
-44328
query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab0 cor0
----
12
query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4373
SELECT ALL - col0 + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - col0 + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 19 * col0 AS col0 FROM tab2 cor0
----
133
1482
1501
query I rowsort
SELECT ALL + ( col2 ) * 76 FROM tab2 AS cor0
----
1976
2052
2888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 77 AS col1 FROM tab1 AS cor0
----
77
77
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT ALL + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col0 col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - ( - col1 ) col2 FROM tab0 cor0
----
-132
-2862
-7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4381
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4381
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT + col2 + ( + col0 ) DIV cor0.col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4382
SELECT + col2 + ( + col0 ) / cor0.col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col2 * + col2 + col2 - cor0.col2 * ( 81 ) AS col2 FROM tab1 AS cor0
----
-1311
-1404
1536
query I rowsort
SELECT DISTINCT + col0 + - ( col1 ) * col1 * col1 FROM tab1 AS cor0
----
-17573
-2117
-936
query I rowsort
SELECT ALL + col2 * - col1 + col1 * col0 * col0 + - 14 * - col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1098
189472
91462
query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - cor0.col1 * col0 + - 44 + col0 * ( col0 ) FROM tab0 AS cor0
----
-1532
-2214
-222
onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT ALL col1 + - ( + col1 ) DIV - col2 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL col1 + - ( + col1 ) / - col2 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT ALL - col1 - col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT col1 * - col0 + - 16 * - col2 FROM tab0
----
-1536
-3379
-6787
onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4393
SELECT + - col0 / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4395
SELECT col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4395
SELECT col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0, tab0 AS cor0
----
9
query I rowsort
SELECT cor0.col2 * 71 AS col1 FROM tab0 AS cor0
----
2343
5822
71
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT - cor0.col1 + ( 87 ) FROM tab0 AS cor0
----
-10
-4
1
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + + 39 + + col2 AS col1 FROM tab0 AS cor0
----
121
40
72
query I rowsort
SELECT ALL + 91 + - col1 FROM tab0 AS cor0
----
-6
0
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT ALL CAST( 26 AS SIGNED ) * col2 - col1 FROM tab0 AS cor0
----
-71
2041
772
skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL CAST ( 26 AS INTEGER ) * col2 - col1 FROM tab0 AS cor0
----
-71
2041
772
onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT ALL + - 34 DIV 33 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + - 34 / 33 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT + - CAST( - col1 AS SIGNED ) * col0 + 48 AS col2 FROM tab1 AS cor0
----
1088
126
688
skipif mysql # not compatible
query I rowsort label-4407
SELECT + - CAST ( - col1 AS INTEGER ) * col0 + 48 AS col2 FROM tab1 AS cor0
----
1088
126
688
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + 0 * - cor0.col2 + col1 - + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col1 * col2 - - cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT tab1.col1 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + 13 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL + col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - cor0.col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 88 AS col2 FROM tab1 AS cor0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + 1 col2 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4421
SELECT CAST( col1 AS SIGNED ) + - col0 FROM tab1
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-4421
SELECT CAST ( col1 AS INTEGER ) + - col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT - 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + col0 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - + col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + - col1 * col1 + - 23 * - 1 FROM tab1 AS cor0
----
-146
-653
-77
query I rowsort
SELECT ALL cor0.col1 * ( + 81 ) - tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e5ea522d9dcb9342af50d1d51a32fde3
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-4432
SELECT ALL col1 DIV 22 AS col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL col1 / 22 AS col1 FROM tab2
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4433
SELECT ALL - CAST( - 70 * - col0 AS SIGNED ) col1 FROM tab1
----
-210
-4480
-5600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - CAST ( - 70 * - col0 AS INTEGER ) col1 FROM tab1
----
-210
-4480
-5600
query I rowsort
SELECT - 50 FROM tab2
----
-50
-50
-50
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT + ( col1 ) - col0 * - col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL col2 * ( + col0 ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - ( col0 * - tab2.col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 74 - col0 * + col2 FROM tab1 AS cor0
----
-236
-3722
-7754
query I rowsort
SELECT - col1 * + col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT 37 * + col1 * - 22 AS col2 FROM tab1 AS cor0
----
-10582
-21164
-8140
onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT ALL + col1 * - col0 + col1 DIV + col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-206
-4524
skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + col1 * - col0 + col1 / + col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-206
-4524
query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col2 * col1 - + 95 FROM tab1 AS cor0
----
1153
1309
475
onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT - col1 + cor0.col0 DIV col0 col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - col1 + cor0.col0 / col0 col2 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - 90 + - col0 AS col2 FROM tab2 cor0
----
-168
-169
-97
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - 68 AS col1 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT 27 - col2 FROM tab2 AS cor0
----
-11
0
1
query I rowsort
SELECT DISTINCT - col2 * - col0 + 61 AS col0 FROM tab1 AS cor0
----
223
3709
7741
query I rowsort
SELECT - 12 * col0 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT ALL + col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT - col0 * col1 - 96 FROM tab1 AS cor0
----
-1136
-174
-736
query I rowsort
SELECT ALL + ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
27
query I rowsort
SELECT cor0.col2 + ( - col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + - col0 + col1 * 92 AS col1 FROM tab0 AS cor0
----
7888
8283
8889
query I rowsort
SELECT + + cor0.col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT ALL - col1 DIV col2 + + col0 FROM tab0 cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - col1 / col2 + + col0 FROM tab0 cor0
----
-62
22
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - cor0.col2 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 73 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e3e71629820d202fb08a1552f357fcd1
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 + - 67 AS col1 FROM tab1 cor0
----
-1120
-171
-717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col0 * - 55 + col1 AS col2 FROM tab0 AS cor0
----
-1234
-1828
-4804
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT + CAST( NULL AS DECIMAL ) * 76 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS REAL ) * 76 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - cor0.col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT - col2 * 4 DIV + col0 FROM tab0 AS cor0
----
-3
-5
0
skipif mysql # not compatible
query I rowsort label-4475
SELECT - col2 * 4 / + col0 FROM tab0 AS cor0
----
-3
-5
0
query I rowsort
SELECT ALL 78 + col2 * cor0.col0 FROM tab0 cor0
----
113
7376
870
query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 88 FROM tab1 AS cor0
----
-88
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab1, tab0 AS cor0
----
-44
query I rowsort
SELECT ALL + 61 - 46 AS col1 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT + col2 * + col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - cor0.col2 + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 14 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
1171
1192
1357
onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT ALL + 17 DIV - col0 FROM tab1 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + 17 / - col0 FROM tab1 AS cor0
----
-5
0
0
query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0
----
49
query I rowsort
SELECT ALL - cor0.col0 * col2 + + cor0.col2 * 19 FROM tab2 AS cor0
----
-1534
-2280
324
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4490
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 59 * col2 AS col1 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + cor0.col0 col1 FROM tab0 AS cor0
----
-26
-37
28
query I rowsort
SELECT - col0 + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT DISTINCT + col1 DIV col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT + col1 / col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT + + 80 + + 53 FROM tab0 AS cor0
----
133
133
133
query I rowsort
SELECT ALL - + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT DISTINCT col1 DIV - 24 + col2 AS col1 FROM tab1 AS cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT col1 / - 24 + col2 AS col1 FROM tab1 AS cor0
----
53
57
96
query I rowsort
SELECT col0 * + 79 FROM tab0
----
1896
2765
7031
query I rowsort
SELECT + col0 - - 31 AS col0 FROM tab2
----
109
110
38
query I rowsort
SELECT + col1 + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * - 68 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0
----
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT - CAST( 1 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4505
SELECT - CAST ( 1 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT ALL col2 DIV + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-46
-6084
-6241
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL col2 / + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-46
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT DISTINCT - + col1 DIV 50 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - + col1 / 50 AS col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT ALL 64 AS col2 FROM tab0 cor0
----
64
64
64
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - 19 AS col2 FROM tab0 AS cor0
----
-19
-19
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - 0 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 * col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4519
SELECT col2 * - CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4519
SELECT col2 * - CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT col0 * 51 FROM tab2
----
357
3978
4029
query I rowsort
SELECT col2 * - col2 + - col0 AS col0 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ALL + col2 + + 20 AS col2 FROM tab1
----
116
74
77
query I rowsort
SELECT ALL tab2.col0 + - 64 * 85 FROM tab2
----
-5361
-5362
-5433
query I rowsort
SELECT + tab0.col2 * col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 59 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT + col2 + - tab0.col0 - - col1 AS col0 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - cor0.col0 + col2 * - ( + col0 * ( 51 ) ) FROM tab2 AS cor0
----
-103506
-153181
-9646
query I rowsort
SELECT + col2 * - 53 AS col0 FROM tab2 cor0
----
-1378
-1431
-2014
query I rowsort
SELECT + cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + 91 FROM tab0 AS cor0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col1 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL - - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT cor0.col0 DIV col2 + col2 * + 88 AS col2 FROM tab1 AS cor0
----
4752
5017
8448
skipif mysql # not compatible
query I rowsort label-4539
SELECT cor0.col0 / col2 + col2 * + 88 AS col2 FROM tab1 AS cor0
----
4752
5017
8448
query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 25 FROM tab1
----
25
25
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT CAST( NULL AS SIGNED ) + + col2 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4542
SELECT CAST ( NULL AS INTEGER ) + + col2 * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( 5 + col0 * - tab2.col0 ) AS col0 FROM tab2
----
-44
-6079
-6236
query I rowsort
SELECT DISTINCT + 69 FROM tab2
----
69
query I rowsort
SELECT col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - tab2.col0 + + col2 * 64 FROM tab2
----
1586
1721
2353
query I rowsort
SELECT col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 + ( + ( col2 ) * - 68 ) FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT DISTINCT + col1 + + col2 * - 71 AS col2 FROM tab0 AS cor0
----
-2257
-5731
26
query I rowsort
SELECT - 17 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT 21 FROM tab1
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 97 * + col1 FROM tab2 AS cor0
----
-1649
-3007
-5723
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT ALL 50 - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 0d7b105c4f9a262c60a08a89798be167
query I rowsort
SELECT DISTINCT 39 FROM tab2, tab0 AS cor0
----
39
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 + - 98 AS col1 FROM tab0
----
-184
-189
-195
query I rowsort
SELECT - col0 * col1 + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL + 79 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT ALL + + col0 + ( - col2 ) + - ( col0 ) * - col2 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-233465
-537
-614416
skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + + col0 + ( - col2 ) + - ( col0 ) * - col2 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-233465
-537
-614416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4562
SELECT ALL CAST( NULL AS DECIMAL ) + 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL CAST ( NULL AS REAL ) + 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT - 50 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT - ( col2 ) AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + + 33 * 41 AS col0 FROM tab0 AS cor0
----
1353
query I rowsort
SELECT DISTINCT - cor0.col2 + 85 FROM tab2 AS cor0
----
47
58
59
query I rowsort
SELECT ALL + 86 + - col2 * + col2 FROM tab1 AS cor0
----
-2830
-3163
-9130
query I rowsort
SELECT col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT CAST( - 57 AS SIGNED ) AS col2 FROM tab1 cor0
----
-57
-57
-57
skipif mysql # not compatible
query I rowsort label-4571
SELECT CAST ( - 57 AS INTEGER ) AS col2 FROM tab1 cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0
----
60
query I rowsort
SELECT ALL - 52 FROM tab1, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT col0 * + col2 + - col1 DIV + 30 AS col1 FROM tab0
----
32
7295
790
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT col0 * + col2 + - col1 / + 30 AS col1 FROM tab0
----
32
7295
790
query I rowsort
SELECT + tab0.col0 + tab0.col1 FROM tab0
----
110
132
180
query I rowsort
SELECT 70 FROM tab2
----
70
70
70
query I rowsort
SELECT + col2 * col2 - col1 * col1 * - col0 AS col2 FROM tab1
----
22736
4944
9649
query I rowsort
SELECT ALL col0 * - col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - 48 * - col1 AS col0 FROM tab1
----
1248
480
624
query I rowsort
SELECT + 66 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT ALL + col2 * + col1 - + ( + col0 + - col1 ) FROM tab2 AS cor0
----
1515
584
861
query I rowsort
SELECT ALL cor0.col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - ( col0 ) + - col1 - + 5 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-124
-158
-159
query I rowsort
SELECT - 15 * col1 FROM tab0 cor0
----
-1290
-1365
-1455
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 * col0 * - col0 FROM tab2
----
-343
-474552
-493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT + col1 * ( col0 + + col2 ) FROM tab1
----
1210
1482
2288
query I rowsort
SELECT + col1 * col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 * + ( ( col2 ) * - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT - + col0 * 40 + 66 DIV col0 FROM tab1 AS cor0
----
-2559
-3200
-98
skipif mysql # not compatible
query I rowsort label-4592
SELECT - + col0 * 40 + 66 / col0 FROM tab1 AS cor0
----
-2559
-3200
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT CAST( + col2 AS SIGNED ) * + col1 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4593
SELECT CAST ( + col2 AS INTEGER ) * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 * col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT CAST( col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 94 * - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT + + col2 + col1 * + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col1 * 54 FROM tab2
----
1674
3186
918
query I rowsort
SELECT tab1.col1 * + col1 * col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT tab1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 36 + - col2 * col1 FROM tab2 cor0
----
-1498
-610
-801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + - cor0.col1 * col2 - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * + col2 + - col1 AS col2 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT ALL + - col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 - - col0 * 87 * - col2 FROM tab2 AS cor0
----
-16450
-176514
-261253
query I rowsort
SELECT DISTINCT col1 * col1 - - col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT - + cor0.col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-4609
SELECT - + cor0.col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col0 + + 94 FROM tab0 cor0
----
5
59
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col1 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col2 + + 67 FROM tab0 AS cor0
----
-15
34
66
query I rowsort
SELECT + + cor0.col1 + - 38 FROM tab2 AS cor0
----
-21
-7
21
query I rowsort
SELECT ALL + + col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT 21 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 88 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT - + cor0.col2 + ( 48 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
-34
15
47
query I rowsort
SELECT ALL + col2 + col1 * col0 AS col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - - col1 + 29 AS col0 FROM tab0 AS cor0
----
115
120
126
onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT + col1 DIV - 12 + - col0 FROM tab0
----
-31
-43
-96
skipif mysql # not compatible
query I rowsort label-4621
SELECT + col1 / - 12 + - col0 FROM tab0
----
-31
-43
-96
query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + cor0.col2 - + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col1 * 43 * - cor0.col2 FROM tab2 AS cor0
----
27857
35998
66040
query I rowsort
SELECT DISTINCT ( col1 ) * - 76 + + 78 AS col0 FROM tab1 AS cor0
----
-1898
-682
-910
query I rowsort
SELECT DISTINCT 91 + col2 * + col2 FROM tab2
----
1535
767
820
query I rowsort
SELECT DISTINCT + col1 * tab0.col1 * - col1 + - col0 FROM tab0
----
-636080
-753660
-912708
query I rowsort
SELECT DISTINCT + ( 65 ) * + col2 - col2 FROM tab1
----
3456
3648
6144
query I rowsort
SELECT - 82 * - tab0.col0 * col1 FROM tab0
----
169248
278390
664118
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 76 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT 68 + - col0 AS col0 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT + 12 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-1944
-43776
-92160
query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL ( col0 ) * col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - - col2 - - col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4638
SELECT DISTINCT - + 68 * - col2 + + CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
165
2330
5667
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - + 68 * - col2 + + CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
165
2330
5667
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 16 AS col2 FROM tab0 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT DISTINCT + + col0 + col1 - + ( col2 + cor0.col2 ) DIV + cor0.col2 FROM tab1 AS cor0
----
27
72
91
skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + + col0 + col1 - + ( col2 + cor0.col2 ) / + cor0.col2 FROM tab1 AS cor0
----
27
72
91
query I rowsort
SELECT + col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT ALL + - ( - cor0.col1 ) DIV - cor0.col0 col0 FROM tab2 cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + - ( - cor0.col1 ) / - cor0.col0 col0 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT - col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - 9 + + col1 AS col0 FROM tab0 AS cor0
----
77
82
88
query I rowsort
SELECT DISTINCT + 99 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
-123552
-138996
-56430
query I rowsort
SELECT + 45 AS col2 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT 80 AS col0 FROM tab0 AS cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT ALL - - 64 * col1 DIV 90 + - col0 + - cor0.col2 * 72 AS col0 FROM tab0 AS cor0
----
-2339
-39
-5929
skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - - 64 * col1 / 90 + - col0 + - cor0.col2 * 72 AS col0 FROM tab0 AS cor0
----
-2339
-39
-5929
onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT DISTINCT - 75 DIV col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - 75 / col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + 96 col2 FROM tab2 AS cor0
----
37
65
79
query I rowsort
SELECT DISTINCT - col1 * col2 * + 96 + - 67 FROM tab1
----
-119875
-134851
-54787
query I rowsort
SELECT ALL col0 + tab1.col2 * col2 + 76 FROM tab1
----
2995
3389
9372
query I rowsort
SELECT ALL + col0 + col0 + col2 FROM tab2
----
182
196
41
query I rowsort
SELECT 43 * col1 FROM tab2
----
1333
2537
731
query I rowsort
SELECT - col0 + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + 47 * - tab0.col0 AS col0 FROM tab0
----
-1128
-1645
-4183
query I rowsort
SELECT - - 0 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT DISTINCT + ( + col0 ) DIV + 68 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + ( + col0 ) / + 68 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL 28 * + col0 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT ALL ( tab1.col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - 23 * + col2 FROM tab2
----
-598
-621
-874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - + cor0.col2 + col0 * - 72 AS col2 FROM tab0 AS cor0
----
-1761
-2521
-6490
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT DISTINCT - + col0 + col0 DIV 36 FROM tab2 AS cor0
----
-7
-76
-77
skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - + col0 + col0 / 36 FROM tab2 AS cor0
----
-7
-76
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4668
SELECT col1 * CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-4668
SELECT col1 * CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + - col2 * 7 FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col2 + 79 * col1 AS col2 FROM tab1 AS cor0
----
1123
2108
847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 93 col1 FROM tab2 AS cor0
----
100
171
172
query I rowsort
SELECT - - col1 + ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4676
SELECT + - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4676
SELECT + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 + 35 AS col0 FROM tab0 AS cor0
----
117
36
68
query I rowsort
SELECT ALL + col2 * 95 + col1 FROM tab1 AS cor0
----
5156
5425
9133
query I rowsort
SELECT - 83 AS col1 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2 AS cor0
----
6
query I rowsort
SELECT + ( 87 ) AS col2 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ALL - + col0 + + 0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4684
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 * + 61 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
3214
3410
5747
query I rowsort
SELECT ALL - - 24 * + 13 AS col1 FROM tab1 cor0
----
312
312
312
query I rowsort
SELECT col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 89 FROM tab0, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT ALL - 77 + ( - tab2.col2 + - 6 ) FROM tab2
----
-109
-110
-121
query I rowsort
SELECT ALL + col1 * ( + col0 ) + ( + col0 + - tab1.col1 ) AS col0 FROM tab1
----
1107
55
694
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - cor0.col2 * + col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT 96 * 28 AS col2 FROM tab1 AS cor0
----
2688
2688
2688
onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT DISTINCT - 22 + - col1 DIV col2 col2 FROM tab0 cor0
----
-119
-23
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - 22 + - col1 / col2 col2 FROM tab0 cor0
----
-119
-23
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT - ( col0 ) DIV - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4695
SELECT - ( col0 ) / - col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + 67 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT col1 + ( - cor0.col1 + + ( + ( - col2 ) ) ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + col0 + + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - ( + col1 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT ALL + - CAST( 70 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-70
-70
-70
skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + - CAST ( 70 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( + 62 ) * col0 AS col1 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 92 FROM tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT - ( + 49 ) AS col1 FROM tab1 AS cor0
----
-49
query I rowsort
SELECT + - 68 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1466
578
769
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + col1 * + col1 col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + col1 * col0 + + col0 * + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
107440
1736
363558
query I rowsort
SELECT 70 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + col0 * col1 + - col0 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ALL 65 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT ALL col0 + + col0 + + col2 * ( tab2.col2 ) FROM tab2
----
1602
743
832
query I rowsort
SELECT - tab2.col0 + - col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col0 + col1 * + tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + col1 + col1 * tab2.col2 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + col2 * - col0 + col2 FROM tab1 WHERE + col0 / - col1 NOT BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT + col0 + col2 DIV col1 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-4720
SELECT + col0 + col2 / col1 FROM tab1
----
5
69
87
query I rowsort
SELECT DISTINCT col1 * - col2 - col2 FROM tab0
----
-2871
-7544
-98
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col1 + - col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL tab1.col1 * - col2 + col1 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + col1 + - tab2.col1 * - tab2.col1 FROM tab2
----
306
3540
992
query III rowsort
SELECT * FROM tab1 WHERE - col0 > NULL
----
query I rowsort
SELECT - col0 / - col1 FROM tab1 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col0 * - col2 + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - - col1 * col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col2 * col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 * - col0 NOT IN ( col1 * col0 )
----
query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT col1 + col0 * col2 DIV col0 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-4734
SELECT col1 + col0 * col2 / col0 FROM tab2
----
55
58
85
query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 < NULL
----
query I rowsort
SELECT DISTINCT col1 * col1 + col1 * col1 FROM tab0
----
14792
16562
18818
query I rowsort
SELECT ALL + tab2.col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( - col1 - - col2 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 + - col0 * + col1 FROM tab0
----
-2040
-3360
-8010
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * col2 <= + col2
----
query I rowsort
SELECT col1 + col2 - col1 AS col2 FROM tab2 WHERE NULL < col2
----
query I rowsort
SELECT col1 * col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col2 + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - col0 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL col0 + col2 FROM tab0
----
171
36
57
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT ALL col2 + + col0 DIV + col0 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL col2 + + col0 / + col0 AS col0 FROM tab0
----
2
34
83
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * col1 )
----
query I rowsort
SELECT + col0 * col1 - col1 AS col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT - col1 + + col2 * tab1.col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col0 * - col0 + + tab1.col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL < col2 + - col2
----
query I rowsort
SELECT col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 + col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT + col2 - + col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL - tab1.col2 * col2 FROM tab1 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col1 * col1 FROM tab0 WHERE ( - col1 ) <= NULL
----
query I rowsort
SELECT - tab2.col2 + col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 * - col1 + tab0.col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 * col0 + + col0 * tab0.col2 AS col2 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT col0 * - col1 + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL + ( col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * + 77 FROM tab1
----
1001
2002
770
query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT 63 DIV - col0 + col2 AS col0 FROM tab0 AS cor0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-4774
SELECT 63 / - col0 + col2 AS col0 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT cor0.col1 * 10 FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2 cor0
----
-7
-78
-79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT DISTINCT - 50 * - ( + tab1.col0 ) FROM tab1
----
150
3200
4000
query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ( 96 ) FROM tab2
----
96
96
96
query I rowsort
SELECT cor0.col1 * - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT - ( 64 ) AS col0 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT col1 + - col1 AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL col0 * + col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) - + col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col0 - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 68 * col1 * + col1 FROM tab1
----
11492
45968
6800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT + - col1 * - ( 36 ) + col0 - + CAST( NULL AS SIGNED ) / - 76 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4790
SELECT + - col1 * - ( 36 ) + col0 - + CAST ( NULL AS INTEGER ) / - 76 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 - + col2 * col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col1 * - 2 + + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - ( - col2 ) + + ( - 24 ) AS col2 FROM tab1
----
30
33
72
query I rowsort
SELECT + col0 + - col2 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + - 16 AS col2 FROM tab1 AS cor0
----
-16
-16
-16
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-4797
SELECT col1 DIV + 23 + - col1 * - col0 FROM tab1 AS cor0
----
1040
640
79
skipif mysql # not compatible
query I rowsort label-4797
SELECT col1 / + 23 + - col1 * - col0 FROM tab1 AS cor0
----
1040
640
79
query I rowsort
SELECT ALL + ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ( - col0 ) + - col2 * + col0 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - 69 + 70 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL col1 + - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 * col0 + - col1 * tab2.col2 AS col0 FROM tab2
----
-648
2356
494
query I rowsort
SELECT + 41 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT + col2 + 37 * + col0 FROM tab2 AS cor0
----
286
2912
2961
query I rowsort
SELECT 77 AS col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4807
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + col2 + col0 / - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - - CAST ( NULL AS REAL ) + col2 + col0 / - col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 52 + col1 FROM tab1 AS cor0
----
62
65
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT + CAST( 52 AS SIGNED ) * col1 * col0 + col1 * - cor0.col0 FROM tab0 AS cor0
----
105264
173145
413049
skipif mysql # not compatible
query I rowsort label-4809
SELECT + CAST ( 52 AS INTEGER ) * col1 * col0 + col1 * - cor0.col0 FROM tab0 AS cor0
----
105264
173145
413049
query I rowsort
SELECT ALL + ( col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 64 + cor0.col1 * - col2 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
36608
4279
99984
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT + 15 DIV col0 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + 15 / col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - col2 + - col1 + col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + + 92 * - col1 AS col1 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT + col2 * col0 + + col0 AS col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0
----
36
query I rowsort
SELECT DISTINCT - - 53 + + col0 * + col1 FROM tab1 AS cor0
----
1093
131
693
query I rowsort
SELECT ALL + col0 + - cor0.col2 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 73 + col0 FROM tab1
----
-70
-9
7
query I rowsort
SELECT DISTINCT + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 16 + col2 col2 FROM tab2 AS cor0
----
10
11
22
query I rowsort
SELECT DISTINCT - 99 * + col2 + col1 FROM tab0 cor0
----
-2
-3181
-8027
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 61 + - col1 AS col1 FROM tab1 AS cor0
----
35
48
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT ALL col1 * + col2 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL col1 * + col2 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * - col0 + cor0.col1 col1 FROM tab0 AS cor0
----
2236
3589
8281
query I rowsort
SELECT ALL - 95 + + 34 * col0 * col1 + col0 * + col2 FROM tab0
----
115370
282569
70873
query I rowsort
SELECT col0 + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + col2 * + 85 + - col2 + - col0 FROM tab0
----
2748
49
6799
query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT tab0.col2 + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT col1 * col2 * + col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT + 37 - col2 FROM tab2
----
-1
10
11
query I rowsort
SELECT DISTINCT - ( - col2 * col0 ) + col1 + col1 FROM tab0
----
229
7480
964
query I rowsort
SELECT DISTINCT + 37 + - col2 AS col1 FROM tab1
----
-17
-20
-59
query I rowsort
SELECT DISTINCT 29 + col2 AS col1 FROM tab2
----
55
56
67
query I rowsort
SELECT DISTINCT - col2 * 11 - col0 AS col1 FROM tab0 AS cor0
----
-387
-46
-991
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT ALL + + cor0.col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + + cor0.col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - + 33 AS col2 FROM tab2 AS cor0
----
-6
-7
5
query I rowsort
SELECT ALL - col1 + 13 * ( col2 ) AS col1 FROM tab1 AS cor0
----
1235
676
731
query I rowsort
SELECT + cor0.col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 + cor0.col0 * + col0 + col1 * col2 FROM tab1 AS cor0
----
1387
4656
7635
query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col2 + 48 FROM tab2 cor0
----
74
75
86
query I rowsort
SELECT DISTINCT + col1 * - col1 - - col2 * + col0 FROM tab0 AS cor0
----
-6604
-9374
-983
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT ALL - + col1 DIV + ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - + col1 / + ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL col1 * cor0.col1 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT ALL - col2 + - col1 FROM tab2 cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT DISTINCT - - col0 DIV - ( col0 ) + + cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - - col0 / - ( col0 ) + + cor0.col0 / col0 AS col0 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 - + 81 col2 FROM tab0 AS cor0
----
7315
8200
9328
query I rowsort
SELECT ALL 52 FROM tab1
----
52
52
52
query I rowsort
SELECT ALL + col2 - + col1 * 36 AS col1 FROM tab0
----
-3063
-3194
-3491
query I rowsort
SELECT col2 * - ( - col2 ) AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 2 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - col0 * - 93 + col0 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT ALL col2 * - col0 + col2 + - col2 AS col1 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT col0 * col0 + col2 DIV col1 FROM tab1
----
11
4101
6407
skipif mysql # not compatible
query I rowsort label-4863
SELECT col0 * col0 + col2 / col1 FROM tab1
----
11
4101
6407
query I rowsort
SELECT DISTINCT col0 * + col1 - + col0 * col1 FROM tab0
----
0
query I rowsort
SELECT - col1 * - col2 + col1 * tab2.col1 * col1 AS col2 FROM tab2
----
206913
30628
5559
query I rowsort
SELECT + cor0.col1 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT col2 - col2 * - col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + tab2.col1 * + col1 - col2 AS col1 FROM tab2
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT col2 DIV - col0 + tab2.col0 * tab2.col2 AS col0 FROM tab2
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-4869
SELECT col2 / - col0 + tab2.col0 * tab2.col2 AS col0 FROM tab2
----
186
2028
3002
query I rowsort
SELECT ALL + col2 * - col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col0 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col2 + col1 col0 FROM tab2
----
111
85
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT DISTINCT + col0 + - col0 * col0 DIV col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + col0 + - col0 * col0 / col0 FROM tab1
----
0
query I rowsort
SELECT + col1 + tab0.col0 + col1 AS col2 FROM tab0
----
196
229
271
query I rowsort
SELECT tab2.col1 * col1 + + col2 AS col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT col0 + col0 + col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT - col1 * col0 * - col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT + tab2.col2 + tab2.col2 AS col0 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT DISTINCT col0 DIV - col2 + + col1 AS col2 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT col0 / - col2 + + col1 AS col2 FROM tab1
----
13
26
9
query I rowsort
SELECT + - col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col2 * col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - + col1 + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + + col1 + col0 * col0 AS col2 FROM tab0 cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT DISTINCT + col1 + col2 + + col2 DIV col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + col1 + col2 + + col2 / col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - col1 * col0 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT - col0 + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-4887
SELECT - col0 + col2 / + col1 AS col0 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT ALL + col1 + + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL cor0.col2 + col1 + + col2 AS col0 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT col1 - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 + col2 + col0 AS col1 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col1 * - col2 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col0 * + col1 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT DISTINCT col1 DIV tab0.col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT col1 / tab0.col2 FROM tab0
----
1
2
97
query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 69 FROM tab2 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - col1 / + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 76 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL - 35 FROM tab0 AS cor0
----
-35
-35
-35
query I rowsort
SELECT DISTINCT + - col0 + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 41 * + col0 FROM tab1 cor0
----
123
2624
3280
query I rowsort
SELECT DISTINCT - - col0 * col1 * cor0.col1 FROM tab2 cor0
----
22831
271518
6727
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 - cor0.col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col2 - col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 46 AS col2 FROM tab1
----
-46
-46
-46
query I rowsort
SELECT DISTINCT 9 FROM tab0
----
9
query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + - col0 + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0, tab2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4923
SELECT cor0.col0 + + CAST( + 35 AS SIGNED ) FROM tab0 cor0
----
124
59
70
skipif mysql # not compatible
query I rowsort label-4923
SELECT cor0.col0 + + CAST ( + 35 AS INTEGER ) FROM tab0 cor0
----
124
59
70
query I rowsort
SELECT ALL col2 * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 90 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
90
query I rowsort
SELECT ALL 27 AS col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT ALL - + col0 * + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col2 * col2 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT col2 * - 53 + col1 FROM tab1 AS cor0
----
-2836
-3011
-5075
query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ( col1 + col2 ) AS col2 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT + col2 * col2 DIV - col1 AS col2 FROM tab2
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-4935
SELECT + col2 * col2 / - col1 AS col2 FROM tab2
----
-11
-23
-84
query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - 94 * 33 FROM tab1
----
-3102
-3102
-3102
query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT DISTINCT tab1.col1 * col0 DIV - col0 col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT tab1.col1 * col0 / - col0 col1 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT + - 33 * col2 + col2 - - col1 DIV + ( - col1 ) FROM tab0 AS cor0
----
-1057
-2625
-33
skipif mysql # not compatible
query I rowsort label-4940
SELECT + - 33 * col2 + col2 - - col1 / + ( - col1 ) FROM tab0 AS cor0
----
-1057
-2625
-33
query I rowsort
SELECT ALL - - 27 * - 1 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL + col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT CAST( NULL AS SIGNED ) + cor0.col0 - - col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4943
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 - - col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - ( + col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ( col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col1 + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - + 2 AS col1 FROM tab0 AS cor0
----
-2
-2
-2
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL 71 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - ( + 96 ) FROM tab0
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT + cor0.col2 DIV col2 + - 93 + 51 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-4954
SELECT + cor0.col2 / col2 + - 93 + 51 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT 92 * - col0 + 2 AS col1 FROM tab1 AS cor0
----
-274
-5886
-7358
query I rowsort
SELECT col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 + col0 col0 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col2 + col1 col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ( + tab2.col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - col1 + - col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + + col1 * col0 + 63 AS col2 FROM tab2 AS cor0
----
1406
280
4665
query I rowsort
SELECT + cor0.col2 * col0 + 39 AS col0 FROM tab2 AS cor0
----
2067
228
3041
query I rowsort
SELECT - ( + col0 ) * 29 AS col2 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT ALL - col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 69 AS col1 FROM tab1 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4966
SELECT col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 + - col1 * + 46 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT DISTINCT + - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT + - col0 / + col2 AS col2 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT - col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4969
SELECT - col2 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT + + col0 DIV + col0 + col1 * 11 - - col0 * col1 FROM tab1 AS cor0
----
1184
365
751
skipif mysql # not compatible
query I rowsort label-4971
SELECT + + col0 / + col0 + col1 * 11 - - col0 * col1 FROM tab1 AS cor0
----
1184
365
751
query I rowsort
SELECT ALL + + col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + - 54 FROM tab2 cor0
----
-54
-54
-54
query I rowsort
SELECT - + cor0.col1 * col2 * 35 + + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-21267
-29078
-49088
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab1 AS cor0
----
94
query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0
----
83
query I rowsort
SELECT + + 62 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + col0 * col2 * + ( + col0 ) FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + - col1 + + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL + + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col0 * 33 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
262
2624
2633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col2 * ( col1 * col1 ) FROM tab2 AS cor0
----
10982
25947
90506
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4985
SELECT col0 + + CAST( NULL AS DECIMAL ) * + col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4985
SELECT col0 + + CAST ( NULL AS REAL ) * + col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT ALL + col1 DIV 22 - col2 * - col1 FROM tab2 AS cor0
----
1536
646
838
skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL + col1 / 22 - col2 * - col1 FROM tab2 AS cor0
----
1536
646
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 65 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT - + cor0.col0 + 73 FROM tab1 AS cor0
----
-7
70
9
query I rowsort
SELECT ALL 36 + - 58 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT col1 * 81 FROM tab2
----
1377
2511
4779
query I rowsort
SELECT - 18 * - cor0.col0 + - 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 43a364d3ba1b7a24509e20bcc2a5d32e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT 44 DIV 89 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4996
SELECT 44 / 89 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - 5 FROM tab1
----
-5
query I rowsort
SELECT + 49 + 65 FROM tab2 AS cor0
----
114
114
114
query I rowsort
SELECT ALL + 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5000
SELECT + CAST( + 39 AS SIGNED ) + col0 FROM tab0 AS cor0
----
128
63
74
skipif mysql # not compatible
query I rowsort label-5000
SELECT + CAST ( + 39 AS INTEGER ) + col0 FROM tab0 AS cor0
----
128
63
74
query I rowsort
SELECT - ( col2 * + col1 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + tab2.col1 + col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL tab1.col0 * + col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT ALL col1 DIV col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL col1 / col1 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL + cor1.col1 * 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 2ca358342f4f0c0c0373eb6d63e4d54b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 162169e743caf7b1ab855c7985eb36ff
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT ALL + tab2.col0 * col0 + + 63 + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + tab2.col0 * col0 + + 63 + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9
query I rowsort
SELECT DISTINCT col0 * - col0 - col1 FROM tab1
----
-35
-4106
-6413
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT + tab1.col1 DIV col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5011
SELECT + tab1.col1 / col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT + col2 - col0 * cor0.col0 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + tab2.col1 + - 10 AS col0 FROM tab2
----
21
49
7
query I rowsort
SELECT ALL - 27 AS col1 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL + 23 FROM tab0
----
23
23
23
query I rowsort
SELECT ALL + 94 * col1 * col2 AS col1 FROM tab1
----
117312
131976
53580
query I rowsort
SELECT 19 AS col1 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT cor0.col2 * ( - col2 * + col2 ) AS col1 FROM tab1 cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT col0 + ( - col1 ) * 52 AS col0 FROM tab0 AS cor0
----
-4448
-4643
-5009
query I rowsort
SELECT 5 * - col2 + + col2 FROM tab0 AS cor0
----
-132
-328
-4
query I rowsort
SELECT ALL + - col1 + 73 * + col2 AS col1 FROM tab1 AS cor0
----
3916
4151
6995
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - col0 col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - 56 + - col2 AS col1 FROM tab2 AS cor0
----
-82
-83
-94
query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - + 54 + - col2 AS col2 FROM tab1 cor0
----
-108
-111
-150
query I rowsort
SELECT - ( + col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col0 * - tab1.col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - tab0.col2 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 * col2 * + 78 FROM tab2 AS cor0
----
119652
50388
65286
query I rowsort
SELECT + cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - col0 + col2 * col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + 55 * col2 AS col2 FROM tab1 AS cor0
----
3705
4374
6528
query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 + - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + + ( + cor0.col1 ) * - col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - + cor0.col2 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL cor0.col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT DISTINCT - col0 DIV CAST( + 34 AS SIGNED ) FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - col0 / CAST ( + 34 AS INTEGER ) FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 93 col0 FROM tab2 AS cor0
----
34
62
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col0 + col0 * 78 AS col2 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col2 ) * col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + 44 * tab0.col2 AS col2 FROM tab0
----
1452
3608
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT ALL - col0 DIV ( col1 ) + col0 * col2 FROM tab1 AS cor0
----
162
3642
7674
skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - col0 / ( col1 ) + col0 * col2 FROM tab1 AS cor0
----
162
3642
7674
query I rowsort
SELECT ALL + + col0 * ( col0 ) + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT ALL - - col1 + - 56 * - col2 DIV - col2 FROM tab1 AS cor0
----
-30
-43
-46
skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - - col1 + - 56 * - col2 / - col2 FROM tab1 AS cor0
----
-30
-43
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5060
SELECT DISTINCT + + col1 + - CAST( - col0 AS SIGNED ) * + col1 * 51 FROM tab2 AS cor0
----
11098
234761
68510
skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + + col1 + - CAST ( - col0 AS INTEGER ) * + col1 * 51 FROM tab2 AS cor0
----
11098
234761
68510
query I rowsort
SELECT ALL - col2 * - col0 + 74 FROM tab1 cor0
----
236
3722
7754
query I rowsort
SELECT - + col1 * - col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * col2 + 15 AS col1 FROM tab1
----
-2901
-3234
-9201
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 * col2 + - col2 + 59 FROM tab2 AS cor0
----
1567
667
869
query I rowsort
SELECT - ( + 57 ) + - col2 * ( + col0 ) * + cor0.col0 - 5 FROM tab1 AS cor0
----
-233534
-548
-614462
query I rowsort
SELECT + cor0.col0 + col0 * col0 + + col2 * ( + col0 * cor0.col2 ) AS col2 FROM tab2 AS cor0
----
120396
5159
58890
query I rowsort
SELECT 49 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT - 9 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT DISTINCT + tab0.col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5071
SELECT 5 + col1 * CAST( - 38 AS SIGNED ) FROM tab0 AS cor0
----
-3263
-3453
-3681
skipif mysql # not compatible
query I rowsort label-5071
SELECT 5 + col1 * CAST ( - 38 AS INTEGER ) FROM tab0 AS cor0
----
-3263
-3453
-3681
query I rowsort
SELECT + 29 * + col1 - + col2 AS col0 FROM tab1
----
233
281
700
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL 44 DIV + col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL 44 / + col1 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 4 + - 26 FROM tab1
----
-22
-22
-22
query I rowsort
SELECT - - tab1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( + col2 AS SIGNED ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( + col2 AS INTEGER ) FROM tab1
----
54
57
96
query I rowsort
SELECT + tab0.col0 * ( 32 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5e2342e3d097cfb9396f291e345ca9b0
query I rowsort
SELECT tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5081
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
NULL
query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * + ( col1 ) FROM tab1 cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT ALL col1 DIV + cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL col1 / + cor0.col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT 34 * - col0 + ( 33 ) * cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
-23296
-2676
-37040
query I rowsort
SELECT ALL - + 63 AS col0 FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT + 86 + col1 * + col2 * 47 FROM tab1 cor0
----
26876
58742
66074
query I rowsort
SELECT - - col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + + col2 * col1 + - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 + col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab2 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT + col2 + - cor0.col2 DIV 4 + 65 FROM tab1 AS cor0
----
106
108
137
skipif mysql # not compatible
query I rowsort label-5092
SELECT + col2 + - cor0.col2 / 4 + 65 FROM tab1 AS cor0
----
106
108
137
query I rowsort
SELECT - ( cor0.col2 ) * - col1 + ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ( ( + col1 ) ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - - 66 + - 59 AS col1 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT 56 * + 67 AS col2 FROM tab1 AS cor0
----
3752
3752
3752
query I rowsort
SELECT col2 * - ( col0 ) + col1 * col2 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT col1 - + col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - tab0.col0 * + 98 + - col2 FROM tab0
----
-2385
-3431
-8804
query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5102
SELECT col0 * + CAST( + col2 + - col0 AS SIGNED ) * col1 AS col1 FROM tab1
----
-4480
16640
3978
skipif mysql # not compatible
query I rowsort label-5102
SELECT col0 * + CAST ( + col2 + - col0 AS INTEGER ) * col1 AS col1 FROM tab1
----
-4480
16640
3978
query I rowsort
SELECT 87 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + ( + col1 ) * col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT - 83 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-550
-6415
-6540
query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
30
query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + tab1.col2 * col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - 43 + col0 AS col1 FROM tab0 AS cor0
----
-19
-8
46
query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL 29 * + col0 AS col0 FROM tab0 AS cor0
----
1015
2581
696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + cor0.col2 * col1 - 59 * col1 * col1 FROM tab1 AS cor0
----
-11219
-41288
-6470
query I rowsort
SELECT - 39 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f5415b2c1eedc2dc3c62fa8a2b4cf9d9
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
query I rowsort
SELECT col0 * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col2 * - 41 AS col0 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT - col2 - 16 FROM tab2 AS cor0
----
-42
-43
-54
query I rowsort
SELECT ALL cor1.col1 + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 8a6ee65acce7b8f5fc27981e664bfe68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT ALL col1 DIV - col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL col1 / - col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT col2 * 60 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + + col1 * - 23 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 11 FROM tab0 cor0
----
11
11
11
query I rowsort
SELECT ALL - + ( - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94
query I rowsort
SELECT ALL - ( cor0.col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - 96 FROM tab1 AS cor0
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT DISTINCT 23 DIV tab1.col0 AS col1 FROM tab1
----
0
7
skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT 23 / tab1.col0 AS col1 FROM tab1
----
0
7
query I rowsort
SELECT - 43 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 10 + col2 AS col2 FROM tab1 AS cor0
----
106
64
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT ALL + 11 DIV + col1 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + 11 / + col1 AS col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT col1 * + col2 * col1 + col0 * - col2 + cor0.col1 FROM tab2 AS cor0
----
25789
7997
88537
query I rowsort
SELECT DISTINCT 99 FROM tab0
----
99
query I rowsort
SELECT - - cor0.col2 * - col0 + - col0 + col1 FROM tab2 AS cor0
----
-165
-2047
-3064
onlyif mysql # use DIV operator for integer division
query I rowsort label-5149
SELECT DISTINCT + col0 DIV + 7 AS col0 FROM tab1 cor0
----
0
11
9
skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + col0 / + 7 AS col0 FROM tab1 cor0
----
0
11
9
query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT - col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5151
SELECT - col0 / - ( + col0 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + cor0.col2 * + ( 50 ) * + cor0.col2 FROM tab2 cor0
----
-33800
-36450
-72200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT - col1 + + ( - col1 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-5153
SELECT - col1 + + ( - col1 ) / col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL + cor0.col1 * col0 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
22910
271596
6734
onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT - - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5155
SELECT - - col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + ( col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL tab1.col0 * - col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 44 + col1 * col2 AS col0 FROM tab0
----
141
2882
7506
query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 97 AS col1 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT ALL - - 50 + + col1 FROM tab0 AS cor0
----
136
141
147
query I rowsort
SELECT - 93 * 87 + - col2 FROM tab0
----
-8092
-8124
-8173
query I rowsort
SELECT ALL 23 FROM tab2
----
23
23
23
query I rowsort
SELECT - col2 + tab1.col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 * + tab2.col1 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT - tab0.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-5168
SELECT - tab0.col2 / col2 col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 col1 FROM tab2
----
42
6006
6162
query I rowsort
SELECT DISTINCT col1 * col0 + + 12 AS col2 FROM tab2
----
1355
229
4614
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT + col1 DIV tab1.col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5172
SELECT + col1 / tab1.col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT col1 + col0 * - 25 AS col2 FROM tab2
----
-144
-1891
-1958
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - ( col1 ) * - col0 col2 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT ALL + 73 DIV col1 + + 50 * + cor0.col0 FROM tab1 cor0
----
152
3207
4005
skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + 73 / col1 + + 50 * + cor0.col0 FROM tab1 cor0
----
152
3207
4005
query I rowsort
SELECT DISTINCT + 31 FROM tab1 AS cor0
----
31
query I rowsort
SELECT DISTINCT - + col2 + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT 27 FROM tab0 AS cor0
----
27
query I rowsort
SELECT - col1 + - col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT - col0 - + 8 FROM tab2
----
-15
-86
-87
query I rowsort
SELECT + col0 * ( + col2 * col1 ) AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 * col1 + 0 + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col0 * col1 - col0 * - tab2.col2 FROM tab2
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + + 25 * col1 + col0 col1 FROM tab1
----
371
501
707
query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 AS cor0
----
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5186
SELECT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5186
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 51 col0 FROM tab0
----
-18
-50
31
query I rowsort
SELECT ALL col2 * col2 * col1 + - col0 AS col0 FROM tab1
----
119728
32426
75813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT col1 DIV - col2 + col1 * col1 AS col1 FROM tab1
----
100
169
676
skipif mysql # not compatible
query I rowsort label-5189
SELECT col1 / - col2 + col1 * col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - cor0.col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT 72 * - col1 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT ALL ( + 92 ) FROM tab2 AS cor0
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT ALL + 86 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + 86 / + cor0.col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - 17 * col1 AS col0 FROM tab2 AS cor0
----
-1003
-289
-527
query I rowsort
SELECT - 57 * col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT DISTINCT - 53 * col1 * col1 FROM tab0 AS cor0
----
-391988
-438893
-498677
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 16 FROM tab0
----
16
16
16
query I rowsort
SELECT - col0 * - col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - + ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL cor0.col1 * col1 - cor0.col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0 AS cor0
----
-73
query I rowsort
SELECT DISTINCT + 44 FROM tab0, tab0 AS cor0
----
44
query I rowsort
SELECT 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT tab1.col0 * + 7 AS col2 FROM tab1
----
21
448
560
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5208
SELECT CAST( 74 AS SIGNED ) FROM tab2 AS cor0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-5208
SELECT CAST ( 74 AS INTEGER ) FROM tab2 AS cor0
----
74
74
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT ALL + CAST( col0 AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + CAST ( col0 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 3 + col2 FROM tab1 AS cor0
----
57
60
99
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT DISTINCT col1 + - cor0.col2 * col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-35851
-551277
96
skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT col1 + - cor0.col2 * col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-35851
-551277
96
query I rowsort
SELECT ALL col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 37 * + 0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col1 + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT ALL + CAST( col2 AS SIGNED ) * tab1.col2 * 81 AS col1 FROM tab1
----
236196
263169
746496
skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + CAST ( col2 AS INTEGER ) * tab1.col2 * 81 AS col1 FROM tab1
----
236196
263169
746496
query I rowsort
SELECT - - col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + 89 col2 FROM tab2 cor0
----
-623
-6942
-7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5222
SELECT ALL CAST( NULL AS SIGNED ) / cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( col0 ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT DISTINCT + + cor0.col2 DIV - col0 + + col2 * col2 FROM tab2 AS cor0
----
1444
676
726
skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + + cor0.col2 / - col0 + + col2 * col2 FROM tab2 AS cor0
----
1444
676
726
query I rowsort
SELECT - + ( col2 ) + col2 * - 47 AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 20 * col0 FROM tab1 AS cor0
----
1280
1600
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5228
SELECT + ( + 16 ) + - col2 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-36
-38
-60
skipif mysql # not compatible
query I rowsort label-5228
SELECT + ( + 16 ) + - col2 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-36
-38
-60
query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + 23 * - col2 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 + - col0 * 50 AS col2 FROM tab2 cor0
----
-343
-3822
-3871
query I rowsort
SELECT col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col0 + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col1 * col1 * col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 91 col0 FROM tab2
----
1547
2821
5369
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + 43 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7686ef0092e7902c83b985547dcd18db
query I rowsort
SELECT ALL col2 * + tab1.col1 * col1 AS col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL - col0 * 97 * col0 FROM tab2
----
-4753
-590148
-605377
query I rowsort
SELECT ALL + col1 * - 47 * - 39 FROM tab2 AS cor0
----
108147
31161
56823
query I rowsort
SELECT + col1 - col1 * 46 AS col2 FROM tab1 AS cor0
----
-1170
-450
-585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 59 * col0 * col2 col2 FROM tab0 AS cor0
----
2066
430664
46761
query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - col2 * 30 + 87 FROM tab1 AS cor0
----
-1533
-1623
-2793
query I rowsort
SELECT DISTINCT col0 * 98 + + 45 * + col1 + 44 AS col2 FROM tab0 AS cor0
----
12861
6266
7839
query I rowsort
SELECT ALL + col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - cor0.col2 * ( 92 ) AS col1 FROM tab2 AS cor0
----
2392
2484
3496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + - 22 FROM tab1 AS cor0
----
32
35
74
query I rowsort
SELECT DISTINCT col1 * - 63 * col2 FROM tab1 cor0
----
-35910
-78624
-88452
query I rowsort
SELECT + + col0 * - col2 - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT ALL + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5259
SELECT - cor0.col1 + CAST( 85 + cor0.col1 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
-221
-3455
-907
skipif mysql # not compatible
query I rowsort label-5259
SELECT - cor0.col1 + CAST ( 85 + cor0.col1 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
-221
-3455
-907
query I rowsort
SELECT ALL - col0 * - 53 AS col2 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT ALL col0 - + col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT 46 AS col1 FROM tab0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT ALL + col0 DIV col2 - 28 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
-114687
-179200
-252
skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + col0 / col2 - 28 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
-114687
-179200
-252
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + col1 + - 11 FROM tab2 AS cor0
----
-28
-42
-70
query I rowsort
SELECT ALL col0 + - ( - 5 ) * col2 AS col0 FROM tab1 AS cor0
----
273
349
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT ALL tab1.col0 DIV - 66 + col0 + + tab1.col1 AS col2 FROM tab1
----
29
74
92
skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL tab1.col0 / - 66 + col0 + + tab1.col1 AS col2 FROM tab1
----
29
74
92
query I rowsort
SELECT - 31 FROM tab1, tab1 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT ALL + col0 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT ALL - col0 + col2 DIV col1 col1 FROM tab2
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - col0 + col2 / col1 col1 FROM tab2
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col2 FROM tab1
----
0
query I rowsort
SELECT col0 * - tab1.col2 AS col0 FROM tab1 WHERE NOT NULL <> - col0
----
query I rowsort
SELECT DISTINCT + col1 + col0 * + col2 * col2 FROM tab2
----
114093
5134
52787
query I rowsort
SELECT - col2 * - col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col2 + - col0 + + tab0.col0 * - col0 AS col0 FROM tab0
----
-1259
-567
-7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL - tab1.col1 DIV col0 AS col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - tab1.col1 / col0 AS col2 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab1, tab0 AS cor0
----
86
91
97
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 IN ( + col2 )
----
query I rowsort
SELECT ALL - col2 * col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 + col0 * + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col1 * - col1 * col2 + col1 AS col0 FROM tab2
----
10999
25978
90565
query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab1
----
-4096
-6400
-9
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = ( col1 )
----
query I rowsort
SELECT col1 * col2 AS col1 FROM tab0
----
2838
7462
97
query III rowsort
SELECT * FROM tab2 WHERE ( col1 + + col2 ) IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col0 * tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + tab2.col0 * col1 - + tab2.col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col2 * col1 AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + tab2.col1 * - col0 col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 * col2 * - col0 col1 FROM tab2 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT col1 + - col2 * col1 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5293
SELECT col1 + - col2 * col1 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col2 + col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL col0 * - col1 + col1 AS col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - col2 * + col2 * - col1 + col0 FROM tab0
----
132
611973
93678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 - + col2 col1 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT ALL col1 * col0 DIV col2 AS col1 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL col1 * col0 / col2 AS col1 FROM tab1
----
1
10
11
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL BETWEEN col1 AND + col0 AND NOT col1 * - col2 - - col0 > NULL
----
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - col0 * - tab2.col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT + col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5306
SELECT + col1 / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab2 WHERE NOT col0 <> ( - col2 - - col0 )
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IN ( - tab0.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + - col1 + + 63 FROM tab1 AS cor0
----
37
50
53
query I rowsort
SELECT 88 FROM tab2
----
88
88
88
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 + ( col1 + col2 ) FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT DISTINCT - - col0 * 77 * 98 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
52815
588510
596055
query I rowsort
SELECT ALL cor0.col0 * 71 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT DISTINCT - col0 * col2 + + ( + cor0.col2 * - ( - col0 ) ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT 21 + - col1 * 8 FROM tab1
----
-187
-59
-83
query I rowsort
SELECT ALL + tab0.col1 * col2 + + col1 FROM tab0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5320
SELECT ALL + col2 / + col0 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + col2 / + col0 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col1 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * - col0 col1 FROM tab1
----
18
384
480
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 DISTINCT - - col1 + - col0 col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col2 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + + col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * + ( col0 ) + col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - - cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * + col2 * + col0 FROM tab2 cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * col1 + - col2 * col0 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT col0 * - col1 + col0 * - col2 FROM tab0
----
-15397
-2856
-3430
query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + tab0.col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 + - col2 AS col2 FROM tab1 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT ALL tab2.col0 * col2 + - col2 * col1 + col2 * col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col0 * col2 * + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col0 + + col1 * col2 )
----
query I rowsort
SELECT - col1 * - col2 + - col1 AS col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT ALL + col1 * + col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col2 * col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 + tab2.col2 + - col2 FROM tab2
----
17
31
59
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1 + col0 )
----
query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + tab1.col1 + col2 - col0 AS col2 FROM tab1
----
29
3
77
query I rowsort
SELECT DISTINCT - col2 + + tab2.col1 * - col0 * + tab2.col0 + col1 AS col2 FROM tab2
----
-106118
-1515
-358923
query I rowsort
SELECT - col2 * col2 * - col1 FROM tab2
----
22599
24548
39884
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT - col0 + + cor0.col2 * col0 AS col1 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT + 21 FROM tab1
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT col0 * + col2 + + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-5355
SELECT col0 * + col2 + + col2 / col1 AS col1 FROM tab2 AS cor0
----
189
2028
3004
query I rowsort
SELECT ALL + + cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT - 59 * - col2 * col0 FROM tab0 AS cor0
----
2065
430582
46728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT DISTINCT - ( col0 ) + - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - ( col0 ) + - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - 83 + - col2 FROM tab1 AS cor0
----
-137
-140
-179
query I rowsort
SELECT DISTINCT - 86 * - col1 AS col1 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT - col2 + 5 + cor0.col0 FROM tab1 AS cor0
----
-11
-46
12
query I rowsort
SELECT ALL col2 * col0 + + 36 AS col1 FROM tab0 AS cor0
----
71
7334
828
onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT DISTINCT col2 + + col2 * col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT col2 + + col2 * col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 * - ( col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT + col1 DIV + 9 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-5367
SELECT + col1 / + 9 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT - + col0 DIV - ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5370
SELECT - + col0 / - ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 + - col1 + col2 AS col2 FROM tab2 cor0
----
-11
-111
-58
query I rowsort
SELECT + - col0 * ( + cor0.col2 + - col1 ) FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 - tab0.col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col1 * + col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + cor0.col0 * ( col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-5377
SELECT ALL col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL col0 / - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5379
SELECT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 67 AS col2 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT + col1 DIV - ( - col0 ) + + col1 AS col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-5381
SELECT + col1 / - ( - col0 ) + + col1 AS col1 FROM tab0
----
89
92
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT ALL - CAST( NULL AS SIGNED ) + 17 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - CAST ( NULL AS INTEGER ) + 17 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 89 * + cor0.col1 + - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 59f0d554f46aced322dfaa2485535d42
query I rowsort
SELECT + col1 + + 49 * - col2 AS col2 FROM tab1 cor0
----
-2620
-2783
-4691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5385
SELECT + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5386
SELECT ALL col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + - col1 * col0 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-1322
-221
-4635
query I rowsort
SELECT ALL - 87 + - cor0.col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
1161
1317
483
query I rowsort
SELECT + col1 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT 99 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT col0 * tab2.col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + col1 + + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + col1 + + col1 * col0 AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ( - col1 ) - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col2 * col0 + - 53 + col1 AS col2 FROM tab1
----
-189
-3691
-7720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab0.col2 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 + + col0 + ( col2 + tab2.col1 ) * col1 FROM tab2
----
1031
1836
5152
query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT tab1.col2 + + tab1.col2 * - col1 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col0 + col1 * col0 * + col2 FROM tab2 cor0
----
119730
51113
5866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + col1 + + col0 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 * col2 + - col0 + + col1 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
3325
656731
67296
query I rowsort
SELECT ALL 56 AS col1 FROM tab0
----
56
56
56
query I rowsort
SELECT cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + - col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col0 + + cor0.col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT 84 * + cor0.col1 + cor0.col0 FROM tab1 cor0
----
1172
2187
904
query I rowsort
SELECT ALL - col2 - - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 55 * col1 * col1 FROM tab2
----
-15895
-191455
-52855
query I rowsort
SELECT ALL - cor0.col1 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + col1 * + col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + - col2 + col1 * - col2 * - col2 AS col2 FROM tab2 cor0
----
22572
24510
39858
query I rowsort
SELECT - col1 + - col2 * + col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col2 * col1 + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT + col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT 96 * col0 AS col1 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT DISTINCT ( - tab0.col2 ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + ( + 76 ) AS col1 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL + 62 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT - 63 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT 70 + col0 * col2 FROM tab2
----
2098
259
3072
query I rowsort
SELECT ( ( tab0.col1 ) ) FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5428
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT DISTINCT + tab0.col0 DIV - col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + tab0.col0 / - col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + 8 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-7
25
74
query I rowsort
SELECT + col1 - - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + 90 * col2 + + cor0.col0 + + col2 * col1 FROM tab1 AS cor0
----
5764
6267
9968
query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
2121
3431
8270
query I rowsort
SELECT col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * + col1 - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + - 52 AS col2 FROM tab2 AS cor0
----
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT ALL + - 21 + col0 DIV - cor0.col0 AS col2 FROM tab0 cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + - 21 + col0 / - cor0.col0 AS col2 FROM tab0 cor0
----
-22
-22
-22
query I rowsort
SELECT ALL 89 + col2 AS col0 FROM tab1
----
143
146
185
query I rowsort
SELECT + 32 * col1 AS col1 FROM tab1
----
320
416
832
query I rowsort
SELECT ( - 74 * col2 ) + + col2 AS col0 FROM tab0
----
-2409
-5986
-73
query I rowsort
SELECT + col1 * cor0.col2 + + col2 * col0 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
1215
5590
6650
query I rowsort
SELECT col2 + - col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 69 FROM tab1, tab2 cor0
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab1
----
-79
-79
-79
query I rowsort
SELECT 24 FROM tab0
----
24
24
24
query I rowsort
SELECT 41 FROM tab1
----
41
41
41
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
24
35
89
query I rowsort
SELECT - + 94 FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - - 85 AS col0 FROM tab2 cor0
----
85
85
85
query I rowsort
SELECT cor0.col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + col1 * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT + col1 * - col1 * - CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
205379
29791
4913
skipif mysql # not compatible
query I rowsort label-5462
SELECT + col1 * - col1 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT DISTINCT - - col2 DIV cor0.col2 - + 28 FROM tab0 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - - col2 / cor0.col2 - + 28 FROM tab0 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 + + col2 AS REAL ) AS col2 FROM tab0
----
171
36
57
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT 97 * col2 AS col1 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT 53 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT DISTINCT col1 DIV + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT col1 / + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT - col1 + + col1 + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5470
SELECT - col1 + + col1 + col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT + col0 + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT ALL + - col1 + + ( col0 ) DIV + col0 FROM tab1 cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + - col1 + + ( col0 ) / + col0 FROM tab1 cor0
----
-12
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT - col0 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5474
SELECT - col0 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 96 AS col1 FROM tab2 AS cor0
----
58
69
70
query I rowsort
SELECT col1 * - ( cor0.col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col0 + + tab2.col2 + + 64 * col1 * + col2 FROM tab2
----
41303
53588
98124
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT cor0.col2 * + 66 AS col2 FROM tab1 cor0
----
3564
3762
6336
query I rowsort
SELECT - col2 + col2 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - col2 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 6 AS REAL ) + - col2 * - 32 + + col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
-5031
-5258
809
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT + - cor0.col0 DIV + 89 AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5484
SELECT + - cor0.col0 / + 89 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 64 FROM tab2, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT cor0.col1 * - col1 + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + - col2 * + col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT DISTINCT - col2 + - 66 DIV col2 FROM tab1 AS cor0
----
-55
-58
-96
skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - col2 + - 66 / col2 FROM tab1 AS cor0
----
-55
-58
-96
query I rowsort
SELECT DISTINCT + 19 + - col0 AS col2 FROM tab2 AS cor0
----
-59
-60
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT - CAST( NULL AS SIGNED ) * - col1 + cor0.col2 / + ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5491
SELECT - CAST ( NULL AS INTEGER ) * - col1 + cor0.col2 / + ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 48 * + col1 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-649
527
527
query I rowsort
SELECT DISTINCT + col0 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT + + col2 DIV col0 + + col2 AS col0 FROM tab2 cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5494
SELECT + + col2 / col0 + + col2 AS col0 FROM tab2 cor0
----
26
30
38
query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col2 + - 72 + col2 FROM tab2 AS cor0
----
-18
-20
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT 1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * - col2 + 35 FROM tab1 AS cor0
----
-2935
-3271
-9277
query I rowsort
SELECT 69 AS col2 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT ALL - 22 * col0 AS col2 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT ALL + - col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - 85 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
626
6689
6732
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + col0 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-12168
-12482
-98
skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + col0 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-12168
-12482
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT + ( col1 ) DIV - col0 + col0 * 32 AS col2 FROM tab2 AS cor0
----
220
2496
2528
skipif mysql # not compatible
query I rowsort label-5505
SELECT + ( col1 ) / - col0 + col0 * 32 AS col2 FROM tab2 AS cor0
----
220
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT ALL col0 DIV ( col1 ) FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL col0 / ( col1 ) FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * col1 col2 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL ( - col1 ) + - col1 * col0 * cor0.col0 FROM tab1 AS cor0
----
-260
-40970
-83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5509
SELECT + - col1 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT ( + tab1.col2 ) * + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5511
SELECT ( + tab1.col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + ( ( col1 ) ) * - col2 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT - col2 * + 94 AS col2 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) + 91 AS col0 FROM tab0
----
177
182
188
query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) * col1 AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - ( + cor0.col2 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL + cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - col0 * 7 FROM tab1 AS cor0
----
-21
-448
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT ALL + + col1 DIV ( col2 ) FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + + col1 / ( col2 ) FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL - + col0 + 7 AS col0 FROM tab2 AS cor0
----
-71
-72
0
query I rowsort
SELECT cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + tab0.col2 + col0 * tab0.col0 - 60 * col1 FROM tab0
----
-4551
-4594
2543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5524
SELECT + ( - col1 ) / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5524
SELECT + ( - col1 ) / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5525
SELECT col1 DIV - col1 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5525
SELECT col1 / - col1 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + col0 + - 50 FROM tab0
----
-15
-26
39
query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) AS col2 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab0 AS cor0
----
-59
query I rowsort
SELECT ALL + col0 - 57 AS col0 FROM tab2
----
-50
21
22
query I rowsort
SELECT DISTINCT col1 - - col2 * col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col2 + - ( + 43 * col0 ) FROM tab0
----
-1504
-3745
-999
query I rowsort
SELECT - col0 * + col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - cor0.col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col0 + - col2 * col0 * - col0 FROM tab0 AS cor0
----
1260
19032
649611
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5536
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 36 + - col2 * col2 FROM tab0
----
-1125
-37
-6760
query I rowsort
SELECT ALL + tab0.col1 * + 0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 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 ) * + ( ( + cor0.col0 ) ) col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - 17 FROM tab0 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - 16 * - col1 FROM tab2 AS cor0
----
272
496
944
query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT - + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5549
SELECT - + col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 80 FROM tab2 AS cor0
----
-80
query I rowsort
SELECT + col2 * - col0 * ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT col2 + col0 + cor0.col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT 7 * col1 AS col0 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT - - col2 * - 35 + + col2 FROM tab2 AS cor0
----
-1292
-884
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT DISTINCT + col1 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + col1 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT ALL - col0 + + CAST( - 57 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
392
4368
4424
skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - col0 + + CAST ( - 57 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
392
4368
4424
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + + col0 + 50 AS col2 FROM tab2 cor0
----
128
129
57
query I rowsort
SELECT col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT DISTINCT + col0 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + col0 + col2 / col0 AS col1 FROM tab1 AS cor0
----
21
64
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - 87 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ceb2b4057dad831541b8cf3da6c8dfa
query I rowsort
SELECT + + col1 + + 23 AS col2 FROM tab0 AS cor0
----
109
114
120
query I rowsort
SELECT - + cor0.col2 + + col2 * - col0 AS col0 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT ALL - ( + col1 ) + - col2 DIV - 12 AS col2 FROM tab0 AS cor0
----
-84
-85
-97
skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - ( + col1 ) + - col2 / - 12 AS col2 FROM tab0 AS cor0
----
-84
-85
-97
query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab2 AS cor0
----
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5570
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 * 44 + col0 AS col2 FROM tab2 AS cor0
----
1195
1222
1751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5572
SELECT - + CAST( NULL AS SIGNED ) * - col2 + - col1 - col0 * 51 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5572
SELECT - + CAST ( NULL AS INTEGER ) * - col2 + - col1 - col0 * 51 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * col0 * col0 AS col2 FROM tab0 cor0
----
13824
42875
704969
query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0
----
-30
-30
-30
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5577
SELECT CAST( NULL AS SIGNED ) * cor0.col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5577
SELECT CAST ( NULL AS INTEGER ) * cor0.col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 AS cor2, tab0 AS cor3
----
13122 values hashing to 03a39c35e59d51a4e783f70df13c2d28
query I rowsort
SELECT + + col2 * - 17 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT DISTINCT 18 * 96 FROM tab2 AS cor0
----
1728
query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 2 - 14 AS col0 FROM tab1
----
-12
query I rowsort
SELECT + col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + + ( - col2 ) * col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * col0 col1 FROM tab0 cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT - col1 DIV col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5586
SELECT - col1 / col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT col2 * col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + ( 91 ) + - col0 AS col0 FROM tab0
----
2
56
67
query I rowsort
SELECT ( col2 ) * col0 + - col0 * - col2 FROM tab2
----
378
4056
6004
query I rowsort
SELECT DISTINCT 49 * tab1.col1 + + col2 FROM tab1
----
1328
547
733
query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL 15 FROM tab1
----
15
15
15
query I rowsort
SELECT DISTINCT + 60 * col2 + col0 FROM tab0
----
2004
5009
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT DISTINCT col0 + col1 + - ( tab1.col2 ) DIV - col2 AS col2 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT col0 + col1 + - ( tab1.col2 ) / - col2 AS col2 FROM tab1
----
30
75
94
query I rowsort
SELECT ALL + ( tab1.col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT DISTINCT - CAST( 8 AS SIGNED ) + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
18
2
5
skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT - CAST ( 8 AS INTEGER ) + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
18
2
5
query I rowsort
SELECT ALL 44 + cor0.col1 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
1292
1448
614
query I rowsort
SELECT 26 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - col2 + + 14 AS col0 FROM tab0
----
-19
-68
13
query I rowsort
SELECT - + 12 * + col0 FROM tab2 cor0
----
-84
-936
-948
query I rowsort
SELECT + ( 15 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5607
SELECT tab0.col1 + - CAST( + col0 AS SIGNED ) FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-5607
SELECT tab0.col1 + - CAST ( + col0 AS INTEGER ) FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT ALL col0 * + col1 + + cor0.col2 DIV col0 + + ( col0 + col0 ) col2 FROM tab2 AS cor0
----
1501
234
4758
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL col0 * + col1 + + cor0.col2 / col0 + + ( col0 + col0 ) col2 FROM tab2 AS cor0
----
1501
234
4758
query I rowsort
SELECT - col2 + 34 * 94 FROM tab1 AS cor0
----
3100
3139
3142
query I rowsort
SELECT ALL + cor0.col0 * col0 - ( col2 ) * col0 AS col0 FROM tab1 cor0
----
-1280
-153
448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + col0 + col2 * col0 col2 FROM tab2 AS cor0
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + col0 + col2 * col0 col2 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL - 88 - + col2 FROM tab0 cor0
----
-121
-170
-89
query I rowsort
SELECT DISTINCT - + 36 + col1 FROM tab1 AS cor0
----
-10
-23
-26
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT - 96 * 46 FROM tab1 AS cor0
----
-4416
-4416
-4416
query I rowsort
SELECT + ( col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 95 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - 50 * col2 AS col0 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT ALL col0 * + col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT 13 + col0 FROM tab1 cor0
----
16
77
93
query I rowsort
SELECT DISTINCT + + ( col1 ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT + + 46 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 88 * + 45 FROM tab1 AS cor0
----
3960
3960
3960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + 76 col1 FROM tab0 AS cor0
----
121
121
121
onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT ALL - cor0.col2 DIV - 22 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - cor0.col2 / - 22 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT - col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT col0 + 55 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT + - col2 + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL + - col2 + + col2 * 3 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - 4 AS col0 FROM tab1
----
-4
-4
-4
query I rowsort
SELECT 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT + col0 - ( 20 + col2 ) FROM tab1
----
-13
-36
-71
query I rowsort
SELECT + 98 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT col1 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5641
SELECT col1 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - col1 + + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + col2 + + 73 AS col2 FROM tab0 AS cor0
----
106
155
74
query I rowsort
SELECT ALL 16 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT 68 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 97 FROM tab1
----
97
query I rowsort
SELECT cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - + ( + col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
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-5652
SELECT 93 DIV tab1.col1 AS col1 FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 614dacc335e64c378414b9d9d53c04ac
skipif mysql # not compatible
query I rowsort label-5652
SELECT 93 / tab1.col1 AS col1 FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 614dacc335e64c378414b9d9d53c04ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT + ( + 44 ) DIV col2 AS col2 FROM tab0
----
0
1
44
skipif mysql # not compatible
query I rowsort label-5653
SELECT + ( + 44 ) / col2 AS col2 FROM tab0
----
0
1
44
query I rowsort
SELECT - cor0.col1 * - col1 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - - 16 + + cor0.col1 AS col1 FROM tab0 cor0
----
102
107
113
query I rowsort
SELECT DISTINCT col0 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT DISTINCT ( + ( - col0 ) * + col2 ) + 72 FROM tab0
----
-720
-7226
37
query I rowsort
SELECT ALL + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + 86 + col2 FROM tab2 AS cor0
----
-48
-59
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT - col2 + col2 DIV ( - ( col2 ) ) col2 FROM tab0 cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5660
SELECT - col2 + col2 / ( - ( col2 ) ) col2 FROM tab0 cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + 23 + - tab2.col2 AS col0 FROM tab2
----
-15
-3
-4
query I rowsort
SELECT - 50 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT tab0.col2 + col0 * 68 AS col1 FROM tab0
----
1665
2381
6134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5665
SELECT - ( col2 + + CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-5665
SELECT - ( col2 + + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab1 AS cor0
----
99
query I rowsort
SELECT - col2 + + col2 * + col2 * + col1 AS col0 FROM tab0 cor0
----
611802
93621
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - cor0.col0 * - col1 + + ( + col0 ) FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col0 - - col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col1 * - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col1 * 5 AS col1 FROM tab2 AS cor0
----
155
295
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT DISTINCT col1 DIV + 62 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT col1 / + 62 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + col0 * + cor0.col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - col0 * 9 AS col2 FROM tab2 AS cor0
----
-63
-702
-711
query I rowsort
SELECT + cor0.col2 * col1 + + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT col1 * ( 40 ) * col0 + 93 AS col2 FROM tab0 cor0
----
135893
324053
82653
query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 + col1 * + col2 - - col0 AS col0 FROM tab1 AS cor0
----
1232
1353
577
onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT ALL - col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - col1 / col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT col0 * ( + 46 ) * col0 + col0 AS col1 FROM tab2 AS cor0
----
2261
279942
287165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT ALL - + col0 - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - + col0 - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT + col1 DIV 34 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-5685
SELECT + col1 / 34 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + col1 * + 65 FROM tab0 cor0
----
-5590
-5915
-6305
query I rowsort
SELECT - col0 - + col2 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col0 - - col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT col1 + cor0.col2 - + 59 FROM tab1 AS cor0
----
21
50
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 + - col1 col1 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + col2 * ( - 12 ) FROM tab1 AS cor0
----
-1152
-648
-684
onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT ALL cor0.col2 DIV + 18 FROM tab1 AS cor0
----
3
3
5
skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL cor0.col2 / + 18 FROM tab1 AS cor0
----
3
3
5
query I rowsort
SELECT ALL tab1.col2 * + col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col0 * - ( + col1 + - col2 * col2 ) AS col0 FROM tab2 AS cor0
----
-112733
-48126
-4886
query I rowsort
SELECT + 3 * col0 AS col0 FROM tab2 AS cor0
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT - + col2 DIV 62 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5696
SELECT - + col2 / 62 col0 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT 40 * + col2 FROM tab0 AS cor0
----
1320
3280
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT - 74 DIV - col2 AS col0 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5698
SELECT - 74 / - col2 AS col0 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT ALL - - 60 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab0 AS cor0
----
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 56 - - 9 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT + col0 + + 41 FROM tab1 AS cor0
----
105
121
44
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5707
SELECT + - CAST( + col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-5707
SELECT + - CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab0 AS cor0
----
54
query I rowsort
SELECT ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
-11
query I rowsort
SELECT + - 76 * col2 * - cor0.col0 + 55 AS col2 FROM tab2 AS cor0
----
14419
154183
228207
query I rowsort
SELECT ALL - col0 + col1 * + ( - col2 ) FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col1 * + col2 + + tab0.col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT ( tab2.col1 ) * col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL col2 + + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5720
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT tab2.col1 + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - col0 * col2 + + col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT tab0.col0 * col2 + ( col0 ) FROM tab0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT ALL - tab0.col0 + + ( col1 ) DIV - col0 FROM tab0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - tab0.col0 + + ( col1 ) / - col0 FROM tab0
----
-27
-37
-90
query I rowsort
SELECT col0 + - 36 + 5 FROM tab2
----
-24
47
48
query I rowsort
SELECT + 58 AS col1 FROM tab2
----
58
58
58
query I rowsort
SELECT ALL - col2 * - 88 + - col0 * 60 FROM tab1 cor0
----
1176
3648
4572
query I rowsort
SELECT ALL - 29 + col0 * col2 FROM tab1 AS cor0
----
133
3619
7651
query I rowsort
SELECT 91 * 15 FROM tab0 AS cor0
----
1365
1365
1365
query I rowsort
SELECT ALL + - ( ( col1 ) ) * + ( - col1 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL + CAST( + col0 AS SIGNED ) + col1 DIV ( - col0 ) AS col2 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + CAST ( + col0 AS INTEGER ) + col1 / ( - col0 ) AS col2 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT + + 5 AS col2 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT ALL + 76 * + col1 + col1 * - col2 FROM tab2 cor0
----
1519
2950
646
query I rowsort
SELECT col1 + - 57 AS col0 FROM tab0 AS cor0
----
29
34
40
query I rowsort
SELECT DISTINCT col2 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL + ( col0 ) + - col1 + ( - 53 ) FROM tab0 AS cor0
----
-115
-115
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT ALL + ( col1 ) + col0 + - ( + col1 ) DIV - col1 FROM tab2 AS cor0
----
138
39
97
skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + ( col1 ) + col0 + - ( + col1 ) / - col1 FROM tab2 AS cor0
----
138
39
97
query I rowsort
SELECT - 53 - cor0.col2 FROM tab2 AS cor0
----
-79
-80
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT DISTINCT CAST( col1 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT CAST ( col1 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 95 * 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d917b3270619da0d8aa92c4cc70d2301
query I rowsort
SELECT - 32 FROM tab1
----
-32
-32
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT DISTINCT cor0.col0 * col1 DIV + ( 16 ) col0 FROM tab1 AS cor0
----
4
40
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT cor0.col0 * col1 / + ( 16 ) col0 FROM tab1 AS cor0
----
4
40
65
query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT + + col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5749
SELECT + + col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab2 AS cor0
----
-86
query I rowsort
SELECT DISTINCT 33 FROM tab0 cor0
----
33
query I rowsort
SELECT DISTINCT + col0 * col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5755
SELECT + col0 * - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-5755
SELECT + col0 * - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - + col0 - ( col1 ) * col0 * - col1 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT ALL - cor0.col1 - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + - col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col1 * - ( col1 ) + + col2 * 39 FROM tab1 cor0
----
1430
2123
3575
query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2
----
77
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - col2 * 26 FROM tab2 AS cor0
----
-676
-702
-988
query I rowsort
SELECT - + col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 * - 45 AS col1 FROM tab1
----
-2430
-2565
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * + 62 col2 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT ALL - col0 + 16 AS col0 FROM tab1 AS cor0
----
-48
-64
13
query I rowsort
SELECT - col0 + col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT - col0 * col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT 52 FROM tab2, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 * - 91 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT + + col1 * col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT - col0 DIV - 34 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-5774
SELECT - col0 / - 34 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT + cor0.col2 + 87 * col0 AS col0 FROM tab1 cor0
----
315
5625
7056
query I rowsort
SELECT 92 FROM tab0, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 95 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5781
SELECT - CAST( 8 AS SIGNED ) * col0 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
49
51
skipif mysql # not compatible
query I rowsort label-5781
SELECT - CAST ( 8 AS INTEGER ) * col0 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
49
51
query I rowsort
SELECT col1 + + col1 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT + 80 + + col0 + 62 * - 83 AS col0 FROM tab0 cor0
----
-4977
-5031
-5042
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT + + cor0.col2 DIV col1 + - ( - col2 + col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
23
skipif mysql # not compatible
query I rowsort label-5785
SELECT + + cor0.col2 / col1 + - ( - col2 + col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col2 FROM tab0 cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 col1 FROM tab0 AS cor0
----
-37
query I rowsort
SELECT - - 59 FROM tab1 AS cor0
----
59
59
59
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT ALL tab0.col1 * col0 AS col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT DISTINCT - 6 DIV + col1 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT - 6 / + col1 AS col2 FROM tab2
----
0
query I rowsort
SELECT - col1 + col0 * - col2 AS col0 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL 83 FROM tab0
----
83
83
83
query I rowsort
SELECT ALL col0 * col0 * col0 AS col2 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT - 41 FROM tab1
----
-41
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 ALL - cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 * - col1 * 1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT col1 DIV 93 + cor0.col1 * + 51 * + col1 AS col0 FROM tab0 cor0
----
377196
422331
479860
skipif mysql # not compatible
query I rowsort label-5803
SELECT col1 / 93 + cor0.col1 * + 51 * + col1 AS col0 FROM tab0 cor0
----
377196
422331
479860
query I rowsort
SELECT + 69 FROM tab2 cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT tab2.col2 DIV + col1 AS col0 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5805
SELECT tab2.col2 / + col1 AS col0 FROM tab2
----
0
0
2
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - ( + 97 ) * col2 * + 64 FROM tab1
----
-335232
-353856
-595968
query I rowsort
SELECT col0 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT col1 * cor0.col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT - - col1 DIV col1 + col2 * col2 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-5810
SELECT - - col1 / col1 + col2 * col2 FROM tab1 AS cor0
----
2917
3250
9217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT ALL + col2 DIV ( - col0 * 15 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL + col2 / ( - col0 * 15 ) FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5813
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * tab1.col2 * col2 + - col2 * col1 + - tab1.col0 FROM tab1
----
207302
7341
735952
skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * tab1.col2 * col2 + - col2 * col1 + - tab1.col0 FROM tab1
----
207302
7341
735952
query I rowsort
SELECT + + 76 + cor0.col1 * + col0 FROM tab0 AS cor0
----
2140
3471
8175
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) * + col2 * col1 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab0
----
10
10
10
query I rowsort
SELECT ALL ( - 35 ) AS col2 FROM tab1
----
-35
-35
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5818
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 55 + col1 * + 46 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 55 + col1 * + 46 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT 91 + - col0 FROM tab2
----
12
13
84
query I rowsort
SELECT ALL 31 AS col1 FROM tab1
----
31
31
31
query I rowsort
SELECT 11 FROM tab1
----
11
11
11
query I rowsort
SELECT - ( col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + 13 FROM tab2
----
13
13
13
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 * col2 - - col2 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + 20 + - col0 * - col0 FROM tab1
----
5376
69
8000
query I rowsort
SELECT - 86 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5832
SELECT - col0 + CAST( col0 AS SIGNED ) * + tab0.col0 FROM tab0
----
1190
552
7832
skipif mysql # not compatible
query I rowsort label-5832
SELECT - col0 + CAST ( col0 AS INTEGER ) * + tab0.col0 FROM tab0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( ( col1 ) ) + + col0 col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT col2 * + ( 68 * col1 ) AS col2 FROM tab0
----
192984
507416
6596
query I rowsort
SELECT + cor0.col1 * 6 + col1 FROM tab1 cor0
----
182
70
91
query I rowsort
SELECT 33 FROM tab1 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 77 col1 FROM tab1 AS cor0
----
103
87
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT col0 * - col2 - col1 DIV ( 96 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5838
SELECT col0 * - col2 - col1 / ( 96 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col1 + + 73 * 48 * + col1 AS col2 FROM tab1 AS cor0
----
35610
46800
92508
skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col1 + + 73 * 48 * + col1 AS col2 FROM tab1 AS cor0
----
35610
46800
92508
query I rowsort
SELECT - + 32 * + col1 + - col1 FROM tab1 cor0
----
-330
-429
-858
query I rowsort
SELECT ALL - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 47 + 68 FROM tab2
----
115
115
115
query I rowsort
SELECT ALL + + col1 + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + cor0.col0 + + 16 FROM tab2 AS cor0
----
23
94
95
query I rowsort
SELECT DISTINCT - + 95 * col2 * - col0 + - ( col1 ) FROM tab1 AS cor0
----
15364
346550
729587
query I rowsort
SELECT - - ( col0 ) FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT - 16 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - 16 + cor0.col0 / col0 FROM tab2 AS cor0
----
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT DISTINCT - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - col1 / - col1 AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 67 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - 89 AS col1 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT + col2 + ( - col2 ) * 75 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT ALL + + cor0.col2 * cor0.col0 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ( + col0 ) * col0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + ( col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT - col2 + col2 DIV - col0 + + 1 * col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5858
SELECT - col2 + col2 / - col0 + + 1 * col2 FROM tab1 cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 56 * - col2 FROM tab1 AS cor0
----
-3024
-3192
-5376
query I rowsort
SELECT - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 26 * - col2 AS col1 FROM tab0 AS cor0
----
-2132
-26
-858
query I rowsort
SELECT 5 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT DISTINCT - + col1 + + col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col1 + + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col1 * + col1 + - 84 FROM tab1 AS cor0
----
16
592
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT ALL col1 DIV - ( - col0 ) FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL col1 / - ( - col0 ) FROM tab2 cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT DISTINCT + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + col1 / cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - cor0.col1 * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) + col2 * - col2 - 63 FROM tab1 AS cor0
----
-10527
-3882
-4383
query I rowsort
SELECT + + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL 26 FROM tab1
----
26
26
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT col1 * - col0 + col0 DIV 71 AS col1 FROM tab1
----
-1039
-640
-78
skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT col1 * - col0 + col0 / 71 AS col1 FROM tab1
----
-1039
-640
-78
query I rowsort
SELECT + - col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 90 * col1 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT ALL - cor0.col1 + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col2 * col0 + + col1 * - col1 * - col0 AS col2 FROM tab2 cor0
----
19829
269490
6538
query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5886
SELECT + col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5886
SELECT + col2 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * - col0 col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT ALL + 8 / - col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + 8 / - col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT ( col1 ) DIV + tab0.col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5895
SELECT ( col1 ) / + tab0.col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab0 AS cor0
----
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT - col0 * col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
0
409
492
skipif mysql # not compatible
query I rowsort label-5897
SELECT - col0 * col0 / - col1 AS col1 FROM tab1 AS cor0
----
0
409
492
query I rowsort
SELECT ALL + + 45 AS col0 FROM tab0 cor0
----
45
45
45
query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0 AS cor0
----
-40
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT 20 * - col1 + - 39 * 69 AS col2 FROM tab2 AS cor0
----
-3031
-3311
-3871
query I rowsort
SELECT ALL - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - 29 AS col2 FROM tab2
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col1 FROM tab0
----
119
173
98
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT - 93 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT col1 + ( 45 ) AS col2 FROM tab1
----
55
58
71
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + 59 col0 FROM tab1
----
159
228
735
query I rowsort
SELECT ALL + - ( - cor0.col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - + 89 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-4803
-5009
-8464
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - 40 FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5918
SELECT ALL + + ( col2 ) + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + + ( col2 ) + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT DISTINCT - 72 DIV - col0 + col2 AS col1 FROM tab2 AS cor0
----
26
37
38
skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - 72 / - col0 + col2 AS col1 FROM tab2 AS cor0
----
26
37
38
query I rowsort
SELECT DISTINCT + col0 * 7 + col1 AS col0 FROM tab1 AS cor0
----
458
47
573
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT DISTINCT 50 * + ( - col1 * 32 ) + col1 * - col1 FROM tab1 AS cor0
----
-16100
-20969
-42276
query I rowsort
SELECT + - 32 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT + - col0 - + col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ( 97 ) FROM tab2 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT DISTINCT cor0.col1 + - col0 DIV cor0.col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT cor0.col1 + - col0 / cor0.col1 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL 88 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ALL - - col1 DIV col1 - - col1 col0 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - - col1 / col1 - - col1 col0 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT + 77 FROM tab2 AS cor0
----
77
query I rowsort
SELECT + ( + 31 ) * + col0 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
147
2041
2576
query I rowsort
SELECT ( + 57 ) FROM tab1 cor0
----
57
57
57
query I rowsort
SELECT + + cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 21 ) col1 FROM tab1 cor0
----
21
21
21
query I rowsort
SELECT - - col1 + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + 6 FROM tab2 AS cor0
----
6
query I rowsort
SELECT ALL + 63 * - col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT - col0 + + 11 FROM tab1 AS cor0
----
-53
-69
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT ALL - + CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
17
31
59
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
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-5947
SELECT DISTINCT col1 + - col1 DIV col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT col1 + - col1 / col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT + ( - tab1.col0 * col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT + col0 DIV - 95 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + col0 / - 95 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT + - cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5952
SELECT + - cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 9 + cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 12889dce14550663178710e321e23a28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT - col1 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5956
SELECT - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT - - 4 * - cor0.col0 * col1 + col1 AS col1 FROM tab1 cor0
----
-2550
-286
-4147
query I rowsort
SELECT - ( cor0.col0 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - ( col2 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( col2 ) * + col1 + + col2 AS col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT - col2 + + 90 AS col0 FROM tab1
----
-6
33
36
query I rowsort
SELECT col2 * + col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + 38 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT col1 + 14 * + 38 AS col1 FROM tab0
----
618
623
629
query I rowsort
SELECT + 82 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT col0 + - col0 + 64 AS col1 FROM tab1
----
64
64
64
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT + 22 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT + - col1 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - cor0.col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 * - col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * + 48 FROM tab0 cor0
----
1584
3936
48
query I rowsort
SELECT + cor0.col0 * ( 0 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 98 AS col1 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT - cor0.col2 + 68 FROM tab0, tab1 AS cor0
----
9 values hashing to dd516f0c35696578096c98c5ff1f0261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + + col0 col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT cor0.col0 + - 36 FROM tab2 AS cor0
----
-29
42
43
query I rowsort
SELECT DISTINCT - + 44 * col2 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT + + col2 + 62 DIV col1 FROM tab1 cor0
----
100
56
63
skipif mysql # not compatible
query I rowsort label-5981
SELECT + + col2 + 62 / col1 FROM tab1 cor0
----
100
56
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * - 11 col1 FROM tab2 AS cor0
----
495
495
495
query I rowsort
SELECT DISTINCT cor0.col0 * 38 + col0 * - col2 + + col1 FROM tab0 AS cor0
----
-3825
1392
206
query I rowsort
SELECT ALL 15 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT + 55 FROM tab2 cor0
----
55
query I rowsort
SELECT ALL - ( + col2 ) + col2 * - ( col0 + - cor0.col0 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + 15 * col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT - 65 * col2 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 - col2 AS col0 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 29 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + 79 FROM tab1 AS cor0
----
79
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT - 86 + + col1 DIV 1 + col0 col0 FROM tab1 AS cor0
----
-12
-57
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5994
SELECT - 86 + + col1 / 1 + col0 col0 FROM tab1 AS cor0
----
-12
-57
7
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL col1 * col2 + - 28 AS col1 FROM tab1 AS cor0
----
1220
1376
542
query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + + col1 * 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - - col0 AS col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT ALL col0 DIV tab1.col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL col0 / tab1.col1 FROM tab1
----
0
6
6
query I rowsort
SELECT DISTINCT - tab0.col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - 58 AS col2 FROM tab1
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
60
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - cor0.col0 + 52 * + col2 * + col0 AS col1 FROM tab1 AS cor0
----
189632
399280
8421
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT + + col0 DIV - ( col0 * - col0 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6012
SELECT + + col0 / - ( col0 * - col0 + cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + cor0.col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
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-6017
SELECT ALL + col2 DIV - 42 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + col2 / - 42 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 + 21 * col2 FROM tab1
----
1160
1207
2029
onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT ALL col2 DIV + ( col0 ) FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL col2 / + ( col0 ) FROM tab1
----
0
1
18
query I rowsort
SELECT ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 * col1 * - col1 AS col2 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT col0 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col1 + - tab0.col1 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT tab0.col1 DIV - col2 + + 21 AS col2 FROM tab0
----
-76
19
20
skipif mysql # not compatible
query I rowsort label-6025
SELECT tab0.col1 / - col2 + + 21 AS col2 FROM tab0
----
-76
19
20
query I rowsort
SELECT 1 FROM tab2, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT ALL - col0 DIV + 56 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - col0 / + 56 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL + ( col1 * + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL 85 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col1 + - col0 * 57 * + 88 AS col0 FROM tab0 cor0
----
-120298
-175463
-446333
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + 55 + col1 * + 20 FROM tab0 AS cor0
----
1775
1875
1995
query I rowsort
SELECT 99 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT DISTINCT - 77 * col2 + col1 * - 27 AS col2 FROM tab1 AS cor0
----
-4659
-4860
-7743
query I rowsort
SELECT + col0 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + 75 FROM tab2 cor0
----
-75
query I rowsort
SELECT col1 * col0 + + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT - CAST( 30 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-17
-20
-4
skipif mysql # not compatible
query I rowsort label-6040
SELECT - CAST ( 30 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-17
-20
-4
query I rowsort
SELECT - col1 + - 21 * + tab2.col1 * col2 FROM tab2
----
-13583
-17608
-32273
onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT + col1 DIV + col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6042
SELECT + col1 / + col0 AS col1 FROM tab2
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT ALL col1 DIV col2 + - col1 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL col1 / col2 + - col1 FROM tab0
----
-84
-90
0
query I rowsort
SELECT DISTINCT - col2 + - 31 * + tab1.col1 * col0 FROM tab1
----
-19897
-2472
-32336
query I rowsort
SELECT DISTINCT + 87 + - col0 FROM tab0
----
-2
52
63
query I rowsort
SELECT DISTINCT + ( 27 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27
query I rowsort
SELECT - 93 + col1 FROM tab1 AS cor0
----
-67
-80
-83
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL + + col1 * + col0 - + col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col0 * - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - ( - col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - - 35 + - col2 AS col2 FROM tab0 AS cor0
----
-47
2
34
query I rowsort
SELECT ALL - + col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 + col2 + - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + + 69 AS col0 FROM tab1 AS cor0
----
69
query I rowsort
SELECT - - col2 * col0 + ( + col2 * col2 ) AS col1 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT DISTINCT - + col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - 58 + + col1 + col2 FROM tab0 AS cor0
----
115
40
61
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT - - 38 AS col0 FROM tab1 AS cor0
----
38
query I rowsort
SELECT 21 * + col2 AS col2 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT ALL + 26 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT + 34 FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT + 16 * col2 FROM tab0 AS cor0
----
1312
16
528
query I rowsort
SELECT - 1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT ALL - CAST( NULL AS SIGNED ) * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 58 * - cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT - - cor0.col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + 25 * ( - col2 * cor0.col2 ) + col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
-160547
-24301
169
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT - 7 * - col0 + col2 * - 23 * col0 FROM tab0 AS cor0
----
-167231
-18048
-560
query I rowsort
SELECT - ( - cor0.col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
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 + 45 AS col2 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT 77 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + + cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 + 14 * col1 AS col0 FROM tab0 AS cor0
----
1228
1363
1393
onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT + + col1 * - ( ( col0 ) + col0 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-6084
SELECT + + col1 * - ( ( col0 ) + col0 ) / - col0 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col2 * - ( + cor0.col2 ) + + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT cor0.col1 DIV ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6086
SELECT cor0.col1 / ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - + col2 * - col1 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT ALL - col0 * - 81 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT - + col2 * - ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 * + cor0.col2 * - 48 AS col1 FROM tab2 AS cor0
----
-32448
-34992
-69312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT cor0.col1 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-6092
SELECT cor0.col1 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 * - col2 + cor0.col2 * cor0.col1 FROM tab2 cor0
----
1566
2090
2210
onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT ALL + col1 DIV + tab1.col1 - col2 AS col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + col1 / + tab1.col1 - col2 AS col2 FROM tab1
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT DISTINCT col1 + col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT col1 + col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL - + col0 * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + - col0 + + ( - col0 + + col1 ) AS col1 FROM tab1 AS cor0
----
-118
-147
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6099
SELECT col0 * col2 + + tab1.col0 * col2 + CAST( + ( col2 ) AS SIGNED ) FROM tab1
----
15456
378
7353
skipif mysql # not compatible
query I rowsort label-6099
SELECT col0 * col2 + + tab1.col0 * col2 + CAST ( + ( col2 ) AS INTEGER ) FROM tab1
----
15456
378
7353
query I rowsort
SELECT + 63 * - cor0.col2 * cor0.col0 + + ( col2 + + col2 ) FROM tab1 cor0
----
-10098
-229710
-483648
query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) * col1 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + 33 FROM tab1, tab1 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT - col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6104
SELECT - col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col0 + col2 * + ( cor0.col0 ) FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 * col1 + + col2 * 9 AS col2 FROM tab0 cor0
----
7693
9019
9418
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-6109
SELECT - - col0 DIV - col2 + - col0 DIV + 47 AS col0 FROM tab1 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6109
SELECT - - col0 / - col2 + - col0 / + 47 AS col0 FROM tab1 cor0
----
-1
-2
0
query I rowsort
SELECT col2 * 57 * col1 AS col1 FROM tab1 AS cor0
----
32490
71136
80028
query I rowsort
SELECT - + col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT 54 * cor1.col1 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
1404
540
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( tab2.col0 ) * col2 col0 FROM tab2
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT + col1 * - ( - 35 ) AS col0 FROM tab1
----
350
455
910
query I rowsort
SELECT + col1 * col2 + + col2 + col2 FROM tab1
----
1440
1512
684
query I rowsort
SELECT DISTINCT 66 FROM tab1
----
66
query I rowsort
SELECT + 3 FROM tab2
----
3
3
3
query I rowsort
SELECT DISTINCT tab2.col1 * - 21 FROM tab2
----
-1239
-357
-651
query I rowsort
SELECT + - col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - - 4 * col0 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL cor0.col1 - + 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 33dc498ba505cf82191e989c33c2397d
query I rowsort
SELECT tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT 94 * 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec97176d9d7cf72201f83b97da57f48e
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 89 + col1 * + col1 * + 79 FROM tab0 AS cor0
----
584195
654110
743222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col2 * col2 col0 FROM tab2 cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + 1 + col0 * 85 FROM tab1 AS cor0
----
256
5441
6801
query I rowsort
SELECT + 7 AS col2 FROM tab2
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + cor0.col2 - 19 col0 FROM tab1 AS cor0
----
2897
3230
9197
query I rowsort
SELECT DISTINCT + col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col2 + + cor0.col0 AS col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + 26 * - cor0.col2 FROM tab2 AS cor0
----
676
702
988
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4
query I rowsort
SELECT + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( - col2 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT 67 * - col0 + + col1 FROM tab1
----
-175
-4278
-5347
query I rowsort
SELECT + 61 + - col1 FROM tab2 AS cor0
----
2
30
44
query I rowsort
SELECT ALL cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + cor0.col2 * col0 * + col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + + ( - col1 ) * col0 - - col0 col1 FROM tab2 cor0
----
-21
-2496
1738
query I rowsort
SELECT DISTINCT col0 * - 44 + col2 FROM tab2
----
-281
-3406
-3438
query I rowsort
SELECT - + cor0.col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 * 34 AS col0 FROM tab1
----
102
2176
2720
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( col1 AS REAL ) col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * - 45 + col1 AS col1 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT - ( 63 ) AS col1 FROM tab0 AS cor0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col2 AS REAL ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + ( - cor0.col1 ) + col2 * 93 AS col0 FROM tab2 AS cor0
----
2359
2480
3517
query I rowsort
SELECT ALL 74 * col1 FROM tab2 cor0
----
1258
2294
4366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6165
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6167
SELECT - CAST( 20 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1780
-480
-700
skipif mysql # not compatible
query I rowsort label-6167
SELECT - CAST ( 20 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT - col2 * - 37 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL ( - col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL 64 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT ( 29 ) * + col2 + col0 * col0 * cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
1219
19941
651811
query I rowsort
SELECT DISTINCT 20 * col1 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT col1 * 11 AS col1 FROM tab0
----
1001
1067
946
query I rowsort
SELECT DISTINCT - - col0 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT - - ( + col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 27 * - 30 FROM tab1 cor0
----
-810
query I rowsort
SELECT ALL - + 41 + - col0 FROM tab1 AS cor0
----
-105
-121
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6183
SELECT + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6183
SELECT + col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - col0 * ( - col1 + col0 ) FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT - 44 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1, tab2 cor2
----
81 values hashing to 9c887509d218271b9365009eba440976
query I rowsort
SELECT 86 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL cor0.col2 * - col2 + + col1 * + cor0.col1 AS col1 FROM tab1 cor0
----
-2240
-3149
-9047
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 + cor0.col0 * - 33 AS col0 FROM tab1 AS cor0
----
-2102
-2627
-73
query I rowsort
SELECT DISTINCT + col1 + + col1 + + col0 * col2 AS col1 FROM tab0
----
229
7480
964
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT DISTINCT - - col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col0 * cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + cor0.col0 * col0 * ( col2 ) AS col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT ALL + col1 + - cor0.col1 * - cor0.col2 * col1 AS col0 FROM tab2 cor0
----
10999
25978
90565
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 21 FROM tab1 AS cor0
----
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT + ( + col1 ) DIV + tab1.col1 + 0 * col2 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6200
SELECT + ( + col1 ) / + tab1.col1 + 0 * col2 col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 84 + col0 + + col0 AS col0 FROM tab0
----
132
154
262
query I rowsort
SELECT + + 37 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT col0 + - 30 FROM tab1
----
-27
34
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT col2 DIV tab1.col0 + + col0 DIV col1 FROM tab1
----
18
6
7
skipif mysql # not compatible
query I rowsort label-6204
SELECT col2 / tab1.col0 + + col0 / col1 FROM tab1
----
18
6
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col0 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT ALL + col1 DIV - ( 73 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL + col1 / - ( 73 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 - + col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + + ( col2 ) * + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col1 * 70 * col2 + col0 FROM tab2 AS cor0
----
-107302
-45141
-58583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + cor0.col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT - col2 * ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col2 * col1 * - 34 AS col2 FROM tab2 AS cor0
----
-21964
-28458
-52156
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT DISTINCT col0 DIV col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT col0 / col0 FROM tab0 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6217
SELECT - col1 - CAST( NULL AS SIGNED ) * + 57 / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6217
SELECT - col1 - CAST ( NULL AS INTEGER ) * + 57 / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - cor0.col2 * 96 AS col0 FROM tab2 AS cor0
----
2496
2592
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT - + col1 + CAST( 80 AS SIGNED ) - col1 AS col0 FROM tab0 cor0
----
-102
-114
-92
skipif mysql # not compatible
query I rowsort label-6220
SELECT - + col1 + CAST ( 80 AS INTEGER ) - col1 AS col0 FROM tab0 cor0
----
-102
-114
-92
query I rowsort
SELECT DISTINCT - col1 + + ( 23 ) * col0 * 77 FROM tab1 AS cor0
----
113334
141667
5287
query I rowsort
SELECT ALL - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT ALL - 80 DIV - col2 FROM tab0
----
0
2
80
skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL - 80 / - col2 FROM tab0
----
0
2
80
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + - CAST ( - 95 + - col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
205
227
275
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT col1 * col2 + tab1.col2 FROM tab1
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT - col0 + + CAST( NULL AS SIGNED ) - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6227
SELECT - col0 + + CAST ( NULL AS INTEGER ) - col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + tab2.col0 - - tab2.col0 col0 FROM tab2
----
182
196
41
query I rowsort
SELECT - col2 + - 63 * 75 AS col1 FROM tab0 AS cor0
----
-4726
-4758
-4807
onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT - - col1 DIV col1 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6230
SELECT - - col1 / col1 AS col0 FROM tab1 cor0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT DISTINCT + ( + cor0.col1 + cor0.col2 * 49 ) FROM tab1, tab0 AS cor0
----
146
1703
4109
query I rowsort
SELECT tab2.col2 + - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT 91 + col2 AS col1 FROM tab1
----
145
148
187
query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - - col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT col2 * col1 * col1 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT DISTINCT - + col1 DIV - 47 FROM tab0 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - + col1 / - 47 FROM tab0 AS cor0
----
1
2
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-6243
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col2 + + 68 * col2 FROM tab1 AS cor0
----
4446
5076
7776
query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col2 * - ( - col0 ) + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + ( - cor0.col2 ) + 80 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0e59a6b9033441e29a139d929410b258
query I rowsort
SELECT ALL - col2 + ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col1 + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT col0 * + 75 FROM tab0 AS cor0
----
1800
2625
6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT ALL - col1 + - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - col1 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col0 * - cor0.col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - + col2 * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + + col0 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT ALL + - col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + - col1 / col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT col1 * 33 - col2 * - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-113515
-4080
-50781
query I rowsort
SELECT - 66 - col1 * - col0 AS col1 FROM tab1 cor0
----
12
574
974
query I rowsort
SELECT ALL - 13 * col2 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT - - ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1 AS cor0
----
47
query I rowsort
SELECT ALL 5 + + col0 AS col0 FROM tab2
----
12
83
84
query I rowsort
SELECT ALL - 17 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL - - ( col0 ) * + col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT + - col0 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6267
SELECT + - col0 / cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 * col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) * - col0 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + ( + col1 ) * + cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - ( + 71 ) * col0 FROM tab1 AS cor0
----
-213
-4544
-5680
query I rowsort
SELECT ALL - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - 66 + col2 FROM tab2 cor0
----
104
92
93
query I rowsort
SELECT ALL - col1 + + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL col2 * 70 FROM tab2 AS cor0
----
1820
1890
2660
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT DISTINCT + col0 * + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + col0 * + col2 / + col2 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT cor0.col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6277
SELECT cor0.col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 47 * + col0 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT - + ( 86 ) FROM tab2 cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT 31 FROM tab1 cor0
----
31
query I rowsort
SELECT + col2 + col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col2 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + 23 * + col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
1958
528
770
query I rowsort
SELECT DISTINCT + - col0 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT + cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - 63 * 58 - + col2 FROM tab1
----
-3708
-3711
-3750
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6291
SELECT ALL + CAST( - col1 AS SIGNED ) + col0 + col2 FROM tab1
----
111
163
31
skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + CAST ( - col1 AS INTEGER ) + col0 + col2 FROM tab1
----
111
163
31
query I rowsort
SELECT + - col1 * col0 + - col2 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab0 cor0
----
38
query I rowsort
SELECT + - col2 + col0 * 36 * - 78 - + col1 * - 55 * - col1 AS col1 FROM tab2 AS cor0
----
-237765
-410505
-72538
query I rowsort
SELECT 14 + col1 FROM tab2 AS cor0
----
31
45
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 48 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT ( + col0 ) + col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 28 AS col2 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - cor0.col1 * col0 + - 54 FROM tab2 AS cor0
----
-1397
-271
-4656
query I rowsort
SELECT DISTINCT 21 * cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT tab0.col0 + 25 AS col2 FROM tab0
----
114
49
60
query I rowsort
SELECT 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab1
----
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6310
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ( ( col2 ) ) AS col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6312
SELECT + CAST( 62 AS SIGNED ) AS col1 FROM tab2
----
62
62
62
skipif mysql # not compatible
query I rowsort label-6312
SELECT + CAST ( 62 AS INTEGER ) AS col1 FROM tab2
----
62
62
62
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT 79 AS col0 FROM tab2 AS cor0
----
79
79
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT ALL + + CAST( NULL AS SIGNED ) * 28 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + + CAST ( NULL AS INTEGER ) * 28 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 53 * - col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-340
-4075
-4170
query I rowsort
SELECT ALL - 27 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL + cor0.col0 * + 31 AS col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT - col0 * - 11 + ( cor0.col2 ) * - CAST( - col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
249
4409
8656
skipif mysql # not compatible
query I rowsort label-6321
SELECT - col0 * - 11 + ( cor0.col2 ) * - CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
249
4409
8656
query I rowsort
SELECT - col0 * 43 * - col2 FROM tab2 AS cor0
----
129086
8127
87204
query I rowsort
SELECT DISTINCT - col1 * 93 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT - col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 + ( 91 * col1 ) + col0 FROM tab1 AS cor0
----
1183
2366
910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT DISTINCT + col2 * CAST( - col1 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + col2 * CAST ( - col1 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - cor0.col2 * - col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col2 + ( col2 ) + col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL cor0.col1 * ( 97 ) FROM tab1 AS cor0
----
1261
2522
970
onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT DISTINCT - cor0.col0 DIV 15 AS col0 FROM tab1 cor0
----
-4
-5
0
skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - cor0.col0 / 15 AS col0 FROM tab1 cor0
----
-4
-5
0
query I rowsort
SELECT ALL 6 AS col0 FROM tab1
----
6
6
6
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - col0 * ( + col2 ) + col1 AS col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT - col1 + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col1 * ( 19 ) FROM tab2 AS cor0
----
1121
323
589
query I rowsort
SELECT ALL + - col1 + + ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0 AS cor0
----
91
query I rowsort
SELECT - - col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT + col2 DIV - col0 + - tab1.col0 * - col2 FROM tab1
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-6342
SELECT + col2 / - col0 + - tab1.col0 * - col2 FROM tab1
----
144
3648
7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT DISTINCT col0 * col0 DIV - col1 AS col2 FROM tab1
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT col0 * col0 / - col1 AS col2 FROM tab1
----
-409
-492
0
query I rowsort
SELECT col2 + + col1 + - col0 * - col1 FROM tab2 AS cor0
----
1398
275
4687
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 45 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col0 FROM tab2
----
-80
-80
-80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab2 AS cor1
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT + col2 + + col2 + 15 FROM tab0
----
17
179
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT col2 DIV + col1 + - col1 * tab1.col0 FROM tab1
----
-1033
-635
-76
skipif mysql # not compatible
query I rowsort label-6353
SELECT col2 / + col1 + - col1 * tab1.col0 FROM tab1
----
-1033
-635
-76
query I rowsort
SELECT 23 FROM tab1
----
23
23
23
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col1 + col1 + ( - 87 ) AS col2 FROM tab2
----
-25
-53
31
query I rowsort
SELECT + 76 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT col0 * tab0.col2 * 5 + + col2 AS col1 FROM tab0
----
176
36572
3993
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT ALL + - cor0.col2 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + - cor0.col2 / col1 FROM tab0 cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT col1 * - col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + 98 AS col2 FROM tab0 AS cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + tab1.col0 + col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - col1 - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + + 93 + - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-699
-7205
58
query I rowsort
SELECT col2 - - col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT col0 + + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-6371
SELECT col0 + + col1 / col0 AS col2 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col2 * - col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col2 + + 13 FROM tab0 AS cor0
----
14
46
95
query I rowsort
SELECT ALL + - cor0.col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + + 87 + col2 AS col2 FROM tab1 AS cor0
----
150
4240
6583
query I rowsort
SELECT 41 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL tab0.col2 * + 84 AS col2 FROM tab0
----
2772
6888
84
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 - col2 + - 83 FROM tab1 AS cor0
----
-137
-140
-179
query I rowsort
SELECT col1 * - 47 + - col2 FROM tab1 AS cor0
----
-1276
-527
-707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL - + 19 FROM tab1, tab0 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT + col2 DIV + 24 + + col2 AS col0 FROM tab0 AS cor0
----
1
34
85
skipif mysql # not compatible
query I rowsort label-6386
SELECT + col2 / + 24 + + col2 AS col0 FROM tab0 AS cor0
----
1
34
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL - col1 + col2 DIV col1 + + cor0.col0 * + ( + col1 ) FROM tab0 AS cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - col1 + col2 / col1 + + cor0.col0 * + ( + col1 ) FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6388
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6388
SELECT - CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + - ( col1 ) + col1 * - col2 * 83 FROM tab0 AS cor0
----
-235640
-619437
-8148
query I rowsort
SELECT DISTINCT - ( - col2 ) * + tab0.col2 AS col2 FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col2 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6393
SELECT CAST( + col1 AS SIGNED ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6393
SELECT CAST ( + col1 AS INTEGER ) FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * 73 col0 FROM tab0 AS cor0
----
-1095
-1095
-1095
onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT DISTINCT col2 DIV + col2 AS col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT col2 / + col2 AS col2 FROM tab0 cor0
----
1
query I rowsort
SELECT - + 66 * 66 FROM tab2 AS cor0
----
-4356
-4356
-4356
onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT DISTINCT + - col2 DIV col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + - col2 / col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT DISTINCT - col0 DIV 10 + col1 AS col0 FROM tab0 cor0
----
83
84
94
skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - col0 / 10 + col1 AS col0 FROM tab0 cor0
----
83
84
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT ALL - CAST( NULL AS SIGNED ) * 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - CAST ( NULL AS INTEGER ) * 13 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT ALL col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL col1 / + col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT col0 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL 85 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT DISTINCT + col1 DIV + col0 + col2 col1 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT + col1 / + col0 + col2 col1 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col0 * col1 + - col1 + 11 AS col2 FROM tab0 AS cor0
----
1989
3309
8019
query I rowsort
SELECT DISTINCT col0 + col1 * + 81 FROM tab2 AS cor0
----
1456
2518
4857
onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT DISTINCT - col0 * - col2 - cor0.col2 DIV - col1 AS col1 FROM tab1 cor0
----
164
3653
7687
skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - col0 * - col2 - cor0.col2 / - col1 AS col1 FROM tab1 cor0
----
164
3653
7687
query I rowsort
SELECT 76 AS col1 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - - col0 - - col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + 75 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT + col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 * - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT DISTINCT - col1 DIV col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT - col1 / col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col1 * col1 - col0 * 97 AS col0 FROM tab2 AS cor0
----
-4085
-7374
282
query I rowsort
SELECT ALL + ( col0 ) + + col1 * - cor0.col2 * col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2, tab2 AS cor0
----
65
query I rowsort
SELECT ALL + col2 * - 85 FROM tab1
----
-4590
-4845
-8160
query I rowsort
SELECT - ( col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL tab2.col0 * 40 AS col1 FROM tab2
----
280
3120
3160
onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT + - col2 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-6428
SELECT + - col2 / col0 + cor0.col2 FROM tab0 AS cor0
----
1
32
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT - col0 DIV + col0 + col2 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6429
SELECT - col0 / + col0 + col2 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 73 * 87 FROM tab1
----
-6351
-6351
-6351
query I rowsort
SELECT DISTINCT - ( col2 ) + - tab0.col1 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL 18 FROM tab2, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT ALL - - CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - - CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - col0 + + 38 FROM tab1 AS cor0
----
-26
-42
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT ALL ( - col1 ) DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL ( - col1 ) / col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col1 + + ( ( tab0.col2 ) ) AS col2 FROM tab0, tab2 AS cor0
----
119
173
98
query I rowsort
SELECT tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 15 AS col1 FROM tab0
----
15
15
15
query I rowsort
SELECT - 11 FROM tab2
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT ALL - col2 * col2 - + col2 DIV + col0 FROM tab2 AS cor0
----
-1444
-676
-732
skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - col2 * col2 - + col2 / + col0 FROM tab2 AS cor0
----
-1444
-676
-732
query I rowsort
SELECT DISTINCT + + 27 + + col1 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
47
53
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL col1 * col2 DIV + tab2.col1 AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL col1 * col2 / + tab2.col1 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + col1 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
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.col1 + - 19 AS col0 FROM tab1 AS cor0
----
-6
-9
7
query I rowsort
SELECT ALL col0 * 0 + + 21 AS col0 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT ALL col1 * - col1 * - col0 + + col2 + - 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-6449
SELECT ALL col1 * - col1 * - col0 + + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6453
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + + col2 * col2 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + + col2 * col2 col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6454
SELECT col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT ALL + col0 + CAST( NULL AS SIGNED ) / 65 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) / 65 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 8 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT col0 + col2 * col1 AS col0 FROM tab2 cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6458
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 98 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-1194
-2545
-916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT + CAST( NULL AS SIGNED ) * - 39 + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6460
SELECT + CAST ( NULL AS INTEGER ) * - 39 + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 - + col2 AS col0 FROM tab0 cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT col2 DIV 21 AS col2 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6463
SELECT col2 / 21 AS col2 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT col2 + - col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT DISTINCT + 44 + 17 - col0 DIV 62 FROM tab2 AS cor0
----
60
61
skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + 44 + 17 - col0 / 62 FROM tab2 AS cor0
----
60
61
query I rowsort
SELECT - 62 * + col1 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014
query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col0 * tab0.col0 * 78 FROM tab0
----
44928
617838
95550
query I rowsort
SELECT - cor0.col0 + + col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT ALL col0 * 93 + + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
2231
3254
8276
skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL col0 * 93 + + col2 / - cor0.col2 FROM tab0 AS cor0
----
2231
3254
8276
query I rowsort
SELECT - col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + ( col2 ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + 22 + col2 * col2 AS col1 FROM tab0 cor0
----
1111
23
6746
query I rowsort
SELECT + col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 81 - + col0 * - ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
13743
42794
704888
query I rowsort
SELECT + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ( + col2 ) * - ( + col1 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT - col0 * col1 + - CAST( + 31 AS SIGNED ) FROM tab1 AS cor0
----
-1071
-109
-671
skipif mysql # not compatible
query I rowsort label-6478
SELECT - col0 * col1 + - CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0
----
-1071
-109
-671
query I rowsort
SELECT DISTINCT - tab0.col0 + + 78 + + tab0.col1 AS col2 FROM tab0
----
140
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * - col0 + 1 col2 FROM tab1 AS cor0
----
-290
-6207
-7759
query I rowsort
SELECT col2 * - col0 * + 31 + col0 AS col2 FROM tab1 AS cor0
----
-113024
-238000
-5019
query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2
----
49
query I rowsort
SELECT 0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 * col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 + - col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL col2 * + cor0.col0 + + col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
433
4383
6656
query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 + + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + + col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + col1 * col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col0 * + col0 + - col1 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - col2 * col1 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col0 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL col1 - - col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col0 * col2 - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col1 * - col1 + + tab1.col0 * col1 + + col0 * tab1.col2 * - col0 FROM tab1
----
-1084
-232932
-613529
query I rowsort
SELECT ALL col0 + tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + col1 col1 FROM tab1 WHERE NOT ( col0 ) < ( NULL )
----
query I rowsort
SELECT col0 * cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col1 + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT ALL - col0 * col2 DIV - cor0.col0 AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - col0 * col2 / - cor0.col0 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT col1 + tab1.col2 * + col1 + - col2 FROM tab1
----
1165
1376
523
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + col2 * col1 AS col2 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * + col0 * col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT - col0 * col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - tab1.col2 - - col2 * + col1 FROM tab1
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT col2 + col0 DIV - col2 + + col2 col0 FROM tab0
----
-33
163
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6526
SELECT col2 + col0 / - col2 + + col2 col0 FROM tab0
----
-33
163
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - tab1.col1 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * - col0 col2 FROM tab0 AS cor0
----
1248
1820
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT - col1 DIV + col0 AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6529
SELECT - col1 / + col0 AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT col1 + col1 + col0 * col2 FROM tab1
----
214
3668
7706
onlyif mysql # use DIV operator for integer division
query I rowsort label-6531
SELECT + + 95 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6531
SELECT + + 95 / + col2 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + 87 FROM tab1 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT + col2 * + col2 * + col0 - + tab1.col2 AS col2 FROM tab1
----
207879
737184
8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col0 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT ALL col0 * col0 + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + col1 + - col2 FROM tab2 WHERE NULL > + col1
----
query I rowsort
SELECT tab2.col0 + - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - col0 * + tab2.col2 * + tab2.col1 - + col0 * tab2.col2 * - col0 FROM tab2
----
-4536
186124
38532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + col2 + - col0 * - col0 + - col0 FROM tab1
----
4089
60
6416
onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT - col2 DIV + tab1.col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6543
SELECT - col2 / + tab1.col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT DISTINCT + col2 + col1 + + col0 DIV - col2 AS col0 FROM tab0
----
119
172
63
skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + col2 + col1 + + col0 / - col2 AS col0 FROM tab0
----
119
172
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT - cor0.col2 + tab2.col2 DIV - 42 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif mysql # not compatible
query I rowsort label-6545
SELECT - cor0.col2 + tab2.col2 / - 42 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col1 + ( - col2 * - col1 ) FROM tab1
----
1140
2496
2808
query I rowsort
SELECT - col0 * col0 - col2 AS col1 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - 13 + col2 AS col1 FROM tab1
----
41
44
83
query I rowsort
SELECT ( + tab0.col2 ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - col1 * col2 - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - + col0 * - col1 * + 23 AS col0 FROM tab0 AS cor0
----
186277
47472
78085
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 76 * + col0 AS col2 FROM tab1 AS cor0
----
-228
-4864
-6080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - - col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT ( col1 ) + col0 * + col0 + + col2 * + 47 FROM tab0 AS cor0
----
11866
1369
2213
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col1 FROM tab0
----
-34
-7
9
query III rowsort
SELECT * FROM tab0 WHERE - col0 = NULL
----
query I rowsort
SELECT ALL - col1 * col1 * col2 + tab2.col2 FROM tab2
----
-10944
-25920
-90480
query I rowsort
SELECT ALL + col0 + col1 FROM tab2
----
137
38
96
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( tab1.col0 * + col1 ) AND + col1
----
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 FROM tab0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab0.col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * col1 * tab2.col0 AS col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL tab0.col1 * col0 AS col2 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT + col1 DIV tab0.col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6570
SELECT + col1 / tab0.col0 FROM tab0
----
1
2
3
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col1 * + col2 IN ( col1 / col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT - cor0.col1 * - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL <= cor0.col1 + col1 * col1
----
query I rowsort
SELECT col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col0 * col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col0 * - col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab0
----
53
9
96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( + tab2.col1 * - col2 * tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col0 + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT col2 * col0 + col1 AS col2 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 * col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL <= col1 * col2
----
query I rowsort
SELECT ALL col1 + - col0 * col2 * - col2 FROM tab0
----
132
26222
598527
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT IN ( - col1 * col2 )
----
query I rowsort
SELECT ALL + col1 + + col1 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab0.col0 + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col0 + col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL col2 + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + + col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT 33 * - col1 AS col2 FROM tab1 AS cor0
----
-330
-429
-858
query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - - col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT - + 27 * col0 DIV col1 FROM tab2 AS cor0
----
-125
-35
-6
skipif mysql # not compatible
query I rowsort label-6598
SELECT - + 27 * col0 / col1 FROM tab2 AS cor0
----
-125
-35
-6
query I rowsort
SELECT ALL + 59 + col1 FROM tab2
----
118
76
90
query I rowsort
SELECT 22 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL + col1 + tab2.col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + - col1 + - col1 * col0 AS col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT - + col0 + + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 + 83 FROM tab1 AS cor0
----
57
70
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + 42 * tab0.col0 * 27 FROM tab0
----
100926
27216
39690
onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT DISTINCT col2 DIV - col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT col2 / - col0 AS col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + col0 * + col1 * - col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT col2 / col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT + col0 + tab2.col1 * - tab2.col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT 39 AS col0 FROM tab1
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT + col2 + + ( col2 ) * col0 DIV - cor0.col2 + col2 AS col0 FROM tab0 cor0
----
-33
42
75
skipif mysql # not compatible
query I rowsort label-6613
SELECT + col2 + + ( col2 ) * col0 / - cor0.col2 + col2 AS col0 FROM tab0 cor0
----
-33
42
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6614
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT DISTINCT CAST( + cor0.col1 AS SIGNED ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT CAST ( + cor0.col1 AS INTEGER ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - ( - 52 ) * cor0.col2 + - 89 + col2 FROM tab1 AS cor0
----
2773
2932
4999
query I rowsort
SELECT col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col0 + col1 * tab2.col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT col1 + + ( col1 ) AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT col1 * - col1 * - 74 AS col0 FROM tab0
----
547304
612794
696266
query I rowsort
SELECT ALL col2 * + col2 + - col1 * + col0 AS col1 FROM tab1
----
2609
2838
8176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6623
SELECT col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-6623
SELECT col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT 8 AS col1 FROM tab1
----
8
8
8
query I rowsort
SELECT - ( - cor0.col0 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - ( - col1 ) * - col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 52 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-52
query I rowsort
SELECT ( col2 ) + col2 * + 65 FROM tab0
----
2178
5412
66
query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 46 * col1 FROM tab1 cor0
----
-1196
-460
-598
query I rowsort
SELECT DISTINCT - + col0 + 15 * col0 + col0 AS col1 FROM tab1 AS cor0
----
1200
45
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT ALL - CAST( cor0.col0 AS SIGNED ) * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6634
SELECT - 12 * - 90 + col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6634
SELECT - 12 * - 90 + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 32 * tab0.col0 AS col2 FROM tab0
----
1120
2848
768
query I rowsort
SELECT - + 4 FROM tab1 AS cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT + ( 58 ) FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL + col2 * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - + col0 + + 83 AS col2 FROM tab2 AS cor0
----
4
5
76
query I rowsort
SELECT ALL ( + col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT - ( tab0.col2 ) * col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * cor0.col2 col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT col2 + col0 DIV col1 FROM tab1 cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT col2 + col0 / col1 FROM tab1 cor0
----
102
54
63
query I rowsort
SELECT - ( col1 ) * col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * + col1 col1 FROM tab2
----
1357
391
713
query I rowsort
SELECT - 70 AS col1 FROM tab2
----
-70
-70
-70
query I rowsort
SELECT 57 AS col1 FROM tab2
----
57
57
57
query I rowsort
SELECT ( - col2 * + col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + - 25 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT - 18 AS col0 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + 45 * col2 AS col1 FROM tab1 cor0
----
2430
2565
4320
query I rowsort
SELECT + ( col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 89 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * 37 FROM tab1 cor0
----
2311
2864
57
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col0 + 15 FROM tab2 AS cor0
----
-63
-64
8
query I rowsort
SELECT + col1 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT cor0.col0 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ( - 30 ) * + col2 * - col1 + + col2 FROM tab0 AS cor0
----
223942
2911
85173
query I rowsort
SELECT ALL 47 * 60 FROM tab1, tab1 cor0
----
9 values hashing to a0924375afeb6c71d456eee9c483dc3d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6667
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - ( col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col2 + 36 FROM tab0 AS cor0
----
118
37
69
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT col2 + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col1 - 73 * + col0 * col2 FROM tab0 AS cor0
----
-2458
-532663
-57730
query I rowsort
SELECT DISTINCT + + col2 * 45 * col2 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
30361
32774
64963
onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT + col0 DIV - col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6675
SELECT + col0 / - col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - col0 * cor0.col1 - + col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - 31 * col1 FROM tab2 AS cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT DISTINCT - + col0 DIV 84 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - + col0 / 84 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col0 FROM tab2
----
58
58
58
query I rowsort
SELECT ALL 53 + col2 AS col1 FROM tab0
----
135
54
86
query I rowsort
SELECT ALL + - 15 * 57 + + col1 FROM tab1 AS cor0
----
-829
-842
-845
query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 * - ( - col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 27 + col0 AS col0 FROM tab2 cor0
----
-20
51
52
query I rowsort
SELECT ALL - + 88 * col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT ALL - + 10 FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - col0 * cor0.col1 - col2 * + 76 AS col0 FROM tab2 AS cor0
----
-2269
-4231
-6578
query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6690
SELECT DISTINCT + col1 + + ( cor0.col1 + - CAST( ( cor0.col1 ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + col1 + + ( cor0.col1 + - CAST ( ( cor0.col1 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * - col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT ALL + + 54 DIV + col1 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + + 54 / + col1 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT ALL 85 * - ( col1 ) + 42 FROM tab2 AS cor0
----
-1403
-2593
-4973
query I rowsort
SELECT + col1 * col2 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + col0 * 12 AS col1 FROM tab1 AS cor0
----
36
768
960
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 + - cor0.col0 + - 10 FROM tab2 AS cor0
----
-17
-88
-89
query I rowsort
SELECT ALL - col2 + 36 FROM tab1 cor0
----
-18
-21
-60
query I rowsort
SELECT DISTINCT - + col0 + - ( + col1 * 14 ) FROM tab2 cor0
----
-317
-441
-904
onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT DISTINCT + - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT + - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - col1 * col2 + - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT 52 FROM tab0 AS cor0
----
52
52
52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 * col0 col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + ( + col0 ) + - 46 * - col2 AS col2 FROM tab0 AS cor0
----
1542
3861
81
query I rowsort
SELECT ALL - 98 AS col0 FROM tab0 cor0
----
-98
-98
-98
query I rowsort
SELECT + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - 81 * + col2 AS col1 FROM tab0 AS cor0
----
-2673
-6642
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT + + col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6711
SELECT + + 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 DISTINCT - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + - col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT DISTINCT - col0 * ( col2 * - col0 ) + + CAST( NULL AS DECIMAL ) / col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - col0 * ( col2 * - col0 ) + + CAST ( NULL AS REAL ) / col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - - col1 * col1 * + col1 + + cor0.col1 * + 40 * + col2 + col1 AS col0 FROM tab2 AS cor0
----
266798
30770
63302
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6719
SELECT - tab2.col0 + CAST( 93 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a9104292f8e4e7ed8e695bd71d7de681
skipif mysql # not compatible
query I rowsort label-6719
SELECT - tab2.col0 + CAST ( 93 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a9104292f8e4e7ed8e695bd71d7de681
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 * cor0.col1 - - col2 AS col0 FROM tab1 AS cor0
----
1440
1512
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT DISTINCT - col1 + - ( - 67 ) - + col0 DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
35
49
7
skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - col1 + - ( - 67 ) - + col0 / CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
35
49
7
query I rowsort
SELECT DISTINCT + + col1 * + 7 + - col0 FROM tab2 AS cor0
----
210
335
40
query I rowsort
SELECT ALL cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + col0 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - - col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + col1 + + ( - col2 ) + col0 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT col1 * 63 AS col2 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT + - col1 + ( + 76 ) FROM tab2 AS cor0
----
17
45
59
query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col2 + - ( + col1 ) col2 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col2 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * + 23 FROM tab0 AS cor0
----
2047
552
805
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT - 73 + cor0.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 3c554a43184e17e67888e6a3415606e2
query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
24
35
89
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT + col2 + col1 + + col0 FROM tab2 cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT - - ( col1 ) DIV col0 + - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-6741
SELECT - - ( col1 ) / col0 + - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT ALL + col2 + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 + + col1 + 73 * col1 AS col1 FROM tab1 AS cor0
----
1248
640
793
query I rowsort
SELECT - - col0 + + col2 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col0 + + ( - cor0.col1 ) col1 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT ALL + - col1 * - col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795
query I rowsort
SELECT - cor0.col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 2 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - 35 + col2 * col1 * - 53 - + 21 FROM tab0
----
-150470
-395542
-5197
query I rowsort
SELECT + 2 + 5 + - col0 AS col0 FROM tab2
----
-71
-72
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 33 ) * col1 + col2 col0 FROM tab0
----
-2805
-2921
-3200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 + col2 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT tab0.col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 64 + + col1 * 26 AS col1 FROM tab2
----
1598
506
870
query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT ALL + 53 + + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1172
-523
-7868
query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT - col0 DIV col2 + tab0.col1 col2 FROM tab0
----
62
86
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6763
SELECT - col0 / col2 + tab0.col1 col2 FROM tab0
----
62
86
90
query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 * - col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT 23 AS col0 FROM tab1
----
23
23
23
query I rowsort
SELECT ( - 50 * - col0 ) AS col1 FROM tab1
----
150
3200
4000
query I rowsort
SELECT ALL - ( - 88 ) - col1 AS col1 FROM tab0 AS cor0
----
-3
-9
2
query I rowsort
SELECT + - col2 + - col0 FROM tab1 cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 43 + - col1 * col2 col2 FROM tab2 cor0
----
-416
324
988
query I rowsort
SELECT DISTINCT 88 * col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - - col1 + 0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 * 84 AS col0 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT ALL cor0.col0 * col2 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT DISTINCT - cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL tab0.col0 * - col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6779
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col2 + - 0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT col1 * 65 + col1 AS col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ( col1 ) + col2 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT tab1.col2 * + ( col1 ) + - col1 AS col2 FROM tab1
----
1235
1378
560
query I rowsort
SELECT - + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col2 * col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + 95 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - tab1.col1 + + tab1.col2 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - col1 * ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + 60 + cor0.col0 AS col0 FROM tab2 AS cor0
----
138
139
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT - 11 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6794
SELECT - 11 / - col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL + col2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + col2 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 * + 68 + + cor0.col2 FROM tab0 AS cor0
----
-5815
-6106
-6595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col0 FROM tab1, tab2 AS cor0
----
-23
query I rowsort
SELECT 50 AS col1 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 16 * col1 AS col2 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL col0 * + cor0.col1 * 74 FROM tab0 AS cor0
----
152736
251230
599326
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + 11 + col1 FROM tab0 cor0
----
-7299
-8179
-9301
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6806
SELECT DISTINCT - 51 + 44 + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - 51 + 44 + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL - 92 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0 cor1
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col2 FROM tab1
----
121
176
57
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 cor0, tab0
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT ALL CAST( NULL AS SIGNED ) * ( col1 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL CAST ( NULL AS INTEGER ) * ( col1 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - tab2.col1 ) * col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 9 FROM tab1, tab1 cor0
----
9
query I rowsort
SELECT ALL col1 + 37 FROM tab1
----
47
50
63
query I rowsort
SELECT col2 * col1 * tab2.col0 + - col1 FROM tab2
----
119593
51017
5828
query I rowsort
SELECT - 24 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT - + col1 * col0 * ( - col2 ) FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT 80 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6819
SELECT - col2 / - CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6819
SELECT - col2 / - CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 - + 44 * + 62 FROM tab2 AS cor0
----
-2669
-2697
-2711
query I rowsort
SELECT col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + - cor0.col1 * 17 + + 43 * col0 AS col2 FROM tab2 AS cor0
----
-226
2351
3108
onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT - col2 + cor0.col0 DIV + col1 - - cor0.col0 * + col2 FROM tab2 AS cor0
----
162
2003
2968
skipif mysql # not compatible
query I rowsort label-6823
SELECT - col2 + cor0.col0 / + col1 - - cor0.col0 * + col2 FROM tab2 AS cor0
----
162
2003
2968
query I rowsort
SELECT - col0 * 16 + - col2 - + col2 AS col1 FROM tab0 AS cor0
----
-1588
-450
-562
query I rowsort
SELECT ALL - col1 + - col1 * - 19 FROM tab1 cor0
----
180
234
468
query I rowsort
SELECT + 33 * - col0 FROM tab0 AS cor0
----
-1155
-2937
-792
query I rowsort
SELECT ALL + + 8 FROM tab0 cor0
----
8
8
8
query I rowsort
SELECT ALL + 82 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
49
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT DISTINCT - - ( col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT - - ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col2 * col2 * - col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT ALL - + 18 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT + - 43 * + col2 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col0 + - col1 * - col1 * col1 FROM tab1
----
1064
17579
2277
query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + 93 FROM tab1
----
93
93
93
query I rowsort
SELECT DISTINCT - 13 FROM tab0
----
-13
query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab1
----
77
query I rowsort
SELECT DISTINCT + 14 FROM tab0
----
14
query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col0 - col1 * - col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT col1 + + col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + + 5 + col2 AS col1 FROM tab2 AS cor0
----
31
32
43
query I rowsort
SELECT - col1 + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + 49 AS col1 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT 92 * - col1 FROM tab1 AS cor0
----
-1196
-2392
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT ALL - col2 DIV col2 + + 3 * 51 FROM tab0 AS cor0
----
152
152
152
skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL - col2 / col2 + + 3 * 51 FROM tab0 AS cor0
----
152
152
152
query I rowsort
SELECT + + 29 + + col0 FROM tab0 AS cor0
----
118
53
64
query I rowsort
SELECT ALL + col1 * col2 * - col0 + - cor0.col1 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT - 84 AS col0 FROM tab1 AS cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT - + col1 DIV - col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6852
SELECT - + col1 / - col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + - cor0.col0 * + 48 FROM tab1 AS cor0
----
-144
-3072
-3840
query I rowsort
SELECT 37 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + 82 + col1 FROM tab2 AS cor0
----
113
141
99
query I rowsort
SELECT DISTINCT - 61 + - col2 * + cor0.col1 + + col0 FROM tab2 AS cor0
----
-1517
-628
-891
query I rowsort
SELECT 92 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843
query I rowsort
SELECT DISTINCT - ( col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT ALL col1 DIV ( col0 ) + + 24 * + col2 - col1 AS col1 FROM tab1 AS cor0
----
1278
1358
2291
skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL col1 / ( col0 ) + + 24 * + col2 - col1 AS col1 FROM tab1 AS cor0
----
1278
1358
2291
query I rowsort
SELECT ALL - col0 - + col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT + col0 * - col1 + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-6862
SELECT + col0 * - col1 + col2 / col0 AS col0 FROM tab1 AS cor0
----
-1039
-60
-640
query I rowsort
SELECT DISTINCT col2 + 72 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT DISTINCT + + 97 * col2 * col1 + ( col0 + col0 ) FROM tab1 AS cor0
----
121216
136194
55418
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT CAST( NULL AS SIGNED ) + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6866
SELECT CAST ( NULL AS INTEGER ) + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 95 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT DISTINCT + 21 FROM tab0 AS cor0
----
21
query I rowsort
SELECT ALL + 17 * 93 AS col1 FROM tab0 cor0
----
1581
1581
1581
query I rowsort
SELECT + col2 * - 52 + + col0 FROM tab2 AS cor0
----
-1274
-1397
-1897
onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT 66 * + col2 + - cor0.col2 DIV 16 FROM tab1 AS cor0
----
3561
3759
6330
skipif mysql # not compatible
query I rowsort label-6871
SELECT 66 * + col2 + - cor0.col2 / 16 FROM tab1 AS cor0
----
3561
3759
6330
query I rowsort
SELECT DISTINCT - 19 + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2897
3230
9197
query I rowsort
SELECT - 51 * + 3 FROM tab0 AS cor0
----
-153
-153
-153
query I rowsort
SELECT ALL 4 AS col0 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT ALL - 31 AS col1 FROM tab0 cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT - + col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6877
SELECT DISTINCT col2 + ( - col1 * CAST( NULL AS SIGNED ) ) - + 41 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT col2 + ( - col1 * CAST ( NULL AS INTEGER ) ) - + 41 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT ALL + col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + col2 / - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT 40 + 7 AS col0 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT ALL ( - 2 ) + - col2 FROM tab1 AS cor0
----
-56
-59
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 10 + - col2 * col0 FROM tab1 AS cor0
----
-152
-3638
-7670
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
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 - 70 + + col1 AS col1 FROM tab2 AS cor0
----
-11
-39
-53
query I rowsort
SELECT ALL + ( + 79 ) FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + - col1 + cor0.col0 * - ( col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + - col1 * cor0.col0 - + ( + col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT 51 + col1 * + col2 * col2 FROM tab1 AS cor0
----
119859
32541
75867
query I rowsort
SELECT ALL + ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + - col2 + + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + 65 col2 FROM tab1
----
75
78
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + + col1 * col2 col0 FROM tab0 AS cor0
----
128
2869
7493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + 75 * ( - col2 ) col1 FROM tab1 AS cor0
----
-4104
-4332
-7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 83 col2 FROM tab1 AS cor0
----
57
70
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT ALL + col0 * col1 + - 29 + - col2 * - CAST( + col1 + col0 AS SIGNED ) * + 21 AS col0 FROM tab2 AS cor0
----
21734
77922
79375
skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + col0 * col1 + - 29 + - col2 * - CAST ( + col1 + col0 AS INTEGER ) * + 21 AS col0 FROM tab2 AS cor0
----
21734
77922
79375
query I rowsort
SELECT ALL - + col0 - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col2 + + 30 FROM tab2 AS cor0
----
56
57
68
query I rowsort
SELECT DISTINCT - 85 FROM tab0
----
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6905
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 10 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab2 AS cor0
----
-41
-52
20
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 + 78 FROM tab0
----
176
197
251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + col0 * tab0.col0 + + col2 * col2 col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT DISTINCT col0 + - col1 DIV + col1 AS col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT col0 + - col1 / + col1 AS col1 FROM tab0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT - - col0 DIV - 22 FROM tab0 AS cor0
----
-1
-1
-4
skipif mysql # not compatible
query I rowsort label-6912
SELECT - - col0 / - 22 FROM tab0 AS cor0
----
-1
-1
-4
query I rowsort
SELECT DISTINCT - + col1 + 73 AS col2 FROM tab1 cor0
----
47
60
63
query I rowsort
SELECT ALL 46 * ( col0 ) AS col0 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT DISTINCT 11 + - col0 FROM tab1 AS cor0
----
-53
-69
8
query I rowsort
SELECT ALL + - 58 - + col0 * - col1 * 74 AS col2 FROM tab2 AS cor0
----
16000
340490
99324
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + col0 col2 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT ALL + ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col2 * + 34 + + col2 + - col0 FROM tab1
----
-1785
-1945
-3248
query I rowsort
SELECT ALL 77 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT 25 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - tab2.col0 + - ( col2 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT tab0.col1 + - ( col2 ) AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT tab2.col2 + + 5 + col0 * col0 AS col1 FROM tab2
----
6115
6284
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT col2 * cor0.col1 + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-6926
SELECT col2 * cor0.col1 + + col0 / col0 AS col2 FROM tab1 AS cor0
----
1249
1405
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 13 * + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c3f8fb1ab22309971e479bc61277bae
query I rowsort
SELECT + col1 * - 33 * + col0 FROM tab2
----
-151866
-44319
-7161
query I rowsort
SELECT + col1 * 51 FROM tab2
----
1581
3009
867
query I rowsort
SELECT + 95 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL + 48 FROM tab0, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT col0 + + col2 DIV - col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6934
SELECT col0 + + col2 / - col2 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT - 45 + col1 AS col0 FROM tab0
----
41
46
52
query I rowsort
SELECT + ( - col1 + - col2 ) AS col0 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT col2 DIV col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6938
SELECT col2 / col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT - ( + 81 ) + tab2.col1 AS col0 FROM tab2
----
-22
-50
-64
query I rowsort
SELECT + col0 * - 64 AS col2 FROM tab1
----
-192
-4096
-5120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT DISTINCT + ( col1 ) * col2 + - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + ( col1 ) * col2 + - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT DISTINCT - col1 + - 69 DIV col0 FROM tab0 AS cor0
----
-88
-91
-98
skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - col1 + - 69 / col0 FROM tab0 AS cor0
----
-88
-91
-98
query I rowsort
SELECT - 1 * + ( - col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab1 AS cor0
----
-36
query I rowsort
SELECT - - 71 * col0 AS col0 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT + 65 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2
query I rowsort
SELECT ALL + 24 * ( + col0 ) FROM tab0 AS cor0
----
2136
576
840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT ALL + CAST( NULL AS SIGNED ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 - + cor0.col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + 51 * + ( - cor0.col0 * 42 + - 91 * col2 ) FROM tab0 AS cor0
----
-204561
-571200
-79611
query I rowsort
SELECT + col2 * - col0 * 49 - + col1 * - col1 FROM tab1 AS cor0
----
-178652
-376151
-7262
query I rowsort
SELECT col2 + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 68 * cor0.col1 - 18 AS col2 FROM tab0 AS cor0
----
5830
6170
6578
query I rowsort
SELECT - col0 + - col0 * - 45 AS col2 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT DISTINCT - - 4 - col1 FROM tab2 cor0
----
-13
-27
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT + - col2 DIV + col1 + - CAST( + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-103
-56
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6961
SELECT + - col2 / + col1 + - CAST ( + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-103
-56
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6962
SELECT ALL + col2 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + col2 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 48 FROM tab2 AS cor0
----
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT + col1 DIV + col0 - col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-6964
SELECT + col1 / + col0 - col0 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT ALL - col1 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - 30 * + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-17100
-37440
-42120
query I rowsort
SELECT ALL - - col0 * cor0.col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT + col0 * col0 * + col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL + col0 + 19 AS col0 FROM tab0
----
108
43
54
query I rowsort
SELECT + ( - col2 ) + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT cor0.col1 DIV col0 + col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-6971
SELECT cor0.col1 / col0 + col0 FROM tab1 AS cor0
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 96 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT col1 - col2 * 75 AS col0 FROM tab1 AS cor0
----
-4024
-4265
-7187
query I rowsort
SELECT ALL 86 * - col2 * + col0 FROM tab0
----
-3010
-627628
-68112
query I rowsort
SELECT ALL + col1 * - col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL ( col1 ) - tab0.col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + tab2.col0 col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - cor0.col1 ) * + cor0.col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 21 * col1 FROM tab2 AS cor0
----
1239
357
651
query I rowsort
SELECT + - col2 * - col2 - - 54 FROM tab1 AS cor0
----
2970
3303
9270
query I rowsort
SELECT ALL + cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 - - col2 * col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL col2 + 79 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2783
-3113
-9041
query I rowsort
SELECT ALL col2 * ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 + + 29 FROM tab0 AS cor0
----
-57
-62
-68
query I rowsort
SELECT + col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col2 + - 19 * 22 FROM tab0 AS cor0
----
-419
-451
-500
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) - col1 * col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) - col1 * col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - col2 * + ( + cor0.col0 ) - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT - 28 DIV + col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6995
SELECT - 28 / + col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - ( - 53 * cor1.col1 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a2bd3a9c9439d3824ec9c9fdb9da7ca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab0
----
13
13
13
query I rowsort
SELECT - col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col2 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT - CAST( + 81 AS SIGNED ) DIV - cor0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 3e9c15cd101eccf63196c55d00076748
skipif mysql # not compatible
query I rowsort label-7003
SELECT - CAST ( + 81 AS INTEGER ) / - cor0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 3e9c15cd101eccf63196c55d00076748
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT + + 15 * - 11 AS col0 FROM tab2 AS cor0
----
-165
-165
-165
query I rowsort
SELECT ALL - 25 FROM tab2 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab1
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT + 29 DIV 49 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7008
SELECT + 29 / 49 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT 10 DIV - col2 FROM tab0 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-7009
SELECT 10 / - col2 FROM tab0 AS cor0
----
-10
0
0
query I rowsort
SELECT ALL col1 * 87 AS col1 FROM tab2
----
1479
2697
5133
query I rowsort
SELECT DISTINCT col1 * 90 AS col0 FROM tab0
----
7740
8190
8730
query I rowsort
SELECT - 94 FROM tab0, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT ALL + col2 * + 35 AS col2 FROM tab1
----
1890
1995
3360
query I rowsort
SELECT DISTINCT - col0 * col2 + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col0 + + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col1 * col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + + col2 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL - cor0.col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - + col1 + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + - col2 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + col0 * - col0 + + col0 * - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-10496
-19920
-2037
query I rowsort
SELECT ALL cor0.col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL tab2.col1 * col0 + + col1 * - col1 AS col1 FROM tab2
----
-744
1054
1121
query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 + + col0 * - col0 FROM tab1 cor0
----
-3583
-5248
1341
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 * cor0.col0 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 * - col1 NOT IN ( - cor0.col1 + col2 - col0 ) OR NOT ( NULL ) > ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col2 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - col0 + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + tab0.col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col0 * + col1 + - col1 FROM tab1
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col1 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - col1 * col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL col0 + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + col1 * + col0 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 * + col2 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT - col2 + tab2.col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT - 75 * - col2 + col1 * + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
172
2561
6241
skipif mysql # not compatible
query I rowsort label-7050
SELECT - 75 * - col2 + col1 * + col1 / + col1 AS col0 FROM tab0 AS cor0
----
172
2561
6241
query I rowsort
SELECT ALL - - col0 + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col2 + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT - + 89 DIV - cor0.col2 FROM tab0 AS cor0
----
1
2
89
skipif mysql # not compatible
query I rowsort label-7053
SELECT - + 89 / - cor0.col2 FROM tab0 AS cor0
----
1
2
89
query I rowsort
SELECT ALL - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - col0 + - col1 * + cor0.col1 FROM tab2 cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT - col0 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-7056
SELECT - col0 + col2 / col1 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT - - col2 DIV + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7057
SELECT - - col2 / + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT ALL + 96 AS col0 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - tab1.col1 - - col1 * col2 col1 FROM tab1
----
-80
1300
195
query I rowsort
SELECT + 15 - col1 * col1 AS col1 FROM tab0
----
-7381
-8266
-9394
query I rowsort
SELECT ALL col2 - - col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - tab0.col0 + col2 - + col2 * col2 FROM tab0
----
-1080
-35
-6731
query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7065
SELECT ( + col0 ) DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7065
SELECT ( + col0 ) / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * ( + col2 + - tab2.col0 ) FROM tab2
----
-3239
-4056
140
query I rowsort
SELECT + 18 * - tab1.col1 AS col2 FROM tab1
----
-180
-234
-468
onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT + tab0.col1 * ( col2 ) DIV col2 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7068
SELECT + tab0.col1 * ( col2 ) / col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - ( 10 ) * col1 * col0 AS col0 FROM tab1
----
-10400
-6400
-780
query I rowsort
SELECT + col0 * + 92 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 AS col0 FROM tab2
----
306
3540
992
query I rowsort
SELECT col0 * - tab0.col2 + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT col0 + - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 + col1 * + col1 AS col2 FROM tab2
----
1014
1805
5093
query I rowsort
SELECT col1 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT 10 + - col1 FROM tab0 AS cor0
----
-76
-81
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + 20 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7077
SELECT + 20 / col0 AS col0 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 * col0 + col1 * - col1 AS col0 FROM tab1
----
-667
3996
6231
query I rowsort
SELECT DISTINCT - col1 + - col2 + - col0 AS col2 FROM tab1
----
-131
-189
-83
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT col1 + + col1 * col1 >= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1 )
----
query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col1 NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col0 * col1 col0 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT DISTINCT + col2 DIV + col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + col2 / + col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT col0 * col0 * - tab2.col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT col0 * + col1 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT ALL + tab0.col0 DIV - col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + tab0.col0 / - col2 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * col0 + - col0 * col0 col0 FROM tab1
----
-3466
-5373
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT - tab1.col1 + - col1 DIV + col1 - col0 FROM tab1
----
-30
-75
-94
skipif mysql # not compatible
query I rowsort label-7094
SELECT - tab1.col1 + - col1 / + col1 - col0 FROM tab1
----
-30
-75
-94
query I rowsort
SELECT ALL + col1 * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT tab2.col2 * - col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 * + col1 + + col2 AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 * tab0.col1 * - col0 FROM tab0
----
-122220
-51600
-728910
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT + tab0.col2 * col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col1 * col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col1 / + col2 AS col0 FROM tab2 WHERE ( col1 + + col2 * + col0 ) < ( - col1 + col0 * - col0 / col0 )
----
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col2 + col1 + - tab1.col0 FROM tab1
----
29
3
77
query I rowsort
SELECT tab2.col1 * col0 + col0 * + col1 AS col1 FROM tab2
----
2686
434
9204
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col0 * col2 + col2 * col2 = ( col1 / - col0 )
----
query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab1
----
-16
-51
7
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * col2 ) BETWEEN NULL AND ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col1 + + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT + col2 * col0 * + col0 FROM tab0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 * col1 col0 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT DISTINCT - col2 - col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col1 * tab2.col0 + - col2 * col2 FROM tab2
----
-101
-512
3926
query I rowsort
SELECT ALL + col0 + - col2 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT - col2 * col1 - col2 DIV col0 col1 FROM tab2
----
-1534
-646
-840
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7115
SELECT - col2 * col1 - col2 / col0 col1 FROM tab2
----
-1534
-646
-840
query I rowsort
SELECT tab1.col1 * col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT DISTINCT + col1 DIV + tab0.col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + col1 / + tab0.col0 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ALL - tab1.col1 DIV col1 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - tab1.col1 / col1 AS col1 FROM tab1
----
-1
-1
-1
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col2 NOT IN ( col1 / col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab2
----
-104
-117
-34
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT ALL + col0 DIV col2 AS col2 FROM tab1 WHERE NOT + col0 <= col2
----
1
skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + col0 / col2 AS col2 FROM tab1 WHERE NOT + col0 <= col2
----
1
query I rowsort
SELECT - col0 * tab1.col0 + + col1 * col2 * tab1.col1 FROM tab1
----
1604
36495
9824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab1
----
20
26
52
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT DISTINCT + col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 / - col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-3349
-3592
-9385
query I rowsort
SELECT ALL - col1 - + col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - col0 + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col0 - col2 AS col1 FROM tab1 AS cor0
----
50
593
957
query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 * + col0 + + col0 + - col1 FROM tab2 cor0
----
25
6103
6303
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 + + col0 * col0 * col2 AS col1 FROM tab2 cor0
----
1547
162864
238580
query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT DISTINCT col1 * - col1 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT col1 * - col1 / col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col0 + + col0 * + col1 FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT - col0 * col1 + tab0.col1 DIV + col0 FROM tab0
----
-2061
-3393
-8098
skipif mysql # not compatible
query I rowsort label-7140
SELECT - col0 * col1 + tab0.col1 / + col0 FROM tab0
----
-2061
-3393
-8098
query I rowsort
SELECT ALL col2 * - col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col2 * - cor0.col1 - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NULL <= - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 * col0 * + cor0.col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - col2 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 98 - 76 AS col0 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT col2 * col1 + - col2 - - col0 FROM tab0 AS cor0
----
131
2829
7469
query I rowsort
SELECT - - col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - 78 * - col0 - + col1 FROM tab1 AS cor0
----
208
4982
6227
query I rowsort
SELECT + col2 + 34 * col1 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
407
551
964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7155
SELECT + CAST( - 77 AS SIGNED ) - - col1 AS col1 FROM tab0 AS cor0
----
14
20
9
skipif mysql # not compatible
query I rowsort label-7155
SELECT + CAST ( - 77 AS INTEGER ) - - col1 AS col1 FROM tab0 AS cor0
----
14
20
9
query I rowsort
SELECT + cor0.col2 + col0 - col1 FROM tab1 AS cor0
----
111
163
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7157
SELECT - + col0 * col1 + + col0 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7157
SELECT - + col0 * col1 + + col0 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 + col2 * + 62 + - col0 FROM tab1 AS cor0
----
3372
3497
5899
query I rowsort
SELECT ALL ( col1 ) FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT col1 DIV - 99 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7160
SELECT col1 / - 99 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * ( - col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 + cor0.col1 * 88 * + col0 FROM tab1 AS cor0
----
56330
6890
91533
query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 + 11 AS col0 FROM tab2 AS cor0
----
18
89
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7165
SELECT ALL - - CAST( NULL AS SIGNED ) + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - - CAST ( NULL AS INTEGER ) + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT - col2 DIV - col1 + col2 * + 22 AS col0 FROM tab2
----
572
594
838
skipif mysql # not compatible
query I rowsort label-7166
SELECT - col2 / - col1 + col2 * + 22 AS col0 FROM tab2
----
572
594
838
query I rowsort
SELECT 11 FROM tab2, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 91 FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT ALL - tab1.col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT - + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7172
SELECT - + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT + col1 * + CAST( NULL AS SIGNED ) * + col0 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-7173
SELECT + col1 * + CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor2.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT DISTINCT col0 * + 37 AS col1 FROM tab0
----
1295
3293
888
query I rowsort
SELECT ALL col2 * - 22 FROM tab0 cor0
----
-1804
-22
-726
query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col0 - col0 AS col2 FROM tab2
----
0
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 + ( - cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col2 * 55 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT - 40 AS col0 FROM tab2 AS cor0
----
-40
-40
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 * + 93 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT DISTINCT - col0 * col0 + tab0.col0 AS col2 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT tab2.col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 65 * col2 FROM tab1
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * 38 col0 FROM tab0
----
1254
3116
38
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + 24 * col1 FROM tab2
----
1416
408
744
query I rowsort
SELECT - col1 * + col2 + + col1 * 21 FROM tab2 AS cor0
----
-186
-289
-295
query I rowsort
SELECT - - 46 * + col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT 33 + + col0 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT - 31 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT col1 DIV - 58 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7201
SELECT col1 / - 58 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - + col2 * - 19 AS col2 FROM tab2 AS cor0
----
494
513
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 6 col1 FROM tab0 AS cor0
----
-27
-76
5
query I rowsort
SELECT DISTINCT + + col0 + col1 * - 2 AS col1 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT + - col0 + 68 AS col0 FROM tab2 AS cor0
----
-10
-11
61
query I rowsort
SELECT ALL - 10 AS col1 FROM tab2
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT DISTINCT - - col2 * 44 + col0 * col1 DIV col1 FROM tab0 AS cor0
----
1476
3697
79
skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT - - col2 * 44 + col0 * col1 / col1 FROM tab0 AS cor0
----
1476
3697
79
query I rowsort
SELECT DISTINCT col1 * col1 + col2 * tab2.col0 AS col2 FROM tab2
----
1150
3291
5509
onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT DISTINCT - col2 DIV + tab0.col1 + + col1 DIV + col1 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT - col2 / + tab0.col1 + + col1 / + col1 AS col2 FROM tab0
----
1
query I rowsort
SELECT DISTINCT + 70 * + col2 + - ( - 74 ) AS col0 FROM tab0
----
144
2384
5814
query I rowsort
SELECT DISTINCT + col0 + col2 * col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT col0 + + col2 FROM tab0
----
171
36
57
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
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 ALL + + tab0.col1 + - 77 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 64a7282516fdc02739eb4f25737d6265
query I rowsort
SELECT - col2 + + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 90 + - tab0.col1 FROM tab0
----
-176
-181
-187
query I rowsort
SELECT col2 * col1 * 40 FROM tab2
----
25840
33480
61360
query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - 4 AS col0 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT - 92 FROM tab1 AS cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab2 AS cor0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col2 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT 37 + col0 AS col0 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT DISTINCT + col2 DIV - col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + col2 / - col2 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT DISTINCT - col2 DIV ( col2 ) + col0 * - 24 * 28 col2 FROM tab1 AS cor0
----
-2017
-43009
-53761
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - col2 / ( col2 ) + col0 * - 24 * 28 col2 FROM tab1 AS cor0
----
-2017
-43009
-53761
query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col0 * - 89 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT DISTINCT - col1 * 39 + 72 FROM tab2 AS cor0
----
-1137
-2229
-591
query I rowsort
SELECT ALL col0 * ( - 66 ) AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * + cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col1 + cor0.col2 * - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-114059
-5072
-52669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT ALL - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col2 * ( col1 ) + - col1 * + col0 * col2 FROM tab1 AS cor0
----
-101088
-37050
-5616
query I rowsort
SELECT DISTINCT - - col0 + - col2 + col1 AS col1 FROM tab0 cor0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7244
SELECT + - col2 DIV - ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7244
SELECT + - col2 / - ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - + col2 + 76 FROM tab2 AS cor0
----
38
49
50
query I rowsort
SELECT ALL - 55 FROM tab1
----
-55
-55
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT ALL - col0 DIV - tab1.col2 + - col0 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - col0 / - tab1.col2 + - col0 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT + tab0.col1 + col0 - + tab0.col0 * 18 FROM tab0
----
-1422
-322
-498
query I rowsort
SELECT + col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + - col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - col1 * - col0 + ( col0 ) * + ( 70 ) AS col2 FROM tab1 AS cor0
----
288
5120
6640
query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - col2 * col1 + - col0 * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT ALL col2 - - col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - 48 AS col2 FROM tab0 AS cor0
----
-48
-48
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7257
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 97 * cor0.col1 - col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + CAST ( NULL AS REAL ) + 97 * cor0.col1 - col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 * - cor0.col1 col1 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 + + 45 * - col1 FROM tab1 cor0
----
-1196
-460
-598
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7266
SELECT ALL - CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 48 * 68 AS col1 FROM tab0 AS cor0
----
3264
3264
3264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab0 cor0
----
34
query I rowsort
SELECT ALL + 73 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT + ( 57 ) FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT col2 * tab0.col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - col0 * col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col1 + + col2 + col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL + col2 + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 89 AS col1 FROM tab0
----
89
89
89
query I rowsort
SELECT ALL - + 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 + cor0.col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + col0 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - + 40 * col0 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT ALL + ( col1 ) + - col2 * - cor0.col2 + + col1 DIV col2 FROM tab1 cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + ( col1 ) + - col2 * - cor0.col2 + + col1 / col2 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL ( + col2 ) + ( - col2 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT DISTINCT - 33 + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-29
-32
-33
skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - 33 + + col0 / col1 AS col1 FROM tab2 AS cor0
----
-29
-32
-33
query I rowsort
SELECT 85 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 + - col2 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - col2 + + col0 * - tab1.col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT 92 FROM tab2
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT DISTINCT 90 * col0 + + ( col2 ) DIV col2 AS col1 FROM tab1
----
271
5761
7201
skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT 90 * col0 + + ( col2 ) / col2 AS col1 FROM tab1
----
271
5761
7201
query I rowsort
SELECT DISTINCT - col2 + col2 AS col0 FROM tab2
----
0
query I rowsort
SELECT col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 31 + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-4
-7267
-761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col2 FROM tab2 AS cor0
----
77
query I rowsort
SELECT ALL + 84 * col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7302
SELECT + cor0.col2 * CAST( 48 AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 68bf736db401955d581879cb0f61411b
skipif mysql # not compatible
query I rowsort label-7302
SELECT + cor0.col2 * CAST ( 48 AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 68bf736db401955d581879cb0f61411b
query I rowsort
SELECT DISTINCT + 56 + col2 AS col1 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7305
SELECT ALL col0 DIV + 17 + col1 FROM tab2
----
21
31
63
skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL col0 / + 17 + col1 FROM tab2
----
21
31
63
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT 21 FROM tab2
----
21
21
21
query I rowsort
SELECT - ( cor0.col0 ) * - col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 35 * col1 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT - cor1.col2 + + 33 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 65278fb2c17c09dc830dcf14ca4b5647
query I rowsort
SELECT + 28 AS col1 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT ALL 21 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-1019
-57
-619
query I rowsort
SELECT 84 AS col0 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT ALL + col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 * 18 AS col0 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - + col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT DISTINCT + col0 DIV 60 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + col0 / 60 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col1 + ( ( + cor0.col2 ) ) AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col0 * + ( ( col2 ) * col2 ) + + col1 FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT col0 * 78 AS col2 FROM tab0 AS cor0
----
1872
2730
6942
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT ALL col1 * 62 AS col1 FROM tab0
----
5332
5642
6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7328
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7328
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * 88 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT - col1 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + cor0.col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + col1 * - 75 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - - col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - col2 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7339
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7339
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 72 FROM tab1 AS cor0
----
72
72
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7341
SELECT CAST( NULL AS SIGNED ) + tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( NULL AS INTEGER ) + tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7342
SELECT - 64 + - col2 * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-2092
-253
-3066
skipif mysql # not compatible
query I rowsort label-7342
SELECT - 64 + - col2 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-2092
-253
-3066
query I rowsort
SELECT - - col1 + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( + cor0.col2 ) * 19 AS col1 FROM tab2 AS cor0
----
494
513
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT DISTINCT - + 28 DIV + col2 FROM tab0 AS cor0
----
-28
0
skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - + 28 / + col2 FROM tab0 AS cor0
----
-28
0
query I rowsort
SELECT + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + + col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col0 * - col1 + col0 * + col0 * col1 FROM tab1
----
156
40320
82160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab2.col1 col2 FROM tab2 WHERE NOT col0 * col2 + - col2 + col0 < NULL
----
query I rowsort
SELECT ALL + col2 * tab2.col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col2 * col2 + - col0 FROM tab0
----
-34
1065
6635
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col2 + col2 )
----
query I rowsort
SELECT + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 * + col1 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT - col1 + 31 * + 29 FROM tab1 cor0
----
873
886
889
query I rowsort
SELECT - col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 29 FROM tab1
----
29
query I rowsort
SELECT - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT DISTINCT - col1 * 57 AS col2 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT - col0 + + col0 + cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 * col0 + 91 + + col2 AS col0 FROM tab2 AS cor0
----
1472
335
4719
query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT DISTINCT + tab0.col2 DIV tab0.col2 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + tab0.col2 / tab0.col2 AS col1 FROM tab0
----
1
query I rowsort
SELECT 42 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 + - col0 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 53 AS col0 FROM tab1
----
53
53
53
query I rowsort
SELECT tab2.col2 + tab2.col0 * + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL - 51 FROM tab2, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT col1 - - ( - col1 + col0 ) * 6 AS col1 FROM tab1
----
-112
334
415
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7377
SELECT ALL - tab0.col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - tab0.col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab2.col1 + + col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT DISTINCT col1 DIV - 72 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT col1 / - 72 AS col0 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7380
SELECT DISTINCT + cor0.col2 DIV - tab1.col2 FROM tab1, tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + cor0.col2 / - tab1.col2 FROM tab1, tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col2 * + col0 * col2 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7383
SELECT col2 DIV 50 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7383
SELECT col2 / 50 FROM tab2
----
0
0
0
query I rowsort
SELECT 62 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - 23 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT cor0.col1 * + col2 + - 84 * col0 * cor0.col2 FROM tab0 AS cor0
----
-2843
-605570
-63690
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT cor0.col1 + + col2 DIV ( - 67 ) + + col1 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-7388
SELECT cor0.col1 + + col2 / ( - 67 ) + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - 14 * + col2 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT - col0 * - col0 - - col1 * + col0 FROM tab2
----
10686
266
7584
query I rowsort
SELECT col2 * - col1 + - ( - 97 * + col2 ) FROM tab1 AS cor0
----
3834
4959
8064
query I rowsort
SELECT - 15 - cor0.col2 FROM tab2 AS cor0
----
-41
-42
-53
query I rowsort
SELECT DISTINCT - col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL cor0.col1 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - + cor0.col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - cor0.col1 + - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7397
SELECT DISTINCT + - col2 * col2 + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + - col2 * col2 + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 * + col2 col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT + cor0.col2 * + 11 AS col1 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0
----
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * cor0.col1 * col0 col0 FROM tab1 AS cor0
----
56320
6864
91520
query I rowsort
SELECT ALL + + 45 AS col2 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT DISTINCT - 51 FROM tab0, tab0 AS cor0
----
-51
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col1 * 67 + + col2 FROM tab0
----
5795
6179
6500
query I rowsort
SELECT - col1 + - col1 * + col1 * 87 + col1 FROM tab0
----
-643452
-720447
-818583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + - col1 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + 28 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT col2 + - 56 AS col1 FROM tab0
----
-23
-55
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + 68 col2 FROM tab1
----
113
113
113
onlyif mysql # use DIV operator for integer division
query I rowsort label-7413
SELECT + col0 DIV col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7413
SELECT + col0 / col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - ( col2 ) + + col2 + - ( 83 ) AS col0 FROM tab1
----
-83
-83
-83
query I rowsort
SELECT DISTINCT - 41 * - col1 AS col0 FROM tab2 AS cor0
----
1271
2419
697
query I rowsort
SELECT - ( col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col2 * + col2 + + 25 AS col1 FROM tab2
----
1469
701
754
query I rowsort
SELECT col0 * - col0 + ( col0 ) AS col2 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT col0 - - tab0.col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT + col1 - col1 * + col1 AS col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT col2 * - cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - + ( col2 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7426
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col2 + - 75 * col2 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT ALL cor0.col1 * - col0 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT + + col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7429
SELECT + + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col1 * col1 + + 42 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-318028
-356083
-404587
query I rowsort
SELECT - cor0.col1 * 29 AS col0 FROM tab0 cor0
----
-2494
-2639
-2813
query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + col1 * - col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT col2 + 37 FROM tab1 cor0
----
133
91
94
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - col0 + ( - cor0.col0 ) * col2 AS col2 FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT col1 DIV + col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7441
SELECT col1 / + col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT ALL + col2 + 40 + + col2 AS col0 FROM tab2 AS cor0
----
116
92
94
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 AS cor0, tab1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col2 * 68 FROM tab0 cor0
----
2244
5576
68
query I rowsort
SELECT - col2 * + ( + 10 ) + + col0 FROM tab1 AS cor0
----
-506
-537
-880
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL - col1 DIV - CAST( col2 * + col1 AS SIGNED ) + + 24 * col0 FROM tab1 AS cor0
----
1536
1920
72
skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - col1 / - CAST ( col2 * + col1 AS INTEGER ) + + 24 * col0 FROM tab1 AS cor0
----
1536
1920
72
query I rowsort
SELECT DISTINCT col2 * 20 + 31 FROM tab2 cor0
----
551
571
791
query I rowsort
SELECT ALL - + cor0.col0 + + col1 + 55 * + col0 * 19 FROM tab1 AS cor0
----
3158
66826
83533
query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1, tab0 AS cor0
----
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT DISTINCT col2 - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT col2 - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + cor0.col1 * - 75 col1 FROM tab2 AS cor0
----
-2276
1659
4966
query I rowsort
SELECT - 82 + + cor0.col1 FROM tab2 AS cor0
----
-23
-51
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7454
SELECT + + CAST( - 83 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
7138
7553
8051
skipif mysql # not compatible
query I rowsort label-7454
SELECT + + CAST ( - 83 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT - 13 * col1 FROM tab2 AS cor0
----
-221
-403
-767
query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 24 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 + + col0 + + 24 * col2 FROM tab1 AS cor0
----
1302
1496
2464
query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 98 + + col2 * + 61 AS col2 FROM tab1 AS cor0
----
3196
3379
5758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7463
SELECT ALL - 38 + + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - 38 + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT DISTINCT + 39 DIV cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + 39 / cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + 42 - col0 FROM tab1 AS cor0
----
-22
-38
39
query I rowsort
SELECT ALL col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - - 91 * col0 FROM tab2 AS cor0
----
637
7098
7189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT col0 + col2 DIV - col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-7470
SELECT col0 + col2 / - col0 FROM tab0 AS cor0
----
23
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 * - cor0.col0 col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT + + 7 + + col1 * ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
1007
17583
2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT ALL + ( col1 ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + ( col1 ) + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + 58 * - col2 AS col1 FROM tab0
----
-1890
-23
-4667
query I rowsort
SELECT ALL - col0 + col1 + - col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT + col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT col2 DIV col1 + ( col2 * col2 ) col0 FROM tab1 AS cor0
----
2918
3254
9223
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7479
SELECT col2 / col1 + ( col2 * col2 ) col0 FROM tab1 AS cor0
----
2918
3254
9223
query I rowsort
SELECT col1 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT col0 * + col2 + - 41 AS col1 FROM tab1
----
121
3607
7639
onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT + + 15 * cor0.col1 DIV 51 FROM tab1 AS cor0
----
2
3
7
skipif mysql # not compatible
query I rowsort label-7483
SELECT + + 15 * cor0.col1 / 51 FROM tab1 AS cor0
----
2
3
7
query I rowsort
SELECT DISTINCT + 34 + col1 AS col0 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 36 * cor0.col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - 36 * + col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT ALL - + col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 81 * ( col1 ) * - tab2.col2 FROM tab2
----
-124254
-52326
-67797
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT - - 94 DIV ( + cor0.col2 ) - + 66 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 85cad04ce197b136da7fc874dbe6b752
skipif mysql # not compatible
query I rowsort label-7491
SELECT - - 94 / ( + cor0.col2 ) - + 66 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 85cad04ce197b136da7fc874dbe6b752
query I rowsort
SELECT DISTINCT col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - + 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT DISTINCT - col2 * col2 DIV col0 AS col0 FROM tab0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - col2 * col2 / col0 AS col0 FROM tab0
----
-45
-75
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7497
SELECT - 9 DIV - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7497
SELECT - 9 / - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
18
query I rowsort
SELECT ALL ( col1 ) * + 29 AS col1 FROM tab1
----
290
377
754
query I rowsort
SELECT + ( - col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7501
SELECT - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + ( col0 ) + col2 + 32 AS col1 FROM tab0 cor0
----
203
68
89
query I rowsort
SELECT ( + col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 54 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT + 11 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d
query I rowsort
SELECT - col2 - 26 FROM tab1 AS cor0
----
-122
-80
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7509
SELECT col1 * CAST( + ( + col1 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-7509
SELECT col1 * CAST ( + ( + col1 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col0 * + cor0.col1 + - 91 FROM tab0 AS cor0
----
1973
3304
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7511
SELECT col1 * + CAST( 54 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0
----
1647
3160
880
skipif mysql # not compatible
query I rowsort label-7511
SELECT col1 * + CAST ( 54 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0
----
1647
3160
880
query I rowsort
SELECT DISTINCT + + col1 * - ( 72 ) + - col2 AS col2 FROM tab0 AS cor0
----
-6225
-6634
-6985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + ( ( - col0 ) ) * 21 * col2 col2 FROM tab2 cor0
----
-3942
-42562
-63004
query I rowsort
SELECT - + col0 * col1 + - col0 * col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT + col0 * - 64 + - col0 + - col2 * - 62 * cor0.col0 FROM tab2 AS cor0
----
11263
120666
180989
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7516
SELECT + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7516
SELECT + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - 19 ) * + col1 + 74 * col0 AS col2 FROM tab1 AS cor0
----
-272
4546
5673
query I rowsort
SELECT cor0.col1 + - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + col0 + + 71 + - col1 AS col2 FROM tab0 AS cor0
----
69
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT col1 DIV - col0 + - col2 * - 16 + + col1 FROM tab2 AS cor0
----
459
475
625
skipif mysql # not compatible
query I rowsort label-7520
SELECT col1 / - col0 + - col2 * - 16 + + col1 FROM tab2 AS cor0
----
459
475
625
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT ( + col2 ) DIV cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-7521
SELECT ( + col2 ) / cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT ( - col2 ) - col2 * col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + - col2 + + col2 * col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7524
SELECT ALL + CAST( col2 AS SIGNED ) + cor0.col0 - 87 * - col2 AS col2 FROM tab2 AS cor0
----
2366
2383
3423
skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + CAST ( col2 AS INTEGER ) + cor0.col0 - 87 * - col2 AS col2 FROM tab2 AS cor0
----
2366
2383
3423
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + 9 * 92 + - col2 FROM tab2 AS cor0
----
-854
-855
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT DISTINCT - cor0.col0 + - 59 DIV + col0 AS col1 FROM tab1 AS cor0
----
-22
-64
-80
skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - cor0.col0 + - 59 / + col0 AS col1 FROM tab1 AS cor0
----
-22
-64
-80
query I rowsort
SELECT - col0 + + 10 FROM tab2 AS cor0
----
-68
-69
3
query I rowsort
SELECT ALL - 72 AS col0 FROM tab1 cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + - 87 AS col0 FROM tab2 AS cor0
----
-87
query I rowsort
SELECT + col0 * + col0 - col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL + col1 + + 7 AS col1 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT - + 24 + col1 FROM tab1 AS cor0
----
-11
-14
2
query I rowsort
SELECT DISTINCT col0 - col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 * + 94 + - col0 FROM tab1 AS cor0
----
-1004
-1302
-2447
query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - col2 + - col0 * col2 FROM tab2 cor0
----
-378
-4056
-6004
query I rowsort
SELECT - - col0 * col0 * + ( - col1 * col0 ) + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-2621497
-6656096
-756
query I rowsort
SELECT ALL + - col2 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col2 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - col2 * col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + 36 + cor0.col1 * - col2 AS col1 FROM tab2 cor0
----
-1498
-610
-801
query I rowsort
SELECT ALL + col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 - - 20 FROM tab2 AS cor0
----
0
61
72
query I rowsort
SELECT - - col2 + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT ALL tab2.col0 * col2 * col1 + ( col2 ) DIV col0 AS col0 FROM tab2
----
119652
51034
5862
skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL tab2.col0 * col2 * col1 + ( col2 ) / col0 AS col0 FROM tab2
----
119652
51034
5862
query I rowsort
SELECT DISTINCT - + col2 * - 22 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT ALL + cor0.col2 DIV 99 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + cor0.col2 / 99 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT - cor0.col0 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - cor0.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 50557a2314ab4eabd122bbb740c43948
query I rowsort
SELECT + ( 23 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT ALL - + col1 + - 32 FROM tab2 AS cor0
----
-49
-63
-91
query I rowsort
SELECT DISTINCT + + col1 * col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7559
SELECT + tab2.col0 DIV col1 AS col2 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7559
SELECT + tab2.col0 / col1 AS col2 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + + tab2.col0 * col0 - - ( - 15 ) col1 FROM tab2
----
-155
3224
4041
query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab2, tab1 AS cor0
----
44
query I rowsort
SELECT ALL col2 - 99 FROM tab0
----
-17
-66
-98
query I rowsort
SELECT ALL - col2 - col0 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT col2 - - cor0.col1 * - 13 AS col1 FROM tab1 AS cor0
----
-284
-73
query I rowsort
SELECT - + cor0.col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 7 + cor0.col0 * col0 * + ( col2 ) AS col1 FROM tab2 cor0
----
1330
158191
237165
query I rowsort
SELECT - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL 73 AS col2 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT ALL + cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 43 + col0 FROM tab2 AS cor0
----
-36
35
36
query I rowsort
SELECT ALL 24 FROM tab0 AS cor0
----
24
24
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7578
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - tab0.col2 / col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - tab0.col2 / col0 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT + 25 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT ALL - + col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 70 * cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
517720
579670
658630
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query I rowsort
SELECT ALL 4 AS col0 FROM tab0
----
4
4
4
query I rowsort
SELECT + col0 * col1 + + col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + col1 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT - ( col0 ) DIV col0 + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-7586
SELECT - ( col0 ) / col0 + col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT col1 + + col0 * cor0.col1 + - 45 FROM tab1 cor0
----
1008
59
605
query I rowsort
SELECT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - - col1 + 82 FROM tab0 cor0
----
168
173
179
query I rowsort
SELECT ALL + col0 + 45 AS col0 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT DISTINCT - 60 FROM tab0, tab2 AS cor0, tab1 cor1
----
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT DISTINCT col1 DIV ( + 59 ) + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT col1 / ( + 59 ) + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL col2 + - ( 33 ) FROM tab0
----
-32
0
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT + col2 + col1 DIV + 32 + col2 AS col1 FROM tab0
----
166
5
68
skipif mysql # not compatible
query I rowsort label-7595
SELECT + col2 + col1 / + 32 + col2 AS col1 FROM tab0
----
166
5
68
query I rowsort
SELECT DISTINCT - col1 * - 70 + col2 * - col1 AS col2 FROM tab1
----
-338
130
416
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT + ( col2 ) * col2 + 93 DIV col2 AS col1 FROM tab0 AS cor0
----
1091
6725
94
skipif mysql # not compatible
query I rowsort label-7599
SELECT + ( col2 ) * col2 + 93 / col2 AS col1 FROM tab0 AS cor0
----
1091
6725
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * 59 col1 FROM tab2 AS cor0
----
-2242
-2242
-2242
query I rowsort
SELECT DISTINCT - - 46 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
164
2954
3693
query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + 40 * + col0 + col2 + col0 FROM tab1 AS cor0
----
177
2681
3376
query I rowsort
SELECT ALL - - 24 * + col0 AS col1 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT cor0.col2 * col1 + col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL - - 90 * 29 FROM tab2 AS cor0
----
2610
2610
2610
query I rowsort
SELECT DISTINCT - 95 * col2 + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-4454
-5315
-8951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 * col0 col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - 5 col1 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT DISTINCT col0 + 24 FROM tab0 AS cor0
----
113
48
59
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col1 AS REAL ) + + col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + ( + 80 ) * col0 AS col2 FROM tab2 cor0
----
560
6240
6320
query I rowsort
SELECT ALL + + 31 * - col0 FROM tab0 AS cor0
----
-1085
-2759
-744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7615
SELECT CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7615
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 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-7617
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 AS col2 FROM tab2
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - tab0.col0 col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 26 col1 FROM tab2
----
-676
-702
-988
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT ALL - - 14 DIV ( cor0.col0 ) + - 50 FROM tab0 AS cor0
----
-50
-50
-50
skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - - 14 / ( cor0.col0 ) + - 50 FROM tab0 AS cor0
----
-50
-50
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col2 FROM tab2
----
56
56
56
query I rowsort
SELECT - col1 * 20 FROM tab0
----
-1720
-1820
-1940
onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT + 15 DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
10
13
31
skipif mysql # not compatible
query I rowsort label-7625
SELECT + 15 / + col0 + cor0.col1 FROM tab1 AS cor0
----
10
13
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT DISTINCT col0 + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT col0 + col1 / + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT + + 56 DIV + col0 FROM tab2 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7627
SELECT + + 56 / + col0 FROM tab2 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT - 7 + cor0.col1 AS col1 FROM tab1 AS cor0
----
19
3
6
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 + + 27 FROM tab2 cor0
----
-14
-25
47
query I rowsort
SELECT - - 1 + - col0 + col1 AS col2 FROM tab0 AS cor0
----
3
63
63
query I rowsort
SELECT ALL - col2 * - col0 * ( ( - col1 ) * - col2 ) FROM tab0 AS cor0
----
2247696
3395
54457676
query I rowsort
SELECT + 78 * col2 AS col1 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT + 55 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-42
1729
4419
query I rowsort
SELECT DISTINCT tab1.col1 + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT + col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + col0 * + col1 * + 29 AS col2 FROM tab1 AS cor0
----
18560
2262
30160
query I rowsort
SELECT 16 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - + col1 * - 19 + + 77 AS col0 FROM tab0 AS cor0
----
1711
1806
1920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + ( col2 ) + - col1 col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col1 - col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - 22 col0 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + col0 - + col0 * col1 * - col2 FROM tab1 AS cor0
----
36544
4215
99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT DISTINCT + col0 * + ( + ( col1 ) ) + - col1 DIV cor0.col0 + col0 FROM tab0 AS cor0
----
2085
3428
8187
skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + col0 * + ( + ( col1 ) ) + - col1 / cor0.col0 + col0 FROM tab0 AS cor0
----
2085
3428
8187
query I rowsort
SELECT DISTINCT + col2 + + col0 * + 81 AS col0 FROM tab2 AS cor0
----
594
6344
6437
query I rowsort
SELECT - col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + col2 * + 95 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT ALL - col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT DISTINCT + col2 DIV + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + col2 / + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + - col0 * - 36 AS col1 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7655
SELECT ALL - col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - col1 / + col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL + cor0.col1 - + 40 AS col0 FROM tab1 AS cor0
----
-14
-27
-30
query I rowsort
SELECT col0 * ( + col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col2 * 8 * col1 FROM tab1 AS cor0
----
11232
4560
9984
query I rowsort
SELECT col0 * 16 AS col1 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT 31 * 72 + col0 AS col2 FROM tab2 AS cor0
----
2239
2310
2311
onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT DISTINCT - col2 + + 48 DIV - col0 + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-56
-69
-95
skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT - col2 + + 48 / - col0 + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-56
-69
-95
query I rowsort
SELECT 14 + col2 AS col1 FROM tab0 cor0
----
15
47
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7663
SELECT + col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7663
SELECT + col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL + tab1.col0 + 84 AS col2 FROM tab1
----
148
164
87
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
query I rowsort
SELECT ALL col2 + ( - 1 ) * + col2 * + col1 FROM tab2
----
-1508
-608
-810
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT - col2 * - ( 71 ) AS col1 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT - cor0.col0 + 28 AS col0 FROM tab0 AS cor0
----
-61
-7
4
query I rowsort
SELECT - - col0 + + 18 FROM tab0 AS cor0
----
107
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7671
SELECT - col2 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT col0 DIV + col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7672
SELECT col0 / + col2 AS col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT + 88 * - col2 FROM tab1
----
-4752
-5016
-8448
query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT ALL tab2.col2 DIV + col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7675
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 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab2
----
25
query I rowsort
SELECT + 24 AS col2 FROM tab1
----
24
24
24
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT DISTINCT tab2.col1 * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col2 * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab2, tab2 AS cor0
----
57
query I rowsort
SELECT - col2 + + 6 * + ( col1 + col1 ) FROM tab0 cor0
----
1010
1163
999
query I rowsort
SELECT col2 * + 38 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
2736
3456
4896
query I rowsort
SELECT DISTINCT col1 * col2 + + 43 * + col1 FROM tab2
----
1377
2170
4071
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab2, tab2 AS cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT ALL - ( - col2 + col0 ) * col1 DIV - 36 AS col0 FROM tab2
----
-17
19
85
skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL - ( - col2 + col0 ) * col1 / - 36 AS col0 FROM tab2
----
-17
19
85
query I rowsort
SELECT + 47 + col0 FROM tab1 AS cor0
----
111
127
50
query I rowsort
SELECT DISTINCT - 14 * - col2 AS col1 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT ALL - + col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + - col1 + col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + ( - 57 ) AS col2 FROM tab0
----
-57
-57
-57
query I rowsort
SELECT + col1 - - col1 * col2 AS col1 FROM tab0 cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab2
----
93
query I rowsort
SELECT + col2 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT - cor0.col0 + + col0 DIV ( + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
-18
-24
-89
skipif mysql # not compatible
query I rowsort label-7702
SELECT - cor0.col0 + + col0 / ( + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
-18
-24
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT col1 * cor0.col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7703
SELECT col1 * cor0.col0 / + col0 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT col2 + - cor0.col1 DIV ( col1 ) col2 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7704
SELECT col2 + - cor0.col1 / ( col1 ) col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT tab2.col2 * col2 + 18 + col1 AS col0 FROM tab2
----
1479
753
778
query I rowsort
SELECT col2 + - col2 - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL 88 - + tab2.col2 FROM tab2
----
50
61
62
query I rowsort
SELECT DISTINCT col1 - col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT + + col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - 47 + col2 AS col1 FROM tab0 AS cor0
----
129
48
80
query I rowsort
SELECT - col0 + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col1 + col2 * col0 FROM tab2 AS cor0
----
1150
3291
5509
query I rowsort
SELECT col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + cor0.col0 * col2 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - col1 * - ( - ( + col1 ) ) + + col2 + + 89 * col0 FROM tab0 cor0
----
-278
-5227
-6293
query I rowsort
SELECT DISTINCT + + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col2 + + ( 61 + + col0 ) AS col2 FROM tab0 cor0
----
118
232
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT DISTINCT - col1 DIV + 76 AS col1 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - col1 / + 76 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 93 AS col0 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col0 * ( col1 ) * col2 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM tab2
----
37
37
37
query I rowsort
SELECT + - col0 * + 2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 88 + - 47 FROM tab1 cor0
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT DISTINCT col1 DIV col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT col1 / col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + 94 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT + 1 * col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + 35 * - col2 FROM tab2 cor0
----
-1330
-910
-945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT ALL - - col1 DIV col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - - col1 / col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT 37 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT ALL 76 AS col1 FROM tab2
----
76
76
76
query I rowsort
SELECT DISTINCT col1 * + col2 + + ( col0 + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1690
804
851
query I rowsort
SELECT + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL 71 AS col1 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * 79 col1 FROM tab1 AS cor0
----
-2051
-726
-947
query I rowsort
SELECT - + ( - col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 50 * col2 AS col2 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT DISTINCT ( col0 * col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT + ( - col1 * tab0.col1 + - ( col1 ) * + tab0.col2 ) FROM tab0
----
-10234
-15743
-9506
query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT ALL - + 72 DIV + cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - + 72 / + cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT - col2 * - col1 * col2 + + ( + col0 + + cor0.col0 * - cor0.col0 ) FROM tab1 AS cor0
----
113488
28458
75810
query I rowsort
SELECT ALL + - ( col2 ) + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT ( - 75 + tab1.col2 ) * col2 AS col0 FROM tab1
----
-1026
-1134
2016
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + + col0 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT ALL - CAST( + col1 AS SIGNED ) + - col0 FROM tab0 cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL - CAST ( + col1 AS INTEGER ) + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + + cor0.col1 * cor0.col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT DISTINCT + ( + cor0.col0 ) * - col2 + + col2 * col2 DIV col1 - col2 FROM tab1 AS cor0
----
-104
-3381
-7068
skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + ( + cor0.col0 ) * - col2 + + col2 * col2 / col1 - col2 FROM tab1 AS cor0
----
-104
-3381
-7068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7764
SELECT ALL CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - 67 AS col2 FROM tab0 AS cor0
----
-102
-156
-91
query I rowsort
SELECT DISTINCT - - col0 + ( + col0 ) FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT ALL + + 31 * - col2 + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + + 31 * - col2 + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 77 FROM tab1 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT + col0 * + cor0.col1 + + col2 DIV col0 FROM tab0 AS cor0
----
2065
3395
8099
skipif mysql # not compatible
query I rowsort label-7769
SELECT + col0 * + cor0.col1 + + col2 / col0 FROM tab0 AS cor0
----
2065
3395
8099
query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + + ( + 17 ) AS col2 FROM tab0 AS cor0
----
17
query I rowsort
SELECT col0 + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT 31 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT DISTINCT - col1 + col0 * 52 AS col0 FROM tab0 AS cor0
----
1162
1723
4537
query I rowsort
SELECT - 76 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT + - cor0.col1 - + col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col0 + - col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ( + col0 ) + + ( - col1 ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col1 + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col0 * - col0 + + cor0.col0 * + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 - + col0 AS col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + 31 AS col0 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7786
SELECT + col2 DIV col0 + - col2 FROM tab0 cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-7786
SELECT + col2 / col0 + - col2 FROM tab0 cor0
----
-1
-32
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + col2 * + col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + col0 + cor0.col2 * ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT - - col0 DIV cor0.col0 - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-7792
SELECT - - col0 / cor0.col0 - col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL + col0 + - ( col1 ) * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 + - col2 * - col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT 98 + col1 - + 33 * 56 AS col0 FROM tab1
----
-1724
-1737
-1740
query I rowsort
SELECT + + cor0.col2 + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7798
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7798
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + col0 + 31 FROM tab0 AS cor0
----
120
55
66
query I rowsort
SELECT ALL + 82 * col2 AS col1 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT - - col2 + - 11 AS col0 FROM tab0 AS cor0
----
-10
22
71
query I rowsort
SELECT ALL - 82 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1452
564
755
query I rowsort
SELECT + + 35 + col1 AS col0 FROM tab2 AS cor0
----
52
66
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7805
SELECT + col0 - ( - col1 * + CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
3559
368
968
skipif mysql # not compatible
query I rowsort label-7805
SELECT + col0 - ( - col1 * + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT tab2.col1 * - 53 * col1 AS col0 FROM tab2
----
-15317
-184493
-50933
query I rowsort
SELECT DISTINCT - col0 + col1 * ( - tab0.col1 ) FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT - - col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7809
SELECT CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 41 AS col1 FROM tab2 cor0
----
-41
-41
-41
query I rowsort
SELECT col0 + col1 * tab2.col2 + tab2.col1 FROM tab2
----
1671
742
875
query I rowsort
SELECT DISTINCT - col2 + + ( - 38 ) AS col2 FROM tab0
----
-120
-39
-71
query I rowsort
SELECT ALL col0 + col2 + col2 FROM tab0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab0, tab0 cor0
----
31
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT DISTINCT - col1 DIV + col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - col1 / + col1 FROM tab0
----
-1
query I rowsort
SELECT + col1 * - col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT 84 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2, tab2 AS cor0
----
18
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 + col2 AS REAL ) * + tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + tab2.col1 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + 18 * col0 FROM tab2
----
126
1404
1422
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT + 58 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT + ( + col0 + col0 ) FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7828
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT ALL + cor0.col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + cor0.col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT + col0 + tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + 81 FROM tab0
----
81
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT - col0 * cor0.col2 * - col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7834
SELECT + col0 - - col1 DIV + col0 AS col1 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-7834
SELECT + col0 - - col1 / + col0 AS col1 FROM tab2
----
11
78
79
query I rowsort
SELECT ALL 56 AS col0 FROM tab0
----
56
56
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7836
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT DISTINCT - col1 DIV - col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - col1 / - col0 FROM tab1
----
0
8
query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + - col0 * col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col0 * - CAST ( - col2 + col0 AS REAL ) col2 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT - col0 * + col1 * - 78 FROM tab2 AS cor0
----
104754
16926
358956
query I rowsort
SELECT col0 + - ( + 40 ) * col2 AS col1 FROM tab2 AS cor0
----
-1073
-1441
-962
query I rowsort
SELECT ALL 25 - - col2 AS col1 FROM tab0
----
107
26
58
query I rowsort
SELECT - + 12 * col2 * col0 FROM tab0 AS cor0
----
-420
-87576
-9504
query I rowsort
SELECT ALL col1 * - col0 - + tab0.col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT col1 - col0 * - 77 FROM tab0
----
1934
2792
6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT 18 + col0 DIV - col1 + 93 AS col1 FROM tab0
----
111
111
111
skipif mysql # not compatible
query I rowsort label-7849
SELECT 18 + col0 / - col1 + 93 AS col1 FROM tab0
----
111
111
111
query I rowsort
SELECT - 45 AS col0 FROM tab2 AS cor0
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * - 48 col0 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT ALL ( col0 ) * ( - 31 ) AS col0 FROM tab0 cor0
----
-1085
-2759
-744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 * ( - col2 ) col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col0 + + ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col2 * 61 - 35 FROM tab0 AS cor0
----
1978
26
4967
query I rowsort
SELECT ALL col0 + + 66 * - col0 AS col2 FROM tab0 AS cor0
----
-1560
-2275
-5785
query I rowsort
SELECT col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + col2 + 71 FROM tab1 cor0
----
125
128
167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7862
SELECT col1 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7862
SELECT col1 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * cor0.col0 + col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + ( - tab0.col0 ) FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab0
----
15
15
15
query I rowsort
SELECT - col0 * col2 AS col0 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT - col1 + + col0 * col0 + + tab0.col1 DIV col2 FROM tab0
----
1225
492
7831
skipif mysql # not compatible
query I rowsort label-7869
SELECT - col1 + + col0 * col0 + + tab0.col1 / col2 FROM tab0
----
1225
492
7831
query I rowsort
SELECT col0 * + tab2.col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1
----
0
query I rowsort
SELECT + col1 + col2 + col1 FROM tab0
----
195
205
264
query III rowsort
SELECT * FROM tab1 WHERE col1 > col0 * col2
----
query I rowsort
SELECT ALL - tab2.col1 + col0 * - col0 AS col1 FROM tab2
----
-6143
-6258
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 * col2 col1 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + tab0.col2 * - tab0.col0 )
----
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT ALL - col0 * - col0 + + col1 DIV + col1 FROM tab2
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - col0 * - col0 + + col1 / + col1 FROM tab2
----
50
6085
6242
query I rowsort
SELECT + tab0.col2 + col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - col0 + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - tab0.col1 - col0 * col0 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 <> ( col1 )
----
10
13
26
query I rowsort
SELECT - col2 + tab0.col1 AS col1 FROM tab0
----
53
9
96
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND col2 + tab1.col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col0 AS col1 FROM tab1 WHERE ( col1 ) >= col0
----
162
onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT col1 DIV col1 + + col0 * + col0 + - col2 * tab0.col2 FROM tab0
----
-512
1198
1225
skipif mysql # not compatible
query I rowsort label-7888
SELECT col1 / col1 + + col0 * + col0 + - col2 * tab0.col2 FROM tab0
----
-512
1198
1225
query I rowsort
SELECT col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab2 WHERE NOT ( col2 * + col1 ) = col1 + + col2 * + col2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + col2 col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col2 < - col0 * - col1 / + col1
----
54
96
query I rowsort
SELECT DISTINCT col1 + - col0 * - col1 * col0 FROM tab2 WHERE + col0 <> NULL
----
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col0 * + col1 + - col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col2 + - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT + col2 DIV col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7897
SELECT + col2 / col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL col1 + + col0 + 98 * - col0 AS col2 FROM tab0 cor0
----
-2242
-3298
-8542
query I rowsort
SELECT - 46 FROM tab1
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT ALL + col1 + + col1 DIV col2 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + col1 + + col1 / col2 FROM tab0 cor0
----
194
88
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7901
SELECT ( - col2 ) * CAST( 16 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-3024
-32448
-48032
skipif mysql # not compatible
query I rowsort label-7901
SELECT ( - col2 ) * CAST ( 16 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-3024
-32448
-48032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7902
SELECT + col0 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7902
SELECT + col0 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 39 * + col0 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ( col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT - ( + 75 * col2 ) AS col1 FROM tab1
----
-4050
-4275
-7200
query I rowsort
SELECT ( col2 ) - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + 70 + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 77f784dc30f2ad5690182dc7e6063d44
query I rowsort
SELECT ALL - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 81 * - col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + ( col2 ) col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - 49 * + col1 FROM tab1 AS cor0
----
-1274
-490
-637
skipif mysql # not compatible
query I rowsort
SELECT col1 + col2 * + CAST ( col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * - col0 * 43 FROM tab1 AS cor0
----
-176128
-275200
-387
query I rowsort
SELECT - col1 + 70 FROM tab0
----
-16
-21
-27
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT - cor0.col2 + 9 * 93 AS col1 FROM tab0 AS cor0
----
755
804
836
query I rowsort
SELECT - col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col2 * 71 + ( col2 ) AS col1 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT + col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - ( col0 ) * - col1 + col0 + + ( + col0 ) * cor0.col2 FROM tab0 AS cor0
----
15486
2880
3465
query I rowsort
SELECT DISTINCT 61 + 50 * col2 FROM tab1 cor0
----
2761
2911
4861
query I rowsort
SELECT + 59 - col0 AS col0 FROM tab1
----
-21
-5
56
query I rowsort
SELECT + col2 + + col0 * col0 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT DISTINCT 33 * 88 DIV col2 AS col2 FROM tab1
----
30
50
53
skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 33 * 88 / col2 AS col2 FROM tab1
----
30
50
53
query I rowsort
SELECT + 85 * ( + col0 ) + 91 + + col0 FROM tab0 AS cor0
----
2155
3101
7745
query I rowsort
SELECT DISTINCT + - ( col2 ) * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7937
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 72 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 72 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT - - CAST( - col1 AS SIGNED ) DIV col0 col1 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7938
SELECT - - CAST ( - col1 AS INTEGER ) / col0 col1 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7939
SELECT ALL CAST( NULL AS SIGNED ) + + ( col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL CAST ( NULL AS INTEGER ) + + ( col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col2 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT ALL + cor1.col1 + + 51 DIV - 48 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0503e0afda993583ade90459ce4c9d28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + cor1.col1 + + 51 / - 48 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0503e0afda993583ade90459ce4c9d28
query I rowsort
SELECT ALL + + 30 * - col1 AS col0 FROM tab1 AS cor0
----
-300
-390
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT tab0.col2 DIV - col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7943
SELECT tab0.col2 / - col0 FROM tab0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7944
SELECT DISTINCT - ( col2 ) * 66 * - tab2.col1 + tab2.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - ( col2 ) * 66 * - tab2.col1 + tab2.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT + col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + 7 AS col0 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7947
SELECT ALL - col1 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - col1 / col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 0 AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + col1 + col2 col0 FROM tab1
----
164
177
206
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT DISTINCT + + col0 DIV - col1 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + + col0 / - col1 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT - - col1 + col0 + - 23 FROM tab2 AS cor0
----
114
15
73
query I rowsort
SELECT DISTINCT 10 FROM tab0, tab1 AS cor0
----
10
query I rowsort
SELECT DISTINCT + tab0.col0 * 89 * tab0.col2 AS col1 FROM tab0
----
3115
649522
70488
query I rowsort
SELECT DISTINCT - 76 - 47 FROM tab1, tab0 AS cor0
----
-123
query I rowsort
SELECT + col0 * + ( + 63 ) + - col1 * col1 FROM tab1 AS cor0
----
-487
3932
4871
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + - col0 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7960
SELECT + col1 + CAST( NULL AS SIGNED ) * + 92 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7960
SELECT + col1 + CAST ( NULL AS INTEGER ) * + 92 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT ALL + col2 DIV 76 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + col2 / 76 AS col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT - tab2.col2 + + col1 DIV + col0 FROM tab2
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-7963
SELECT - tab2.col2 + + col1 / + col0 FROM tab2
----
-23
-26
-38
query I rowsort
SELECT ALL 47 * - col0 AS col2 FROM tab0
----
-1128
-1645
-4183
query I rowsort
SELECT DISTINCT - cor0.col1 * 97 FROM tab1, tab0, tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT DISTINCT + cor0.col1 * ( + col1 ) + - cor0.col0 + + 9 AS col0 FROM tab2 AS cor0
----
219
3412
963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7967
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT 87 * - 6 - + col1 * - col1 FROM tab0 AS cor0
----
6874
7759
8887
query I rowsort
SELECT + col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col0 + - 23 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d8d607c934f9e5940a633767acdde2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT ALL + - col1 DIV col0 + - cor0.col1 * - cor0.col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
806
skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + - col1 / col0 + - cor0.col1 * - cor0.col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
806
query I rowsort
SELECT + ( - cor0.col0 ) - + 55 FROM tab1, tab0 AS cor0
----
9 values hashing to 52d2bf9eff080fea487ee502987edcca
query I rowsort
SELECT ALL - 48 * col0 + col0 * + col0 FROM tab2 cor0
----
-287
2340
2449
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + + col1 - + col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7976
SELECT - CAST( ( - col2 ) AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7976
SELECT - CAST ( ( - col2 ) AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col1 * - col2 + 39 AS col1 FROM tab0 AS cor0
----
136
2877
7501
onlyif mysql # use DIV operator for integer division
query I rowsort label-7978
SELECT ( col2 ) DIV 88 + col0 * col0 col2 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7978
SELECT ( col2 ) / 88 + col0 * col0 col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 97 FROM tab0 cor0
----
97
query I rowsort
SELECT DISTINCT - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT ALL + col1 + col1 DIV 15 FROM tab2 AS cor0
----
18
33
62
skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + col1 + col1 / 15 FROM tab2 AS cor0
----
18
33
62
query I rowsort
SELECT DISTINCT - + col2 - - col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT - + col1 DIV - cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7983
SELECT - + col1 / - cor0.col2 AS col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT ALL + ( + col2 ) + 3 * col2 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT - - col2 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT 28 * + col0 FROM tab2 cor0
----
196
2184
2212
query I rowsort
SELECT ALL - 7 * col2 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT DISTINCT - col0 + col0 * 43 AS col1 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT - 86 + col0 * - col2 * 18 AS col1 FROM tab0 AS cor0
----
-131450
-14342
-716
query I rowsort
SELECT ALL + - col2 + + col1 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - 8 * - cor0.col2 FROM tab0 AS cor0
----
264
656
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7993
SELECT - + col2 * col0 + - CAST( col2 AS SIGNED ) * - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
3360
656820
67320
skipif mysql # not compatible
query I rowsort label-7993
SELECT - + col2 * col0 + - CAST ( col2 AS INTEGER ) * - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
3360
656820
67320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * - ( - ( - col1 ) * col2 ) col0 FROM tab2 AS cor0
----
-119678
-51072
-5886
query I rowsort
SELECT - + col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 * - col1 - + 27 * col0 AS col0 FROM tab2 AS cor0
----
-3476
-406
-6708
query I rowsort
SELECT - 13 + col0 FROM tab2 AS cor0
----
-6
65
66
query I rowsort
SELECT ALL - 75 * + cor0.col1 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - cor1.col0 * 11 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d5ac3cced4c7369f6064241bede2f35d
query I rowsort
SELECT 3 * - col2 AS col1 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab2
----
64
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
95
query I rowsort
SELECT - 90 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618
query I rowsort
SELECT 81 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - col1 + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 61 FROM tab1
----
-61
-61
-61
query I rowsort
SELECT - 10 AS col0 FROM tab2
----
-10
-10
-10
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ( - 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 50 * - col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-8020
SELECT ALL + + 54 + + col2 * col2 DIV CAST( col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
58
69
73
skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + + 54 + + col2 * col2 / CAST ( col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
58
69
73
query I rowsort
SELECT - - col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * 18 + ( col1 ) AS col2 FROM tab1
----
190
247
494
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( - ( - col0 ) ) col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - col0 * - 83 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT + col2 + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT + 6 AS col0 FROM tab1
----
6
6
6
query I rowsort
SELECT 69 + 20 FROM tab1
----
89
89
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8029
SELECT DISTINCT + col1 * cor0.col2 DIV col0 FROM tab1 cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + col1 * cor0.col2 / col0 FROM tab1 cor0
----
15
468
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - ( ( col2 ) ) * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8033
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 54 AS col1 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT DISTINCT + 27 * ( - col0 ) FROM tab1
----
-1728
-2160
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
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 cor0.col2 col0 FROM tab0, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col0 + - 35 AS col0 FROM tab1 AS cor0
----
-115
-38
-99
query I rowsort
SELECT - - ( ( + col0 ) ) - ( - col0 ) FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + + ( + 39 ) FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT - 65 + 39 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT col2 + 52 * - col0 FROM tab1 AS cor0
----
-102
-3271
-4064
query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8045
SELECT - 19 - col2 DIV col1 FROM tab0 AS cor0
----
-19
-19
-19
skipif mysql # not compatible
query I rowsort label-8045
SELECT - 19 - col2 / col1 FROM tab0 AS cor0
----
-19
-19
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-8046
SELECT + col1 + col0 DIV cor0.col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8046
SELECT + col1 + col0 / cor0.col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - - ( 33 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT ALL + 94 * col2 AS col2 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT ALL + 7 AS col1 FROM tab0 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8050
SELECT - 46 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8050
SELECT - 46 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * + 19 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT - col0 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + col1 col0 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT 95 * - col1 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-1694
-2952
-5683
query I rowsort
SELECT - + col2 + - col1 AS col0 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col1 * - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + 64 * col2 + col1 AS col2 FROM tab0 cor0
----
161
2198
5339
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + - cor0.col1 col1 FROM tab2 AS cor0
----
-24
19
62
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - tab0.col1 * 79 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 799eb6b46fc85c8f7962a894fde3ea6b
query I rowsort
SELECT DISTINCT - col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * + ( + col2 ) + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col0 * - 68 FROM tab0 cor0
----
1632
2380
6052
query I rowsort
SELECT - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 + + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col2 * - 35 * 6 FROM tab1 AS cor0
----
-11340
-11970
-20160
query I rowsort
SELECT ALL - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT DISTINCT + cor0.col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + cor0.col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - tab1.col1 * tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT DISTINCT - col2 + + col2 * 48 AS col1 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col1 * + 69 + + ( + col2 ) * 55 FROM tab2 AS cor0
----
3263
3624
5501
query I rowsort
SELECT ALL col2 * col1 + 24 * - col0 + cor0.col0 FROM tab1 cor0
----
-592
-902
1335
query I rowsort
SELECT ALL + - col1 - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8087
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 93 col2 FROM tab2 AS cor0
----
-1581
-2883
-5487
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT ALL - - 55 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT ALL + 40 + - col2 * 57 AS col2 FROM tab2 AS cor0
----
-1442
-1499
-2126
query I rowsort
SELECT ALL + + col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8096
SELECT CAST( NULL AS SIGNED ) / col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8096
SELECT CAST ( NULL AS INTEGER ) / col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 91 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT DISTINCT col2 + + col0 - col2 DIV - 96 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT col2 + + col0 - col2 / - 96 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT + col1 + col2 DIV 45 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-8099
SELECT + col1 + col2 / 45 FROM tab0
----
86
92
97
query I rowsort
SELECT ALL col2 * col2 + - col0 + col2 FROM tab1
----
2967
3242
9232
query I rowsort
SELECT ALL - tab2.col1 + - col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT 54 + col2 * col0 - col2 FROM tab0
----
7270
813
88
query I rowsort
SELECT ALL + 27 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT cor0.col2 * - col1 + + col1 * col0 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT 44 + col2 FROM tab2 cor0
----
70
71
82
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 94 * + col2 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
15225
342848
721840
query I rowsort
SELECT + + col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - ( 69 ) * - col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - col0 * col1 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT 57 * 82 FROM tab0 AS cor0
----
4674
4674
4674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + ( col1 ) + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + 60 * - tab0.col1 col1 FROM tab0
----
-154800
-163800
-174600
query I rowsort
SELECT + col1 * - 45 FROM tab0
----
-3870
-4095
-4365
onlyif mysql # use DIV operator for integer division
query I rowsort label-8120
SELECT col2 - col0 DIV + col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-8120
SELECT col2 - col0 / + col1 FROM tab2 AS cor0
----
25
27
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8121
SELECT ALL CAST( NULL AS SIGNED ) - ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL CAST ( NULL AS INTEGER ) - ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 35 * - col1 AS col2 FROM tab0 cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col2 - cor0.col0 * col0 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-13791
-42874
-704887
query I rowsort
SELECT ALL 2 + - 21 + + cor0.col0 FROM tab1 AS cor0
----
-16
45
61
query I rowsort
SELECT ALL - tab2.col2 + 30 FROM tab2
----
-8
3
4
query I rowsort
SELECT - col2 * - ( + col2 ) * + col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT ALL + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT col0 * cor0.col1 * col1 + - col2 + 87 AS col1 FROM tab2 AS cor0
----
22880
271579
6787
query I rowsort
SELECT tab0.col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - 67 FROM tab2, tab2 AS cor0
----
-67
query I rowsort
SELECT - tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab0, tab1 AS cor0
----
2
query I rowsort
SELECT + 55 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT cor0.col2 * col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + + col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col0 FROM tab1, tab1 AS cor0, tab0, tab0 cor1
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * col0 + 98 AS col1 FROM tab1 AS cor0
----
1138
176
738
query I rowsort
SELECT + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT + 73 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - 7 AS col1 FROM tab1 cor0
----
-7
-7
-7
query I rowsort
SELECT - ( 62 + + tab1.col2 ) FROM tab1
----
-116
-119
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT + - CAST( - 3 AS SIGNED ) FROM tab2 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-8149
SELECT + - CAST ( - 3 AS INTEGER ) FROM tab2 AS cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT + col1 DIV - col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8150
SELECT + col1 / - col1 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + 92 AS col1 FROM tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT - 21 AS col0 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT + 81 + + col1 AS col0 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT 34 * - cor0.col2 + col2 * 84 AS col0 FROM tab1 AS cor0
----
2700
2850
4800
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
54
query I rowsort
SELECT - 5 * cor0.col1 + col1 AS col0 FROM tab2 cor0
----
-124
-236
-68
query I rowsort
SELECT + - col0 + + cor0.col0 * col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + col2 * 34 FROM tab1 AS cor0
----
1836
1938
3264
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-8162
SELECT + + col1 + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8162
SELECT + + col1 + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT DISTINCT 22 FROM tab1
----
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT ALL 72 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL 72 / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT col1 + + col0 DIV + col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8167
SELECT col1 + + col0 / + col0 FROM tab1
----
11
14
27
query I rowsort
SELECT - 33 + + col2 * - col2 AS col0 FROM tab0 cor0
----
-1122
-34
-6757
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT ALL - ( col0 ) DIV - cor0.col0 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - ( col0 ) / - cor0.col0 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 18 + col2 AS col2 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT ( col2 ) * col0 + col2 * col2 FROM tab2 AS cor0
----
2704
4446
918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - ( col1 ) + - 7 * col0 AS col1 FROM tab1 AS cor0
----
-458
-47
-573
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT ALL - 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 48 + col0 AS col1 FROM tab1 AS cor0
----
112
128
51
query I rowsort
SELECT ( ( + tab0.col2 ) ) * cor0.col0 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 3308937e73f3503fa2b2a0ef235eb3c1
query I rowsort
SELECT - col1 * col0 - + tab0.col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT + tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0
----
78
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT DISTINCT ( tab1.col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT - ( col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT cor0.col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 * ( col1 ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT col0 DIV col0 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8188
SELECT col0 / col0 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col2 * - 41 + - col0 + tab1.col1 AS col0 FROM tab1
----
-2191
-2391
-4003
query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8192
SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8192
SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 84 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT ALL - col1 * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 49 * + col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT - 22 * - col2 + col1 AS col1 FROM tab0
----
119
1895
812
query I rowsort
SELECT ALL tab0.col2 * - 64 + tab0.col0 * - 65 * + 84 FROM tab0
----
-133152
-191164
-491188
query I rowsort
SELECT - + col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 13 + + col0 * + col0 FROM tab2 cor0
----
6097
62
6254
query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col0 * - 4 FROM tab2 AS cor0
----
1222
330
809
query I rowsort
SELECT ( 22 ) + col1 AS col1 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT ALL + col0 + col0 * + cor0.col2 * - col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT + + ( + cor0.col0 ) + + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT 45 * col1 + + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1612
2108
7257
query I rowsort
SELECT ALL + 12 FROM tab1 AS cor0
----
12
12
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT + CAST( col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-8207
SELECT + CAST ( col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col2 + 88 AS col2 FROM tab0
----
55
6
87
query I rowsort
SELECT ALL tab1.col1 * - col0 + + col2 * ( col1 ) AS col1 FROM tab1
----
-70
1326
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8210
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8210
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + ( - col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL col2 * col2 + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - ( + col1 ) * + col1 + ( col0 ) * + col2 AS col0 FROM tab0
----
-6604
-9374
-983
onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT + cor0.col1 DIV - cor1.col0 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to daa038ec345ebd6c4fa4687c181dc01e
skipif mysql # not compatible
query I rowsort label-8215
SELECT + cor0.col1 / - cor1.col0 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to daa038ec345ebd6c4fa4687c181dc01e
query I rowsort
SELECT + + ( + col0 ) * + cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - + col1 + - 35 * col1 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT ALL + 33 + cor0.col0 * - col0 * col2 FROM tab1 AS cor0
----
-233439
-453
-614367
onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT ALL - ( col1 ) + col2 DIV 5 FROM tab0 AS cor0
----
-75
-80
-97
skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - ( col1 ) + col2 / 5 FROM tab0 AS cor0
----
-75
-80
-97
query I rowsort
SELECT col1 + col1 * + col2 + - col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 35 * col1 AS col0 FROM tab1 AS cor0
----
350
455
910
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT DISTINCT + - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + - col1 / - cor0.col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + 85 * col2 FROM tab0 AS cor0
----
2805
6970
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT + col1 DIV + 98 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8226
SELECT + col1 / + 98 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 + col1 + ( + col0 ) FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT - 20 AS col2 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL - - col0 + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + - 28 FROM tab1 cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - col2 * - cor0.col0 + + 24 AS col2 FROM tab2 cor0
----
-165
-2004
-2978
query I rowsort
SELECT + 60 * + col1 AS col0 FROM tab1 AS cor0
----
1560
600
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-8234
SELECT + + 46 DIV col2 + col1 FROM tab0 AS cor0
----
143
87
91
skipif mysql # not compatible
query I rowsort label-8234
SELECT + + 46 / col2 + col1 FROM tab0 AS cor0
----
143
87
91
query I rowsort
SELECT ALL - + col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col0 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 34 col0 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT - col1 * col2 + - col2 + + 61 * - col1 FROM tab1 AS cor0
----
-1237
-2137
-3044
query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col2 * - col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - ( - col0 ) * - col1 + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT + col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 83 + col1 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1392
-546
-723
query I rowsort
SELECT DISTINCT 44 + col2 AS col2 FROM tab1 AS cor0
----
101
140
98
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 * col2 + - col0 * col2 * col0 AS col0 FROM tab2 AS cor0
----
-1134
-156156
-234156
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8247
SELECT - - 7 * col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8247
SELECT - - 7 * col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col0 ) * col1 + col2 * col2 + 46 AS col2 FROM tab2 cor0
----
2833
5324
992
query I rowsort
SELECT ALL + 10 FROM tab0 cor0
----
10
10
10
query I rowsort
SELECT + col2 * col1 * - 27 FROM tab0 AS cor0
----
-201474
-2619
-76626
query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - + col1 * ( + cor0.col1 * + col1 ) FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT + - col0 + 27 * 89 FROM tab1 cor0
----
2323
2339
2400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8256
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * - 61 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * - 61 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * 38 FROM tab2 AS cor0
----
1178
2242
646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8258
SELECT ALL - + col0 + + 58 * ( col1 ) * 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-8258
SELECT ALL - + col0 + + 58 * ( col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + + CAST ( + col0 AS REAL ) / + col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8261
SELECT ALL + col1 + CAST( + col2 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + col1 + CAST ( + col2 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col2 * 45 AS col0 FROM tab0 AS cor0
----
1485
3690
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8265
SELECT DISTINCT + col2 DIV 12 FROM tab2 AS cor0
----
2
3
skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + col2 / 12 FROM tab2 AS cor0
----
2
3
query I rowsort
SELECT ALL + col2 + 45 FROM tab0 cor0
----
127
46
78
query I rowsort
SELECT + 48 FROM tab2
----
48
48
48
query I rowsort
SELECT + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - col2 * col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + col2 * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
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 - col0 * - 7 AS col2 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col2 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - + 11 AS col1 FROM tab1 AS cor0
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + 32 col1 FROM tab1 AS cor0
----
120
120
120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT DISTINCT col0 DIV + col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT col0 / + col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + + col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col2 + - tab0.col1 - 53 FROM tab0
----
-106
-149
-62
query I rowsort
SELECT - 96 + - col0 FROM tab1 AS cor0
----
-160
-176
-99
query I rowsort
SELECT ALL + 77 * + col1 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT DISTINCT - 77 * col1 FROM tab0 AS cor0
----
-6622
-7007
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT DISTINCT + col0 + - col1 * col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + col0 + - col1 * col1 / col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 + col0 * col0 col0 FROM tab0 cor0
----
-2229
1129
541
query I rowsort
SELECT + - 10 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - 36 * - cor0.col0 - col1 FROM tab2 AS cor0
----
221
2749
2827
query I rowsort
SELECT DISTINCT 71 FROM tab2 AS cor0
----
71
query I rowsort
SELECT ALL + 73 + col2 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab0 AS cor0
----
-58
-58
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + col0 col0 FROM tab2 cor0
----
567
6318
6399
query I rowsort
SELECT - col2 - - tab2.col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + - col2 + - col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8300
SELECT DISTINCT + 11 DIV - col0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + 11 / - col0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col2 + col2 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - - 1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 6 * + col0 + + col1 * + col1 FROM tab2 AS cor0
----
1003
3949
763
query I rowsort
SELECT DISTINCT + 19 FROM tab1
----
19
query I rowsort
SELECT - col0 * col0 + - tab2.col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT 76 AS col0 FROM tab2
----
76
76
76
query I rowsort
SELECT ( - col1 ) * col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - 49 * - col2 AS col2 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT 2 * - col2 + + col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 52 + col1 FROM tab0 cor0
----
138
143
149
query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0, tab1 AS cor0
----
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT ALL - - CAST( 0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL - - CAST ( 0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT ALL + 78 AS col0 FROM tab2 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 - col1 col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + col2 * - ( 74 ) FROM tab2
----
-1924
-1998
-2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-8318
SELECT - col0 DIV - ( 61 ) AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8318
SELECT - col0 / - ( 61 ) AS col1 FROM tab2
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8319
SELECT DISTINCT + col1 * - col1 + tab0.col2 DIV col2 + col1 AS col1 FROM tab0
----
-7309
-8189
-9311
skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + col1 * - col1 + tab0.col2 / col2 + col1 AS col1 FROM tab0
----
-7309
-8189
-9311
query I rowsort
SELECT - 29 + - tab0.col1 AS col2 FROM tab0
----
-115
-120
-126
query I rowsort
SELECT + 85 * col0 AS col0 FROM tab0
----
2040
2975
7565
query I rowsort
SELECT + 56 * 66 + + col1 FROM tab2
----
3713
3727
3755
query I rowsort
SELECT - col2 + col1 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - col2 * - col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col1 * + col1 * col2 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + ( col1 ) * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col0 FROM tab2
----
49
49
49
query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL 37 AS col0 FROM tab1
----
37
37
37
query I rowsort
SELECT col0 + + tab2.col0 FROM tab2
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8331
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8331
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + 49 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT ALL - + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT - - 4 + col1 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT - ( + col1 ) * + col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + 71 FROM tab2 AS cor0
----
71
query I rowsort
SELECT - 26 + tab2.col2 FROM tab2
----
0
1
12
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + - 15 * cor0.col1 + cor0.col1 FROM tab1 cor0
----
-140
-182
-364
query I rowsort
SELECT col1 + - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT cor0.col1 + col1 * - cor0.col0 + col1 FROM tab2 cor0
----
-1309
-155
-4484
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( + tab0.col2 * - col2 ) = ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col1 BETWEEN ( col2 * col2 ) AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab1 WHERE NULL NOT IN ( col0 )
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT + col2 * col1 - - col1 * col0 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL col2 + col1 FROM tab1
----
109
67
80
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - cor0.col0 + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col0 col0 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT - col2 - tab2.col2 * tab2.col0 / col0 FROM tab2 WHERE NOT col2 BETWEEN col2 AND NULL
----
query I rowsort
SELECT DISTINCT + tab2.col2 + - col2 FROM tab2
----
0
query I rowsort
SELECT col2 + col0 AS col1 FROM tab2 cor0
----
104
117
34
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 / cor0.col0 + col0 )
----
query I rowsort
SELECT DISTINCT + tab2.col2 + - tab2.col2 * - col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT col1 + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - col0 * col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - col1 * col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col0 + - col2 * - col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT - col0 * - col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab1.col0 * - col2 + col1 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 FROM tab0, tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT ALL col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT DISTINCT col2 * + tab2.col0 DIV - col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT col2 * + tab2.col0 / - col0 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT DISTINCT col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - + col0 + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + cor0.col2 + cor0.col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + + col2 * + col2 - col0 * col1 FROM tab2 AS cor0
----
-3926
101
512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT ALL - col2 + + col1 DIV - col2 col0 FROM tab0 AS cor0
----
-35
-83
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - col2 + + col1 / - col2 col0 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT - + cor0.col2 + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8377
SELECT + col2 + col0 DIV col0 AS col2 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8377
SELECT + col2 + col0 / col0 AS col2 FROM tab1 cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT col1 * - col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT - col2 DIV - col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8382
SELECT - col2 / - col1 FROM tab1
----
2
5
7
query I rowsort
SELECT col0 * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * col0 + + col2 col0 FROM tab2 WHERE NULL NOT IN ( + col1 / col0 ) AND NOT NULL IN ( - col2 + - col1 + + col0 )
----
query I rowsort
SELECT col1 * cor0.col2 + + col0 + col0 AS col1 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT + col2 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT - + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8387
SELECT - + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + + cor0.col2 * col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 81 col0 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT + + col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col1 * - 92 FROM tab0 cor0
----
-7912
-8372
-8924
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col2 - col2 AS col2 FROM tab1 AS cor0
----
-105
-112
-50
query I rowsort
SELECT - + col1 * col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + + col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col0 * 55 + + col2 * col0 FROM tab2 AS cor0
----
574
6318
7347
query I rowsort
SELECT ALL - col2 * - ( - col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab0, tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT - + 50 AS col1 FROM tab1 AS cor0
----
-50
query I rowsort
SELECT - 42 AS col2 FROM tab0 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL ( col1 ) * cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT DISTINCT - CAST( ( - col0 ) AS SIGNED ) * ( + cor0.col0 * col1 ) FROM tab0 AS cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - CAST ( ( - col0 ) AS INTEGER ) * ( + cor0.col0 * col1 ) FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + 77 AS col0 FROM tab1 cor0
----
-77
-77
-77
query I rowsort
SELECT ALL + cor0.col1 - + col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8407
SELECT + col0 + CAST( NULL AS SIGNED ) + - tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8407
SELECT + col0 + CAST ( NULL AS INTEGER ) + - tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * ( 9 * col2 ) + col2 AS col2 FROM tab0
----
-25509
-67076
-872
query I rowsort
SELECT DISTINCT col1 + - col2 * tab0.col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT col1 - 93 FROM tab2
----
-34
-62
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8411
SELECT ALL - col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - col1 ) FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8413
SELECT col2 / - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL 97 * col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT DISTINCT 37 * col1 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 91 AS REAL ) AS col0 FROM tab1
----
-91
-91
-91
query I rowsort
SELECT - 81 AS col1 FROM tab1
----
-81
-81
-81
query I rowsort
SELECT + + cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - 20 * - col2 + col0 * - col0 + - col1 FROM tab2 AS cor0
----
-5498
-5623
460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col1 FROM tab2
----
90
query I rowsort
SELECT ( + 15 ) AS col2 FROM tab1
----
15
15
15
query I rowsort
SELECT - ( - 78 ) FROM tab1
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab0
----
1
query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ( - col0 ) FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8427
SELECT ALL + col0 DIV + col0 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + col0 / + col0 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - tab0.col0 + - col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - + col1 * cor0.col1 + ( col2 ) FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT - - ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + 72 + + col2 FROM tab1 AS cor0
----
126
129
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL - col2 - - tab1.col1 AS col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - col1 + - col2 * + col1 AS col1 FROM tab2
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + col1 col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 20 + - col1 AS col0 FROM tab1
----
-30
-33
-46
query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT ALL col1 DIV tab1.col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL col1 / tab1.col1 AS col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8442
SELECT col2 DIV - ( - col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8442
SELECT col2 / - ( - col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - + col0 + + 71 FROM tab0 AS cor0
----
-18
36
47
query I rowsort
SELECT DISTINCT + col0 * - ( ( col2 ) ) + col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + - cor0.col1 + + 68 AS col2 FROM tab0 AS cor0
----
-18
-23
-29
query I rowsort
SELECT DISTINCT col1 * 48 + + cor0.col0 + + col0 FROM tab2 AS cor0
----
1502
2988
974
onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT + col2 DIV col2 + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8447
SELECT + col2 / col2 + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * + 33 AS col1 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT - col2 * + 50 + - col0 AS col2 FROM tab1 AS cor0
----
-2703
-2914
-4880
query I rowsort
SELECT + col1 + ( + col1 ) - col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col1 + - ( - cor0.col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT col1 - - cor0.col1 * 16 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT col1 * col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * 28 AS col2 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT + - col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + ( + 21 ) + + col0 * - col0 * + cor0.col2 FROM tab0 AS cor0
----
-1204
-18987
-649501
query I rowsort
SELECT + 5 AS col1 FROM tab2 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 4 * + col0 + 94 col1 FROM tab1 AS cor0
----
130
16478
25694
query I rowsort
SELECT ALL - 62 + - 40 FROM tab1 AS cor0
----
-102
-102
-102
query I rowsort
SELECT ALL ( - col2 ) + col1 * + 33 FROM tab2 AS cor0
----
1921
523
996
query I rowsort
SELECT ALL + 65 - - cor0.col1 FROM tab0 AS cor0
----
151
156
162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8467
SELECT DISTINCT ( + 44 ) * col1 DIV - ( - ( cor0.col1 ) + col2 ) FROM tab0 AS cor0
----
44
444
71
skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT ( + 44 ) * col1 / - ( - ( cor0.col1 ) + col2 ) FROM tab0 AS cor0
----
44
444
71
query I rowsort
SELECT DISTINCT col1 + + 99 * col0 * ( + 75 ) AS col1 FROM tab0 AS cor0
----
178286
259972
660916
query I rowsort
SELECT ( + col1 ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - col1 + 47 FROM tab2 cor0
----
106
64
78
query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - col2 * - col0 + 92 + col2 AS col1 FROM tab0 cor0
----
128
7472
917
query I rowsort
SELECT 62 AS col1 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col2 * - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab1 AS cor0
----
-28
query I rowsort
SELECT ALL 20 * - col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT + ( 99 ) FROM tab1
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( + col0 * tab1.col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 * + col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT tab2.col2 + col2 FROM tab2
----
52
54
76
query I rowsort
SELECT col0 * - 96 FROM tab0
----
-2304
-3360
-8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8486
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8486
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - + ( 1 ) * col0 * 81 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL - ( + 73 ) * + col0 AS col0 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT ALL ( col0 * + col0 + col2 ) AS col1 FROM tab2
----
6110
6279
76
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab0 AS cor0
----
12
query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT + 12 * - col1 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT ALL - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL cor0.col2 + col2 DIV 20 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL cor0.col2 + col2 / 20 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - col0 * cor0.col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + cor0.col2 * 36 + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
1154
2886
4291
query I rowsort
SELECT ALL + 0 * col1 + col2 AS col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT + col0 * + cor0.col2 * - col1 + col1 * col2 FROM tab0 AS cor0
----
-3298
-65274
-656656
query I rowsort
SELECT + + col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( 91 ) - - col0 * + col0 col1 FROM tab0 AS cor0
----
1316
15383
3579
onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT DISTINCT - cor0.col2 DIV + col0 col1 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - cor0.col2 / + col0 col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL - col2 * - col1 - - 49 AS col2 FROM tab0 AS cor0
----
146
2887
7511
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT DISTINCT - - col0 + col1 * 67 AS col0 FROM tab1 AS cor0
----
1745
734
951
query I rowsort
SELECT ALL + col2 + col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT ALL - - col0 DIV + col0 + cor0.col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - - col0 / + col0 + cor0.col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + - col2 col1 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT + cor0.col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT cor0.col2 - - 45 FROM tab2 cor0
----
71
72
83
query I rowsort
SELECT - col1 * - cor0.col2 * - col0 - cor0.col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + 27 col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT DISTINCT - col1 - - ( col1 ) * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + col2 * + ( - col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - cor0.col0 + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT DISTINCT col1 DIV 77 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT col1 / 77 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 60 * + col0 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
11313
121654
180082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8524
SELECT - CAST( NULL AS SIGNED ) * + 7 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8524
SELECT - CAST ( NULL AS INTEGER ) * + 7 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 + 42 FROM tab0
----
131
66
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8526
SELECT tab1.col2 DIV - 81 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8526
SELECT tab1.col2 / - 81 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col1 col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + col1 * 74 + col0 AS col2 FROM tab1 AS cor0
----
1042
1927
804
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT cor0.col0 DIV - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 42d6a853c75c73962a6a77b7f5faa91b
skipif mysql # not compatible
query I rowsort label-8529
SELECT cor0.col0 / - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 42d6a853c75c73962a6a77b7f5faa91b
query I rowsort
SELECT + cor0.col2 - + 49 * - col1 AS col2 FROM tab1 AS cor0
----
1328
547
733
query I rowsort
SELECT - 1 * col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col2 col1 FROM tab1 AS cor0
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - tab1.col1 + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - 62 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-53
4034
6338
query I rowsort
SELECT 52 FROM tab2 AS cor0
----
52
52
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8537
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
query I rowsort
SELECT DISTINCT + col1 * col0 + ( - col2 ) + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
186
4231
8624
query I rowsort
SELECT - col0 + col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col1 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - 4 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT + cor0.col1 + - ( - 13 ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0fc0b8c6cec91380bebfb6faf7664597
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col0 ) col1 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8553
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 - - col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 - col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + 97 * col2 FROM tab0 AS cor0
----
3201
7954
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT - col0 DIV col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8558
SELECT - col0 / col2 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * - col0 + - col2 col2 FROM tab0 AS cor0
----
-1689
-2416
-6223
query I rowsort
SELECT ( col0 ) * 82 * - col1 AS col0 FROM tab2 AS cor0
----
-110126
-17794
-377364
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT + 87 * col1 * col1 + - 70 DIV + col1 AS col2 FROM tab1 AS cor0
----
14698
58810
8693
skipif mysql # not compatible
query I rowsort label-8562
SELECT + 87 * col1 * col1 + - 70 / + col1 AS col2 FROM tab1 AS cor0
----
14698
58810
8693
onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT - cor0.col1 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8563
SELECT - cor0.col1 / - col0 AS col0 FROM tab1 cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8564
SELECT DISTINCT cor0.col1 * CAST( 93 + cor0.col1 AS SIGNED ) DIV col0 col1 FROM tab0 AS cor0
----
188
526
641
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT cor0.col1 * CAST ( 93 + cor0.col1 AS INTEGER ) / col0 col1 FROM tab0 AS cor0
----
188
526
641
query I rowsort
SELECT - col0 * + col1 * + col2 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT cor0.col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8567
SELECT - col2 DIV - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8567
SELECT - col2 / - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab2 AS cor0
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + 57 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT + - cor0.col0 * col2 + + 28 * + col2 * col0 FROM tab2 cor0
----
5103
54756
81054
query I rowsort
SELECT DISTINCT - col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8576
SELECT CAST( NULL AS SIGNED ) + ( + cor0.col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8576
SELECT CAST ( NULL AS INTEGER ) + ( + cor0.col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 48 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT 1 * - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL 50 FROM tab0
----
50
50
50
query I rowsort
SELECT DISTINCT 38 FROM tab0
----
38
query I rowsort
SELECT ALL - 65 AS col0 FROM tab2 AS cor0
----
-65
-65
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
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 - 80 FROM tab2 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + + ( 15 ) FROM tab2 AS cor0
----
6099
6256
64
query I rowsort
SELECT col1 * + 38 - col1 FROM tab2
----
1147
2183
629
query I rowsort
SELECT DISTINCT ( - ( col2 ) ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col2 + col1 * - col1 AS col2 FROM tab0
----
-7363
-8199
-9408
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab0
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + 62 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ALL 34 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL - + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 16 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8597
SELECT DISTINCT - col1 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - col1 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - col1 - - col0 * ( 11 ) FROM tab0 AS cor0
----
178
288
888
query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + cor0.col2 + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - cor1.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + cor0.col1 + - col1 * + 15 * col1 - - col1 * 49 col1 FROM tab0 AS cor0
----
-108790
-127855
-139777
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 25 FROM tab0 AS cor0
----
25
query I rowsort
SELECT - + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8607
SELECT + col1 + + col2 DIV + ( cor0.col0 + col2 * - 89 ) AS col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8607
SELECT + col1 + + col2 / + ( cor0.col0 + col2 * - 89 ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 67 + - col0 FROM tab2
----
-11
-12
60
query I rowsort
SELECT - - cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - 64 FROM tab0
----
-64
query I rowsort
SELECT col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL + col0 * + col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 72 AS col0 FROM tab2
----
72
72
72
query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - ( 16 ) AS col1 FROM tab1 AS cor0
----
-16
-16
-16
query I rowsort
SELECT - col1 * - 95 FROM tab0 cor0
----
8170
8645
9215
query I rowsort
SELECT ALL col0 + + col2 * + col2 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT + 82 * + col2 AS col0 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT + - col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT ( - 15 ) FROM tab0 AS cor0
----
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT DISTINCT col2 * col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT col2 * col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
80
9
query I rowsort
SELECT + ( - col0 ) * + col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 78 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - col2 * + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * + col0 + - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT col0 + 33 FROM tab2
----
111
112
40
query I rowsort
SELECT ALL tab2.col1 + 27 * col1 FROM tab2
----
1652
476
868
query I rowsort
SELECT ALL - col2 + col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL col0 + + col2 * col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + tab1.col2 * + col1 + - col0 + + col2 AS col1 FROM tab1
----
1264
1455
563
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT 1 FROM tab0, tab0 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8633
SELECT ALL - CAST( col2 AS SIGNED ) * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL - CAST ( col2 AS INTEGER ) * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 51 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-110
-68
-82
query I rowsort
SELECT ALL - col1 + + cor0.col1 * + col2 + - col2 FROM tab0 AS cor0
----
-1
2719
7289
query I rowsort
SELECT + col2 + 37 FROM tab0 AS cor0
----
119
38
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8637
SELECT ALL - + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - + 28 * col0 + - cor0.col0 * ( col1 ) + col2 FROM tab1 AS cor0
----
-108
-2375
-3184
query I rowsort
SELECT DISTINCT + - 47 + - ( - col2 ) FROM tab1 AS cor0
----
10
49
7
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 43 * col2 + - col0 * - col0 FROM tab2 AS cor0
----
1210
7202
7875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8643
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 40 * 89 AS col1 FROM tab0 AS cor0
----
3560
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 ALL - 78 * 20 + + col1 AS col2 FROM tab2 AS cor0
----
-1501
-1529
-1543
query I rowsort
SELECT col0 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col2 + + cor0.col1 - 56 AS col0 FROM tab0 AS cor0
----
117
42
63
query I rowsort
SELECT col0 * + col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + 32 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT ALL ( + col1 ) * ( - col1 ) * col0 + + col0 + col0 DIV + tab0.col2 FROM tab0
----
-177480
-329245
-736919
skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL ( + col1 ) * ( - col1 ) * col0 + + col0 + col0 / + tab0.col2 FROM tab0
----
-177480
-329245
-736919
query I rowsort
SELECT ALL tab2.col2 + + col1 + - ( tab2.col2 ) FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT 82 + col0 * - 47 FROM tab0
----
-1046
-1563
-4101
query I rowsort
SELECT + col0 * col1 + col1 * - col2 * + ( col1 ) FROM tab2
----
-25730
-85904
-9639
query I rowsort
SELECT - + col0 + 64 * - col0 FROM tab1 cor0
----
-195
-4160
-5200
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 + - 52 FROM tab2 AS cor0
----
-21
-35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8663
SELECT ALL - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - col0 / - col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col1 * + ( - col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 + + ( + col1 ) AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8668
SELECT DISTINCT col2 DIV + col2 - col1 col0 FROM tab0 cor0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT col2 / + col2 - col1 col0 FROM tab0 cor0
----
-85
-90
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8669
SELECT DISTINCT - - col2 * CAST( 48 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1248
1296
1824
skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - - col2 * CAST ( 48 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1248
1296
1824
query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col0 * 28 AS col0 FROM tab1 AS cor0
----
1792
2240
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8672
SELECT col1 - - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8672
SELECT col1 - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 + 40 AS col0 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT DISTINCT 97 FROM tab1, tab0 AS cor0, tab2, tab2 cor1
----
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT DISTINCT - CAST( - 12 AS SIGNED ) DIV tab0.col2 FROM tab0
----
0
12
skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - CAST ( - 12 AS INTEGER ) / tab0.col2 FROM tab0
----
0
12
query I rowsort
SELECT - 36 FROM tab1 cor0
----
-36
-36
-36
query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL cor0.col0 + - col0 * + col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8679
SELECT - CAST( NULL AS SIGNED ) / + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8679
SELECT - CAST ( NULL AS INTEGER ) / + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + 77 + col0 FROM tab2 cor0
----
-70
1
2
query I rowsort
SELECT + - 17 * 5 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL + 9 AS col1 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT + - col0 * - 18 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT ALL - 12 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL + 14 + col2 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT ALL 19 AS col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT DISTINCT - - 26 FROM tab2 cor0
----
26
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8691
SELECT + col2 DIV - col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8691
SELECT + col2 / - col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT + col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + 63 * + col0 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT ALL + 14 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT DISTINCT - + col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + 84 AS col1 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT 40 * + 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9d49b7bf46f31184356fd34c8ce9c24d
query I rowsort
SELECT + col2 + cor0.col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + 99 FROM tab1
----
99
99
99
query I rowsort
SELECT - + cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 AS col1 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * + col2 + + 19 FROM tab1 cor0
----
1267
1423
589
query I rowsort
SELECT + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col1 * col2 + 87 FROM tab1 AS cor0
----
1335
1491
657
query I rowsort
SELECT 55 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT + cor0.col2 + - col0 DIV + col2 FROM tab0 cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-8707
SELECT + cor0.col2 + - col0 / + col2 FROM tab0 cor0
----
-34
33
81
query I rowsort
SELECT + cor0.col0 * 37 FROM tab1, tab1 cor0
----
9 values hashing to ee43450a85e4c5537da3c485e3261ec5
query I rowsort
SELECT ALL + col2 - - col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - tab1.col2 * + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
query I rowsort
SELECT - col1 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - 83 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
303
5369
6736
query I rowsort
SELECT col0 + col1 * + tab1.col0 * 32 FROM tab1
----
20544
2499
33360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - - 7 * - col1 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT - cor1.col0 * - cor0.col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 220064493ff9775ff1f87429d726f896
query I rowsort
SELECT DISTINCT - - tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT ( + col0 ) + col0 * col1 * - col1 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT 71 AS col2 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 93 * col2 AS col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT DISTINCT col2 + 12 AS col2 FROM tab2 AS cor0
----
38
39
50
query I rowsort
SELECT ALL + 35 * col2 * col1 FROM tab2 cor0
----
22610
29295
53690
query I rowsort
SELECT ALL + col1 * 7 AS col0 FROM tab0 AS cor0
----
602
637
679
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2
query I rowsort
SELECT ALL col0 * + ( - col0 ) AS col0 FROM tab0
----
-1225
-576
-7921
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to 6ded4c0aadfac9b707bc14bb07d5a5b5
query I rowsort
SELECT + col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT + col0 DIV col0 col1 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8731
SELECT + col0 / col0 col1 FROM tab1 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8732
SELECT + CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8732
SELECT + CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab2, tab0 cor0
----
11
query I rowsort
SELECT DISTINCT - col0 - + col0 * col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL + 0 - tab2.col1 * + col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - 68 + + tab2.col2 - col0 AS col1 FROM tab2
----
-109
-120
-48
query I rowsort
SELECT ALL col2 * col2 - tab0.col2 * + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - ( + cor0.col1 ) * - col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 col2 FROM tab0 AS cor0
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 78 + col2 FROM tab2
----
104
105
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab2
----
0
query I rowsort
SELECT col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 10 * + 62 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
620
query I rowsort
SELECT col0 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + 94 * cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a8ff27eaba60dc95eec72ec329e7440a
query I rowsort
SELECT ALL + 11 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT + + cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - cor0.col2 * + cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT col2 + col2 DIV col1 + 25 AS col2 FROM tab1 AS cor0
----
128
81
87
skipif mysql # not compatible
query I rowsort label-8753
SELECT col2 + col2 / col1 + 25 AS col2 FROM tab1 AS cor0
----
128
81
87
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT ALL - cor0.col1 * col1 + + 58 DIV + col2 AS col0 FROM tab1 AS cor0
----
-169
-675
-99
skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - cor0.col1 * col1 + + 58 / + col2 AS col0 FROM tab1 AS cor0
----
-169
-675
-99
query I rowsort
SELECT cor0.col0 * - 39 AS col0 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT - col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 * 81 AS col2 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT + 94 * + col1 * 54 FROM tab2
----
157356
299484
86292
query I rowsort
SELECT DISTINCT - col2 * 56 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col2 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + col2 + - 56 AS col2 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT DISTINCT + col2 + + col0 - col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + cor0.col1 * 91 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT ALL - + col1 + 15 * col2 AS col1 FROM tab1 AS cor0
----
1427
784
845
query I rowsort
SELECT DISTINCT col0 - + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT tab0.col2 * ( col2 ) + col1 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL + col1 * 4 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1173
13983
3875
query I rowsort
SELECT DISTINCT - col2 + ( - 97 ) FROM tab1 AS cor0
----
-151
-154
-193
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 - ( col1 ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + + ( - cor0.col1 * 87 ) FROM tab1 AS cor0
----
-1510
-2171
-2340
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT - col2 + + 86 AS col0 FROM tab1 AS cor0
----
-10
29
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 61 + + col0 col1 FROM tab0 cor0
----
5270
5640
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-8777
SELECT col1 * 86 + + col2 DIV + col2 FROM tab1 cor0
----
1119
2237
861
skipif mysql # not compatible
query I rowsort label-8777
SELECT col1 * 86 + + col2 / + col2 FROM tab1 cor0
----
1119
2237
861
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT ALL - col1 DIV - 35 + col1 + + col2 FROM tab2 cor0
----
55
58
86
skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - col1 / - 35 + col1 + + col2 FROM tab2 cor0
----
55
58
86
query I rowsort
SELECT col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8782
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 / col1 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 / col1 col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT ALL 14 DIV + col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL 14 / + col2 + cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col2 + - ( + col1 ) * - tab0.col2 AS col0 FROM tab0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT tab2.col1 / - CAST( NULL AS SIGNED ) + + col2 * col1 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8785
SELECT tab2.col1 / - CAST ( NULL AS INTEGER ) + + col2 * col1 * - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 60 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT DISTINCT col1 DIV - ( col2 + + col2 ) AS col1 FROM tab0
----
-1
-48
0
skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT col1 / - ( col2 + + col2 ) AS col1 FROM tab0
----
-1
-48
0
query I rowsort
SELECT + col2 * col0 + ( + 89 ) * + col2 - ( + col0 ) FROM tab0 cor0
----
14507
3705
89
query I rowsort
SELECT ALL + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - - col2 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + - col1 * col2 + col1 + + col0 FROM tab0 AS cor0
----
-2728
-7282
35
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - 88 FROM tab0 AS cor0
----
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT ALL + col0 * - col1 + + CAST( 24 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-1272
-3371
-6131
skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + col0 * - col1 + + CAST ( 24 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-1272
-3371
-6131
query I rowsort
SELECT ALL - 30 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT + - 93 + col2 - cor0.col2 AS col1 FROM tab0 cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL 66 AS col2 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT - 43 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + tab1.col0 - - col1 * col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT ( col1 ) DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8804
SELECT ( col1 ) / col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + - 74 * + col1 - + col2 col0 FROM tab1
----
-1884
-703
-964
query I rowsort
SELECT 13 + - col0 * 11 AS col2 FROM tab1 AS cor0
----
-20
-691
-867
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT ( 48 ) FROM tab2
----
48
query I rowsort
SELECT DISTINCT ( - 88 ) * col0 FROM tab2
----
-616
-6864
-6952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab1
----
-51
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT col0 + col0 - 87 FROM tab1
----
-81
41
73
query I rowsort
SELECT + 24 * tab0.col1 AS col1 FROM tab0
----
2064
2184
2328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8815
SELECT 96 * col0 * + ( col0 ) + + col1 + - CAST( NULL AS SIGNED ) * + col0 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8815
SELECT 96 * col0 * + ( col0 ) + + col1 + - CAST ( NULL AS INTEGER ) * + col0 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - - col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + cor0.col1 * col2 + 44 - - 12 FROM tab0 AS cor0
----
153
2894
7518
query I rowsort
SELECT 49 AS col2 FROM tab0 AS cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8820
SELECT DISTINCT + col2 * - col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT + col2 * - col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 18 * - 76 - cor0.col0 FROM tab1 cor0
----
-1371
-1432
-1448
query I rowsort
SELECT 96 + + ( - col0 ) * - col0 AS col0 FROM tab2 cor0
----
145
6180
6337
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - ( + 84 ) FROM tab2
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT ALL + col1 DIV + col0 + - col2 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + col1 / + col0 + - col2 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT DISTINCT + col2 * + 35 AS col1 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT ALL 36 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8828
SELECT - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * - col0 col1 FROM tab2
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8831
SELECT ALL - CAST( NULL AS SIGNED ) * tab2.col1 + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - CAST ( NULL AS INTEGER ) * tab2.col1 + + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col2 * - col2 - - col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
38775
558830
98
query I rowsort
SELECT + ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 + col0 col2 FROM tab2 cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT col0 + - col0 DIV - col1 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-8835
SELECT col0 + - col0 / - col1 FROM tab1 AS cor0
----
3
70
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 66 col2 FROM tab0
----
1584
2310
5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT ( tab1.col2 ) DIV + col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8837
SELECT ( tab1.col2 ) / + col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ( - col2 ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + 63 FROM tab0
----
63
63
63
query I rowsort
SELECT ALL 65 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + col1 * - 52 AS col2 FROM tab1 AS cor0
----
-1352
-520
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 14 col2 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT - col1 + + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL col0 * - col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - + cor0.col0 * - 16 AS col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT - 87 + col0 FROM tab2
----
-8
-80
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab2
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT - tab1.col2 DIV - col0 + col0 * col1 AS col2 FROM tab1
----
1041
640
96
skipif mysql # not compatible
query I rowsort label-8848
SELECT - tab1.col2 / - col0 + col0 * col1 AS col2 FROM tab1
----
1041
640
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT ALL col0 DIV - col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL col0 / - col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT ( col1 + - 41 ) * 27 * col0 FROM tab0
----
120150
29160
52920
query I rowsort
SELECT DISTINCT ( - 0 ) FROM tab0, tab2 AS cor0
----
0
query I rowsort
SELECT 59 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT DISTINCT - col2 * + col2 DIV col2 + - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - col2 * + col2 / col2 + - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL col0 * cor0.col1 + - col2 * col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT - col0 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT DISTINCT - - col2 DIV ( col0 ) + col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - - col2 / ( col0 ) + col2 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 - - 19 FROM tab2 AS cor0
----
-43
0
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - ( col1 ) col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8860
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab2.col1 * + col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT + - col1 + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * tab2.col0 col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col2 + tab0.col1 * col1 col1 FROM tab0
----
10635
16284
8005
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab1, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col1 * - col0 * + col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col0 * - col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT cor0.col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + - cor0.col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * + col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 52 AS col1 FROM tab2
----
52
52
52
query I rowsort
SELECT + 77 * - col2 AS col0 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT + + 90 + col2 FROM tab1 cor0
----
144
147
186
query I rowsort
SELECT col2 * cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - - col2 + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col1 * - col1 * col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
18818
251464
687323
onlyif mysql # use DIV operator for integer division
query I rowsort label-8888
SELECT - col2 DIV cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-8888
SELECT - col2 / cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT - + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT - 68 DIV col2 - col0 FROM tab1 AS cor0
----
-4
-65
-80
skipif mysql # not compatible
query I rowsort label-8890
SELECT - 68 / col2 - col0 FROM tab1 AS cor0
----
-4
-65
-80
query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col2 * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT - + col2 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-8895
SELECT - + col2 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT col1 * col0 * - col0 + col2 FROM tab0 AS cor0
----
-118824
-49503
-720729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8897
SELECT + + col0 DIV cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-8897
SELECT + + col0 / cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT ( + col2 ) + + 21 FROM tab0 AS cor0
----
103
22
54
query I rowsort
SELECT ALL - cor0.col0 * col1 + + 6 FROM tab2 AS cor0
----
-1337
-211
-4596
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 - col2 * 31 * col1 AS col1 FROM tab2 AS cor0
----
-18582
-25218
-46878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * cor0.col0 + + ( + col2 ) FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - - col0 * - col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + col1 - - col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col2 * col1 - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + 84 * + cor0.col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8908
SELECT ALL + col1 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + col1 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) + - ( col1 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 50 + + col1 AS col1 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 92 * col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT ALL - 54 FROM tab0 cor0
----
-54
-54
-54
query I rowsort
SELECT - - ( col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8916
SELECT ALL + - col2 + col0 DIV + CAST( - 89 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + - col2 + col0 / + CAST ( - 89 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col2 col1 FROM tab0
----
2706
6724
82
query I rowsort
SELECT ALL 18 * col1 + - col0 FROM tab2
----
227
551
984
query I rowsort
SELECT ALL col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT DISTINCT cor0.col0 DIV cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT cor0.col0 / cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL - + cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - - col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 75 AS col1 FROM tab2
----
75
75
75
query I rowsort
SELECT 64 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + 99 AS col2 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT ALL + ( - 36 ) FROM tab2, tab0 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT DISTINCT + 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
73
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL 29 + 60 * - cor0.col2 FROM tab1 AS cor0
----
-3211
-3391
-5731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8933
SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT + tab1.col0 - col2 AS col1 FROM tab1
----
-16
-51
7
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT col1 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8937
SELECT col1 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col1 + + 29 - col0 AS col1 FROM tab1
----
-45
-64
0
query I rowsort
SELECT - ( col2 ) + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT 84 * + col0 AS col1 FROM tab0
----
2016
2940
7476
query I rowsort
SELECT ALL + col2 + 26 FROM tab1
----
122
80
83
query I rowsort
SELECT - 58 * - col2 + - col1 AS col1 FROM tab1
----
3106
3296
5555
query I rowsort
SELECT DISTINCT 28 + col2 FROM tab2
----
54
55
66
query I rowsort
SELECT col0 + col1 * + col1 + - col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT tab2.col0 + + 13 AS col1 FROM tab2
----
20
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT DISTINCT col0 + 35 DIV + col0 AS col2 FROM tab0
----
25
36
89
skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT col0 + 35 / + col0 AS col2 FROM tab0
----
25
36
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 60 + + col1 col0 FROM tab1
----
1586
610
793
query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + col2 + 82 FROM tab1 AS cor0
----
-14
25
28
query I rowsort
SELECT DISTINCT - 85 * + 74 FROM tab0 AS cor0
----
-6290
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * - col2 + - 57 * + col1 FROM tab1 AS cor0
----
-1140
-1989
-2886
query I rowsort
SELECT ALL - col1 * - col1 * col2 - ( 59 ) FROM tab1 AS cor0
----
16165
36445
5641
query I rowsort
SELECT - 8 FROM tab2 cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8956
SELECT - col0 DIV - col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8956
SELECT - col0 / - col2 AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT - col1 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT ( col0 ) + tab2.col2 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 73 + col0 col2 FROM tab0 cor0
----
108
2433
6075
query I rowsort
SELECT DISTINCT + 53 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT ALL - 56 + col1 AS col2 FROM tab2 AS cor0
----
-25
-39
3
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + 58 * col0 AS col0 FROM tab0 AS cor0
----
1392
2030
5162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + col0 + col2 * - 36 AS col1 FROM tab0 AS cor0
----
-1
-1164
-2863
query I rowsort
SELECT - 82 - - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1558bec402feed233757717a091a2207
query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - 82 * col2 FROM tab1
----
-4428
-4674
-7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT DISTINCT - + 47 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-39
-47
skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - + 47 + col1 / col0 AS col1 FROM tab1 AS cor0
----
-39
-47
query I rowsort
SELECT - + ( col0 ) + + cor0.col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + col2 + col1 * col0 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - col2 + col0 + - col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 84 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - col0 * + 65 + 94 FROM tab1
----
-101
-4066
-5106
query I rowsort
SELECT ALL + 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT - + col1 * ( + col2 * col0 + col0 ) FROM tab2 AS cor0
----
-124254
-52377
-6076
query I rowsort
SELECT ALL - col0 * - col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - col1 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL cor0.col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 16 col0 FROM tab2 AS cor0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8989
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 + col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 + col0 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT DISTINCT - cor0.col0 + 32 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - cor0.col0 + 32 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT - col1 * - 88 + + col0 - ( col0 ) AS col0 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT ALL + ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT - col0 DIV - col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8993
SELECT - col0 / - col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - 12 * - col2 - col2 * col2 AS col2 FROM tab0 AS cor0
----
-5740
-693
11
query I rowsort
SELECT ALL - + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 + - col1 col0 FROM tab1 AS cor0
----
48
61
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-8997
SELECT DISTINCT cor0.col1 + + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT cor0.col1 + + col0 / col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT + ( col0 ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8999
SELECT ALL + ( 27 ) + cor0.col2 DIV col0 col0 FROM tab1 cor0
----
27
28
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + ( 27 ) + cor0.col2 / col0 col0 FROM tab1 cor0
----
27
28
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 8 ) col0 FROM tab2 AS cor0
----
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9001
SELECT ( 86 ) DIV cor0.col1 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9001
SELECT ( 86 ) / cor0.col1 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT 97 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-9004
SELECT 97 / - col0 FROM tab0 AS cor0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT DISTINCT + col2 DIV + 95 col2 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + col2 / + 95 col2 FROM tab2
----
0
query I rowsort
SELECT col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col0 - + col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT col1 * + col2 - col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT col2 - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ( 15 ) FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT 82 FROM tab1, tab2 cor0, tab0 AS cor1
----
82
query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab1 AS cor0
----
-9
query I rowsort
SELECT col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col0 - - col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - col1 * 65 + - col2 FROM tab2 AS cor0
----
-1143
-2042
-3861
query I rowsort
SELECT ALL cor0.col2 - 17 FROM tab0 AS cor0
----
-16
16
65
query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 57 AS col1 FROM tab1 cor0
----
57
57
57
query I rowsort
SELECT ( - ( + col2 ) ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + ( + col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - ( + 87 ) FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - 60 * col1 AS col1 FROM tab0 cor0
----
-5160
-5460
-5820
query I rowsort
SELECT - + 48 AS col1 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + 5 * + col0 + col1 * + col1 FROM tab2 AS cor0
----
3871
684
996
query I rowsort
SELECT ALL 43 AS col1 FROM tab1 cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT + ( + col1 ) DIV 79 + - 26 AS col2 FROM tab0 AS cor0
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-9026
SELECT + ( + col1 ) / 79 + - 26 AS col2 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + - 79 * + cor0.col2 + - col1 FROM tab1 AS cor0
----
-4292
-4513
-7597
query I rowsort
SELECT cor0.col1 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT ALL - cor0.col0 DIV col0 + + 28 * - cor0.col1 FROM tab2 AS cor0
----
-1653
-477
-869
skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - cor0.col0 / col0 + + 28 * - cor0.col1 FROM tab2 AS cor0
----
-1653
-477
-869
query I rowsort
SELECT DISTINCT - col1 * col2 - + col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL + col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + 28 * + col0 + col2 * + 48 - col2 AS col1 FROM tab1 AS cor0
----
2622
4471
6752
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 + 48 FROM tab1 AS cor0
----
-2868
-3201
-9168
query I rowsort
SELECT - 85 + + col1 AS col0 FROM tab1 AS cor0
----
-59
-72
-75
query I rowsort
SELECT ALL - col1 + - col0 * 51 AS col2 FROM tab0 AS cor0
----
-1310
-1882
-4630
query I rowsort
SELECT + + cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + - col0 * + ( - col2 ) * - col1 col0 FROM tab1 cor0
----
-2808
-35910
-98592
query I rowsort
SELECT DISTINCT + col2 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT DISTINCT + - 51 + col2 DIV + 85 FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + - 51 + col2 / + 85 FROM tab2 AS cor0
----
-51
query I rowsort
SELECT + col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + - cor0.col0 * - col1 + cor0.col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT col1 * col2 - - ( - 3 ) AS col2 FROM tab1 AS cor0
----
1245
1401
567
query I rowsort
SELECT - ( - col0 ) * cor0.col2 + + 12 AS col1 FROM tab1 AS cor0
----
174
3660
7692
query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + col0 * + 56 FROM tab1 AS cor0
----
168
3584
4480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT ALL col2 DIV col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL col2 / col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * - col0 ) col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - col1 * col2 * 52 AS col2 FROM tab0
----
-147576
-388024
-5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9056
SELECT ALL col0 + CAST( 72 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
107
2400
5993
skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL col0 + CAST ( 72 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
107
2400
5993
query I rowsort
SELECT - 36 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT 68 * - col2 FROM tab0
----
-2244
-5576
-68
query I rowsort
SELECT ( - col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + ( cor0.col0 * tab1.col0 ) + 31 - 28 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 431b6abb58b7d36b8fe4c9c33c3d214f
query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL 14 FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + col1 * ( col0 ) + col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT - col2 + cor0.col2 * + ( col0 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + 70 AS col1 FROM tab2
----
101
129
87
query I rowsort
SELECT ALL col2 * + tab0.col1 + col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + ( col1 * + col1 ) + - col0 + col1 AS col0 FROM tab2
----
227
3462
985
query I rowsort
SELECT DISTINCT 56 * tab2.col1 + + 25 AS col1 FROM tab2, tab2 cor0
----
1761
3329
977
query I rowsort
SELECT DISTINCT - + col1 FROM tab2 cor0
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2, tab2 cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT - col2 DIV col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9073
SELECT - col2 / col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL 28 AS col2 FROM tab1
----
28
28
28
query I rowsort
SELECT + + col2 * cor0.col0 + + col0 - + 71 AS col0 FROM tab0 AS cor0
----
-1
7316
745
query I rowsort
SELECT - 4 + col2 AS col2 FROM tab2 AS cor0
----
22
23
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - col1 + + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + + 86 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
7429
7908
8343
query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + col0 * + col0 + col0 + + col2 AS col0 FROM tab0
----
1261
633
8092
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + tab0.col0 NOT BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + - tab2.col0 col2 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT ALL col2 * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * col2 + col1 * col0 FROM tab0
----
1375
3394
975
query I rowsort
SELECT - col1 * col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL - tab1.col1 * col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col2 * col1 + tab1.col0 * col0 + tab1.col0 * + tab1.col1 FROM tab1
----
1491
5306
8688
query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT + col0 DIV col0 + + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9093
SELECT + col0 / col0 + + col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT + col0 * + col0 * - col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT - col1 + + col0 * + col1 * - col2 AS col2 FROM tab0
----
-3492
-664209
-68198
query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT + col0 DIV - col2 + - col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-9097
SELECT + col0 / - col2 + - col2 FROM tab0
----
-33
-36
-83
query I rowsort
SELECT ALL + col2 + col1 * + col1 * col1 FROM tab1
----
1057
17630
2293
query I rowsort
SELECT ALL cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - + col2 * - col1 + 86 FROM tab1 cor0
----
1334
1490
656
query I rowsort
SELECT ALL + ( - col1 ) * 5 + - col0 FROM tab2 cor0
----
-162
-164
-373
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 43 * col2 + 72 FROM tab0 AS cor0
----
-1347
-3454
29
query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab2 AS cor0
----
31
query I rowsort
SELECT ALL - col2 * col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col0 * + col1 * col0 AS col2 FROM tab1
----
-234
-40960
-83200
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 / - col2 + col0 + + col1 ) < NULL
----
query I rowsort
SELECT col0 + tab1.col2 * col0 * col0 + col0 FROM tab1
----
233600
492
614560
query I rowsort
SELECT + col0 * col2 * + col2 FROM tab0
----
26136
35
598436
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( tab2.col2 )
----
query I rowsort
SELECT ALL + col0 * - col2 FROM tab1 WHERE NOT - col0 + + col0 * col0 = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col1 - + tab2.col1 * col2 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT - col1 - tab1.col1 * - col0 AS col2 FROM tab1
----
1027
52
630
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( col2 + col0 ) AND NULL
----
query I rowsort
SELECT col2 * - col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL <= ( + tab1.col2 )
----
query I rowsort
SELECT DISTINCT col1 * - col0 * + col0 AS col0 FROM tab1 cor0
----
-234
-40960
-83200
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT - col2 + + tab1.col0 AS col2 FROM tab1 WHERE NOT col1 IN ( + tab1.col2 * - col2 * col1 )
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 * col1 + col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT - col1 + col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col0 + - tab0.col2 AS col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT + tab1.col0 DIV col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9128
SELECT + tab1.col0 / col2 FROM tab1
----
0
0
1
query I rowsort
SELECT tab0.col2 * col2 * + col2 AS col0 FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 * col2 FROM tab2
----
-540
1352
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT + col1 * col1 DIV col0 FROM tab1
----
1
2
225
skipif mysql # not compatible
query I rowsort label-9131
SELECT + col1 * col1 / col0 FROM tab1
----
1
2
225
query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 * - col1 * col2 + + col1 AS col1 FROM tab0
----
-245071
-685675
-9313
onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT ALL tab2.col2 DIV col1 AS col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL tab2.col2 / col1 AS col1 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT DISTINCT - tab1.col1 DIV - col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - tab1.col1 / - col0 FROM tab1
----
0
8
query I rowsort
SELECT col0 * + tab1.col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col2 + col1 + - col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT DISTINCT - col2 DIV + col1 AS col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - col2 / + col1 AS col1 FROM tab2
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT ALL col0 DIV col2 + col0 + col0 * tab0.col1 FROM tab0
----
2088
3465
8189
skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL col0 / col2 + col0 + col0 * tab0.col1 FROM tab0
----
2088
3465
8189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 61 + - col2 + col0 col0 FROM tab1 AS cor0
----
-234
-3897
-4896
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT ALL + + cor0.col0 * + 50 AS col1 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT ALL col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 * ( col0 ) AS col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9145
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 76 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to b23dcf09bd451edc0ca7fab87fb7310e
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT - col0 DIV 11 FROM tab0
----
-2
-3
-8
skipif mysql # not compatible
query I rowsort label-9151
SELECT - col0 / 11 FROM tab0
----
-2
-3
-8
query I rowsort
SELECT ALL + 32 + tab2.col2 AS col2 FROM tab2
----
58
59
70
query I rowsort
SELECT ALL - col1 + 46 AS col1 FROM tab0
----
-40
-45
-51
query I rowsort
SELECT cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT - tab1.col1 + 4 + tab1.col1 * col2 DIV col2 FROM tab1
----
4
4
4
skipif mysql # not compatible
query I rowsort label-9155
SELECT - tab1.col1 + 4 + tab1.col1 * col2 / col2 FROM tab1
----
4
4
4
query I rowsort
SELECT + 47 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + cor0.col0 - - col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + - col2 col0 FROM tab0 cor0
----
-1
-50
31
query I rowsort
SELECT DISTINCT 97 + + 76 * - col0 AS col0 FROM tab2 AS cor0
----
-435
-5831
-5907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 35 + - 64 * col1 col0 FROM tab1 AS cor0
----
-1629
-605
-797
query I rowsort
SELECT ALL + col0 + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 * col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT 88 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT - - ( + 87 ) + col0 * - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-113989
-5016
-52641
onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT DISTINCT + 50 * + col0 DIV col0 FROM tab1
----
50
skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + 50 * + col0 / col0 FROM tab1
----
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + tab0.col2 col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - 53 AS col1 FROM tab2
----
-53
-53
-53
query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2
----
78
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT ALL - - 59 * col2 FROM tab1 cor0
----
3186
3363
5664
query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab1, tab2, tab0 AS cor0
----
-38
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT + - col1 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9179
SELECT + - col1 / + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9180
SELECT DISTINCT + col0 DIV ( ( + col0 ) ) FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + col0 / ( ( + col0 ) ) FROM tab1 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - cor0.col1 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT + col1 * - cor0.col2 * ( - col1 * col0 ) FROM tab0 cor0
----
329315
5857632
60434738
query I rowsort
SELECT ALL + cor0.col1 + ( col2 ) AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 + ( col2 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 + + 23 AS col0 FROM tab2 AS cor0
----
101
102
30
query I rowsort
SELECT ALL + 93 FROM tab0
----
93
93
93
query I rowsort
SELECT DISTINCT + 31 FROM tab2, tab1 cor0
----
31
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) FROM tab2
----
26
27
38
query I rowsort
SELECT + - cor1.col1 + 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d6e2b381fef27025c168ab1f9bd3706f
query I rowsort
SELECT - col2 * + col2 + + ( 70 ) FROM tab2 AS cor0
----
-1374
-606
-659
query I rowsort
SELECT ALL - - 95 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT 10 * + col1 FROM tab2 AS cor0
----
170
310
590
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT - - 14 AS col0 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT - col0 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
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 - 47 * - col0 AS col2 FROM tab2 AS cor0
----
329
3666
3713
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + + 42 + - col0 col2 FROM tab1
----
-1286
-1365
-592
query I rowsort
SELECT 77 * - 65 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 0f3f53f148502d4d3b7b495a0d438eea
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + col0 * col0 + - col0 FROM tab2 cor0
----
-56
-6162
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT col0 * col2 DIV col1 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-9210
SELECT col0 * col2 / col1 FROM tab0
----
0
80
9
query I rowsort
SELECT tab1.col0 * 55 FROM tab1
----
165
3520
4400
query I rowsort
SELECT - col1 * col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + cor0.col2 + col0 + 20 * col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
26977
4374
92144
query I rowsort
SELECT col2 * col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col2 - - 51 col2 FROM tab0 AS cor0
----
-244017
-678991
-9358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9218
SELECT - CAST( + col0 AS SIGNED ) + - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
skipif mysql # not compatible
query I rowsort label-9218
SELECT - CAST ( + col0 AS INTEGER ) + - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9220
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9220
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 76 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT + - 82 * col0 AS col2 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT + col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - ( col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9225
SELECT ALL col2 + CAST( col2 * col1 AS SIGNED ) FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL col2 + CAST ( col2 * col1 AS INTEGER ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL + 56 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT col1 * 55 + + col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 25 * col0 + - col1 FROM tab1 AS cor0
----
-101
-1610
-2013
query I rowsort
SELECT - 22 FROM tab2, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT - ( col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT + - col0 * + col0 - - cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-4096
-6399
9
skipif mysql # not compatible
query I rowsort label-9232
SELECT + - col0 * + col0 - - cor0.col2 / + col0 FROM tab1 AS cor0
----
-4096
-6399
9
query I rowsort
SELECT 53 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT ALL - col2 + + 29 - + col2 AS col1 FROM tab2
----
-23
-25
-47
query I rowsort
SELECT - col2 + - ( col1 ) + tab1.col2 * col2 AS col2 FROM tab1
----
2836
3182
9107
query I rowsort
SELECT ALL - 14 FROM tab1, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT + 20 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT - col2 * - 24 + + col0 FROM tab0 AS cor0
----
2057
59
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9239
SELECT ALL - ( + col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - ( + col2 ) / col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9241
SELECT ALL + - col1 * - col0 * - CAST( NULL AS SIGNED ) + + 3 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + - col1 * - col0 * - CAST ( NULL AS INTEGER ) + + 3 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT DISTINCT col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - - col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 43 + + col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT - col1 * cor0.col0 * ( col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
-2262
-47360
-96720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9246
SELECT DISTINCT col1 * + cor0.col1 + col0 DIV - cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT col1 * + cor0.col1 + col0 / - cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + 64 * - col0 + + col2 FROM tab0 AS cor0
----
-1503
-2239
-5614
query I rowsort
SELECT + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + ( col2 ) + col2 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT - col1 + cor0.col1 * + col0 + col0 FROM tab0 AS cor0
----
2002
3333
8097
query I rowsort
SELECT DISTINCT col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( - ( col1 ) ) * + 7 AS col2 FROM tab0
----
-602
-637
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9253
SELECT CAST( NULL AS SIGNED ) * - 33 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9253
SELECT CAST ( NULL AS INTEGER ) * - 33 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 27 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775
onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT ( col0 ) DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9255
SELECT ( col0 ) / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + + 46 + col0 AS col1 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT col1 * + tab0.col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT 77 AS col1 FROM tab1
----
77
77
77
query I rowsort
SELECT - 28 AS col2 FROM tab0
----
-28
-28
-28
query I rowsort
SELECT col0 + + ( ( col0 ) ) * + 59 AS col2 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT ALL - col1 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - col1 / cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9263
SELECT - 98 + col1 * cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9263
SELECT - 98 + col1 * cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 48 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-47
1041
6676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 - + tab1.col2 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT col1 + + col1 DIV col0 FROM tab2
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9268
SELECT col1 + + col1 / col0 FROM tab2
----
17
35
59
query I rowsort
SELECT + 39 + + col0 + + ( col2 * col2 ) FROM tab1
----
2958
3352
9335
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
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 ALL - col0 + - col0 * 53 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-153
2080
640
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0, tab1
----
972 values hashing to 82e15d5967b272804e574774895a0222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 + - 0 col0 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9275
SELECT col0 + + col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9275
SELECT col0 + + col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT - col0 - + tab2.col2 AS col1 FROM tab2
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col2 + 32 FROM tab1 AS cor0
----
-22
-25
-64
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT ALL + cor0.col2 DIV - cor0.col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + cor0.col2 / - cor0.col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT + col2 + + CAST( + col1 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-9282
SELECT + col2 + + CAST ( + col1 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
-251
-3455
-934
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e3dd03163bf3bbebd049e3a988dfe640
query I rowsort
SELECT - 64 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT - col1 + + col1 * tab1.col2 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL - col1 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 + col2 * - 9 - + col0 AS col0 FROM tab2 AS cor0
----
-219
-253
-404
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 * - col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + - cor0.col0 * + 90 + col2 FROM tab0 AS cor0
----
-2127
-3149
-7928
query I rowsort
SELECT DISTINCT - + col0 + col0 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9292
SELECT DISTINCT - cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT ALL - col2 DIV + ( + col0 + cor0.col0 ) FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - col2 / + ( + col0 + cor0.col0 ) FROM tab2 cor0
----
-1
0
0
query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + 86 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT ALL + + 18 AS col2 FROM tab0 AS cor0
----
18
18
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT + CAST( ( col0 ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9301
SELECT + CAST ( ( col0 ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 44 * - 72 + - col0 FROM tab0 cor0
----
-3192
-3203
-3257
query I rowsort
SELECT + ( 41 ) AS col0 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT ALL ( 72 ) + + col0 AS col2 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT DISTINCT 38 + col1 FROM tab1 AS cor0
----
48
51
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9306
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT DISTINCT + - col2 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + - col2 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9309
SELECT + col1 DIV 8 FROM tab0 AS cor0
----
10
11
12
skipif mysql # not compatible
query I rowsort label-9309
SELECT + col1 / 8 FROM tab0 AS cor0
----
10
11
12
query I rowsort
SELECT ALL - - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * - 21 FROM tab2 AS cor0
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 48 col1 FROM tab1 AS cor0
----
48
48
48
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
query I rowsort
SELECT DISTINCT cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 75 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
3
565
965
query I rowsort
SELECT + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT + col2 DIV cor0.col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9317
SELECT + col2 / cor0.col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 72 + + col1 FROM tab0 cor0
----
158
163
169
query I rowsort
SELECT + - 22 * + col0 AS col2 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT DISTINCT col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9322
SELECT ALL col2 + col0 DIV + col0 + 97 AS col0 FROM tab1 AS cor0
----
152
155
194
skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL col2 + col0 / + col0 + 97 AS col0 FROM tab1 AS cor0
----
152
155
194
query I rowsort
SELECT ALL - - col0 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + col0 + - col0 * + ( 91 + - col0 ) FROM tab0 cor0
----
-1584
-1925
-89
query I rowsort
SELECT - 70 + - col0 FROM tab0 AS cor0
----
-105
-159
-94
query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + + 56 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - 76 FROM tab1 cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 AS col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT 73 FROM tab0 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT + - col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9333
SELECT + - col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + col2 + + col1 + 84 * - ( col0 ) FROM tab0 cor0
----
-1897
-2842
-7303
query I rowsort
SELECT ALL + col0 * cor0.col0 - + 28 FROM tab0 AS cor0
----
1197
548
7893
query I rowsort
SELECT ALL - ( col1 ) + col1 * - 71 * + col2 AS col0 FROM tab0 AS cor0
----
-201584
-529893
-6984
query I rowsort
SELECT ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - + cor0.col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 col2 FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT - 91 + + 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT DISTINCT col2 DIV + tab0.col2 col2 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT col2 / + tab0.col2 col2 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab0
----
38
38
38
query I rowsort
SELECT - 53 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT - col1 * - 64 - + col1 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT + ( - 22 ) * col1 + + col1 * 23 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + - 46 * + col2 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1459
-281
2285
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 col0 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9350
SELECT CAST( col2 AS SIGNED ) * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-9350
SELECT CAST ( col2 AS INTEGER ) * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL 61 + - col2 FROM tab0 cor0
----
-21
28
60
query I rowsort
SELECT - 36 + + 13 AS col0 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - col0 * 15 + col0 FROM tab2 AS cor0
----
-1092
-1106
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9354
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab2 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT tab2.col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
query I rowsort
SELECT ALL col1 + 33 + + col0 AS col2 FROM tab2
----
129
170
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT ALL - tab2.col0 + CAST( cor1.col1 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 64de71f07a6ba954417f781fbdd78d39
skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - tab2.col0 + CAST ( cor1.col1 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 64de71f07a6ba954417f781fbdd78d39
query I rowsort
SELECT - 67 * + col0 AS col0 FROM tab0
----
-1608
-2345
-5963
query I rowsort
SELECT DISTINCT - 74 FROM tab1
----
-74
query I rowsort
SELECT - col0 * col0 + + col1 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT ( 61 * tab1.col1 ) AS col1 FROM tab1
----
1586
610
793
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col0 * + 39 FROM tab0 AS cor0
----
1365
3471
936
query I rowsort
SELECT ALL + 98 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT + col2 + 38 AS col2 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT 89 AS col1 FROM tab2
----
89
89
89
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col1 * - col2 + - col1 * - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
194
619346
96492
query I rowsort
SELECT col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 + + col2 * - col2 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT - col2 * tab2.col1 * col1 AS col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT col2 + + col2 AS col2 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT + ( - tab1.col0 ) DIV col0 + + col0 + col0 AS col1 FROM tab1
----
127
159
5
skipif mysql # not compatible
query I rowsort label-9376
SELECT + ( - tab1.col0 ) / col0 + + col0 + col0 AS col1 FROM tab1
----
127
159
5
query I rowsort
SELECT DISTINCT tab0.col0 * - col2 + + ( + tab0.col2 ) + col2 FROM tab0
----
-33
-7134
-726
query I rowsort
SELECT + col2 * col2 * - 66 FROM tab0
----
-443784
-66
-71874
query I rowsort
SELECT - col1 * col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 + + col1 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT + col0 DIV - col1 + - col0 * - col2 FROM tab2 AS cor0
----
189
2027
2998
skipif mysql # not compatible
query I rowsort label-9384
SELECT + col0 / - col1 + - col0 * - col2 FROM tab2 AS cor0
----
189
2027
2998
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 90 * + tab0.col0 FROM tab0, tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT + col0 * - 70 * + col0 AS col2 FROM tab2
----
-3430
-425880
-436870
query I rowsort
SELECT ALL + ( col2 + col1 ) * + col2 FROM tab0
----
14186
3927
98
query I rowsort
SELECT DISTINCT - 69 FROM tab0
----
-69
query I rowsort
SELECT tab1.col2 * + col2 + col1 AS col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT 13 AS col0 FROM tab0
----
13
13
13
query I rowsort
SELECT ALL - ( 34 ) FROM tab1
----
-34
-34
-34
query I rowsort
SELECT col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + 24 * + 73 + + col2 FROM tab1
----
1806
1809
1848
query I rowsort
SELECT - 71 + - 96 FROM tab1 AS cor0
----
-167
-167
-167
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 DISTINCT - tab0.col0 FROM tab0, tab2 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * col0 * 91 AS col0 FROM tab2 AS cor0
----
-122213
-19747
-418782
onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT DISTINCT - 4 DIV - col1 col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - 4 / - col1 col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9402
SELECT cor0.col0 * + CAST( + 12 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cc206fa3dc0461d49917448a402bc17b
skipif mysql # not compatible
query I rowsort label-9402
SELECT cor0.col0 * + CAST ( + 12 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cc206fa3dc0461d49917448a402bc17b
query I rowsort
SELECT col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + col1 + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 20 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT + 53 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT ALL col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL 3 AS col2 FROM tab0 cor0
----
3
3
3
query I rowsort
SELECT - 46 * - col0 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT + 4 AS col2 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT 13 AS col1 FROM tab2
----
13
13
13
query I rowsort
SELECT col1 * - tab0.col2 + - col2 FROM tab0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT tab0.col1 DIV 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-9418
SELECT tab0.col1 / 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 * + col2 * + tab0.col2 AS col0 FROM tab0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT DISTINCT tab1.col2 DIV - col2 col0 FROM tab1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT tab1.col2 / - col2 col0 FROM tab1
----
-1
query I rowsort
SELECT + 31 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT 30 FROM tab0
----
30
30
30
query I rowsort
SELECT + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL ( 62 ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT + + col2 * col0 + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT + - cor0.col1 + col2 - - ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
190
3695
7763
onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT + - col0 + + col2 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9428
SELECT + - col0 + + col2 / + col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col0 * + ( 60 ) FROM tab1 AS cor0
----
180
3840
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-9430
SELECT col1 DIV col2 + - ( col0 ) - + 28 FROM tab1 AS cor0
----
-108
-31
-92
skipif mysql # not compatible
query I rowsort label-9430
SELECT col1 / col2 + - ( col0 ) - + 28 FROM tab1 AS cor0
----
-108
-31
-92
query I rowsort
SELECT - cor0.col0 + - cor0.col1 * + ( col0 ) * 49 AS col0 FROM tab1 AS cor0
----
-31424
-3825
-51040
query I rowsort
SELECT ALL ( - col0 ) * - col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL 12 * + col2 * - tab1.col0 FROM tab1
----
-1944
-43776
-92160
query I rowsort
SELECT + col2 + col1 * - 95 + + col1 AS col1 FROM tab1 AS cor0
----
-1126
-2390
-883
query I rowsort
SELECT ALL + - col2 + + 98 AS col1 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT ALL - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col0 + 9 * - col0 FROM tab1 cor0
----
-24
-512
-640
query I rowsort
SELECT ALL - cor0.col2 + col2 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9439
SELECT - CAST( NULL AS SIGNED ) * 24 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9439
SELECT - CAST ( NULL AS INTEGER ) * 24 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 97 + - ( - col1 ) FROM tab2 AS cor0
----
-38
-66
-80
query I rowsort
SELECT - 55 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT - + col0 * - 81 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT + col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT - col0 * col2 + - col2 DIV col0 FROM tab1 AS cor0
----
-180
-3648
-7681
skipif mysql # not compatible
query I rowsort label-9444
SELECT - col0 * col2 + - col2 / col0 FROM tab1 AS cor0
----
-180
-3648
-7681
query I rowsort
SELECT - 39 AS col0 FROM tab2 AS cor0
----
-39
-39
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9446
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 2 AS col2 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT + 11 AS col1 FROM tab2
----
11
11
11
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ( - 22 + col2 ) FROM tab0
----
-21
11
60
query I rowsort
SELECT + 40 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - col1 + col0 * col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL + - col2 - - col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - cor0.col2 * - 22 FROM tab0, tab0 cor0
----
9 values hashing to 441b8401f0ab9b799aa419e8418bc2c6
query I rowsort
SELECT ALL - col1 * - 69 AS col2 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT - - 41 + col1 FROM tab1 AS cor0
----
51
54
67
query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL 69 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9463
SELECT ALL CAST( NULL AS DECIMAL ) * col2 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL CAST ( NULL AS REAL ) * col2 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * 26 AS col1 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col2 * cor0.col0 + + 50 FROM tab2 AS cor0
----
-119602
-50984
-5809
query I rowsort
SELECT ALL 15 * cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to c46e6aeb5711eb28cd276577b47b6dcc
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) AS col2 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1
----
-10
-13
-26
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT ALL + col1 * 88 * col1 FROM tab2 cor0
----
25432
306328
84568
query I rowsort
SELECT col2 * + 64 AS col0 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9473
SELECT ALL + 17 DIV 30 + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + 17 / 30 + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 88 * - col0 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col0 ) * - cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9476
SELECT CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9476
SELECT CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 29 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1069
107
669
query I rowsort
SELECT DISTINCT + col1 * + 58 + - col1 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT DISTINCT - 13 FROM tab1, tab1 cor0
----
-13
query I rowsort
SELECT ( - col0 ) * - col1 + col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * - col1 + ( + 50 + + col1 ) AS col1 FROM tab2 AS cor0
----
-222
-3372
-880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT DISTINCT + + col0 + ( col1 ) DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + + col0 + ( col1 ) / col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9490
SELECT col1 * CAST( + col2 AS SIGNED ) + - col2 * tab1.col0 FROM tab1
----
-3078
-6432
1242
skipif mysql # not compatible
query I rowsort label-9490
SELECT col1 * CAST ( + col2 AS INTEGER ) + - col2 * tab1.col0 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT + - col0 * - col2 * + cor0.col0 FROM tab2 cor0
----
1323
158184
237158
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT DISTINCT col0 + 50 FROM tab1 AS cor0
----
114
130
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( - col2 ) + col2 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col2 + - 34 FROM tab1 AS cor0
----
-130
-88
-91
query I rowsort
SELECT + col2 * - col2 * 4 FROM tab2 AS cor0
----
-2704
-2916
-5776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT DISTINCT - col1 DIV 31 FROM tab0 cor0
----
-2
-3
skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - col1 / 31 FROM tab0 cor0
----
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + 55 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT - col2 + + col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + + col0 + col1 + 6 FROM tab0 AS cor0
----
116
138
186
query I rowsort
SELECT DISTINCT + cor0.col1 - + col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + + col2 * 33 FROM tab2 AS cor0
----
1254
858
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT ALL col1 + - 95 * col1 DIV col1 FROM tab0 AS cor0
----
-4
-9
2
skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL col1 + - 95 * col1 / col1 FROM tab0 AS cor0
----
-4
-9
2
query I rowsort
SELECT col2 * - col2 + - 66 AS col1 FROM tab2 AS cor0
----
-1510
-742
-795
query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT - + col2 DIV - 50 + col0 * + cor0.col1 + col2 * 61 AS col0 FROM tab0 AS cor0
----
13102
3456
4077
skipif mysql # not compatible
query I rowsort label-9508
SELECT - + col2 / - 50 + col0 * + cor0.col1 + col2 * 61 AS col0 FROM tab0 AS cor0
----
13102
3456
4077
query I rowsort
SELECT + col2 * col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - + col1 + - col0 * - col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - - col1 + - col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9513
SELECT ALL col1 * CAST( - ( col0 ) AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL col1 * CAST ( - ( col0 ) AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 + + ( 11 ) * col1 FROM tab0 AS cor0
----
1032
912
922
query I rowsort
SELECT ALL + + col0 + - 56 FROM tab1 AS cor0
----
-53
24
8
query I rowsort
SELECT DISTINCT col1 + 49 + 7 AS col0 FROM tab1 AS cor0
----
66
69
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col2 FROM tab1, tab0 AS cor0
----
13
query I rowsort
SELECT ALL + + ( - col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT - - 28 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-9521
SELECT - - 28 / col0 AS col1 FROM tab1 AS cor0
----
0
0
9
query I rowsort
SELECT - - col0 * 38 AS col2 FROM tab0 cor0
----
1330
3382
912
query I rowsort
SELECT DISTINCT + cor0.col0 + 88 FROM tab0 AS cor0
----
112
123
177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9525
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) * - col2 col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) * - col2 col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 17 * + col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT 75 * - ( col1 ) FROM tab0 AS cor0
----
-6450
-6825
-7275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT + CAST( NULL AS SIGNED ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9528
SELECT + CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT - 76 DIV col2 + + col2 AS col2 FROM tab1 AS cor0
----
53
56
96
skipif mysql # not compatible
query I rowsort label-9529
SELECT - 76 / col2 + + col2 AS col2 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT DISTINCT + cor0.col2 + 44 AS col2 FROM tab0, tab0 AS cor0
----
126
45
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 41 * col0 AS col0 FROM tab2 AS cor0
----
287
3198
3239
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9534
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + col2 / col0 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL - col2 * col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT 73 * col2 + - col2 FROM tab1
----
3888
4104
6912
query I rowsort
SELECT 29 * col0 AS col0 FROM tab2
----
203
2262
2291
query I rowsort
SELECT ALL + - cor0.col2 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL col1 + cor0.col1 * ( - col1 ) * col0 FROM tab2 AS cor0
----
-22814
-271459
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT - + 42 DIV + col1 + 95 FROM tab2 AS cor0
----
93
94
95
skipif mysql # not compatible
query I rowsort label-9540
SELECT - + 42 / + col1 + 95 FROM tab2 AS cor0
----
93
94
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT + - col1 DIV + col2 + + col1 + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9541
SELECT + - col1 / + col2 + + col1 + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + 12 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL + col0 - + col2 * col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT + 59 + + col1 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9546
SELECT ALL + cor0.col2 DIV - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + cor0.col2 / - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT ALL 15 + - col0 AS col2 FROM tab1 AS cor0
----
-49
-65
12
query I rowsort
SELECT - cor0.col2 * + 63 + + 19 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 601adb75d7a0cf0cdfd24d3604f5730c
query I rowsort
SELECT ALL - col1 + col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL 99 + col0 AS col1 FROM tab0
----
123
134
188
query I rowsort
SELECT DISTINCT - col2 * ( ( - col2 ) * - col1 ) + col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT col1 + 60 * 33 + col0 FROM tab2 AS cor0
----
2018
2076
2117
query I rowsort
SELECT ALL + - col2 + - col2 * - col0 AS col2 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT - col1 + 0 + - col1 * + col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - col1 * - col2 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + cor0.col0 * ( col1 ) * col1 + col2 * + 63 FROM tab2 AS cor0
----
25225
273156
8428
query I rowsort
SELECT DISTINCT - 60 + + col1 FROM tab1
----
-34
-47
-50
query I rowsort
SELECT - 14 AS col2 FROM tab1
----
-14
-14
-14
query I rowsort
SELECT ALL - col0 + col2 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT ALL col0 + - col0 DIV + 50 FROM tab1
----
3
63
79
skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL col0 + - col0 / + 50 FROM tab1
----
3
63
79
query I rowsort
SELECT - 2 AS col2 FROM tab2
----
-2
-2
-2
query I rowsort
SELECT col1 * tab1.col0 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT + col0 + + col1 DIV + 93 FROM tab0 AS cor0
----
24
36
89
skipif mysql # not compatible
query I rowsort label-9563
SELECT + col0 + + col1 / + 93 FROM tab0 AS cor0
----
24
36
89
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 98 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT + col0 * + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT - 76 + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
2
564
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9568
SELECT + col2 * col0 + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-9568
SELECT + col2 * col0 + col2 / col2 AS col2 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT - + col2 + col2 * 12 AS col2 FROM tab2 AS cor0
----
286
297
418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - cor0.col2 * 12 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT ALL 32 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT col2 * col2 + col1 * col2 * + col1 FROM tab1 AS cor0
----
25440
39420
8949
query I rowsort
SELECT DISTINCT 21 + - col0 * col0 + - col2 AS col1 FROM tab0
----
-1205
-588
-7982
query I rowsort
SELECT col1 * 54 AS col0 FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT + ( + col0 ) * + col2 + 39 AS col0 FROM tab0 AS cor0
----
7337
74
831
onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT - 2 DIV col0 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-9577
SELECT - 2 / col0 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + tab1.col1 * + 73 AS col2 FROM tab1
----
1898
730
949
query I rowsort
SELECT - col1 + 56 * + col0 FROM tab0 AS cor0
----
1258
1863
4893
query I rowsort
SELECT - - 70 + - 63 AS col1 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab0
----
30
query I rowsort
SELECT ALL + 20 FROM tab1
----
20
20
20
query I rowsort
SELECT col1 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + + col0 * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col0 + 75 FROM tab1
----
139
155
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9586
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT - 22 * col2 AS col0 FROM tab1
----
-1188
-1254
-2112
query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 42bf3b8f2bb865dbe16abdf6d3d647fc
query I rowsort
SELECT ALL + 76 FROM tab0
----
76
76
76
query I rowsort
SELECT + 20 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT ( 84 ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT - + 44 - + col1 AS col1 FROM tab0 AS cor0
----
-130
-135
-141
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT ALL + - 24 + col2 AS col0 FROM tab0 AS cor0
----
-23
58
9
query I rowsort
SELECT DISTINCT + ( + 85 + col2 ) AS col2 FROM tab2
----
111
112
123
query I rowsort
SELECT 97 AS col0 FROM tab2
----
97
97
97
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT DISTINCT - CAST( ( - col0 ) AS SIGNED ) col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - CAST ( ( - col0 ) AS INTEGER ) col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT ( tab0.col1 ) DIV 41 + col1 AS col2 FROM tab0
----
88
93
99
skipif mysql # not compatible
query I rowsort label-9600
SELECT ( tab0.col1 ) / 41 + col1 AS col2 FROM tab0
----
88
93
99
query I rowsort
SELECT DISTINCT - ( + cor1.col2 ) AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - tab0.col2 * + 29 col2 FROM tab0
----
-2296
-28
-924
query I rowsort
SELECT - 30 + col1 FROM tab0 AS cor0
----
56
61
67
query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col2 * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9607
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
NULL
query I rowsort
SELECT ALL col0 * 28 FROM tab1 cor0
----
1792
2240
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT col1 DIV 21 col1 FROM tab2
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9609
SELECT col1 / 21 col1 FROM tab2
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9610
SELECT col0 DIV 31 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-9610
SELECT col0 / 31 FROM tab2 AS cor0
----
0
2
2
query I rowsort
SELECT - col2 * 41 FROM tab2
----
-1066
-1107
-1558
query I rowsort
SELECT - col0 * - 75 FROM tab2
----
525
5850
5925
onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT col2 - 48 DIV - tab0.col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9613
SELECT col2 - 48 / - tab0.col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col0 * cor0.col1 + - col1 * + 44 FROM tab0 AS cor0
----
-1720
-873
4095
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT - ( + 0 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9619
SELECT - ( + 0 ) / - col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT ALL - col2 + 69 * col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-197
-450
-605
skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - col2 + 69 * col2 / - col1 AS col0 FROM tab1 AS cor0
----
-197
-450
-605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 18 col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL + cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT ( 28 ) + + col2 AS col2 FROM tab0 cor0
----
110
29
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT ALL col1 DIV col2 - + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL col1 / col2 - + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9626
SELECT col1 + - 35 DIV col1 AS col1 FROM tab2 AS cor0
----
15
30
59
skipif mysql # not compatible
query I rowsort label-9626
SELECT col1 + - 35 / col1 AS col1 FROM tab2 AS cor0
----
15
30
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col0 ) * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - - 42 * - 82 FROM tab2 AS cor0
----
-3444
-3444
-3444
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - col0 * col2 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 FROM tab1
----
1152
1350
513
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 AND ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT - col1 * col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + col2 - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col1 + + col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - col1 - col2 * + col1 AS col0 FROM tab2 cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT ALL col1 DIV col1 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL col1 / col1 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col2 + col2 + - tab1.col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT tab0.col1 + col2 + tab0.col1 AS col1 FROM tab0 WHERE - col1 IN ( - col2 + col0 )
----
query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT tab2.col2 + col1 FROM tab2
----
55
58
85
query III rowsort
SELECT * FROM tab2 WHERE NULL < col0 * col0 * col2
----
query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NULL <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT col2 * col0 + col1 + col1 DIV + col0 AS col2 FROM tab1
----
196
3658
7693
skipif mysql # not compatible
query I rowsort label-9650
SELECT col2 * col0 + col1 + col1 / + col0 AS col2 FROM tab1
----
196
3658
7693
query I rowsort
SELECT + col0 - + col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col1 + - col1 * + col2 AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL - tab1.col0 + + col1 * col2 * col2 FROM tab1
----
119728
32426
75813
query I rowsort
SELECT + col1 + - tab1.col1 * + col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 + + col2 + - col1 * col1 FROM tab2
----
-213
-3429
-907
query I rowsort
SELECT DISTINCT col2 * col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT - col0 DIV col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-9658
SELECT - col0 / col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-83
query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 + + col1 * + cor0.col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - col2 + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + + col1 - col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + - cor0.col2 * cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + col0 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9669
SELECT - col1 + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-9669
SELECT - col1 + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT - col1 + + col1 DIV col1 - col1 FROM tab0
----
-171
-181
-193
skipif mysql # not compatible
query I rowsort label-9670
SELECT - col1 + + col1 / col1 - col1 FROM tab0
----
-171
-181
-193
query I rowsort
SELECT col1 + col0 + tab0.col2 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT col0 - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col0 - col0 AS col1 FROM tab1
----
0
query I rowsort
SELECT + tab2.col2 * + col0 + - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - col0 * - col2 * col1 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - col0 + - col0 * + col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT + tab1.col1 - col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 + tab0.col0 AS col1 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 * - col2 + + col1 * + col1 col1 FROM tab1
----
-2162
-2509
-8007
query I rowsort
SELECT + col1 * + col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col0 * col2 + - col1 * col0 * col1 FROM tab2 AS cor0
----
-19829
-269490
-6538
query I rowsort
SELECT ALL col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT DISTINCT - col1 - - col0 * col1 DIV - cor0.col1 FROM tab1 cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - col1 - - col0 * col1 / - cor0.col1 FROM tab1 cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + + col1 col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - - cor0.col0 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT ALL + - col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col0 + - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col1 * - col2 + - col2 * + col1 FROM tab1
----
-1140
-2496
-2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT ALL col2 + + tab0.col2 DIV + tab0.col0 AS col1 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL col2 + + tab0.col2 / + tab0.col0 AS col1 FROM tab0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9692
SELECT - - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9692
SELECT - - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 52 AS col1 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT + col0 + + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT - tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + - col0 * 6 + + col1 * - col0 FROM tab2 AS cor0
----
-1817
-259
-5070
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9697
SELECT ALL ( - col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL ( - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col0 * 46 FROM tab0
----
-156170
-372554
-94944
query I rowsort
SELECT ALL col1 + col2 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT DISTINCT col0 + - tab0.col1 DIV + col1 AS col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT col0 + - tab0.col1 / + col1 AS col2 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL col2 + col2 + + 65 * - tab2.col0 FROM tab2
----
-401
-5018
-5059
query I rowsort
SELECT ALL - col1 + col1 * + 3 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + 28 FROM tab1, tab0 AS cor0
----
28
query I rowsort
SELECT DISTINCT 8 * - tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-24
-512
-640
query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + + col2 * ( + col2 ) + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + col0 + 13 FROM tab0 AS cor0
----
102
37
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9709
SELECT + col1 * CAST( - 39 * cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-26364
-3900
-6591
skipif mysql # not compatible
query I rowsort label-9709
SELECT + col1 * CAST ( - 39 * cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-26364
-3900
-6591
query I rowsort
SELECT ALL - cor0.col1 + col2 - ( - col0 ) FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT ALL - - col1 * + ( - col2 ) + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + - col1 * ( + col1 * col2 ) - - 7 FROM tab2 AS cor0
----
-10975
-25940
-90499
query I rowsort
SELECT DISTINCT - col1 + ( ( cor0.col0 ) ) FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT cor0.col0 + 35 AS col0 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT col2 + col0 + - col0 AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT tab2.col2 * col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col2 ) NOT IN ( + col1 / + col0 + + col1 )
----
query I rowsort
SELECT - col1 * + col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col2 * col1 + + col0 FROM tab0 WHERE NULL IN ( - col1 * col0 )
----
query I rowsort
SELECT col1 + col0 + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT col1 + col0 / + col0 FROM tab2 WHERE NOT col0 NOT BETWEEN ( NULL ) AND ( - col1 / - col2 )
----
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE ( NULL ) <> col2
----
query I rowsort
SELECT col1 - - col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab2.col2 - col2 AS col0 FROM tab2
----
0
query I rowsort
SELECT col0 + col2 * col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col1 + col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL 1 * col1 + - col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + col1 + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col1 * col0 AS col2 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT - col0 DIV + col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9734
SELECT - col0 / + col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT + col2 * + col1 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * col1 + - col2 * tab0.col0 * col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2
----
-7
-78
-79
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col2 NOT BETWEEN - col1 + - col0 AND ( - col0 )
----
query I rowsort
SELECT col2 + col2 * + col0 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL 80 AS col2 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT + 49 AS col0 FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT 52 + col1 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT col1 * + 77 + 16 * - cor0.col0 + - 48 AS col1 FROM tab1 AS cor0
----
-302
-327
1906
query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT col0 + - ( col0 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT + col0 * ( col1 ) DIV col2 + + 38 FROM tab0 AS cor0
----
100
136
3433
skipif mysql # not compatible
query I rowsort label-9749
SELECT + col0 * ( col1 ) / col2 + + 38 FROM tab0 AS cor0
----
100
136
3433
query I rowsort
SELECT 75 * - 6 AS col2 FROM tab0 AS cor0
----
-450
-450
-450
onlyif mysql # use DIV operator for integer division
query I rowsort label-9751
SELECT col0 DIV col0 + col2 col1 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9751
SELECT col0 / col0 + col2 col1 FROM tab1
----
55
58
97
query I rowsort
SELECT + ( 93 * + col1 ) - - ( 25 ) FROM tab2
----
1606
2908
5512
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9753
SELECT CAST( col0 AS SIGNED ) * col0 + - 35 AS col1 FROM tab1
----
-26
4061
6365
skipif mysql # not compatible
query I rowsort label-9753
SELECT CAST ( col0 AS INTEGER ) * col0 + - 35 AS col1 FROM tab1
----
-26
4061
6365
query I rowsort
SELECT - col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9756
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9756
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col1 * + col1 FROM tab1 AS cor0
----
100
169
676
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + - 26 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT - cor0.col1 * cor0.col0 + 35 * 48 FROM tab1 AS cor0
----
1040
1602
640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col0 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - 91 + + col0 * - cor0.col0 FROM tab1 cor0
----
-100
-4187
-6491
query I rowsort
SELECT ALL + cor0.col2 - ( - cor0.col2 ) * + 79 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 79f72d04a7ecce7d7d83e3c6954a7413
query I rowsort
SELECT + + col2 * col1 + col2 + col2 FROM tab1 AS cor0
----
1440
1512
684
query I rowsort
SELECT cor0.col2 * ( col0 * col1 ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col0 * col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 + - col0 * col2 + + 40 AS col0 FROM tab1
----
-119
-3544
-7560
query I rowsort
SELECT + col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT cor0.col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + cor0.col1 * + 35 - - col1 FROM tab2 cor0
----
1116
2124
612
query I rowsort
SELECT ALL - col2 + - col0 * + 42 * col0 FROM tab0 cor0
----
-24225
-332764
-51451
query I rowsort
SELECT - + col1 * - 97 AS col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT - col1 * ( - col1 ) + + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL col2 + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9780
SELECT DISTINCT - col0 DIV 68 - + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-81
skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - col0 / 68 - + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-81
query I rowsort
SELECT DISTINCT - - 94 FROM tab0 AS cor0
----
94
query I rowsort
SELECT - 99 * + col0 AS col2 FROM tab1 AS cor0
----
-297
-6336
-7920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9784
SELECT - ( - col0 ) DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9784
SELECT - ( - col0 ) / col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT ALL - - col2 DIV - ( col1 + 74 ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - - col2 / - ( col1 + 74 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * 17 + + col0 + 53 FROM tab1 AS cor0
----
287
354
498
query I rowsort
SELECT ALL - - 61 * + col1 AS col1 FROM tab0 cor0
----
5246
5551
5917
query I rowsort
SELECT DISTINCT - col0 * + col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - cor0.col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col1 + 98 FROM tab0
----
184
189
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-9791
SELECT DISTINCT col1 DIV + col2 + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT col1 / + col2 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + col2 * col0 - + col1 AS col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL - col1 + - col2 * col0 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT + col0 + + cor0.col0 * 42 * col2 FROM tab2 AS cor0
----
126163
7945
85254
query I rowsort
SELECT ALL + 87 * col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT + cor0.col1 * - col0 + + 61 * - col2 FROM tab1 AS cor0
----
-3372
-4117
-6896
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col1 - col1 * - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab1, tab0 AS cor0
----
11
query I rowsort
SELECT + col1 - + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ( + tab1.col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - ( + ( col1 ) ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT + col1 DIV col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9804
SELECT + col1 / col0 AS col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT - 65 FROM tab2
----
-65
-65
-65
query I rowsort
SELECT - cor0.col0 - col2 * 62 FROM tab2 AS cor0
----
-1681
-1690
-2435
query I rowsort
SELECT + + col0 * + cor0.col1 + 57 * 61 + col2 * col0 * + col0 FROM tab0 AS cor0
----
24549
661098
8097
query I rowsort
SELECT col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - 51 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT tab0.col0 + - 99 FROM tab0, tab0 AS cor0
----
9 values hashing to e564e0e4f9313dba39a4fd000fa54178
query I rowsort
SELECT + + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * - col1 + col0 AS col2 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT ALL - 98 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to b6a3c9eea26c3759e6417d75f38258d1
query I rowsort
SELECT ALL ( - col2 ) + col0 + - ( col2 ) * col0 AS col0 FROM tab1
----
-213
-3641
-7696
query I rowsort
SELECT col2 + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL 49 * - col2 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 + + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 52 FROM tab1 AS cor0
----
52
query I rowsort
SELECT ALL - 67 * - col0 + - cor0.col1 FROM tab2 AS cor0
----
438
5167
5276
query I rowsort
SELECT 45 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
109
125
48
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + - col2 * - 55 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT - ( col2 ) * tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 15 AS col1 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT ALL ( - 68 ) * col1 AS col2 FROM tab1 AS cor0
----
-1768
-680
-884
query I rowsort
SELECT ALL 38 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT DISTINCT + col2 DIV + 68 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + col2 / + 68 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT ALL - - 47 DIV col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - - 47 / col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0
----
17
31
59
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 ALL - - col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - ( col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL 40 + + col0 * col2 FROM tab0 cor0
----
7338
75
832
query I rowsort
SELECT 1 * col2 + - col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT DISTINCT col1 DIV col2 + + 46 FROM tab1 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT col1 / col2 + + 46 FROM tab1 AS cor0
----
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * col1 col2 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - 53 - col0 * 72 FROM tab2 AS cor0
----
-557
-5669
-5741
query I rowsort
SELECT + col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + 85 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + - col1 + col0 + + ( + 35 * col0 ) AS col2 FROM tab0 AS cor0
----
1163
3113
778
query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 36 * col0 AS col2 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT DISTINCT + cor0.col1 DIV + cor0.col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + cor0.col1 / + cor0.col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT - - 25 + col2 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col2 + cor0.col0 * + cor0.col0 + col1 FROM tab0 AS cor0
----
1323
695
8094
query I rowsort
SELECT DISTINCT col2 * 37 + + col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
1287
3198
39
query I rowsort
SELECT DISTINCT col0 + 6 FROM tab0 AS cor0
----
30
41
95
query I rowsort
SELECT - col1 * ( + 69 ) AS col0 FROM tab1 cor0
----
-1794
-690
-897
query I rowsort
SELECT ALL + col1 * col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - col0 + - 25 FROM tab1 AS cor0
----
-105
-28
-89
query I rowsort
SELECT DISTINCT col0 * + 79 + + col0 AS col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT + - col0 * 75 + - cor0.col1 AS col1 FROM tab0 cor0
----
-1886
-2722
-6766
query I rowsort
SELECT ALL + col1 * ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9863
SELECT DISTINCT col1 DIV - tab1.col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT col1 / - tab1.col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT col0 + - tab0.col0 * - 15 + col1 FROM tab0
----
1515
470
657
query I rowsort
SELECT DISTINCT col0 + 14 * + col0 AS col1 FROM tab2 cor0
----
105
1170
1185
query I rowsort
SELECT cor0.col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9867
SELECT ALL - cor0.col2 * + CAST( NULL AS SIGNED ) + col1 - col0 * 56 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - cor0.col2 * + CAST ( NULL AS INTEGER ) + col1 - col0 * 56 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 * col0 + cor0.col1 * col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT DISTINCT - col2 + ( - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT col0 * 78 + - 87 FROM tab0 AS cor0
----
1785
2643
6855
query I rowsort
SELECT ALL col0 * col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - 31 * - ( col1 ) FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT - + 39 * - col2 FROM tab0 cor0
----
1287
3198
39
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 80 + col1 AS col1 FROM tab2 AS cor0
----
-21
-49
-63
query I rowsort
SELECT 79 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
263
5066
6333
onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT DISTINCT tab1.col0 DIV 37 - + col2 AS col2 FROM tab1
----
-54
-56
-94
skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT tab1.col0 / 37 - + col2 AS col2 FROM tab1
----
-54
-56
-94
query I rowsort
SELECT ALL col1 * - ( col1 ) - - col0 AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT - 18 * - cor0.col2 FROM tab2 AS cor0
----
468
486
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT - + 34 * col2 DIV col2 + 31 col1 FROM tab1 AS cor0
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9884
SELECT - + 34 * col2 / col2 + 31 col1 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT 15 AS col1 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT ( + ( cor0.col1 ) ) + + col0 * - 87 AS col1 FROM tab0 AS cor0
----
-2002
-2948
-7652
query I rowsort
SELECT ALL + 95 + + 3 AS col0 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT - col1 * 87 * col0 - - col1 FROM tab0 AS cor0
----
-179482
-295268
-704522
query I rowsort
SELECT DISTINCT - 97 + - col2 AS col2 FROM tab0 AS cor0
----
-130
-179
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT ALL + col0 * 96 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL + col0 * 96 / cor0.col0 AS col0 FROM tab1 AS cor0
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - 14 * + col2 + col1 FROM tab1 AS cor0
----
-1331
-730
-788
query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - cor0.col0 ) + - 8 col2 FROM tab2 AS cor0
----
181
2020
2994
query I rowsort
SELECT - col2 + - col2 * + 74 AS col2 FROM tab0
----
-2475
-6150
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9896
SELECT - + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9896
SELECT - + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - - 19 AS col1 FROM tab2
----
26
97
98
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT 52 DIV + col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9899
SELECT 52 / + col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 * col0 + + tab0.col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT + + col0 - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT + + 11 + - col0 AS col2 FROM tab0 AS cor0
----
-13
-24
-78
query I rowsort
SELECT ( ( + col1 ) ) * - col2 - 20 * + col1 FROM tab1 AS cor0
----
-1508
-1924
-770
query I rowsort
SELECT ALL + ( 60 ) FROM tab0 cor0
----
60
60
60
query I rowsort
SELECT DISTINCT 91 + + col1 * col0 FROM tab0 AS cor0
----
2155
3486
8190
query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b
query I rowsort
SELECT col2 + col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + cor1.col1 * 24 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 368f515886020f1af6aae07e91d53df6
query I rowsort
SELECT col2 + 11 * tab1.col2 * - col2 AS col1 FROM tab1
----
-101280
-32022
-35682
query I rowsort
SELECT ALL - + cor0.col1 * + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + + cor0.col0 - - col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 72 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 * - col0 - - col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 + col1 * + col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 9 * + col0 + 75 FROM tab0 AS cor0
----
291
390
876
query I rowsort
SELECT ALL - 80 AS col1 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + 56 FROM tab1 AS cor0
----
156
225
732
query I rowsort
SELECT - 82 + - col0 FROM tab0 AS cor0
----
-106
-117
-171
query I rowsort
SELECT - 67 + - col2 AS col0 FROM tab0 AS cor0
----
-100
-149
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * + col2 col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT tab1.col1 * col2 * + tab1.col1 AS col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2
----
90
query I rowsort
SELECT ALL - col2 * col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - 35 FROM tab0
----
-35
-35
-35
query I rowsort
SELECT - - 83 AS col0 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 51 * + col1 AS col0 FROM tab1
----
1326
510
663
query I rowsort
SELECT col0 * 55 AS col1 FROM tab1
----
165
3520
4400
query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col1 + - col1 AS col0 FROM tab2
----
0
query I rowsort
SELECT tab0.col1 - col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col0 * 51 FROM tab1
----
153
3264
4080
query I rowsort
SELECT - ( + col2 ) * cor0.col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + col0 * 33 + col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1950
1343
21
query I rowsort
SELECT ALL - tab0.col0 + + ( + col0 ) AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT cor0.col0 DIV 62 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9943
SELECT cor0.col0 / 62 FROM tab1 AS cor0
----
0
1
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT ALL + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT ( col1 + col0 ) DIV col2 AS col0 FROM tab0
----
132
2
3
skipif mysql # not compatible
query I rowsort label-9946
SELECT ( col1 + col0 ) / col2 AS col0 FROM tab0
----
132
2
3
query I rowsort
SELECT ALL 33 AS col0 FROM tab2
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 - - col2 col2 FROM tab0
----
16
48
97
query I rowsort
SELECT - + 69 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT 74 * col1 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT 57 + 73 + + col0 * - col1 FROM tab2
----
-1213
-4472
-87
query I rowsort
SELECT DISTINCT - 89 * - 81 - col2 * col1 * - tab0.col0 FROM tab0
----
10604
671327
75321
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 91 ) + - col0 col2 FROM tab2 AS cor0
----
-169
-170
-98
query I rowsort
SELECT + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 96 - col1 FROM tab2 AS cor0
----
37
65
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9956
SELECT ALL - + CAST( NULL AS SIGNED ) + 79 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - + CAST ( NULL AS INTEGER ) + 79 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 60 + col2 AS col2 FROM tab1 AS cor0
----
-3
-6
36
query I rowsort
SELECT - - col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 29 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT ALL + cor0.col0 * - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - - cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL ( + col0 ) * col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 42 * 69 AS col0 FROM tab0
----
-2898
-2898
-2898
query I rowsort
SELECT + + 53 AS col0 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab0 AS cor0
----
88
query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col1 + + col2 * 82 FROM tab1 AS cor0
----
4454
4684
7885
query I rowsort
SELECT DISTINCT - col1 * + ( + tab1.col1 ) * col0 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9971
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9971
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT + cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 * + ( - 11 ) - col2 * - 44 AS col2 FROM tab2 AS cor0
----
1529
1793
1859
query I rowsort
SELECT - + cor0.col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + - 8 col1 FROM tab1 AS cor0
----
1032
632
70
query I rowsort
SELECT DISTINCT - - col0 * col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL ( - ( col2 ) ) + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 80 FROM tab2 AS cor0
----
80
80
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9979
SELECT ALL - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 * + 21 AS col2 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT DISTINCT col1 * + col1 + col0 AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 + ( tab0.col2 ) * + col2 AS col2 FROM tab0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT tab1.col2 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-9985
SELECT tab1.col2 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9986
SELECT col0 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9986
SELECT col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL tab1.col0 * 14 AS col1 FROM tab1
----
1120
42
896
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * col0 col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + col1 + 76 * 67 FROM tab1 AS cor0
----
5102
5105
5118
query I rowsort
SELECT ALL + col2 * - 3 FROM tab0 cor0
----
-246
-3
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT cor0.col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9993
SELECT cor0.col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT tab0.col1 + - CAST( NULL AS SIGNED ) + + 43 col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9994
SELECT tab0.col1 + - CAST ( NULL AS INTEGER ) + + 43 col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + - col1 + - col0 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - col0 * 78 * 17 + tab0.col2 FROM tab0
----
-117932
-31791
-46409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT ALL - col0 * col0 + + col1 * col2 DIV ( col1 ) FROM tab1
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - col0 * col0 + + col1 * col2 / ( col1 ) FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + CAST ( col1 AS REAL ) + col0 AS col0 FROM tab1 AS cor0
----
106
55
84