Task: Text to Code
Input (English): Step 1: For each row in Statements table, find corresponding rows in Documents table and in Accounts table.
Step 2: find Accounts's Statement_ID, Document_Description, Account_Details of the results of step 1
Output (English): SELECT T3.Statement_ID , T1.Document_Description , T3.Account_Details FROM Documents AS T1 JOIN Statements AS T2 ON T1.Document_ID = T2.Statement_ID JOIN Accounts AS T3 ON T2.Statement_ID = T3.Statement_ID