db_id stringclasses 217
values | question stringlengths 22 603 | evidence stringlengths 0 749 | SQL stringlengths 26 3.45k | sql_variation_type stringclasses 6
values | sql_source stringclasses 1
value | data_source stringclasses 3
values | question_type stringclasses 8
values | prompt stringlengths 1.54k 33.3k | cot_reasoning stringlengths 795 5.38k |
|---|---|---|---|---|---|---|---|---|---|
restaurants | Could you please find out the number of restaurants for each type of food in every city? I need to know the names of these cities and the types of food offered there! | SELECT t2.city_name, t1.food_type, COUNT(t1.id) AS number_of_restaurants
FROM restaurant AS t1
JOIN geographic AS t2 ON t1.city_name = t2.city_name
GROUP BY t2.city_name, t1.food_type; | Business Logic Changes | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To convert the natural language request into an SQL query, we need to focus on the specific information required:
1. We want to know the number of restaurants for each type of food in every city.
2. We need to display the names of the cities and the types of food available in those cities.
Given the schema, the neces... | |
restaurants | List house numbers of French restaurants on Main Street in the Yosemite and Mono Lake area with an even ID and a rating above 2.5. Include their names and categorize their ratings as Excellent, Good, or Average. | SELECT
t3.house_number,
t1.name,
CASE
WHEN t1.rating >= 4.5 THEN 'Excellent'
WHEN t1.rating >= 3.5 THEN 'Good'
ELSE 'Average'
END AS rating_category
FROM
restaurant AS t1
JOIN
geographic AS t2 ON t1.city_name = t2.city_name
JOIN
LOCATION AS t3 ON t1.id = t3.... | Complexity Enhancements | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, let's follow the step-by-step reasoning:
1. **Understand the requirements**:
- We need to find house numbers of French restaurants on Main Street.
- These restaurants should be in the Yosemite and Mono Lake area, have an even ID, and rat... | |
restaurants | What are the locations and names of well-rated Italian spots around Yosemite and Mono Lake? | "well-rated" refers to a rating greater than 3; "Italian spots" refers to restaurants serving Italian food; "around Yosemite and Mono Lake" refers to the specific geographic area named "yosemite and mono lake area." | SELECT t3.house_number, t1.name
FROM restaurant AS t1
JOIN geographic AS t2 ON t1.city_name = t2.city_name
JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id
WHERE t2.region = "yosemite and mono lake area"
AND t1.food_type = "italian"
AND t1.rating > 3
ORDER BY t1.rating DESC; | Data Value Transformations | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, we first need to understand the requirements outlined in the question:
1. **Identify the appropriate region**: The natural language question specifies the geographic area named "yosemite and mono lake area." This will be matched against the `REGI... |
restaurants | Identify the house numbers and names of French restaurants with a rating above 2.5 located within the 'yosemite and mono lake area' region. | WITH FilteredRestaurants AS (
SELECT id, city_name
FROM restaurant
WHERE food_type = 'french' AND rating > 2.5
)
SELECT t3.house_number, t1.name
FROM restaurant AS t1
JOIN location AS t3 ON t1.id = t3.restaurant_id
WHERE EXISTS (
SELECT 1
FROM FilteredRestaurants AS fr
JOIN geographic AS t2 ON ... | Query Structure Modifications | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To convert the natural language question into an executable SQL query, we need to follow these steps:
1. **Understand the requirements**: We want to find the house numbers and names of French restaurants with a rating above 2.5, located in a specific region: 'yosemite and mono lake area'.
2. **Identify the tables inv... | |
restaurants | Identify the house numbers and names of French restaurants located in cities within the "yosemite and mono lake area" region that have a rating above 2.5. | SELECT t3.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id
WHERE t1.city_name IN (
SELECT city_name FROM geographic WHERE region = "yosemite and mono lake area"
)
AND t1.food_type = "french"
AND t1.rating > 2.5; | Performance and Optimization | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, let's systematically break down the problem:
1. **Identify Tables and Relevant Columns**:
- We need to pull information from two tables: `RESTAURANT` and `LOCATION`.
- Relevant columns from `RESTAURANT`: `NAME`, `FOOD_TYPE`, `CITY_NAME`,... | |
restaurants | Identify the house numbers and names of French restaurants with a rating higher than 2.5, located in the region referred to as Yosemite and Mono Lake Area. | SELECT t3.house_number, t1.name
FROM geographic AS t2
JOIN restaurant AS t1 ON t1.city_name = t2.city_name AND t1.food_type = 'french' AND t1.rating > 2.5
JOIN location AS t3 ON t1.id = t3.restaurant_id
WHERE t2.region = 'yosemite and mono lake area'; | Performance and Optimization | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct the SQL query that identifies the house numbers and names of French restaurants with a rating higher than 2.5, located in the region called Yosemite and Mono Lake Area, follow these steps:
1. **Identify Tables and Columns**:
- We need information about restaurants, which is spread across three tables: ... | |
restaurants | Hey! Could you find out which cities in the Yosemite and Mono Lake area have French restaurants, and let me know the average ratings for those restaurants in each city? | SELECT
t2.city_name,
AVG(t1.rating) AS average_rating
FROM
restaurant AS t1
JOIN
geographic AS t2 ON t1.city_name = t2.city_name
WHERE
t2.region = "yosemite and mono lake area"
AND t1.food_type = "french"
GROUP BY
t2.city_name; | Business Logic Changes | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the question of finding cities in the Yosemite and Mono Lake area that have French restaurants and determining the average ratings for those restaurants, let’s break down the requirements step-by-step:
1. **Identify the Relevant Tables**:
- We need information about cities, which is stored in the `GEOGRA... | |
restaurants | Where are the addresses and what are the names of those fine eateries in the San Francisco Bay Area? (Hint: They specialize in French cuisine and are well-regarded.) | The phrase "fine eateries" commonly suggests restaurants with higher quality or ratings; being well-regarded implies a rating above average, often more than 3 out of a given scale. | SELECT t3.house_number, t1.name
FROM restaurant AS t1
JOIN geographic AS t2 ON t1.city_name = t2.city_name
JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id
WHERE t2.region = "san francisco bay area" AND t1.food_type = "french" AND t1.rating > 3
ORDER BY t1.rating DESC; | Data Value Transformations | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, we need to break down the task into more manageable steps and relate them to the database schema provided.
1. **Identify Key Requirements:**
- We need restaurant addresses and names.
- Restaurants are located in the San Francisco Bay Are... |
restaurants | Could you provide the house numbers, names, ratings, and rating categories of French restaurants with ratings above 2.5 located in the Yosemite and Mono Lake Area, whose street names start with 'M' and belong to a county with a specific name pattern? | SELECT
t3.house_number,
t1.name,
t1.rating,
CASE
WHEN t1.rating >= 4.0 THEN 'Good'
WHEN t1.rating > 2.5 THEN 'Fair'
ELSE 'Poor'
END AS rating_category
FROM
restaurant AS t1
JOIN
geographic AS t2 ON t1.city_name = t2.city_name
JOIN
LOCATION AS t3 ON t1.id... | Complexity Enhancements | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve this problem, let's carefully translate the details provided in the natural language question into an SQL query that fits the given schema.
**Steps and Reasoning:**
1. **Identify the Required Tables:**
- We need information about restaurants, which is stored in the `RESTAURANT` table.
- We need informa... | |
restaurants | Hey there! Could you tell me how many unique restaurants serve different types of food in each region? I’m curious to know both the food types and regions they’re in! | SELECT t2.region, t1.food_type, COUNT(DISTINCT t1.id) AS restaurant_count
FROM restaurant AS t1
JOIN geographic AS t2 ON t1.city_name = t2.city_name
GROUP BY t2.region, t1.food_type; | Business Logic Changes | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To convert the natural language question into a SQL query, let's break down the requirements:
1. **Identify the unique restaurants**: We are interested in counting unique restaurants. Restaurants have unique IDs, so we need the count of distinct IDs.
2. **Food types and Regions**: We need to link each restaurant's fo... | |
restaurants | Can you provide the house numbers, names, and street names of French restaurants located in the Yosemite and Mono Lake area that have a rating greater than 2.5? Additionally, categorize these restaurants as 'Excellent,' 'Good,' or 'Average' based on their ratings. | SELECT
t3.house_number,
t1.name,
CASE
WHEN t1.rating > 4.5 THEN 'Excellent'
WHEN t1.rating > 3.5 THEN 'Good'
ELSE 'Average'
END AS rating_category,
t3.street_name
FROM
restaurant AS t1
JOIN
geographic AS t2 ON t1.city_name = t2.city_name
JOIN
location AS... | Complexity Enhancements | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To create an executable SQLite query that addresses the given natural language question, let's break down the requirements step by step:
1. **Identify Relevant Information**:
- We need information about French restaurants located in the "Yosemite and Mono Lake area."
- Only restaurants with a rating greater than... | |
restaurants | In the "yosemite and mono lake area" region, list the cities and the number of distinct cuisines offered in each city. | SELECT
t2.city_name,
COUNT(DISTINCT t1.food_type) AS cuisine_variety_count
FROM
restaurant AS t1
JOIN
geographic AS t2 ON t1.city_name = t2.city_name
WHERE
t2.region = "yosemite and mono lake area"
GROUP BY
t2.city_name; | Business Logic Changes | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into a SQL query for an SQLite database, we’ll follow these steps:
1. **Understand the Question Requirements**: The task is to list the number of distinct cuisines available in each city within a specific region, "yosemite and mono lake area".
2. **Identify Relevant Tables a... | |
restaurants | What are the regions and their average ratings for Arabic restaurants? | SELECT g.REGION, AVG(r.RATING) AS average_rating
FROM RESTAURANT AS r
JOIN GEOGRAPHIC AS g ON r.CITY_NAME = g.CITY_NAME
WHERE r.FOOD_TYPE = "arabic"
GROUP BY g.REGION; | Business Logic Changes | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question "What are the regions and their average ratings for Arabic restaurants?" into an executable SQLite query, let's go through the following steps:
1. **Identify the Relevant Tables:**
- Since we need to determine regions and average ratings for Arabic restaurants:
- The ... | |
restaurants | Could you please locate all Arabic restaurants with a rating greater than 2.5 in the city of Mountain View? I need to know their names and the house numbers where they are located! | SELECT L.house_number, R.name
FROM (SELECT CITY_NAME, RESTAURANT_ID, HOUSE_NUMBER FROM LOCATION WHERE CITY_NAME = "mountain view") AS L
JOIN (SELECT ID, NAME FROM RESTAURANT WHERE FOOD_TYPE = "arabic" AND RATING > 2.5) AS R
ON L.RESTAURANT_ID = R.ID; | Performance and Optimization | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, we need to query information from the `RESTAURANT` and `LOCATION` tables in accordance with the database schema provided. The goal is to identify Arabic restaurants with a rating greater than 2.5 located in Mountain View. We want the restaurant names and their corresponding house numbers.
Let's b... | |
restaurants | What are the house numbers and names of Italian restaurants in Sunnyvale with a rating greater than 3.5, ordered by the name of the restaurant in ascending order? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "sunnyvale"
AND t1.food_type = "italian"
AND t1.rating > 3.5
ORDER BY t1.name ASC; | Data Value Transformations | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into a SQL query, we need to extract specific details and map them to the database schema. Let's break down the process:
### Natural Language Question Analysis:
1. **Objective**: List house numbers and names of Italian restaurants.
2. **Location**: Sunnyvale.
3. **Rating Filt... | |
restaurants | Names of Arabic restaurants with a rating above 2.5 located in Mountain View. | SELECT name
FROM restaurant AS t1
WHERE t1.food_type = "arabic"
AND t1.rating > 2.5
AND EXISTS (
SELECT 1
FROM LOCATION AS t2
WHERE t2.restaurant_id = t1.id
AND t2.city_name = "mountain view"
); | Query Structure Modifications | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, we need to identify the names of Arabic restaurants located in Mountain View that have a rating above 2.5. Here are the steps to formulate the correct SQL query:
1. **Identify the necessary tables**:
- We need the `RESTAURANT` table to filter restaurants by food type ("Arabic") and rating.
... | |
restaurants | Hey there! Could you tell me which Italian restaurants in Mountain View have a rating of at least 3.0? I'd love to know their names and their exact house numbers, with the highest-rated ones listed first! | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "italian"
AND t1.rating >= 3.0
ORDER BY t1.rating DESC; | Data Value Transformations | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | Let's break down the given natural language question and convert it into an SQLite query, step-by-step:
1. **Identify the Relevant Tables:**
- We need to find Italian restaurants, so the table `RESTAURANT` is necessary because it contains information about restaurant names, food types, and ratings.
- We also nee... | |
restaurants | What is the average rating and the number of restaurants for each type of food available in the Silicon Valley region? | SELECT
g.REGION,
r.FOOD_TYPE,
AVG(r.RATING) AS AVERAGE_RATING,
COUNT(r.ID) AS NUMBER_OF_RESTAURANTS
FROM
RESTAURANT r
JOIN
GEOGRAPHIC g ON r.CITY_NAME = g.CITY_NAME
WHERE
g.REGION = "Silicon Valley"
GROUP BY
g.REGION,
r.FOOD_TYPE; | Business Logic Changes | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To formulate the correct SQL query based on the given natural language question, we will examine the schema and determine the necessary steps:
1. **Identify Relevant Tables**: The question involves information about restaurants and their ratings, food types, and geographic locations. Therefore, the relevant tables are... | |
restaurants | Could you provide the house numbers, names, and geographic regions of restaurants situated on Main Blvd in Mountain View that specialize in Arabic food with a rating above 2.5, and specify whether they offer Middle Eastern Cuisine or other types of cuisine? | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.food_type IN ('arabic', 'middle_eastern') THEN 'Middle Eastern Cuisine'
ELSE 'Other Cuisine'
END AS cuisine_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g... | Complexity Enhancements | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To address the natural language question, we need to retrieve details about specific restaurants from the database. Let's break down the requirements and understand how to translate them into an SQL query:
1. **Identify the tables involved**:
- We need information about restaurants, which is stored in the `RESTAURA... | |
restaurants | Arabic restaurants in Mountain View with a rating over 2.5, return their names. | SELECT name
FROM restaurant AS t1
WHERE t1.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 2.5
AND EXISTS (
SELECT 1
FROM LOCATION AS t2
WHERE t1.id = t2.restaurant_id
AND t2.city_name = "mountain view"
); | Query Structure Modifications | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the question, "Arabic restaurants in Mountain View with a rating over 2.5, return their names," we need to construct a SQL query that extracts the relevant data from the database.
Let's break down the requirements step by step:
1. **Table Identification**: We need data about restaurants, specifically their ... | |
restaurants | Arabic restaurants in Mountain View with ratings above 3.5, list their names and house numbers. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 3.5
ORDER BY t1.name ASC; | Data Value Transformations | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's break down the requirements:
1. **Identify Restaurants**: We're interested in Arabic restaurants.
2. **Location Filter**: These restaurants should be located in Mountain View.
3. **Rating Filter**: We only want restaurants with a rating above 3.5.
4. ... | |
restaurants | What is the average rating of Arabic food restaurants in each geographic region? | SELECT g.REGION, AVG(r.RATING) AS average_rating
FROM RESTAURANT AS r
JOIN GEOGRAPHIC AS g ON r.CITY_NAME = g.CITY_NAME
WHERE r.FOOD_TYPE = "arabic"
GROUP BY g.REGION; | Business Logic Changes | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQLite query, we need to follow these steps:
1. **Understand the database schema**:
- The `RESTAURANT` table contains information about each restaurant, including its ID, name, food type, the city it is located in, and its rating.
- The `GEOGRAPHIC` table conta... | |
restaurants | Hey! Could you tell me which Arabic restaurants in Mountain View are in the Northern region, have a rating above 2.5, and have valid street names? I'd love to know their house number, name, whether they're highly or moderately rated, and the region they're in! | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating > 4 THEN 'Highly Rated'
ELSE 'Moderately Rated'
END AS rating_category,
t3.region
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS t3 ON t1.city_name = t3.city_name
WHERE
... | Complexity Enhancements | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve this problem, let's break down the requirements specified in the natural language question and construct an appropriate SQL query based on the given database schema. The task requires filtering Arabic restaurants located in the Northern region within Mountain View city. Additional details include enforcing a r... | |
restaurants | Could you please gather the house numbers, names, and average ratings of Arabic restaurants in Mountain View that have a rating above 2.5 and also feature on the list with an average food type rating above 3? Ensure the results are ordered by their average rating, starting from the highest! | WITH RECURSIVE descendants AS (
SELECT id, name, 1 AS generation
FROM restaurant
WHERE rating > 2.5
UNION ALL
SELECT r.id, r.name, d.generation + 1
FROM restaurant r
JOIN descendants d ON r.id > d.id -- hypothetical hierarchical relationship by ID
),
restaurant_average AS (
SELECT id, n... | Advanced SQL Features | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To accurately translate the given natural language request into an SQL query, follow these steps:
### Understanding the Requirements
1. **Target Tables**:
- **RESTAURANT**: To filter Arabic restaurants in Mountain View with a rating above 2.5.
- **LOCATION**: To gather house numbers associated with these restaur... | |
restaurants | Find names of Arabic restaurants with a rating above 2.5 located in Mountain View. | SELECT name
FROM restaurant AS t1
WHERE t1.food_type = "arabic"
AND t1.rating > 2.5
AND EXISTS (
SELECT 1
FROM LOCATION AS t2
WHERE t1.id = t2.restaurant_id
AND t2.city_name = "mountain view"
); | Query Structure Modifications | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQLite query, we need to follow these steps:
1. **Understand the task**: We are required to find the names of Arabic restaurants with a rating above 2.5 located specifically in Mountain View.
2. **Identify relevant tables and columns**:
- We need information about... | |
restaurants | What are the cities that host gastronomic gardens of Arabic cuisine and how many of these culinary treasures, with a rating above 2.5 stars, blossom there? Also, what is the average satisfaction of these cuisine's patrons within each city? | An average in this context is a measure of the central tendency of the ratings; "gastronomic gardens" is a metaphorical term for restaurants; "stars" often refer to ratings in food and hospitality industries; "culinary treasures" alludes to highly rated restaurants. | SELECT t2.city_name, COUNT(t1.id) AS total_restaurants, AVG(t1.rating) AS average_rating
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t1.food_type = "arabic" AND t1.rating > 2.5
GROUP BY t2.city_name; | Business Logic Changes | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, we need to identify the cities that have restaurants serving Arabic cuisine with a rating above 2.5 and calculate the count and average rating of these restaurants within each city. Here’s a step-by-step breakdown:
1. **Identify Required Tables and Columns**:
- We need to work with the `RESTA... |
restaurants | Could you provide the house numbers, names, geographic regions, and rating categories for all Arabic restaurants in Mountain View that have a rating above 2.5, ensure they are validly named, and are in valid locations? The rating categories should classify the ratings as either Excellent, Good, Average, or Below Averag... | SELECT
t2.house_number,
t1.name,
t3.region,
CASE
WHEN t1.rating >= 4.5 THEN 'Excellent'
WHEN t1.rating >= 3.5 THEN 'Good'
WHEN t1.rating > 2.5 THEN 'Average'
ELSE 'Below Average'
END AS rating_category
FROM
restaurant AS t1
JOIN
location AS t2 ON t1.id = t... | Complexity Enhancements | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To convert the provided natural language question into a SQL query, consider the following steps:
1. **Tables Involved**:
- `RESTAURANT`: This table is essential to select Arabic restaurants and to filter based on rating.
- `LOCATION`: This table is required to retrieve the house numbers and ensure the location... | |
restaurants | What are the house numbers and names of some well-rated Italian eateries in San Francisco? | "Well-rated" generally implies a rating above average; "Italian eateries" refers to restaurants serving Italian cuisine; "some" suggests a subset of all available results, emphasizing a limited number such as the top 10. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2
ON t1.id = t2.restaurant_id
WHERE t2.city_name = "san francisco"
AND t1.food_type = "italian"
AND t1.rating > 3.0
ORDER BY t1.name ASC
LIMIT 10; | Data Value Transformations | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, we need to extract specific details about Italian restaurants in San Francisco with a rating above average. Let's break down the requirements and create the SQL query step by step:
1. **Identify Tables and Columns**:
- We need information about restaurants, specifically their names, food type,... |
restaurants | For restaurants in Mountain View offering Arabic or Mediterranean cuisine with a rating above 2.5, return their house number, name, rating category (top or moderate), name validation, house number validation, and region. | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating >= 4.5 THEN 'Top Rated'
ELSE 'Moderately Rated'
END AS rating_category,
CASE
WHEN LENGTH(t1.name) > 0 THEN 'Valid Name'
ELSE 'Invalid Name'
END AS name_validation,
CASE
WHEN t2.house_number > 0... | Complexity Enhancements | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we need to extract and process the necessary pieces of information:
1. **Tables to Use**: We need information from the `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC` tables. Specifically:
- From `RESTAURANT`: the restaurant name, food type, and rating.
- ... | |
restaurants | Return the house numbers and names of Arabic restaurants in Mountain View with a rating exceeding 2.5, given that there exists a geographic record for Mountain View. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN location AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 2.5
AND EXISTS (
SELECT 1 FROM geographic AS g
WHERE g.city_name = t2.city_name
); | Performance and Optimization | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's break down the requirements step by step:
1. **Identify the Tables and Columns Needed**:
- We are looking for house numbers and names of restaurants, so we need the `NAME` column from the `RESTAURANT` table and the `HOUSE_NUMBER` from the `LOCATION... | |
restaurants | Can you tell me which places serving Italian cuisine in San Francisco are highly regarded and where they are located? | "In San Francisco" refers to restaurants located there; "places serving Italian cuisine" refers to restaurants offering Italian food; "highly regarded" implies having a rating above 3.5 on a typical 5-point scale. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "san francisco"
AND t1.food_type = "italian"
AND t1.rating > 3.5
ORDER BY t1.rating DESC; | Data Value Transformations | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, we need to identify the relevant tables and columns from the database schema, then formulate the SQL query that meets the condition specified in the question.
### Step-by-step Solution:
1. **Identify Relevant Tables**:
- The `RESTAURANT` t... |
restaurants | Find the house numbers and names of the top 3 rated Arabic food restaurants in Mountain View, and the top 5 rated Italian food restaurants in San Francisco and Los Angeles. | WITH RECURSIVE food_category_hierarchy(food_type, parent_food_type) AS (
SELECT DISTINCT food_type, NULL FROM restaurant
UNION ALL
SELECT r.food_type, f.parent_food_type
FROM restaurant r
JOIN food_category_hierarchy f ON r.food_type = f.food_type
),
ranked_restaurants AS (
SELECT
t1.id,... | Advanced SQL Features | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve this problem, we need to create an SQL query that retrieves specific details about Arabic and Italian food restaurants from two cities: Mountain View, San Francisco, and Los Angeles. The query should provide information on the top-rated restaurants based on the food category and city criteria specified.
### S... | |
restaurants | Can you provide the house numbers and names of the top 5 Italian restaurants in San Francisco that have a rating greater than 4.0, ordered by their names? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "san francisco"
AND t1.food_type = "Italian"
AND t1.rating > 4.0
ORDER BY t1.name ASC
LIMIT 5; | Data Value Transformations | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the natural language question, we need to:
1. Identify the relevant tables in the database schema that we will need to interact with. These are:
- The `RESTAURANT` table for information about restaurant details such as name, food type, and rating.
- The `LOCATION` table for information about house numb... | |
restaurants | In the vibrant tapestry of San Francisco, where whispers of culinary excellence float through the air, seek out the homes and names of Italian eateries whose stars shine brighter than a mere 3.5, as they outshine their peers in descending brilliance. | In the realm of gastronomy, a rating greater than 3.5 often signifies a level of quality that surpasses the ordinary, akin to a chef's kiss or a dining experience that dances on the palate. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "San Francisco"
AND t1.food_type = "Italian"
AND t1.rating > 3.5
ORDER BY t1.rating DESC; | Data Value Transformations | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, let's break down the question and map it to the database schema provided.
### Step-by-step Analysis:
1. **Identify the Objective:**
- The request is to find the house numbers and names of Italian restaurants with a rating greater than 3.5 in ... |
restaurants | Could you tell me the house numbers and names of Arabic restaurants located in Mountain View that have a rating higher than 2.5? | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN RESTAURANT AS t1 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 2.5; | Performance and Optimization | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct the correct SQL query, we need to address the following key points from the natural language question:
1. **Identify Tables and Columns**:
- We need to retrieve information related to house numbers and restaurant names, implying the usage of `LOCATION` and `RESTAURANT` tables.
- The columns require... | |
restaurants | Hey there! I'm on a mission to find some awesome Arabic restaurants with a decent rating above 2.5. Could you help me get a list of their names and ranks in Mountain View and other places? Oh, and I’d love to know their house numbers as well! | WITH ranked_restaurants AS (
SELECT
t1.id,
t1.name,
t1.food_type,
t1.rating,
t2.city_name,
ROW_NUMBER() OVER (PARTITION BY t2.city_name ORDER BY t1.rating DESC) as rank
FROM
restaurant AS t1
JOIN
location AS t2 ON t1.id = t2.restaurant_id
)... | Advanced SQL Features | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language request into an SQLite query, we need to break down the requirements and construct the SQL query step-by-step. Let's go through the task:
1. **Identify the Required Data**: We need the names, rankings, and house numbers of Arabic restaurants with ratings above 2.5 in "Mountain View" a... | |
restaurants | Hey! Can you help me find out the house numbers and names of restaurants that serve Arabic food in Mountain View with a rating over 2.5? | SELECT
loc.house_number,
rest.name
FROM
LOCATION AS loc
JOIN
RESTAURANT AS rest
ON
loc.RESTAURANT_ID = rest.ID
WHERE
loc.CITY_NAME = "mountain view"
AND rest.FOOD_TYPE = "arabic"
AND rest.RATING > 2.5; | Performance and Optimization | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the provided natural language question, we need to identify the relevant pieces of information and their respective interactions within the database schema. Let's break down the question and map it to the database structure:
1. **Identify the required information:**
- We need to find house numbers and rest... | |
restaurants | Can you show me the house numbers, names, and categorized ratings of Arabic restaurants in Mountain View whose names start with 'A' and have ratings higher than 2.5? Additionally, please include their geographical region, ensuring none of the regions are missing. | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating IS NULL THEN 'No Rating'
WHEN t1.rating > 4 THEN 'Excellent'
WHEN t1.rating > 3 THEN 'Good'
ELSE 'Average'
END AS rating_category,
g.region
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaur... | Complexity Enhancements | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an executable SQL query, let's break down the requirements step-by-step:
1. **Identify Columns Needed**:
- House numbers from the `LOCATION` table.
- Restaurant names and ratings from the `RESTAURANT` table, where ratings are categorized.
- Geographical r... | |
restaurants | Can you provide me with the house numbers and names of up to ten Arabic restaurants in Mountain View that have a rating higher than 3.0, sorted by their name? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 3.0
ORDER BY t1.name
LIMIT 10; | Data Value Transformations | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, we need to break down the requirements step by step:
1. **Identify the Tables Involved**:
- We need information about restaurants (specifically Arabic restaurants).
- We need to know the house number and ensure that it matches the crit... | |
restaurants | Could you tell me the names and house numbers of Arabic restaurants in San Francisco that have a rating higher than 4.0, sorted by the restaurant names? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "san francisco"
AND t1.food_type = "arabic"
AND t1.rating > 4.0
ORDER BY t1.name; | Data Value Transformations | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, we should follow the SQL formulation process while focusing on the relevant tables and fields.
### Step 1: Identify Columns and Tables
The task involves finding:
- Names of restaurants (`NAME` column from `RESTAURANT` table)
- House numbers (`... | |
restaurants | Can you provide the house numbers and names of the top five Mexican restaurants in Los Angeles with a rating greater than 3.5, ordered alphabetically by their names? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "los angeles"
AND t1.food_type = "mexican"
AND t1.rating > 3.5
ORDER BY t1.name ASC
LIMIT 5; | Data Value Transformations | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, let's break it down into specific steps by examining the schema and requirements:
1. **Identify the tables involved**:
- We are looking for information about restaurants, specifically Mexican restaurants, thus we need to use the `RESTAURANT` table for details like `NAME`, `FOOD_TYPE`, and `RA... | |
restaurants | What is the average rating of Arabic restaurants with ratings above 2.5, grouped by region? | SELECT g.REGION, AVG(r.RATING) AS average_rating
FROM RESTAURANT AS r
JOIN LOCATION AS l ON r.ID = l.RESTAURANT_ID
JOIN GEOGRAPHIC AS g ON l.CITY_NAME = g.CITY_NAME
WHERE r.FOOD_TYPE = "arabic" AND r.RATING > 2.5
GROUP BY g.REGION; | Business Logic Changes | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct a SQL query based on the natural language question provided, let's break down the requirements step-by-step before focusing on the SQL implementation:
1. **Identify the necessary tables:**
- The tables relevant to this question are `RESTAURANT` and `GEOGRAPHIC`. The `RESTAURANT` table contains informat... | |
restaurants | What are the locations and rating levels of Arabic cuisine spots in that particular Mountain View area? | "Mountain View" refers to a city in California; "Santa Clara" is a county in California; "locations" can be inferred to include details like house numbers; "rating levels" typically imply categorizations like "High," "Medium," and "Low." | SELECT
t2.house_number,
t1.name,
g.county,
CASE
WHEN t1.rating > 4 THEN 'High'
WHEN t1.rating BETWEEN 3 AND 4 THEN 'Medium'
ELSE 'Low'
END AS rating_label
FROM
restaurant AS t1
JOIN
LOCATION AS t2
ON
t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g
O... | Complexity Enhancements | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we need to follow a clear reasoning process step-by-step:
### Step 1: Identifying the Tables and Columns
- We aim to find locations and rating levels of Arabic cuisine spots in "Mountain View".
- From the schema:
- **RESTAURANT** table contains `FOOD_TYPE... |
restaurants | What are the house numbers and names of Arabic restaurants in Mountain View with a rating above 2.5? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 2.5; | Performance and Optimization | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's break down the requirements step-by-step:
1. **Identify Relevant Tables:**
- We need information about restaurants, specifically their names, food types, and ratings. Thus, the `RESTAURANT` table is relevant.
- We need to find out house numbers.... | |
restaurants | Could you please find the house numbers, names, and regions of all Arabic restaurants in Mountain View that have a rating above 2.5? Also, make sure their region name starts with 'N' and their house number is greater than 0! I need the rating category as 'High', 'Medium', or 'Low' based on their ratings. | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.rating > 4 THEN 'High'
WHEN t1.rating >= 3 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g ON t2.city_name = ... | Complexity Enhancements | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the task, we need to break down the elements of the question and understand how to translate this into an SQL query given the tables and schema provided.
### Steps:
1. **Identify the Tables and Relationships:**
- We have three tables: `GEOGRAPHIC`, `RESTAURANT`, and `LOCATION`.
- `RESTAURANT` contains ... | |
restaurants | Which dining places located in mountain view are known for serving Arabic food and have decent reviews? | "Decent reviews" refers to a rating above 2.5, suggesting the restaurant is generally well-received by customers. | SELECT name
FROM restaurant AS t1
WHERE city_name = "mountain view" AND food_type = "arabic" AND rating > 2.5
AND EXISTS (
SELECT 1
FROM location AS t2
WHERE t1.id = t2.restaurant_id
AND t2.city_name = "mountain view"
); | Query Structure Modifications | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQLite query, we need to identify key elements from the question and map them onto the appropriate tables and their columns in the schema.
### Breakdown of the Natural Language Question
1. **Location Constraint**: The dining places should be located in "mountain view... |
restaurants | Italian restaurants in Mountain View with a rating of 4.0 or higher, return their names and house numbers, ordered by name. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "italian"
AND t1.rating >= 4.0
ORDER BY t1.name ASC; | Data Value Transformations | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To address the natural language question, we need to break down the requirements:
1. **Filter Criteria**:
- The restaurants should be Italian (`FOOD_TYPE = 'Italian'`).
- The restaurants should be located in Mountain View (`CITY_NAME = 'Mountain View'`).
- The restaurants should have a rating of 4.0 or highe... | |
restaurants | Can you list all Arabic restaurants located in Mountain View, whose names start with 'A' and have a rating higher than 2.5, including their house numbers, names, regions, and whether their ratings are categorized as 'High', 'Medium', or 'Low'? | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.rating > 4 THEN 'High'
WHEN t1.rating BETWEEN 3 AND 4 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g ON t2.city... | Complexity Enhancements | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an executable SQLite query, we need to extract the specific requirements and match them with the tables and columns provided in the database schema. Here's a detailed breakdown of each part of the question:
1. **Identify Arabic Restaurants Located in Mountain View:... | |
restaurants | What are the locations, names, and general quality descriptions of the Arabic eateries in that Californian city known for its technological innovators? | "mountain view" is a city in California associated with technology companies like Google; "West" region could refer to western regions of the United States in terms of geographic classification; quality descriptions often involve subjective categories like "Excellent" and "Average," reflecting general quality perceptio... | SELECT
t2.house_number,
t1.name,
t3.region,
t3.county,
CASE
WHEN t1.rating > 4.5 THEN 'Excellent'
WHEN t1.rating > 3.5 THEN 'Good'
WHEN t1.rating > 2.5 THEN 'Average'
ELSE 'Poor'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1... | Complexity Enhancements | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct the SQL query, we need to achieve the following:
### Steps for SQL Query Construction:
1. **Identify Relevant Tables and Columns:**
- We're interested in Arabic eateries located in "Mountain View," California.
- The relevant information is split across three tables:
- `RESTAURANT`: Contains re... |
restaurants | Could you tell me how many restaurants in each city serve Arabic cuisine and have a rating higher than 2.5? | SELECT t2.city_name, COUNT(t1.id) AS restaurant_count
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t1.food_type = "arabic"
AND t1.rating > 2.5
GROUP BY t2.city_name; | Business Logic Changes | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To generate the SQL query from the natural language question "Could you tell me how many restaurants in each city serve Arabic cuisine and have a rating higher than 2.5?" we need to understand the requirements and the relevant tables that must be queried:
1. **Identify the Required Tables**:
- The `RESTAURANT` tab... | |
restaurants | Could you please find all the counties and tell me the average rating of restaurants that serve Arabic food in each of them? I need this information grouped by county! | SELECT t3.COUNTY, AVG(t1.RATING) AS average_rating
FROM RESTAURANT AS t1
JOIN GEOGRAPHIC AS t3 ON t1.CITY_NAME = t3.CITY_NAME
WHERE t1.FOOD_TYPE = "arabic"
GROUP BY t3.COUNTY; | Business Logic Changes | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, let's break down the requirements step-by-step.
### Requirements:
1. **Identify the type of cuisine:**
- The cuisine specified is "Arabic".
- This information is stored in the `RESTAURANT` table under the column `FOOD_TYPE`.
2. **Average ... | |
restaurants | What are the average satisfaction scores for Arabic dining spots in different areas? | "Satisfaction scores" typically refer to customer ratings or reviews for a service or product; "areas" can be inferred as geographic regions; cuisine types such as 'Arabic' usually encompass cultural dishes from Arabic-speaking countries. | SELECT
g.region,
AVG(r.rating) AS avg_rating
FROM
restaurant AS r
JOIN
geographic AS g ON r.city_name = g.city_name
WHERE
r.food_type = 'arabic'
GROUP BY
g.region; | Business Logic Changes | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To address the natural language question, let's deconstruct and transform it into a functional SQL query.
### Components from the Question:
1. **"Average satisfaction scores"**: This implies calculating the average of ratings. In our database schema, satisfaction scores translate to the `RATING` column in the `RESTAU... |
restaurants | In the realm where Arabic flavors dance in Mountain View city, conjure the tale of eateries marked by numbers on Northbound avenues, where the culinary craft shines from 'Average' to 'Excellent'—and reveal the counties they call home. | 'Reaching adulthood' refers to individuals aged 18 and above; 'Northbound' commonly implies the direction or name containing 'North'; 'Dance of flavors' metaphorically describes the array of food types; 'Conjure the tale' suggests the discovery of information or storytelling; 'Eateries' is a casual term for restaurants... | SELECT
t2.house_number,
t1.name,
g.county,
CASE
WHEN t1.rating > 4.5 THEN 'Excellent'
WHEN t1.rating > 3 THEN 'Good'
ELSE 'Average'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g ON t2.city_name = ... | Complexity Enhancements | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, let's break down the steps:
1. **Identify the relevant tables and columns:**
- The question references "Arabic flavors" in "Mountain View," which means we are looking at restaurants in the city "Mountain View" offering food type as "Arabic." T... |
restaurants | Restaurants in Mountain View, serving Arabic food with "Grill" in the name, and a rating above 2.5. Return their house numbers, names, regions, and rating categories. | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.rating > 4.5 THEN 'High'
WHEN t1.rating BETWEEN 3 AND 4.5 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g ON t2... | Complexity Enhancements | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, follow these steps:
1. **Identify the Tables and Columns**:
- We need information from three tables: `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC`.
- Key columns to work with:
- From `RESTAURANT`: `NAME`, `FOOD_TYPE`, `CITY_NAME`, `RA... | |
restaurants | Hey there! Can you help me find the house numbers, names, and regions of Arabic restaurants with a rating better than 2.5 in Mountain View? Oh, and I'd love it if you could also tell me if their ratings are considered low, medium, or high. Just make sure they're on streets that actually have names and are in that speci... | SELECT
t2.house_number,
t1.name,
t3.region,
CASE
WHEN t1.rating <= 2.5 THEN 'Low'
WHEN t1.rating <= 4.0 THEN 'Medium'
ELSE 'High'
END AS rating_category
FROM
restaurant AS t1
JOIN
location AS t2 ON t1.id = t2.restaurant_id
JOIN
geographic AS t3 ON t2.city_n... | Complexity Enhancements | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the natural language question, let's break down the requirements and map them to the relevant SQL query components:
1. **Find Arabic restaurants**: We need to filter for `FOOD_TYPE = "arabic"` in the `RESTAURANT` table.
2. **Rating better than 2.5**: We need to include `RATING > 2.5` in the `RESTAURANT` tabl... | |
restaurants | What homes can be found in Mountain View with elegant dining spots offering either Arabic or Italian flavors and respectable ratings? | "High Rating" and "Moderate Rating" are classifications based on customer feedback; "Mountain View" is a city, possibly known for its diverse culinary scene; Being a "respected dining spot" implies the restaurant is well-reviewed with a rating over 2.5; An elegant dining spot suggests high quality and atmosphere in cul... | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating > 4.0 THEN 'High Rating'
ELSE 'Moderate Rating'
END AS rating_status,
t3.region
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN GEOGRAPHIC AS t3 ON t2.city_name = t3.city_name
WHERE
t2.city_name ... | Complexity Enhancements | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, let's break down the requirements:
1. **Location**: We are interested in homes located in "Mountain View." Therefore, the `CITY_NAME` in the related tables should be "Mountain View".
2. **Restaurant Cuisine**: The restaurants should offer either... |
restaurants | What are the house numbers and names of Arabic restaurants in Sunnyvale with a rating higher than 3.0? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "sunnyvale" AND t1.food_type = "arabic" AND t1.rating > 3.0; | Data Value Transformations | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we need to perform the following steps:
1. **Identify the Tables Involved**:
- We know the query pertains to "Arabic restaurants" and their "ratings". Therefore, the `RESTAURANT` table is relevant as it contains both `FOOD_TYPE` and `RATING` columns.
... | |
restaurants | Could you tell me the number of Arabic food restaurants located in the city "Mountain View" for each county? | SELECT g.COUNTY, COUNT(t1.id) AS restaurant_count
FROM RESTAURANT AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN GEOGRAPHIC AS g ON t2.city_name = g.city_name
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
GROUP BY g.COUNTY; | Business Logic Changes | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's break down the requirements step-by-step:
1. **Identify the Tables and Relevant Fields**:
- We have three tables: `GEOGRAPHIC`, `RESTAURANT`, and `LOCATION`.
- We need information from `RESTAURANT` (to filter by "Arabic" food type) and `GEOGRAPH... | |
restaurants | Identify the house numbers, names, and regions for Arabic restaurants in Mountain View with a rating greater than 2.5, and categorize their ratings as 'High', 'Medium', or 'Low', considering only those located in the North region. | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.rating >= 4.5 THEN 'High'
WHEN t1.rating >= 3.5 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
restaurant AS t1
JOIN
location AS t2 ON t1.id = t2.restaurant_id
JOIN
geographic AS g ON t2.city_nam... | Complexity Enhancements | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we need to thoroughly analyze each component of the question and map it to the appropriate fields and relationships within the database schema. Here's a step-by-step approach:
1. **Identify Tables and Relationships:**
- We have three tables: `RESTAURANT`... | |
restaurants | Unveil the sanctuaries in Mountain View where Arabic delicacies are celebrated above the mundane, boasting house numbers and names of those with a rating surpassing 2.5 on the culinary scale. | - "Sanctuaries" metaphorically refers to the restaurants where one can find refuge and sustenance.
- "Celebrated above the mundane" metaphorically highlights restaurants with a higher rating, implying they offer exceptional experiences as compared to ordinary ones.
- Ratings are often used to gauge quality and satisfac... | SELECT t2.house_number, t1.name
FROM location AS t2
JOIN restaurant AS t1 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
AND t1.rating > 2.5; | Performance and Optimization | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an SQLite query, let's break down the requirements and carefully map them to the database schema provided.
### Requirements Analysis
1. **Location**: We focus on "Mountain View". This means filtering results to entries where the city is "Mountain View".
2. **Cuisi... |
restaurants | Which counties have Arabic restaurants with an average rating greater than 2.5, and what are the average ratings for these counties? | SELECT
t3.county,
AVG(t1.rating) AS average_rating
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS t3 ON t2.city_name = t3.city_name
WHERE
t1.food_type = "arabic"
GROUP BY
t3.county
HAVING
average_rating > 2.5; | Business Logic Changes | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an SQL query, we'll break down the requirements and align them with the provided database schema.
### Requirements Analysis
1. **Filter by Restaurant Food Type**: We need to only consider "Arabic" restaurants.
2. **Average Rating Condition**: The average rating fo... | |
restaurants | What are the house numbers and names of Arabic restaurants in Mountain View with a rating higher than 2.5? | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN restaurant AS t1 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "mountain view"
AND t1.rating > 2.5
AND t1.food_type = "arabic"; | Performance and Optimization | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an executable SQLite query, we need to carefully examine the requirements specified within the question:
### Requirements:
1. **Select Data**:
- We need 'house numbers' and 'names' of the restaurants.
2. **Filter Criteria**:
- Restaurants should serve 'Ar... | |
restaurants | In the culinary landscape of Mountain View, how many oases of Arabic cuisine flourish within each vast region? | 'Oases' metaphorically refers to places of refreshment or pleasure, and Arabic restaurants might be considered culinary oases offering rich and exotic flavors; 'vast region' implies a larger geographical division within a city. | SELECT g.region, COUNT(t1.id) AS restaurant_count
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN GEOGRAPHIC AS g ON t2.city_name = g.city_name
WHERE t2.city_name = "mountain view"
AND t1.food_type = "arabic"
GROUP BY g.region; | Business Logic Changes | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an SQL query, we need to identify the key components and translate them accurately to match the database schema.
### Step-by-step Breakdown:
1. **Identify the relevant tables:**
- We need to count the number of Arabic restaurants in Mountain View, segmented by ... |
restaurants | What is the house number, name, and region of Arabic restaurants located in Mountain View that have a rating greater than 2.5, and how are these ratings categorized as 'High', 'Medium', or 'Low'? | SELECT
t2.house_number,
t1.name,
t3.region,
CASE
WHEN t1.rating > 4.0 THEN 'High'
WHEN t1.rating > 3.0 THEN 'Medium'
ELSE 'Low'
END AS rating_label
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS t3 ON t2.city_name = t... | Complexity Enhancements | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct the SQLite query based on the provided schema and natural language question, let's carefully break down the requirements:
1. **Identify the Required Data Fields**:
- We need the house number, name of the restaurant, and the region.
- We also need to categorize the ratings as 'High', 'Medium', or 'L... | |
restaurants | Can you provide me with the house numbers and names of Arabic restaurants in Mountain View that have a rating above 2.5? | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t1.food_type = "arabic"
AND t1.rating > 2.5
AND t2.city_name = "mountain view"; | Performance and Optimization | augmentation | spider | Descriptive | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the natural language question, we need to construct a SQL query that extracts specific information from the relevant tables based on the provided conditions. Here's how we'll approach this task:
1. **Understand the Requirements**:
- We want to find **house numbers** and **names** of **Arabic restaurants**... | |
restaurants | Mexican restaurants in Sunnyvale with a rating over 3.0, list their house numbers and names. | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "sunnyvale"
AND t1.food_type = "mexican"
AND t1.rating > 3.0
ORDER BY t1.name ASC; | Data Value Transformations | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given question into an executable SQL query, follow these steps:
1. **Understand the problem statement**: We need to list `house numbers` and `names` of restaurants that meet specific criteria:
- The restaurant serves Mexican food.
- The restaurant is located in Sunnyvale.
- The restaurant ha... | |
restaurants | Could you please compile the average ratings for restaurants in each city? I need to know the city names along with their corresponding average restaurant ratings! | SELECT g.city_name, AVG(r.rating) AS average_rating
FROM geographic AS g
JOIN restaurant AS r ON g.city_name = r.city_name
GROUP BY g.city_name; | Business Logic Changes | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To compile the average ratings for restaurants in each city, we need to consider the data stored in two tables: `GEOGRAPHIC` and `RESTAURANT`. Here's how we can approach the translation from the natural language question to an SQL query:
### Step-by-Step Breakdown:
1. **Objective Understanding**:
- Our task is to ... | |
restaurants | Seek the abode numbers, renowned titles, and the territorial realms for the culinary sanctuary known as "jamerican cuisine" found within the golden gates of "san francisco," where only the stars above 4.0 are worthy, and no street remains unnamed. | San Francisco is often referred to as "the golden gates" due to its famous Golden Gate Bridge; A restaurant can metaphorically be called a "culinary sanctuary"; The phrase "only the stars above 4.0 are worthy" metaphorically highlights that the restaurant ratings must be greater than 4.0. | SELECT
t2.house_number,
t1.name,
g.region,
CASE
WHEN t1.rating > 4.5 THEN 'High'
WHEN t1.rating BETWEEN 4.0 AND 4.5 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
restaurant AS t1
JOIN
LOCATION AS t2 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g O... | Complexity Enhancements | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve the problem, let's break down the requirements and map them to the database schema. We need to find specific attributes for "jamerican cuisine" located in "san francisco" with a rating above 4.0 and whose street name is not null. Here's how the schema and requirements align:
1. **Find House Numbers**: This da... |
restaurants | Hey! Could you help me out? I'm trying to find the first 5 house numbers of "French Bistro" restaurants that are in New York. I wanna know the house numbers and their names. Thanks! | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "new york"
AND t1.name = "french bistro"
ORDER BY t2.house_number ASC
LIMIT 5; | Data Value Transformations | augmentation | spider | Colloquial | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To construct a SQL query for the given problem, we need to follow these steps:
1. **Identify the relevant tables**: The `RESTAURANT` and `LOCATION` tables are relevant for retrieving information about restaurants, including their house numbers and names. The `GEOGRAPHIC` table is not directly needed for this query as ... | |
restaurants | Could you please find the house number and name of the restaurant called "Jamerican Cuisine" that is located in Los Angeles? Make sure you order the results by the restaurant's name in ascending order! | SELECT t2.house_number, t1.name
FROM restaurant AS t1
JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id
WHERE t2.city_name = "los angeles"
AND t1.name = "jamerican cuisine"
ORDER BY t1.name ASC; | Data Value Transformations | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve this problem, we need to extract specific data from multiple tables based on the given conditions. Here is a step-by-step breakdown of how to translate the natural language question into an SQL query:
1. **Identify Required Data**: We need to retrieve the house number and restaurant name ("Jamerican Cuisine")... | |
restaurants | Could you provide the house numbers and names of restaurants that are located in cities within the "bay area" region? | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN RESTAURANT AS t1
ON t1.id = t2.restaurant_id
WHERE EXISTS (
SELECT 1
FROM GEOGRAPHIC AS t3
WHERE t3.city_name = t1.city_name
AND t3.region = "bay area"
); | Performance and Optimization | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an executable SQLite query, let's break down the process step-by-step:
1. **Identify Tables and Columns:**
- We need the house numbers and restaurant names. These are found in the `LOCATION` and `RESTAURANT` tables, respectively.
- Additionally, we need to fi... | |
restaurants | Could you find the first 10 house numbers and restaurant names for places located in cities that are part of the "new york" region? Please make sure the results are sorted by the house numbers in ascending order! | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN restaurant AS t1 ON t1.id = t2.restaurant_id
WHERE t1.city_name IN (
SELECT city_name
FROM geographic
WHERE region = "new york"
)
ORDER BY t2.house_number ASC
LIMIT 10; | Data Value Transformations | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, let's break down the requirements:
1. **Tables Involved**:
- `LOCATION`: Provides us house numbers and `RESTAURANT_ID`.
- `RESTAURANT`: Provides restaurant names linked by `ID` (i.e., `RESTAURANT_ID`).
- `GEOGRAPHIC`: Provides the `CITY... | |
restaurants | What are the house numbers and names of the first ten restaurants, ordered by name, located in a city within the downtown region? | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN restaurant AS t1 ON t1.id = t2.restaurant_id
WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "downtown")
ORDER BY t1.name
LIMIT 10; | Data Value Transformations | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | Let's break down the natural language question and convert it into an SQL query in order to find the house numbers and names of the first ten restaurants, ordered by name, located in a city within the downtown region.
### Step-by-step breakdown:
1. **Identify Relevant Tables and Columns**:
- We need information a... | |
restaurants | List the house numbers, names, food types, ratings, and categorized ratings of restaurants located in the Bay Area region, where the ratings are specified, and the restaurant names are longer than three characters. The results should be ordered by rating in descending order. | SELECT
t2.house_number,
t1.name,
t1.food_type,
t1.rating,
CASE
WHEN t1.rating >= 4.5 THEN 'Excellent'
WHEN t1.rating >= 3.0 THEN 'Good'
ELSE 'Average'
END AS rating_category
FROM
LOCATION AS t2
JOIN
RESTAURANT AS t1 ON t1.ID = t2.RESTAURANT_ID
WHERE
t1.ci... | Complexity Enhancements | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQL query, follow these steps:
1. **Identify the necessary tables:**
- We need information about restaurants, specifically their names, food types, and ratings, which are in the `RESTAURANT` table.
- We need the house numbers of the restaurants, which... | |
restaurants | In the vibrant realm where cities bask, illuminate the towns of the bay area by revealing their names paired with the total count of culinary havens that dot their landscapes. | The "bay area" is widely recognized as a significant metropolitan region in Northern California, encompassing notable cities such as San Francisco, Oakland, and San Jose. It is a region known for its diverse culinary scene, with an array of restaurants offering flavors from around the world. | SELECT
g.city_name,
COUNT(r.id) AS total_restaurants
FROM
geographic AS g
JOIN
restaurant AS r
ON
g.city_name = r.city_name
WHERE
g.region = "bay area"
GROUP BY
g.city_name; | Business Logic Changes | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's follow these steps:
1. **Identify Key Requirements from the Question**:
- We need to list city names from a specific region, the "bay area".
- For each city, we should find the total number of restaurants (culinary havens) located there.
2. **D... |
restaurants | What is the average rating of restaurants for each city in the bay area? | SELECT t1.city_name, AVG(t1.rating) AS average_rating
FROM restaurant AS t1
WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "bay area")
GROUP BY t1.city_name; | Business Logic Changes | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into SQL, let's break down the requirements and understand each component:
1. **Task Identification**: We want to calculate the average rating of restaurants for each city that belongs to the "bay area" region.
2. **Table Relations**:
- We have the `RESTAURANT` table whi... | |
restaurants | Restaurants in the Bay Area with ratings higher than 4, list their house numbers, names, rating labels, and regions. | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating >= 4.5 THEN 'Excellent'
WHEN t1.rating >= 4.0 THEN 'Good'
ELSE 'Average'
END AS rating_label,
t3.region
FROM
LOCATION AS t2
JOIN
RESTAURANT AS t1 ON t1.ID = t2.RESTAURANT_ID
JOIN
GEOGRAPHIC AS t3 ON t2.CITY... | Complexity Enhancements | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the natural language question, we need to focus on the following requirements:
1. **Select relevant columns**:
- House numbers from the `LOCATION` table.
- Restuarant names from the `RESTAURANT` table.
- Ratings from the `RESTAURANT` table, which will be converted into a label.
- Regions from th... | |
restaurants | In the realm of culinary havens, unravel the dwelling numbers and identities of those gastronomical establishments rooted in the Bay Area. | The "Bay Area" often refers to the metropolitan region surrounding San Francisco Bay, known for its diverse and rich culinary scene. In this context, "dwelling numbers" metaphorically represent house or building numbers, and "identities" represent the names of entities (such as restaurants). | SELECT
t2.house_number,
t1.name
FROM
LOCATION AS t2
JOIN
RESTAURANT AS t1
ON
t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS g
ON
g.CITY_NAME = t1.CITY_NAME
WHERE
g.region = "bay area"; | Performance and Optimization | augmentation | spider | Metaphorical | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, let's break down the task step by step:
1. **Understand the requirements:**
- The task is to find the house numbers (dwelling numbers) and names (identities) of restaurants located in the Bay Area.
- The Bay Area is a region, so we're interested in fi... |
restaurants | What are the average reviews like for different cuisines in the bay area? | The "bay area" is a region often referring to an area surrounding the San Francisco Bay in Northern California; Cuisine refers to a style or method of cooking, often associated with a particular region or culture; Customer reviews and ratings are typically used to measure satisfaction and quality of restaurant services... | SELECT t1.food_type, AVG(t1.rating) AS average_rating
FROM restaurant AS t1
WHERE t1.city_name IN (
SELECT city_name
FROM geographic
WHERE region = "bay area"
)
GROUP BY t1.food_type; | Business Logic Changes | augmentation | spider | Vague | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an executable SQLite query, we need to break down the requirements and align them with the given database schema.
### Step-by-Step Solution:
1. **Identify Relevant Tables**:
- To get average reviews for different cuisines, we need information about restaurants, speci... |
restaurants | For Italian restaurants with a rating above 2.5 in cities within 'region0' and 'desired_county', list their house numbers, names, and categorize their ratings as High, Medium, or Low. | SELECT
t2.house_number,
t1.name,
CASE
WHEN t1.rating > 4 THEN 'High'
WHEN t1.rating BETWEEN 3 AND 4 THEN 'Medium'
ELSE 'Low'
END AS rating_category
FROM
LOCATION AS t2
JOIN
RESTAURANT AS t1 ON t1.id = t2.restaurant_id
JOIN
GEOGRAPHIC AS t3 ON t1.city_name = t3.c... | Complexity Enhancements | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we must break down the requirements and determine the necessary tables and conditions to include in the query.
### Requirements Breakdown:
1. **Italian Restaurants**: We need restaurants with `FOOD_TYPE` as 'Italian'. This information is in the `RESTAURANT... | |
restaurants | Could you please find the house numbers, names, food types, and city ranking of restaurants that are in the cities of region0 with a rating greater than 2.5 and also if their city rankings are top in their city or if their ratings fall between 0 and 5? This includes getting details of restaurants that are ranked number... | WITH RECURSIVE RatingsHierarchy(rating) AS (
SELECT 0
UNION ALL
SELECT rating + 1 FROM RatingsHierarchy WHERE rating < 5
),
RankedRestaurants AS (
SELECT
t1.ID,
t1.NAME,
t1.FOOD_TYPE,
t1.CITY_NAME,
t1.RATING,
ROW_NUMBER() OVER(PARTITION BY t1.city_name ... | Advanced SQL Features | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To answer the natural language question, we need to perform several tasks using the given database schema:
1. **Filter Restaurants by Region and Rating:**
The restaurants we are interested in must be located in cities from `region0` and have a rating greater than 2.5. We need to join the `RESTAURANT` table with the... | |
restaurants | List the city names, restaurant names, house numbers, and average city ratings for restaurants with rating greater than 2.5 in region0. Order by city hierarchy level and descending restaurant rating. | WITH RECURSIVE CityHierarchy (city_name, level) AS (
SELECT city_name, 1
FROM geographic
WHERE region = "region0"
UNION ALL
SELECT g.city_name, ch.level + 1
FROM geographic g
JOIN CityHierarchy ch ON g.city_name > ch.city_name
WHERE g.region = "region0"
),
CityRatings AS (
SELECT
... | Advanced SQL Features | augmentation | spider | Concise | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate this natural language question into an SQLite query, we'll proceed with the following steps:
1. **Understand the Question Requirements**:
- We need to list certain details (city names, restaurant names, house numbers, and average ratings) for restaurants with a rating greater than 2.5 located in a spe... | |
restaurants | What is the number of restaurants in each city within 'region0', and in which cities are these restaurants located? Please list the cities in order from the highest to the lowest number of restaurants. | SELECT g.city_name,
COUNT(t1.id) AS number_of_restaurants
FROM restaurant AS t1
JOIN geographic AS g ON t1.city_name = g.city_name
WHERE g.region = 'region0'
GROUP BY g.city_name
ORDER BY number_of_restaurants DESC; | Business Logic Changes | augmentation | spider | Formal | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To create an accurate SQLite query, we need to follow these steps:
1. **Understand the Needs**: We need to count the number of restaurants located in each city within 'region0' and list these cities in order from the highest to lowest number of restaurants.
2. **Examine Database Schema**: Based on the schema:
- Th... | |
restaurants | Can you please find all the cities in the region called "region0" and tell me the average rating of restaurants that have a rating higher than 2.5 in each city? I'm particularly interested in finding out the names of these cities and their corresponding average restaurant ratings! | SELECT g.city_name, AVG(r.rating) AS average_rating
FROM restaurant AS r
JOIN geographic AS g ON r.city_name = g.city_name
WHERE g.region = "region0" AND r.rating > 2.5
GROUP BY g.city_name; | Business Logic Changes | augmentation | spider | Imperative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To solve this problem, we need to identify cities in a specific region and calculate the average rating of restaurants in those cities, but only for restaurants whose ratings exceed a fixed threshold. Here's how to approach the query step-by-step:
1. **Understand the Database Schema**:
We have three tables:
- ... | |
restaurants | Could you list the house numbers and names of the top 10 restaurants, with a rating greater than 3.0, located in cities within "region0"? | SELECT t2.house_number, t1.name
FROM LOCATION AS t2
JOIN RESTAURANT AS t1 ON t1.id = t2.restaurant_id
WHERE t1.city_name IN (SELECT city_name FROM GEOGRAPHIC WHERE region = "region0")
AND t1.rating > 3.0
ORDER BY t1.rating DESC
LIMIT 10; | Data Value Transformations | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the given natural language question into an executable SQL query, we need to:
1. **Identify the entities and tables involved**:
- We are dealing with "restaurants" which are stored in the `RESTAURANT` table.
- We need information about "locations" (specifically house numbers) which are in the `LOCAT... | |
restaurants | What are the regions where the average restaurant rating is above 3.0, and what are the corresponding average ratings for those regions? | SELECT g.region, AVG(r.rating) AS average_rating
FROM restaurant AS r
JOIN geographic AS g ON r.city_name = g.city_name
WHERE g.region IN (SELECT region FROM geographic)
GROUP BY g.region
HAVING average_rating > 3.0; | Business Logic Changes | augmentation | spider | Interrogative | Task Overview:
You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question.
Database Engine:
sqlite
Database Schema:
【DB_ID】 restaurants
【Schema】
# Table: GEOGRAPHIC
[
(CITY_N... | To translate the natural language question into an SQL query, we need to follow these steps:
1. **Understand the question:** We are asked to find the regions where the average restaurant rating is above 3.0, and we need to retrieve the corresponding average ratings.
2. **Identify the tables involved:**
- `GEOGRAP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.