chainz@localhost [6]> explain (select c from t limit 1 offset 1) union all (select c from t2 limit 2);
+------+-------------+-------+------+---------------+------+---------+------+------+-------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+------+-------------+-------+------+---------------+------+---------+------+------+-------+
| 1 | PRIMARY | t | ALL | NULL | NULL | NULL | NULL | 3 | |
| 2 | UNION | t2 | ALL | NULL | NULL | NULL | NULL | 3 | |
+------+-------------+-------+------+---------------+------+---------+------+------+-------+
2 rows in set (0.00 sec)
chainz@localhost [7]> explain (select * from (select c from t limit 1 offset 1) u0) union all (select c from t2 limit 2);
+------+-------------+------------+------+---------------+------+---------+------+------+-------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+------+-------------+------------+------+---------------+------+---------+------+------+-------+
| 1 | PRIMARY | <derived2> | ALL | NULL | NULL | NULL | NULL | 2 | |
| 2 | DERIVED | t | ALL | NULL | NULL | NULL | NULL | 3 | |
| 3 | UNION | t2 | ALL | NULL | NULL | NULL | NULL | 3 | |
+------+-------------+------------+------+---------------+------+---------+------+------+-------+
3 rows in set (0.00 sec)