#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <ctime>
#include <cmath>
#include <string>
#include <set>
#include <map>
#include <fstream>
#include <stack>

using namespace std;

typedef long long ll;
#define all(x) x.begin(), x.end()
//#define fi first
//#define se second
int inf = 1e9 + 7;



int main(){
    //srand(time(NULL));

    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    //*/
    /*
    cout.setf(ios::fixed);
    cout.precision(10);
    */
    /*
    ifstream fin;
    ofstream fout;
    fin.open("r.txt");
    fout.open("w.txt");
    */

   int t;
   cin >> t;
    for (int ctr = 0; ctr < t; ctr++){
        int n, k;
        cin >> n >> k;
        if (k > n / 2 + n % 2 - 1){
            cout << -1 << endl;
        }else{
            vector<int> ans(n + 10);
            ans[0] = 1;
            vector<bool> used(n + 10);
            int cnt = 3;
            for (int i = 0; i < k; i++){
                ans[i * 2 + 1] = cnt;
                used[cnt] = 1;
                cnt+= 2;
            }
            cnt = 2;
            for (int i = 0; i < k; i++){
                ans[i * 2 + 2] = cnt;
                cnt+= 2;
            }

            for (int i = k * 2 + 1; i < n; i++){
                ans[i] = cnt;
                cnt++;
            }
            for (int i = 0; i < n; i++){
                cout << ans[i] << ' ';
            }
            cout << endl;
        }
    }
    //cout << ans << endl;
    //cout << "NO" << endl;
    //fout.close();
    return 0;
}



