Question: how many times is the total s ton less than 2983137 and the u.s. rank less than 102?
SQL: SELECT COUNT("Year") FROM "2-1645670-2" WHERE "Total s Ton" < 2983137.0 AND "U.S. Rank" < 102.0;

Question: what is the average domestic s tone when the foreign imports s tone is less than 225281 and the year is later than 2003?
SQL: SELECT AVG("Domestic s Ton") FROM "2-1645670-2" WHERE "Foreign Imports s Ton" < 225281.0 AND "Year" > 2003.0;

Question: what is the average domestic s tone when the total s tone is 2926536 and the foreign imports s tone is less than 464774?
SQL: SELECT AVG("Domestic s Ton") FROM "2-1645670-2" WHERE "Total s Ton" = 2926536.0 AND "Foreign Imports s Ton" < 464774.0;

Question: what is the average foreign imports s tone when the total s tone is 3157247 and the foreign exports s ton is less than 358493?
SQL: SELECT AVG("Foreign Imports s Ton") FROM "2-1645670-2" WHERE "Total s Ton" = 3157247.0 AND "Foreign Exports s Ton" < 358493.0;

Question: how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2983137?
SQL: SELECT COUNT("Foreign Total s Ton") FROM "2-1645670-2" WHERE "U.S. Rank" = 102.0 AND "Year" < 2006.0 AND "Total s Ton" < 2983137.0;

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?
SQL: SELECT MAX("U.S. Rank") FROM "2-1645670-2" 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;