Task: Text to Code
Input (English): What is the last name of every student who is either female or living in a city with the code BAL or male and under 20?
Output (English): SELECT lname FROM student WHERE sex  =  'F' AND city_code  =  'BAL' UNION SELECT lname FROM student WHERE sex  =  'M' AND age  <  20