Generate a correct SQL query to retrieve all the data from a column called “messages” in a table called “chats”
```sql
SELECT messages FROM chats;
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a correct SQL query to retrieve all the data from a column called “messages” in a table called “chats”

### Output:
```sql
SELECT messages FROM chats;
```