Task: Text to Code
Input (English): Step 1: For each row in member table, find the corresponding rows in purchase table.
Step 2: find the summation of Total_pounds in the results of step 1 whose Level equals 6
Output (English): SELECT Sum ( T2.Total_pounds ) FROM member AS T1 JOIN purchase AS T2 ON T1.Member_ID = T2.Member_ID WHERE T1.Level = 6