import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int t = sc.nextInt();
        StringBuilder sb = new StringBuilder();
        for(int i = 0 ; i < t ; i++){
            int x = sc.nextInt();
            int y = sc.nextInt();
            if(x >= y || x > 4){
                sb.append("Yes");
            }else{
                sb.append("No");
            }
            if(i != t - 1){
                sb.append("\n");
            }
        }
        
        System.out.println(sb);
        
    }
    
}