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

int main()
{
	ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

	int t;
	cin >> t;
	while(t--){
       int n, k;
       cin >> n >> k;
       if(n == 1 and k == 0){
       	 cout << 1 << "\n";
       	 continue;
       }
       if(n <= 2 and k > 0){
       	 cout << "-1\n";
       	 continue;
       }
       if(k > (n-1)/2){
       	 cout << "-1\n";
       	 continue;
       }
       vector<int> v;
       bool a[n+1];
       for(int i = 1; i <= n ;++i){
       	 a[i] = false;
       }
       for(int i = 1; i <= k; ++i){
       	  v.push_back(i);
       	  a[i] = true;
       	  v.push_back(n - i + 1);
       	  a[n - i + 1] = true;
       }
       for(int i = 1; i <= n; ++i){
       	 if(a[i] == false){
       	 	v.push_back(i);
       	 }
       }
       for(int i = 0; i < v.size(); ++i){
       	 cout << v[i] << " ";
       }
       cout << "\n";
	}
	return 0;
}