Task: Text to Code
Input (English): SQL: SELECT Avg ( LifeExpectancy ) FROM country WHERE Continent = "Africa"
Feedback: Be certain that those contries have Republic in their government form .
Output (English): SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  "Africa" AND GovernmentForm  =  "Republic"