Classes More Than 5 Students
<p>Table: <code>Courses</code></p>

<pre>
+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| student     | varchar |
| class       | varchar |
+-------------+---------+
(student, class) is the primary key (combination of columns with unique values) for this table.
Each row of this table indicates the name of a student and the class in which they are enrolled.
</pre>

<p>&nbsp;</p>

<p>Write a solution to find all the classes that have <strong>at least five students</strong>.</p>

<p>Return the result table in <strong>any order</strong>.</p>

<p>The&nbsp;result format is in the following example.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>

<pre>
<strong>Input:</strong> 
Courses table:
+---------+----------+
| student | class    |
+---------+----------+
| A       | Math     |
| B       | English  |
| C       | Math     |
| D       | Biology  |
| E       | Math     |
| F       | Computer |
| G       | Math     |
| H       | Math     |
| I       | Math     |
+---------+----------+
<strong>Output:</strong> 
+---------+
| class   |
+---------+
| Math    |
+---------+
<strong>Explanation:</strong> 
- Math has 6 students, so we include it.
- English has 1 student, so we do not include it.
- Biology has 1 student, so we do not include it.
- Computer has 1 student, so we do not include it.
</pre>

[]
['Create table If Not Exists Courses (student varchar(255), class varchar(255))', 'Truncate table Courses', "insert into Courses (student, class) values ('A', 'Math')", "insert into Courses (student, class) values ('B', 'English')", "insert into Courses (student, class) values ('C', 'Math')", "insert into Courses (student, class) values ('D', 'Biology')", "insert into Courses (student, class) values ('E', 'Math')", "insert into Courses (student, class) values ('F', 'Computer')", "insert into Courses (student, class) values ('G', 'Math')", "insert into Courses (student, class) values ('H', 'Math')", "insert into Courses (student, class) values ('I', 'Math')"]
[{"value": "mysql", "text": "MySQL", "defaultCode": "# Write your MySQL query statement below\n"}, {"value": "mssql", "text": "MS SQL Server", "defaultCode": "/* Write your T-SQL query statement below */\n"}, {"value": "oraclesql", "text": "Oracle", "defaultCode": "/* Write your PL/SQL query statement below */\n"}, {"value": "pythondata", "text": "Pandas", "defaultCode": "import pandas as pd\n\ndef find_classes(courses: pd.DataFrame) -> pd.DataFrame:\n    "}, {"value": "postgresql", "text": "PostgreSQL", "defaultCode": "-- Write your PostgreSQL query statement below\n"}]
{"mysql": ["Create table If Not Exists Courses (student varchar(255), class varchar(255))"], "mssql": ["Create table Courses (student varchar(255), class varchar(255))"], "oraclesql": ["Create table Courses (student varchar(255), class varchar(255))"], "database": true, "name": "find_classes", "pythondata": ["Courses = pd.DataFrame([], columns=['student', 'class']).astype({'student':'object', 'class':'object'})"], "postgresql": ["Create table If Not Exists Courses (student varchar(255), class varchar(255))"], "database_schema": {"Courses": {"student": "VARCHAR(255)", "class": "VARCHAR(255)"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']