public static void main ( String [ ] args ) {
  Scanner s = new Scanner ( System . in ) ;
  int t = s . nextInt ( ) ;
  for ( int i = 0 ;
  i < t ;
  i ++ ) {
    int n = s . nextInt ( ) ;
    long w = s . nextLong ( ) ;
    pair [ ] arr = new pair [ n ] ;
    for ( int j = 0 ;
    j < n ;
    j ++ ) {
      long val = s . nextLong ( ) ;
      pair p = new pair ( val , j ) ;
      arr [ j ] = p ;
    }
    Arrays . sort ( arr , new comp ( ) ) ;
    ArrayList < Integer > list = new ArrayList < > ( ) ;
    long sum = 0 ;
    for ( int j = n - 1 ;
    j >= 0 ;
    j -- ) {
      if ( sum + arr [ j ] . data <= w ) {
        sum = sum + arr [ j ] . data ;
        list . add ( arr [ j ] . index + 1 ) ;
      }
    }
    long limit = w / 2 ;
    if ( w % 2 != 0 ) limit ++ ;
    if ( sum >= limit ) {
      System . out . println ( list . size ( ) ) ;
      for ( int j = 0 ;
      j < list . size ( ) ;
      j ++ ) {
        System . out . print ( list . get ( j ) + " " ) ;
      }
      System . out . println ( ) ;
    }
    else {
      System . out . println ( - 1 ) ;
    }
  }
}

public static void main ( String [ ] args ) { Scanner s = new Scanner ( System . in ) ; int t = s . nextInt ( ) ; for ( int i = 0 ; i < t ; i ++ ) { int n = s . nextInt ( ) ; long w = s . nextLong ( ) ; pair [ ] arr = new pair [ n ] ; for ( int j = 0 ; j < n ; j ++ ) { long val = s . nextLong ( ) ; pair p = new pair ( val , j ) ; arr [ j ] = p ; } Arrays . sort ( arr , new comp ( ) ) ; ArrayList < Integer > list = new ArrayList < > ( ) ; long sum = 0 ; for ( int j = n - 1 ; j >= 0 ; j -- ) { if ( sum + arr [ j ] . data <= w ) { sum = sum + arr [ j ] . data ; list . add ( arr [ j ] . index + 1 ) ; } } long limit = w / 2 ; if ( w % 2 != 0 ) limit ++ ; if ( sum >= limit ) { System . out . println ( list . size ( ) ) ; for ( int j = 0 ; j < list . size ( ) ; j ++ ) { System . out . print ( list . get ( j ) + " ▁ " ) ; } System . out . println ( ) ; } else { System . out . println ( - 1 ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) 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: (identifier)) update: (update_expression (identifier)) 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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (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 (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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (object_creation_expression type: (type_identifier) arguments: (argument_list))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier))) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) right: (decimal_integer_literal))))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) 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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (string_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list)))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (unary_expression operand: (decimal_integer_literal)))))))))))