I need the grid value from table 1 to put in query 2

I already had this problem since the first version


https://drive.google.com/file/d/1TzZkg9m2iNxfbhKDc7dPot0N-aztjyjs/view?usp=sharing