Task: Text to Code
Input (English): Step 1: For each row in party table, find the corresponding rows in election table.
Step 2: find the number of rows of each value of District in the results of step 1.
Step 3: find Attorney_General of step 1 results with largest value in the results of step 2
Output (English): SELECT T1.Attorney_General FROM party AS T1 JOIN election AS T2 ON T1.Party_ID = T2.Party GROUP BY T2.District ORDER BY Count ( * ) Desc LIMIT 1