batch_exec did not work
fix condition, INNER JOIN never selected