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\n"); }else{ sb.append("No\n"); } } System.out.println(sb); } }