---
schema_version: "1"
id: b6341983aa064348377e2f7e28bc71da57c9fc87dae3cd3b67726520411d1a61
title: Introduction
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-overview-intro.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-overview-intro.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0ba87e67f9510b70c3514c42414f60c0fbc2fa28d02afd667492fabb881d1c2a
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# Introduction

Most actions you take in Analytics result in one or more SAQL queries. Every lens, dashboard, and explorer action generates and executes a SAQL query to build the data needed for the visualization.

Analytics evaluates queries, widgets, and layouts to render a dashboard. Behind every widget is a SAQL query which is sent the query engine for execution. The resulting data is passed to the charting library, which renders it using corresponding widget definitions. SAQL is influenced by the Apache Pig Latin (pigql) syntax, but their implementations differ, and they are not compatible.

![Diagram showing stylized relationship between client/server components](https://developer.salesforce.com/media/bi_dev_guide_saql/wave_saql_perf_query_journey1.png "How the components fit together")

Developers can write SAQL to access Analytics data, either via the Analytics REST API, or by creating and editing SAQL queries contained in the dashboard JSON.

A SAQL query loads an input dataset, operates on it, and outputs a results dataset. Each SAQL statement has an input stream, an operation, and an output stream. Statements can span multiple lines and must end with a semicolon. Each query line is assigned to a named stream. A named stream can be used as input to any subsequent statement in the same query. The only exception to this rule is the last line in a query, which you don’t need to assign explicitly.
