#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <algorithm>
#include <cmath>

using namespace std;

void solve(){
    int n,k;
    cin >> n >> k;
    if((int)(n-1)/2 < k){
        cout << -1;
    } else {
        int peaks = 0;
        int i = 1;
        for(; i <= n;i++){
            if(peaks == k){
                break;
            } else {
                int out = n-i+1;
                cout << i << " " << out << " ";
                peaks++;
            }
        }
        int I = i;
        for(; i <= n - I +1;i++){
            cout << i << " ";
        }
    }
    
}
  
int main() {

    // freopen("in.txt", "r", stdin);
    // freopen(".in", "r", stdin);
	// freopen(".out", "w", stdout);
   int N;
   cin >> N;
   for(int i = 0; i < N;i++){
       solve();
       cout << endl;
   }

    
}
