I am writing to the cell Table A :
=QUERY(IMPORTRANGE("Ключ Таблицы Б";"Лист1!A5"); "select *";)
The result in cell A5 of Table B is equal to the formula:
=QUERY('Лист1'!A2:AB;"select * where (A="&A2&")")
Immediately on this sheet A2 = 2.
And in Table A there are completely different numbers. Now for example 13. Although it should be 2.
Why it happens? Must be one number, pulls out the left.