Table:
0
A
B
C
D
E
F
G
1
Year
U.S. Rank
Total s Ton
Domestic s Ton
Foreign Total s Ton
Foreign Imports s Ton
Foreign Exports s Ton
2
2006
102
2,926,536
2,306,192
620,344
464,774
155,570
3
2005
94
3,527,469
2,629,553
897,916
430,396
467,520
4
2004
101
3,085,753
2,323,089
762,664
284,347
478,317
5
2003
96
3,178,633
2,494,261
684,372
218,233
466,139
6
2002
102
2,983,137
2,318,653
664,484
251,203
413,281
7
2001
108
2,861,134
2,157,496
703,638
225,281
478,357
8
2000
103
3,157,247
2,416,514
740,733
382,240
358,493

Questions and formulas:
Question: how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102?
Formula: ROWS(UNIQUE(FILTER(A1, (C1<2983137)*(B1<102))))
Formula2: ROWS(UNIQUE(FILTER(A2:A8, (C2:C8<2983137)*(B2:B8<102))))
Level: medium
Question: what is the average domestic s tone when the foreign imports s tone is less than 225,281 and the year is later than 2003?
Formula: AVERAGE(FILTER(D1, (F1<225281)*(A1>2003)))
Formula2: AVERAGE(FILTER(D2:D8, (F2:F8<225281)*(A2:A8>2003)))
Level: easy
Question: what is the average domestic s tone when the total s tone is 2,926,536 and the foreign imports s tone is less than 464,774?
Formula: AVERAGE(FILTER(D1, (C1=2926536)*(F1<464774)))
Formula2: AVERAGE(FILTER(D2:D8, (C2:C8=2926536)*(F2:F8<464774)))
Level: easy
Question: 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?
Formula: AVERAGE(FILTER(F1, (C1=3157247)*(G1<358493)))
Formula2: AVERAGE(FILTER(F2:F8, (C2:C8=3157247)*(G2:G8<358493)))
Level: easy
Question: how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137?
Formula: SUM(FILTER(E1, (B1=102)*(A1<2006)*(C1<2983137)))
Formula2: SUM(FILTER(E2:E8, (B2:B8=102)*(A2:A8<2006)*(C2:C8<2983137)))
Level: easy
Question: what is the highest u.s. rank when the foreign total s ton is more than 703,638, the year is earlier than 2005, the foreign imports s ton is 284,347 and the foreign exports s ton is smaller than 478,317?
Formula: MAX(FILTER(B1, (E1>703638)*(A1<2005)*(F1=284347)*(G1<478317)))
Formula2: MAX(FILTER(B2:B8, (E2:E8>703638)*(A2:A8<2005)*(F2:F8=284347)*(G2:G8<478317)))
Level: easy