#include<bits/stdc++.h>
using namespace std;

#define fo(i,n) for(int i=0;i<n;i++)
#define Fo(i,k,n) for(i=k;k<n?i<n:i>n;k<n?i+=1:i-=1)
#define ll long long
#define l long
#define PI 3.1415926535897932384626
#define nd "\n"

int main() {


std::ios::sync_with_stdio(false);

    int t = 1;
    cin >> t;
    int n,k;
    int possible_peaks;
    

    while (t--)
    {
       
        cin>>n>>k;
        int *arr = (int *)(malloc(n*4));
        if(n%2 == 0){
              possible_peaks = n/2-1;
        }
        else{
            possible_peaks = n/2;
        }

        if(k>possible_peaks){
            cout<<"-1"<<endl;
        }
        else{
           int  val = n;
           int i = 0;
           int pa = 1;
           while(val>n-k){
               if(i%2 ==0){
                   arr[i] = pa;
                   pa++;
                   i++;
               }
               else{
                   arr[i] = val;
                   val--;
                   i++;
               }
           }
           for(i;i<n;i++){
               arr[i] = pa;
               pa++;
           }
              fo(i,n){
                  cout<<arr[i]<<" ";
              }
              cout<<endl;
        }

        free(arr);
    }

    return 0;

}

