import java.util.*; import java.io.*; public class Main { public static Scanner sc = new Scanner(System.in); public static PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) { int t = sc.nextInt(); while( t > 0 ) { solve(); t--; } pw.flush(); } static void solve() { int X = sc.nextInt(); int Y = sc.nextInt(); if( X <= 4 && X < Y ) pw.println("No"); else pw.println("Yes"); } }