for _ in range(int(input())): N, M, B, W = (int(x) for x in input().split()) if N > M: N, M = M, N if N == 1: print("Bob") elif N == 2: if W % 2 == 0: print("Alice") else: print("Bob") else: if W % 2 == 0 or W > 7: print("Alice") else: print("Bob")