content/influxdb3/cloud-serverless/query-data/execute-queries/data-explorer.md
Build, execute, and visualize SQL queries in the InfluxDB UI Data Explorer.
<!--Need a screenshot of the SQL builder with a pretty graph-->Query using saved scripts, the SQL builder, or by manually editing the query. Choose between visualization types for your query.
In the navigation menu on the left, click Data Explorer.
{{< nav-icon "data-explorer" >}}
Activate the SQL Sync toggle in the Schema Browser pane to build your SQL query as you select fields and tag values.
Select a Bucket to define your data source.
Select a Measurement from the bucket.
Data Explorer inserts a SELECT statement to retrieve all columns in the selected measurement:
SELECT *
FROM home
To add filter conditions to your query, select from the Fields and Tag Keys lists.
Use the time range dropdown to edit the time range for your query.
Use the script editor to customize your query--for example, to specify what tags and fields to retrieve:
SELECT temp, time
FROM home
Click the Run button (or press Control+Enter) to run your query and view the results.
See Query data to learn more about building SQL queries.
[!Note]
Save your work
Data Explorer keeps your last change--for example, if you navigate to Buckets or signout and then come back, you'll see your SQL query and selections in Data Explorer.
To store a query that you can retrieve and reuse, {{% caps %}}Save{{% /caps %}} your query as a script.
After you Run your query, Data Explorer displays the results.