The first line contains a single integer $T$ ($1 \leq T \leq 3$), the number of test cases. For each test case:
The first line of the input contains two integers $n$ and $q$ ($1 \leq n,q \leq 100\,000$), denoting the number of maps and the number of queries.
In the next $n$ lines, the $i$-th line contains four integers $xa_i$, $ya_i$, $xb_i$ and $yb_i$ ($0\le xa_i<xb_i\leq 10^9$, $0\le ya_i<yb_i\leq 10^9$), describing the $i$-th map $R_i$. $(xa_i,ya_i)$ is the southwest corner of $R_i$, and $(xb_i,yb_i)$ is the northeast corner of $R_i$.
In the next $q$ lines, the $i$-th line contains two integers $s_i$ and $t_i$ ($1\leq s_i\leq t_i\leq n$), describing the $i$-th query.
It is guaranteed that all the values of $xa_i$, $ya_i$, $xb_i$, $yb_i$, $s_i$ and $t_i$ are chosen uniformly at random from integers in their corresponding ranges. The randomness condition does not apply to the sample test case, but your solution must pass the sample as well.