Task: Text to Code
Input (English): How many king beds are there?
Output (English): SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King'