# Index Range Scan (Continue...)
```
mysql> explain select * from t1 where (id > 2000 and id < 3000) or (id > 4000 and id < 5000);
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
| id                            | estRows   | task      | access object                 | operator info                                    |
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
| IndexLookUp_10                | 511488.00 | root      |                               |                                                  |
| ├─IndexRangeScan_8(Build)     | 511488.00 | cop[tikv] | table:t1, index:t1_ind_id(id) | range:(2000,3000), (4000,5000), keep order:false |
| └─TableRowIDScan_9(Probe)     | 511488.00 | cop[tikv] | table:t1                      | keep order:false                                 |
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
3 rows in set (0.01 sec)
```
------------------------------------------------------------
Index Range Scan
```
mysql> explain select * from t1 where id > 2000 and id < 3000;
+-------------------------------+-----------+-----------+-------------------------------+-------------------------------------+
| id                            | estRows   | task      | access object                 | operator info                       |
+-------------------------------+-----------+-----------+-------------------------------+-------------------------------------+
| IndexLookUp_10                | 255744.00 | root      |                               |                                     |
| ├─IndexRangeScan_8(Build)     | 255744.00 | cop[tikv] | table:t1, index:t1_ind_id(id) | range:(2000,3000), keep order:false |
| └─TableRowIDScan_9(Probe)     | 255744.00 | cop[tikv] | table:t1                      | keep order:false                    |
+-------------------------------+-----------+-----------+-------------------------------+-------------------------------------+
3 rows in set (0.01 sec)


mysql> explain select * from t1 where (id > 2000 and id < 3000) or (id > 4000 and id < 5000);
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
| id                            | estRows   | task      | access object                 | operator info                                    |
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
| IndexLookUp_10                | 511488.00 | root      |                               |                                                  |
| ├─IndexRangeScan_8(Build)     | 511488.00 | cop[tikv] | table:t1, index:t1_ind_id(id) | range:(2000,3000), (4000,5000), keep order:false |
| └─TableRowIDScan_9(Probe)     | 511488.00 | cop[tikv] | table:t1                      | keep order:false                                 |
+-------------------------------+-----------+-----------+-------------------------------+--------------------------------------------------+
3 rows in set (0.01 sec)
```
