Data Q&A overview

Updated at:

Concepts

Data Q&A is a feature that provides intelligent answers to questions about your tabular data. It supports actions such as query and inference. Data Q&A uses natural language processing (NLP) to translate your questions into SQL statements. It then executes these statements to perform queries and inference, returning the results as an answer. The following figure shows how this works:

image.png

Use cases

Data Q&A is ideal for scenarios where you have extensive tabular business data and need to answer user questions by querying it.

Existing tables

Query and inference

Database integration

  • You have existing business tables.

  • You have table-like data that you can easily convert into tables.

  • You can organize your data into tables with minimal effort.

  • You need to query single or multiple instances and attributes.

  • You need to perform inference and calculations, such as finding maximum/minimum values, making comparisons, or grouping and sorting.

  • You have large-scale tables with millions of records.

  • Your table data is frequently updated.

  • In these scenarios, you can automate responses by importing your tables. You can further improve performance by adjusting the Q&A Settings.

Features

Data Q&A provides the following core capabilities:

Capability

Description

Example question

Single/multi-column query

Selects one or more columns in a SELECT clause.

List the name and price for models with a fuel consumption greater than 8 and a power output less than 200.

Aggregate function query

The SELECT clause supports various aggregate functions, including COUNT, SUM, AVG, MAX, and MIN.

What are the records for the Gold Award, and what is the latest award date?

Value comparison

The WHERE clause supports operators such as equal to, greater than, less than, and not equal to.

What is the number of applicants for positions that require a bachelor's degree, where the number of approved candidates is greater than 20 and less than 30?

Multiple conditions

The WHERE clause supports combining multiple conditions by using AND or OR.

What is the total reservoir capacity in the Yangtze River basin and the Pearl River basin?

Automatic column name completion

When you query using a column_name = value condition, you can omit the column name.

Who are the students in computer science or those with excellent grades? What are their student IDs?

Generalization capability

You do not need to use exact column names in your questions.

Which SUVs have a fuel consumption below 5?

TOP N

Returns the top N or bottom N results.

What were the top 10 provinces for sales in 2023?

Sequential comparison

Compares data from the current period to the previous period.

What was the sequential growth in total sales for the dealer 'Mao Long' in the first quarter of this year?

Year-over-year comparison

Compares data from the current period to the same period in the previous year.

What was the year-over-year growth in total sales for the dealer 'Mao Long' in the first quarter of this year?