for t in[0]*int(input()):N,M,B,W=map(int,input().split());N=min(N,M);print(["Bob","Alice"][W^3and W^5and W^7 and N>1and(N>2 or W&1<1)])