user: ### NOW ANSWER:
Question: what is the highest u.s. rank when the foreign total s ton is more than 703638, the year is earlier than 2005, the foreign imports s ton is 284347 and the foreign exports s ton is smaller than 478317?
Columns: ['Year', 'U.S. Rank', 'Total s Ton', 'Domestic s Ton', 'Foreign Total s Ton', 'Foreign Imports s Ton', 'Foreign Exports s Ton']
Types: ['real', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: [2006.0, 102.0, 2926536.0, 2306192.0, 620344.0, 464774.0, 155570.0]
SQL:

assistant: SELECT MAX("U.S. Rank") FROM "Table" WHERE "Foreign Total s Ton" > 703638.0 AND "Year" < 2005.0 AND "Foreign Imports s Ton" = 284347.0 AND "Foreign Exports s Ton" < 478317.0;