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 W >= M * 2 + (N - 2) * 2: print("Alice") elif W % 2 == 0: print("Alice") else: for s in range(2, N + 1): if W // s <= M and (W % s == 0 or W % s > 1 and W // s < M): print("Alice") break else: print("Bob")