public static void main ( String args [ ] ) throws Exception {
  Scanner sc = new Scanner ( System . in ) ;
  PrintWriter pw = new PrintWriter ( System . out ) ;
  int t = sc . nextInt ( ) ;
  while ( t -- > 0 ) {
    int n = sc . nextInt ( ) ;
    int a = sc . nextInt ( ) - 1 ;
    b = sc . nextInt ( ) - 1 ;
    int da = sc . nextInt ( ) ;
    int db = sc . nextInt ( ) ;
    adj = new ArrayList [ n ] ;
    for ( int i = 0 ;
    i < n ;
    i ++ ) {
      adj [ i ] = new ArrayList < > ( ) ;
    }
    for ( int i = 0 ;
    i < n - 1 ;
    i ++ ) {
      int u = sc . nextInt ( ) - 1 ;
      int v = sc . nextInt ( ) - 1 ;
      adj [ u ] . add ( v ) ;
      adj [ v ] . add ( u ) ;
    }
    max = 0 ;
    q = 0 ;
    dist = 0 ;
    dfs ( a , - 1 , 0 ) ;
    int y = dist ;
    dfs ( q , - 1 , 0 ) ;
    dist = y ;
    if ( dist <= da ) {
      pw . println ( "Alice" ) ;
    }
    else if ( 2 * da >= max ) {
      pw . println ( "Alice" ) ;
    }
    else {
      if ( db > 2 * da ) {
        pw . println ( "Bob" ) ;
      }
      else {
        pw . println ( "Alice" ) ;
      }
    }
  }
  pw . flush ( ) ;
}

public static void main ( String args [ ] ) throws Exception { Scanner sc = new Scanner ( System . in ) ; PrintWriter pw = new PrintWriter ( System . out ) ; int t = sc . nextInt ( ) ; while ( t -- > 0 ) { int n = sc . nextInt ( ) ; int a = sc . nextInt ( ) - 1 ; b = sc . nextInt ( ) - 1 ; int da = sc . nextInt ( ) ; int db = sc . nextInt ( ) ; adj = new ArrayList [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { adj [ i ] = new ArrayList < > ( ) ; } for ( int i = 0 ; i < n - 1 ; i ++ ) { int u = sc . nextInt ( ) - 1 ; int v = sc . nextInt ( ) - 1 ; adj [ u ] . add ( v ) ; adj [ v ] . add ( u ) ; } max = 0 ; q = 0 ; dist = 0 ; dfs ( a , - 1 , 0 ) ; int y = dist ; dfs ( q , - 1 , 0 ) ; dist = y ; if ( dist <= da ) { pw . println ( " Alice " ) ; } else if ( 2 * da >= max ) { pw . println ( " Alice " ) ; } else { if ( db > 2 * da ) { pw . println ( " Bob " ) ; } else { pw . println ( " Alice " ) ; } } } pw . flush ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (identifier)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))