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 in = new Scanner(System.in); int q = in.nextInt(); for(int a0 = 0; a0 < q; a0++){ int len = in.nextInt(); int c = in.nextInt(); long steps = (long)c; long num = (len*(len - 1))/2; if(len == 1){ System.out.println(len); return; } if(steps == num){ for(int i = c; i >=1; i--){ System.out.print(i + " "); } System.out.println(); }else if(steps < len - 1){ System.out.println(-1); }else{ System.out.println(-1); } // your code goes here } } }