Task: Text to Code
Input (English): Step 1: For each row in Third_Party_Companies table, find the corresponding rows in Maintenance_Contracts table.
Step 2: find company_name of the results of step 1 with smallest value of contract_end_date
Output (English): SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_end_date Asc LIMIT 1