import sys input = sys.stdin.readline T=int(input()) for tests in range(T): H,W,R,C=list(map(int,input().split())) if H>W: H,W=W,H R,C=C,R if H==1: if W==1: print("Bob") continue else: print("Alice") continue elif H==2: if W==2: print("Alice") continue else: if R==1 or R==H or C==1 or C==W: print("Alice") continue if C==2 and C==W-1: print("Bob") else: print("Alice") else: if R in [1,H] and C in [1,W]: print("Bob") elif R in [1,H] or C in [1,W]: print("Alice") else: print("Bob")