import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int q = sc.nextInt(); while(q -- > 0) { int n = sc.nextInt(); int c = sc.nextInt(); if(c > (n *(n-1))/2) { System.out.println(-1); }else if(n == 1) { System.out.println(1); }else { StringBuilder sb = new StringBuilder(); for(int i= 1; i<= n ;i++) { sb.append(i); } int j = 0; n = n-1; while(c > 0) { if(c >= n) { sb.deleteCharAt(n-1+j); sb.insert(j, n); j++; c = c-n; //System.out.println(c); } n--; } for(int i= 0; i< sb.length(); i++) { System.out.print(sb.charAt(i)+" "); } System.out.println(); } } } }