for t in range(int(input())): H,W,x,y=map(int,input().split()) if H>W:H,W,x,y=W,H,y,x print(["Bob","Alice"][(H==2and(W%4<1or(y-1)//2%2+(W-y)//2%2)or H==34 and H*W%2<1or H>2and(x+y)%2or H==W==3and(x==y==2)<1or H==3==W-2and x!=2and y==3)>0])