#include using namespace std; #define int long long signed main(){ int T; cin>>T; while(T--){ int L,R,A,B; cin>>L>>R>>A>>B; cout<