#include <iostream>
#include <string>
#include <cmath>
#include <vector>
#include <algorithm>
#include <utility>
#include <bitset>
#include <climits>
#include <set>
#include <map>
#include <iomanip>
#include <queue>
using namespace std;
#define ll long long
#define pll pair<ll,ll>
#define F first
#define S second
#define pll pair<ll,ll>
#define mp make_pair
#define pb push_back
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    ll t;
    cin >> t;
    while(t--){
        ll n,k;
        cin >> n >> k;
        if(k>=(n+1)/2){
            cout << -1 << endl;
        }else{
            for(int i=1;i<=k;i++){
                cout << i << " " << i+k+1 << " ";
            }
            cout << k+1 << " ";
            for(int i=0;i<n-2*k-1;i++){
                cout << i+2*k+2 << " ";
            }
            cout << endl;
        }
    }
    return 0;
}