Instruct: what is the average foreign imports s tone when the total s tone is 3,157,247 and the foreign exports s ton is less than 358,493?
Output: SELECT AVG Foreign Imports s Ton FROM table WHERE Total s Ton = 3,157,247 AND Foreign Exports s Ton < 358,493