Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:

Convert text to sql: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. | list : lastname , firstname , grade , classroom | teachers : lastname , firstname , classroom | 

### Response:

select _ , count ( distinct _ ) , count ( _ ) from _ group by _ | select grade , count ( distinct classroom ) , count ( * ) from list group by grade