---
title: Native Queries
sidebarTitle: Native Queries
---

## Description

The `query()` function is executed on a data source connected to MindsDB and saved into a variable. This native query is executed directly on a data source.

## Syntax

Here is the syntax:

```sql
my_data_source.query('SELECT * FROM datasource_name (<native query here>);')
```
