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
Can you provide the house numbers and names of restaurants in Alameda that have a rating higher than 2.5?
SELECT t2.house_number, t1.name FROM ( SELECT id, name FROM restaurant WHERE city_name = "alameda" AND rating > 2.5 ) AS t1 JOIN location AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda";
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 solve the given task, we need to extract specific information from the database using SQL queries. Here's the detailed reasoning for translating the natural language question into an SQL query: 1. **Identify the needed information:** - We are asked for house numbers and names of restaurants in Alameda with a rat...
restaurants
Could you tell me about the distinguished dining spots in Alameda that are well-rated and properly located?
'Alameda' refers to both a city and the county it's located in; 'distinguished dining spots' are inferred to mean those with better-than-average ratings; 'properly located' implies locations where data validation checks (such as a positive house number) are satisfied.
SELECT t2.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 location AS t2 ON t1.id = t2.restaurant_id JOIN geographic AS t3 ON t2.city_name = t3.city_name WH...
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 convert the natural language question into a SQL query, we need to identify what exactly the query should do based on the requirements stated in the problem description and database schema provided. Let's break it down: 1. **Identify Target Restaurants**: We are interested in restaurants in "Alameda". "Alameda" can...
restaurants
Could you tell me the average rating of restaurants located on each street, and provide the names of those streets?
SELECT t2.street_name, AVG(t1.rating) AS average_rating FROM restaurant AS t1 JOIN location AS t2 ON t1.id = t2.restaurant_id GROUP BY t2.street_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 answer the given natural language question, we need to calculate the average rating of restaurants for each street and list the names of those streets. Here's how we can achieve this using SQL: 1. **Identify the Necessary Tables and Columns**: - We need the `RATING` from the `RESTAURANT` table to calculate the ...
restaurants
Could you please find out the names of all the restaurants that have a rating higher than 2.5 and are located in the city of Alameda? This information is really important!
SELECT name FROM restaurant AS t1 WHERE EXISTS ( SELECT 1 FROM LOCATION AS t2 WHERE t1.id = t2.restaurant_id AND t2.city_name = "alameda" ) AND t1.rating > 2.5;
Query Structure Modifications
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 stated by the natural language question, we need to extract the names of restaurants from the `RESTAURANT` table where: 1. The rating is higher than 2.5. 2. The restaurant is located in the city of Alameda. Here are the steps to create the proper SQL query: 1. **Analyze Primary Requirements:** ...
restaurants
Could you provide me with a list of cities along with the number of unique food types offered by restaurants that have a rating higher than 2.5?
SELECT t3.city_name, COUNT(DISTINCT t1.food_type) AS unique_food_types 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.rating > 2.5 GROUP BY t3.city_name;
Business Logic Changes
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 question using the provided database schema, let's break down the requirements and determine the appropriate SQL query. ### Requirements: 1. **List of Cities**: We want to retrieve city names from the `GEOGRAPHIC` table. 2. **Unique Food Types**: For each city, we need to count the distinct types of food...
restaurants
What are the addresses and names of restaurants in the "alameda" realm, with their city's average culinary charm noted, and the addresses and names of those beyond a certain taste threshold in "oakland," but without noting their city's culinary average?
When referring to a city’s "culinary charm," consider this as a metaphor for the average restaurant rating in that city; exceeding a "taste threshold" implies surpassing a specified minimum restaurant rating.
WITH RECURSIVE RestaurantHierarchy AS ( SELECT id, name, 1 AS level FROM restaurant WHERE id = 1 -- Starting point for hierarchy UNION ALL SELECT r.id, r.name, rh.level + 1 FROM restaurant AS r JOIN RestaurantHierarchy AS rh ON r.id = rh.id + 1 ), RatingAggregation AS ( SELECT...
Advanced SQL Features
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 create an appropriate SQL query that addresses the natural language question, let's break down the task: 1. We need to gather information about restaurants and their locations (addresses), specifically focusing on: - Restaurants in "alameda" along with their city's average rating (culinary charm). - Restaur...
restaurants
Could you tell me the house numbers, street names, names, food types, and ratings of Italian restaurants in Alameda with a rating above 2.5, ensuring their street names are known, along with the regions they are located in and how their ratings are classified as 'Average', 'Good', or 'Excellent'?
SELECT t2.house_number, t2.street_name, t1.name, t1.food_type, t1.rating, g.region, CASE WHEN t1.rating <= 3 THEN 'Average' WHEN t1.rating > 3 AND t1.rating <= 4 THEN 'Good' ELSE 'Excellent' END AS rating_comment FROM restaurant AS t1 JOIN LOCATION AS t...
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 natural language question into an SQL query, we need to perform several tasks. The objective is to select certain columns from specific tables with conditions on attributes such as food type, rating, location, and street names. Here's the step-by-step reasoning process: 1. **Identify Relevant Tables a...
restaurants
Could you provide the street addresses, names, and the rating categories (Good, Average, Poor) for restaurants located in the city of Alameda within the Bay Area region and Alameda County, with a rating above 2.5?
SELECT t2.house_number, t1.name, CASE WHEN t1.rating > 4.0 THEN 'Good' WHEN t1.rating > 3.0 THEN 'Average' ELSE 'Poor' 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_name = t3.city_n...
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...
**Step-by-step reasoning for generating the SQL query:** 1. **Understand the data requirements**: We need to query the street addresses (which includes street name and house number), restaurant names, and rating categories for certain restaurants. The conditions for these restaurants are that: - They are loc...
restaurants
Could you please provide me with the names and house numbers of all restaurants that have a rating greater than 2.5 and are located in the city of Alameda?
SELECT t2.house_number, t1.name FROM ( SELECT id, name FROM restaurant WHERE rating > 2.5 ) AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "alameda";
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 translate the natural language question into an SQLite query, let's break down the requirements and interpret them step-by-step: 1. **Identify the tables involved**: - We need information about restaurant names and house numbers, which are located in two tables: - `RESTAURANT`: This contains the `NAME`...
restaurants
Hey, could you help me find out the house numbers and names of Italian restaurants in Los Angeles on Main Street? I’m only interested in ones that have a rating above 2.0, and it'd be great to see them sorted by their house number!
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 t2.street_name = "main street" AND t1.food_type = "italian" AND t1.rating > 2.0 ORDER BY t2.house_number ASC;
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 begin translating the natural language query into an SQL statement, let's break down each part of the request: ### Analysis of the Request 1. **Objective:** Find the house numbers and names of Italian restaurants. 2. **Location Constraint:** The restaurants must be located in Los Angeles, specifically on Main Stre...
restaurants
Could you please find all Arabic restaurants that have their houses located on Buchanan Street in the city of San Francisco? Make sure to get the names of these restaurants along with their house numbers!
-- Recursive CTE to explore potential hierarchy: Assuming exploration through restaurant ratings increments as a hierarchy WITH RECURSIVE RatingHierarchy(level, restaurant_id, name, rating) AS ( SELECT 1, id, name, rating FROM restaurant WHERE rating > 2.5 UNION ALL SELECT rh.level + 1, r.id, r.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...
**Step 1: Understand the question requirements** The question asks for the names and house numbers of Arabic restaurants located on Buchanan Street within the city of San Francisco. **Step 2: Examine the database schema** Given the database schema: - `RESTAURANT` table: Provides information about restaurants, incl...
restaurants
I would like to know the house numbers, names, types of food, and ratings of Arabic restaurants that have a rating above 2.5, located on Buchanan Street in San Francisco. Additionally, please provide the region they are located in, categorize their ratings into 'High', 'Medium', or 'Low', and indicate the availability ...
SELECT t2.house_number, t1.name, t1.food_type, t1.rating, t3.region, CASE WHEN t1.rating > 4 THEN 'High' WHEN t1.rating BETWEEN 3 AND 4 THEN 'Medium' ELSE 'Low' END AS rating_category, CASE WHEN t3.county IS NOT NULL THEN 'County Available' ELSE...
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 construct the SQL query based on the provided requirements and database schema, we need to follow the steps below: 1. **Identify the relevant tables**: We need information from the `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC` tables because - `LOCATION` contains the `house_number` and `street_name` where restaur...
restaurants
Hey! Can you tell me which cities have restaurants that serve Arabic food, and what's the average rating for those restaurants by city? I'd love to see it sorted by the highest average rating first!
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 r.food_type = "arabic" GROUP BY g.city_name ORDER BY average_rating DESC;
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 translate the natural language question into an executable SQLite query, let's break down the requirements step by step: 1. **Identify the goal**: We want to find cities where restaurants serve Arabic food and calculate the average rating for those restaurants by city, sorting the results by highest average rating ...
restaurants
Can you provide the house numbers, names, and rating categories ('High', 'Medium', 'Low') of Arabic restaurants located on Buchanan Street in San Francisco, along with the corresponding county and region? The restaurants should have a rating between 2.5 and 4.5, inclusive, and all data must be complete, without null va...
SELECT t2.house_number, t1.name, CASE WHEN t1.rating > 4.0 THEN 'High' WHEN t1.rating BETWEEN 3.0 AND 4.0 THEN 'Medium' ELSE 'Low' END AS rating_category, t3.county, t3.region FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOG...
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 accurate SQL query based on the given requirements, let's carefully dissect each part of the natural language question and align it with the database schema provided. Here’s the step-by-step reasoning: 1. **Identify the tables involved:** - We need information from three tables: `RESTAURANT`, `LOCATION...
restaurants
Can you provide the different regions and the corresponding average ratings of restaurants that specialize in Arabic cuisine within those regions?
SELECT t3.region, 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.region;
Business Logic Changes
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 construct an SQL query that answers the natural language question, we need to follow these steps: 1. **Identify the tables involved**: From the database schema, the question involves retrieving regions from the `GEOGRAPHIC` table and ratings from the `RESTAURANT` table. 2. **Determine the necessary columns**: We n...
restaurants
Find house numbers and names of Arabic restaurants in San Francisco on Buchanan street with a rating greater 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 = "san francisco" AND t2.STREET_NAME = "buchanan" 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 solve the problem, we need to construct a SQL query that retrieves specific information about certain restaurants based on provided criteria. We'll work through how to accurately translate the natural language question into an SQL statement using the given schema. **Step-by-step Solution:** 1. **Identify the Table...
restaurants
Hey! Could you find me the top 10 Italian restaurants on Sunset Blvd in Los Angeles that have at least a 3-star rating? I'd like to know 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 = "los angeles" AND t2.street_name = "sunset blvd" AND t1.food_type = "italian" AND t1.rating >= 3.0 ORDER BY t1.name ASC LIMIT 10;
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 the SQL query from the natural language question, we must carefully break down the requirements and structure it in line with the given database schema. ### Step-by-step Breakdown: 1. **Identify Required Information:** - We are interested in the names and house numbers of Italian restaurants. - The...
restaurants
Hey! Could you tell me which Italian restaurants are on Buchanan Street in San Francisco with a rating over 3.5? I'd love to know their house numbers and names, starting from the lowest house number up.
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 t2.street_name = "buchanan" AND t1.food_type = "italian" AND t1.rating > 3.5 ORDER BY t2.house_number ASC;
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 translate the natural language question into an SQL query, we need to follow these steps: 1. **Identify the tables involved**: - We need information from the `RESTAURANT` and `LOCATION` tables. - The `GEOGRAPHIC` table is not needed since our condition relates to `CITY_NAME` already present in the other two ...
restaurants
Could you provide the house numbers and names of Arabic restaurants in San Francisco located on Buchanan Street that have a rating greater than 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 = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5;
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 translate the natural language question into an SQL query, we need to follow these steps: 1. **Understand the underlying requirement**: We need to retrieve specific information from the database. The required information from the "LOCATION" table is the house numbers, and from the "RESTAURANT" table is the names of...
restaurants
Unveil the culinary gems that serve the aromas of Arabic cuisine, tucked away on Buchanan street in the heart of San Francisco, adorned with stars greater than 2.5.
In gastronomical terms, a restaurant's 'rating' often refers to customer reviews that average out to form a score on a scale, usually between 1 to 5; 'Arabic cuisine' refers to a rich diversity of dishes originating from Arabic-speaking countries.
SELECT name FROM restaurant AS t1 WHERE EXISTS ( SELECT 1 FROM LOCATION AS t2 WHERE t1.id = t2.restaurant_id AND t2.city_name = "san francisco" AND t2.street_name = "buchanan" ) AND t1.food_type = "arabic" AND t1.rating > 2.5;
Query Structure Modifications
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 construct the correct SQL query, we need to gather information from three tables: `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC`. Our goal is to find Arabic cuisine restaurants with a rating higher than 2.5 located on Buchanan street in San Francisco. ### Step-by-step Solution: 1. **Understand the Tables**: - `REST...
restaurants
Could you please find all Arabic restaurants located on Buchanan Street in San Francisco that have a rating higher than 2.5? I need to know their names urgently!
SELECT name FROM restaurant WHERE EXISTS ( SELECT 1 FROM LOCATION WHERE restaurant.id = location.restaurant_id AND location.city_name = "san francisco" AND location.street_name = "buchanan" ) AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Query Structure Modifications
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 SQL query, we'll follow these steps: 1. **Understand the Requirements**: - We need to find Arabic restaurants. - These restaurants should be located specifically on Buchanan Street, in San Francisco. - They must have a rating higher than 2.5. - We must...
restaurants
Retrieve the house numbers, names, rating categories, and geographic regions of Arabic restaurants with a rating higher than 2.5, situated along Buchanan Street in San Francisco, within San Francisco County.
SELECT t2.house_number, t1.name, CASE WHEN t1.rating > 4 THEN 'Highly Rated' ELSE 'Moderately Rated' END AS rating_category, g.region FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOGRAPHIC AS g ON t1.city_name = g.city_name WHERE 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 translate the natural language question into an executable SQLite query, let's break down the requirements and align them with the database schema: **Requirements:** 1. Retrieve the following information: - House numbers - Restaurant names - Rating categories (Highly Rated if rating > 4, otherwise Moderate...
restaurants
List the house numbers and names of Arabic restaurants with ratings above 2.5 located on Buchanan Street in San Francisco.
SELECT LOCATION.house_number, RESTAURANT.name FROM RESTAURANT JOIN LOCATION ON RESTAURANT.id = LOCATION.restaurant_id WHERE LOCATION.city_name = "san francisco" AND LOCATION.street_name = "buchanan" AND RESTAURANT.food_type = "arabic" AND RESTAURANT.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 executable SQLite query, we need to break it down and address each requirement given the database schema. ### Requirements from the Natural Language Question: 1. **Filter by food type**: We are interested in "Arabic" food type. 2. **Filter by rating**: The rating shou...
restaurants
Please provide me with the house numbers, names, and regions of Arabic restaurants located on Buchanan Street in San Francisco that have a rating above 2.5. Also, classify each restaurant as 'Top Rated' if its rating is greater than 4.5, or 'Regular' otherwise. Ensure there are at least three Arabic restaurants in tota...
SELECT t2.house_number, t1.name, t3.REGION, CASE WHEN t1.rating > 4.5 THEN 'Top Rated' ELSE 'Regular' 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 = t3.CITY_NAME WHERE t2.city...
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 solve this problem, we need to perform the following steps: 1. **Table Information**: Identify the relevant tables for querying data. The `RESTAURANT` table is needed to get the restaurant names, food types, and ratings. The `LOCATION` table provides the street addresses, including house numbers and street names. T...
restaurants
Provide the house numbers and names of Arabic restaurants located on Buchanan Street in San Francisco that have a rating greater than 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 = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5 AND t1.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 generate the SQL query for the given natural language question, we need to identify and use relevant tables and columns from the database schema. Let's break down the requirements and how to address them using SQL. ### Step-by-Step Breakdown: 1. **Identify Tables:** - We need information about Arabic restaurant...
restaurants
Could you provide the house numbers and names of Arabic restaurants with a higher-than-average rating located on Buchanan Street, San Francisco, along with their rating categories? Also, ensure these restaurants are located in specific regions such as 'specific_region1' or 'specific_region2'.
WITH AverageRating AS ( SELECT AVG(r.rating) AS avg_rating FROM RESTAURANT r JOIN LOCATION l ON r.ID = l.RESTAURANT_ID WHERE l.city_name = "san francisco" ) SELECT l.house_number, r.name, CASE WHEN r.rating > 4 THEN 'High' WHEN r.rating > 3 THEN 'Medium' ELSE 'Low...
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 transform the natural language question into an executable SQL query, we will follow these logical steps: 1. **Identify the Key Tables and Joins:** - We need information from the `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC` tables. - The `RESTAURANT` table will provide the name, food type, and rating. - The ...
restaurants
What is the average rating for each type of food in various cities?
SELECT g.city_name, r.food_type, AVG(r.rating) as average_rating FROM restaurant AS r JOIN geographic AS g ON r.city_name = g.city_name GROUP BY g.city_name, r.food_type;
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 address the natural language question "What is the average rating for each type of food in various cities?", we need to focus on computing the average ratings of restaurants grouped by the type of food and the city they are located in. The database schema provides us with the necessary tables: `RESTAURANT`, which co...
restaurants
Hey, I'm curious about the Arabic restaurants in San Francisco that have a decent rating, specifically those with a rating over 2.5. Could you identify which ones are on Buchanan or Lombard streets? I also want to see their house numbers and get an idea of their average rating. Thanks!
WITH RECURSIVE city_hierarchy(rank, city_name, next_city) AS ( SELECT 1 AS rank, city_name, NULL FROM geographic WHERE city_name = "san francisco" UNION ALL SELECT ch.rank + 1, g.city_name, NULL FROM city_hierarchy ch JOIN geographic g ON g.city_name <> ch.city_name WHERE ch.rank < 5 ), restaurant_types...
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 question into an SQL query, let's break down the requirements: 1. **Target Information**: We need to find Arabic restaurants in San Francisco with a rating over 2.5. 2. **Filter Specific Streets**: We need to consider restaurants located specifically on Buchanan or Lombard streets. 3....
restaurants
What are the house numbers and names of Italian restaurants on Buchanan Street in San Francisco with a rating above 3.0, 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 = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "italian" 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 natural language question into an executable SQLite query, we need to carefully analyze each part of the question and align it with the appropriate tables and columns in the database schema. ### Breakdown of the Requirements: 1. **Identify the House Numbers and Names:** - We need to retrieve the "...
restaurants
What are the house numbers and names of Arabic restaurants located on Buchanan Street in San Francisco with a rating greater 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 = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" 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, we'll break down the task into smaller components: 1. **Identify Tables Needed**: The main elements we need to consider are: - `LOCATION` table for `HOUSE_NUMBER` and address information. - `RESTAURANT` table for `NAME`, `FOOD_TYPE`, and...
restaurants
Could you please find all the Arabic restaurants located in San Francisco on Buchanan street, with a rating above 2.5? I want their house numbers, names, food type, ratings, a description of their ratings, and the geographic region they're in. Ensure that the geographic region is specified and that the restaurant names...
SELECT t2.house_number, t1.name, t1.food_type, t1.rating, 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_description, g.region FROM restaurant AS t1...
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 translate the natural language question into an executable SQLite query, we need to carefully break down the requirements and map them to the database schema provided. ### Analyzing the Requirements: 1. **Targeting Specific Restaurants**: - We need to find restaurants with the `FOOD_TYPE` of "Arabic". - Thes...
restaurants
Could you list the house numbers, names, regions, and rating categories of Arabic restaurants located on Buchanan street in San Francisco with a rating greater than 2.5?
SELECT t2.house_number, t1.name, t3.region, 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 LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOGRAPHIC AS t3 ON t2...
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 natural language question into an SQL query, we must ensure that we retrieve the desired information from the database by following these steps: 1. **Identify the Tables Involved**: - We need information about restaurants, their locations, and geographic data, which implies the use of the `RESTAUR...
restaurants
Can you provide the names and house numbers of Arabic restaurants with a rating greater than 2.5, located on Buchanan Street in San Francisco?
SELECT name, (SELECT house_number FROM LOCATION WHERE restaurant_id = t1.id AND city_name = 'san francisco' AND street_name = 'buchanan') AS house_number FROM RESTAURANT AS t1 WHERE EXISTS ( SELECT 1 FROM LOCATION AS t2 WHERE t1.id = t2.restaurant_id AND t2.city_name = 'san francisco' AND t2.street_name...
Query Structure Modifications
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 this problem, we need to translate the natural language question into an executable SQLite query. Let's break down the natural language question and translate it step-by-step into SQL: ### Natural Language Breakdown: 1. **Objective**: We need to obtain the names and house numbers of specific restaurants. 2. ...
restaurants
Could you tell me the house numbers and names of Mexican restaurants that are located on Melrose in Los Angeles and have a rating of at least 4.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 = "los angeles" AND t2.street_name = "melrose" AND t1.food_type = "mexican" AND t1.rating >= 4.0 ORDER BY t1.name ASC;
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 create the SQL query, we need to decode the natural language question step by step and transform it into the appropriate SQL query using the given database schema. Here's the breakdown of the requirements: 1. **Identify Required Information**: - We need "house numbers" and "names" of restaurants. 2. **Filte...
restaurants
Can you provide the house numbers and names of Arabic restaurants on Buchanan Street in San Francisco with a rating higher than 2.5?
SELECT t2.house_number, t1.name FROM (SELECT * FROM restaurant WHERE food_type = "arabic" AND rating > 2.5) AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan";
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 SQL query, we need to identify the tables and conditions necessary to retrieve house numbers and restaurant names for Arabic restaurants located on Buchanan Street in San Francisco with a rating higher than 2.5. ### Step-by-Step Solution: 1. **Determine the Relevant Tables:** - We will use the `RE...
restaurants
What are the house numbers and names of those well-rated Arabic restaurants in the Buchanan street area of San Francisco?
"Well-rated" usually implies a rating above average, which can be inferred from the SQL condition of a rating greater than 2.5; "Arabic restaurants" refers to places offering Arabic cuisine.
SELECT t2.house_number, t1.name FROM LOCATION AS t2 JOIN RESTAURANT AS t1 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 2.5;
Performance and Optimization
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 step-by-step: 1. **Identify the Tables**: - We need information about restaurants, specifically their ratings and food types, which can be found in the `RESTAURANT` table. - We need the house numbers and st...
restaurants
Find the house numbers and names of Arabic restaurants on Buchanan Street in San Francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 answer the natural language question, we need to focus on specific details provided: 1. Identify restaurants that serve Arabic food. 2. Ensure these restaurants are located on Buchanan Street in San Francisco. 3. Only consider restaurants with a rating higher than 2.5. 4. Retrieve the house numbers and names of the...
restaurants
Could you tell me the number of restaurants with ratings higher than 2.5 in each region based on their food type?
SELECT t1.food_type, t3.region, COUNT(t1.id) AS restaurant_count 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.rating > 2.5 GROUP BY t1.food_type, t3.region;
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...
Step 1: Understand the requirements of the natural language question. The question asks for the count of restaurants grouped by their food type and region, but only for restaurants with a rating higher than 2.5. We need to work with the `RESTAURANT` table for food type and rating, and the `GEOGRAPHIC` table for region...
restaurants
What are the regions and the number of Arabic restaurants with a rating greater than 2.5 located in each region?
SELECT g.region, COUNT(r.id) AS arabic_restaurant_count FROM restaurant AS r JOIN geographic AS g ON r.city_name = g.city_name WHERE r.food_type = "arabic" AND r.rating > 2.5 GROUP BY g.region;
Business Logic Changes
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 a SQL query, we first need to understand the components involved and how they correlate within the database schema. 1. **Identify the Tables Involved**: - We need information about "regions," which is present in the `GEOGRAPHIC` table. - We need information about "...
restaurants
Could you tell me the average rating of restaurants serving Arabic cuisine for each combination of city and street where these restaurants are located?
SELECT t2.city_name, t2.street_name, 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" GROUP BY t2.city_name, t2.street_name;
Business Logic Changes
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 given natural language question, we need to calculate the average rating of restaurants serving Arabic cuisine for each city and street combination. The tables relevant to this query are the `RESTAURANT` and `LOCATION` tables. **Steps to construct the SQL query:** 1. **Identify Relevant Tables and Colu...
restaurants
Retrieve the house numbers, names, and ratings of Arabic restaurants located on Buchanan Street in San Francisco, within the Bay Area region, and determine whether their ratings are categorized as high or low. Ensure the house numbers are positive and consider only those restaurants with ratings greater than 3.0.
SELECT t2.house_number, t1.name, t1.rating, CASE WHEN t1.rating >= 4.0 THEN 'High Rating' ELSE 'Low Rating' 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 = t3.city_name WHERE t2...
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 convert the natural language question into a SQL query, we will follow these steps: ### Step 1: Understand the Relationships and Tables Needed - We have the `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC` tables. - `RESTAURANT` has columns for the restaurant's name, food type, and rating. - `LOCATION` has columns for th...
restaurants
Could you please find all Arabic restaurants with a rating higher than 2.5 that are located on Buchanan Street in San Francisco? I really need their names!
SELECT name FROM restaurant WHERE food_type = "arabic" AND rating > 2.5 AND EXISTS ( SELECT 1 FROM location WHERE restaurant.id = location.restaurant_id AND location.city_name = "san francisco" AND location.street_name = "buchanan" );
Query Structure Modifications
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 construct an SQL query that fetches the names of Arabic restaurants with a rating higher than 2.5 located on Buchanan Street in San Francisco. Let's break down the requirements and align them with the database schema: 1. **Identify the Tables**: - We need informat...
restaurants
Could you provide the house numbers, names, and rating categories of Arabic restaurants located in San Francisco on Buchanan Street, with ratings between 2.5 and 4.5, and categorized as being in Northern California?
SELECT t2.house_number, t1.name, CASE WHEN t1.rating >= 4 THEN 'High Rating' ELSE 'Mid Rating' 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_name = t3.city_name WHERE t2.city_name =...
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...
The task is to create an SQL query to find specific information about Arabic restaurants located in San Francisco, on Buchanan Street, with ratings between 2.5 and 4.5, and categorized as being in Northern California. The required information is the house number, restaurant name, and rating category. Let's solve this s...
restaurants
Which culinary stars, serving the enchanting flavors of Arabic cuisine, shine with a rating above 2.5 on Buchanan Street in the city by the bay?
San Francisco is often affectionately referred to as "the city by the bay" due to its location around the San Francisco Bay.
SELECT name FROM restaurant AS t1 WHERE 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 = 'san francisco' AND t2.street_name = 'buchanan' );
Query Structure Modifications
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 it down and ensure that each part of the question is addressed: 1. **Identify the restaurants serving Arabic cuisine with ratings above 2.5**: - We need to filter the `RESTAURANT` table on `FOOD_TYPE` being 'Arabic' and `RATING` being greater...
restaurants
In the tapestry of San Francisco's Buchanan Street, weave together the names and house numbers of Arabic culinary havens where the taste of tradition surpasses the whispers of ordinary flavor and rises above a rating of 3.5.
The term "culinary haven" metaphorically refers to a restaurant; the phrase "surpasses the whispers of ordinary flavor" suggests a rating above 3.5, indicating higher quality than average.
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 t2.street_name = "buchanan" AND t1.food_type = "arabic" AND t1.rating > 3.5;
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 SQL query, we need to follow these steps: ### Analyze the Natural Language Question 1. **Identify the tables involved**: The information we need involves restaurants and their locations. So, we'll be using the `RESTAURANT` and `LOCATION` tables. 2. **Identify specifi...
restaurants
Can you please find for me the house number, name, county, and region of all Arabic restaurants on Buchanan Street in San Francisco that have a rating above 2.5? Include whether each restaurant has a high, moderate, or low rating, and ensure they're situated in "Some County" and "Some Region."
SELECT t2.house_number, t1.name, g.county, g.region, CASE WHEN t1.rating > 4 THEN 'High Rating' WHEN t1.rating >= 3 THEN 'Moderate Rating' ELSE 'Low Rating' END AS rating_category FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id J...
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 generate an SQL query that addresses the natural language question, we need to extract specific information about Arabic restaurants located on Buchanan Street in San Francisco with a required rating and geographic constraints. Here are the steps involved in creating the query that meets these criteria: ### Step-by...
restaurants
What are the house numbers and names of culinary gems offering Arabic cuisine on Buchanan Street in San Francisco, shining with a rating beyond 2.5?
The term "culinary gems" metaphorically describes highly-regarded establishments, in this context, indicating restaurants with a good rating (greater than 2.5); "shining" implies a quality or distinction, referring to the restaurant's rating.
-- Assuming indexes are created separately: -- CREATE INDEX idx_location_city_street ON LOCATION(city_name, street_name); -- CREATE INDEX idx_restaurant_food_rating ON RESTAURANT(food_type, rating); SELECT t2.house_number, t1.name FROM LOCATION AS t2 JOIN RESTAURANT AS t1 ON t1.ID = t2.RESTAURANT_ID WHERE t2.city_na...
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, we'll follow these steps: 1. **Understand the Context**: - We need to find restaurants serving Arabic cuisine, located specifically on Buchanan Street in San Francisco. - We are looking for establishments with a rating greater than 2.5, indicating ...
restaurants
Find all Arabic restaurants located on Buchanan Street in San Francisco that have a rating between 2.5 and 5.0, categorize their ratings as 'Excellent', 'Good', or 'Average', and return their house numbers, names, and regions sorted by rating in descending order.
SELECT t2.house_number, t1.name, CASE WHEN t1.rating >= 4.0 THEN 'Excellent' WHEN t1.rating >= 3.0 THEN 'Good' ELSE 'Average' END AS rating_category, g.region FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOGRAPHIC AS g ON...
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 convert the natural language request into an executable SQLite query, we need to break down the requirements step by step and then construct the SQL query accordingly. **Step-by-Step Analysis of the Requirements:** 1. **Identify the tables involved:** - We need information about restaurants, their food types,...
restaurants
Could you please collect the names of all the Arabic restaurants with a rating above 2.5 that are located on Buchanan Street in San Francisco? I really need this information!
SELECT name FROM restaurant WHERE EXISTS ( SELECT 1 FROM location WHERE restaurant.id = location.restaurant_id AND location.city_name = "san francisco" AND location.street_name = "buchanan" ) AND food_type = "arabic" AND rating > 2.5;
Query Structure Modifications
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 given natural language question into an SQL query, we'll follow these steps: 1. **Identify the Required Columns**: The resulting query should return the names of restaurants. 2. **Determine the Conditions**: - The restaurants must be of Arabic food type. - The rating must be above 2.5. - The...
restaurants
Can you provide me with the house numbers and names of Arabic restaurants located on Buchanan Street in San Francisco that have a rating above 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 = "san francisco" AND t2.street_name = "buchanan" AND t1.rating > 2.5 AND t1.food_type = "arabic";
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, follow these steps to construct the SQL query: 1. **Identify the Required Tables**: We need data from the `RESTAURANT` table because it contains information about the food type, name, and rating. Additionally, we need the `LOCATION` table to get the house numbers and street...
restaurants
Can you provide information on the average ratings for different types of food along with the regions they are located in, by considering various restaurants?
SELECT t1.food_type, t3.region, 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 GROUP BY t1.food_type, t3.region;
Business Logic Changes
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 SQL query, let's break down the requirements: 1. **Entities Involved**: The question involves "restaurants", "food types", and "regions". 2. **Objective**: Calculate the average ratings of different food types and link this information with the regions where they are ...
restaurants
What is the percentage distribution of each food type offered by restaurants in Los Angeles?
SELECT t2.city_name, t1.food_type, COUNT(t1.id) * 100.0 / (SELECT COUNT(*) FROM restaurant WHERE city_name = t2.city_name) AS percentage_of_food_type FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "los angeles" GROUP BY t2.city_name, t1.f...
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 address the natural language question, "What is the percentage distribution of each food type offered by restaurants in Los Angeles?", we need to determine how many restaurants belong to each food type in Los Angeles and express that count as a percentage of the total number of restaurants in Los Angeles. Here's ho...
restaurants
Can you provide the house numbers and names of Arabic restaurants with a rating higher than 3.5 that are located in Los Angeles, specifically on Sunset Boulevard, ordered by their names in descending 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 t2.street_name = "sunset boulevard" AND t1.food_type = "arabic" AND t1.rating > 3.5 ORDER BY t1.name DESC;
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 SQL query, let's break it down step by step: 1. **Identify the Tables and Joins Needed:** - We need information from both the `RESTAURANT` and `LOCATION` tables: - The `RESTAURANT` table gives us the restaurant names, food types, and ratings. -...
restaurants
Can you provide the house number and name of up to five Mexican restaurants located in Los Angeles on Sunset street that have a rating higher than 3.0, sorted alphabetically 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 = "los angeles" AND t2.street_name = "sunset" AND t1.food_type = "mexican" AND t1.rating > 3.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 tackle the given natural language question, we need to carefully construct an SQL query based on the database schema provided. Let's break down the details: ### Steps: 1. **Identify Relevant Tables and Columns**: - We have three tables: `GEOGRAPHIC`, `RESTAURANT`, and `LOCATION`. - For this query, we need th...
restaurants
Could you please find out how many Arabic restaurants there are on each street in San Francisco, along with the average rating for these restaurants? I need to know the street names, the count of restaurants, and their average ratings!
SELECT t2.street_name, COUNT(t1.id) AS restaurant_count, AVG(t1.rating) AS average_rating 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" GROUP BY t2.street_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 answer the natural language question, we need to construct a SQL query that finds Arabic restaurants in San Francisco, grouped by street, and provides the count of these restaurants and their average ratings. Here's the approach we'll take: 1. **Identify Relevant Tables**: - The `RESTAURANT` table contains deta...
restaurants
Can you provide the house numbers and names of Italian restaurants with a rating greater than 3.5 that are located on Broadway in New York City, sorted with the highest-rated restaurants 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 = "new york" AND t2.street_name = "broadway" AND t1.food_type = "italian" AND t1.rating > 3.5 ORDER BY t1.rating DESC;
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 query into an executable SQLite query, let's break down the question and address each part: 1. **Identify the Tables Involved**: - We have three tables: `GEOGRAPHIC`, `RESTAURANT`, and `LOCATION`. - The `RESTAURANT` table will provide names, food types, and ratings of restaurant...
restaurants
In the culinary oasis of the Bay Area, where do the Italian flavors call home, with addresses as distinct as the vinegrown hills?
The "Bay Area" commonly refers to the San Francisco Bay Area, a populous region surrounding the San Francisco Bay in Northern California; Italian cuisine is renowned for its pasta, pizza, and distinct regional dishes that offer rich flavors and tradition; a "house number" is the specific identifier given to a building ...
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 = "bay area" AND t1.food_type = "italian" ORDER BY t1.name ASC;
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 convert the natural language question into a suitable SQL query, follow these steps: 1. **Understand the SQL Task**: We aim to find addresses of Italian restaurants located in a specific region known as the "Bay Area". 2. **Identify Relevant Tables**: - `RESTAURANT`: for obtaining restaurant names and their foo...
restaurants
List the house numbers and names of restaurants located on Broadway in Oakland, and order them alphabetically 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 = "oakland" AND t2.street_name = "broadway" 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 address the natural language question, we need to generate a query that lists the house numbers and names of restaurants located on Broadway in Oakland. The results must be ordered alphabetically by the restaurant names. Given the database schema, the relevant tables are: 1. `RESTAURANT` - contains information abo...
restaurants
What is the average culinary applause echoing along Bethel Island Road in the city of Bethel Island?
In everyday language, the concept of "average rating" can be likened to gauging the general applause for an establishment, akin to how people clapping reflect their appreciation; "Bethel Island Road" refers to a specific locale where these establishments reside.
SELECT t2.street_name, AVG(t1.rating) AS average_rating FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd" GROUP BY t2.street_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 create a query that answers the provided question, we can follow these steps: 1. **Understand the Requirements**: We need to find the average rating of restaurants located on "Bethel Island Road" in the city of "Bethel Island". This requires us to work with two tables: `RESTAURANT` for ratings and `LOCATION` for st...
restaurants
How many restaurants are there in Bethel Island, and what is their average rating?
SELECT t1.city_name, COUNT(t1.id) AS restaurant_count, AVG(t1.rating) AS average_rating FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.ID = t2.RESTAURANT_ID WHERE t1.city_name = "bethel island" 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 convert the natural language question into an executable SQL query, let's carefully consider the database schema and the requirements of the question: ### Database Schema Review: - **GEOGRAPHIC** table contains information about cities, counties, and regions. Relevant column: `CITY_NAME`. - **RESTAURANT** table con...
restaurants
Uncover the stories of culinary havens and houses on Bethel Island Road in the realm of Bethel Island. Which restaurants are the shining stars and which dwell in shadows? What region do they belong to, and do they serve a genuine feast or a hollow promise?
"bethel island rd" is a specific street name; Ratings are numerical scores typically ranging from 0 to 5, indicating average user satisfaction with services; "Top Rated" implies exceptional quality; "Average Rated" implies satisfactory service; "Low Rated" implies below-average performance; A "Valid Restaurant" denotes...
SELECT t2.house_number, t1.name, t3.region, CASE WHEN t1.rating >= 4.5 THEN 'Top Rated' WHEN t1.rating >= 3 THEN 'Average Rated' ELSE 'Low Rated' END AS rating_category, CASE WHEN LENGTH(t1.name) > 0 AND LENGTH(t1.food_type) > 0 THEN 'Valid Restaurant' ...
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 derive the SQL query from the natural language question, we will break down the requirements piece by piece, considering only the relevant tables and columns necessary for the task. **Step 1: Understand the Requirements** The task is to find restaurants located on "Bethel Island Rd" in "Bethel Island", classify th...
restaurants
Could you tell me the house numbers and names of the first five restaurants on Main Street in San Francisco, ordered alphabetically by restaurant 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 = "san francisco" AND t2.street_name = "main st" ORDER BY t1.name ASC LIMIT 5;
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 answer the question, we need to translate the natural language question into a structured SQL query using the provided database schema. Let's break this down into steps: 1. **Identify the Relevant Tables and Columns**: - We need information related to restaurants, such as house numbers and names. This data is fo...
restaurants
What insights can you infer about the top-rated dining spots on that notable island road?
'Top-rated' might imply a rating above 3.0; 'notable island road' refers to Bethel Island Road in Bethel Island; restaurant ratings are categorized as 'Excellent', 'Good', or 'Average' for values above certain thresholds.
SELECT t2.house_number, t1.name, t1.rating, CASE WHEN t1.rating >= 4.5 THEN 'Excellent' WHEN t1.rating >= 3.0 THEN 'Good' ELSE 'Average' END AS rating_category, g.region FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOGR...
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 an executable SQLite query based on the natural language question, we need to break down the requirements and map them to the appropriate SQL query elements. ### Breakdown of the Question: 1. **"Top-rated dining spots"** - This implies we are looking for restaurants with a rating above a certain threshold...
restaurants
Hey! I'm looking for some restaurants that are on a specific street and city. Could you help me find out the house numbers and names of the first 10 restaurants in "another city" on "another street", sorted 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 = "another city" AND t2.street_name = "another street" ORDER BY t1.name ASC LIMIT 10;
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 solve the given problem, we need to formulate an SQL query that retrieves specific information about restaurants located on a given street and city. ### Step-by-Step Breakdown 1. **Identify Tables**: - The `RESTAURANT` table contains restaurant details including `ID`, `NAME`, and the city information (`CITY_N...
restaurants
What is the average restaurant rating for each county?
SELECT g.COUNTY, AVG(r.RATING) AS avg_rating FROM GEOGRAPHIC AS g JOIN RESTAURANT AS r ON g.CITY_NAME = r.CITY_NAME GROUP BY g.COUNTY;
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 generate an SQL query that answers the question, "What is the average restaurant rating for each county?", we'll follow these steps: 1. **Identify Relevant Tables**: - From the database schema, the `RESTAURANT` table contains the restaurant ratings we are interested in. - The `GEOGRAPHIC` table contains infor...
restaurants
Could you please find the house numbers and names of Italian restaurants located on Bethel Island Rd in Bethel Island? I also need to know their geographic regions and a description of their ratings, classified as 'Excellent', 'Good', or 'Average', making sure the ratings are actually present and arranging the results ...
SELECT t2.house_number, t1.name, t3.region, CASE WHEN t1.rating >= 4.5 THEN 'Excellent' WHEN t1.rating >= 3.0 THEN 'Good' ELSE 'Average' END AS rating_description FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id JOIN GEOGRAPHIC AS t3 ON t...
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 create a SQL query that answers the given natural language question, we need to follow these steps: 1. **Identify the tables and joins needed**: - We need information from `RESTAURANT` for names, food types, and ratings. - `LOCATION` is necessary for obtaining house numbers and for filtering by street name a...
restaurants
Could you provide the house numbers and names of restaurants located on Ocean View Road in Oakland, ordering them by house number from smallest to largest?
SELECT t2.house_number, t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "oakland" AND t2.street_name = "ocean view rd" ORDER BY t2.house_number ASC;
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 request into an SQL query, follow these steps: 1. **Identify Relevant Tables**: - The request asks for information about restaurants, specifically house numbers and names. This suggests the use of the `RESTAURANT` and `LOCATION` tables because: - `RESTAURANT` has the restaura...
restaurants
What are the house numbers and names of the culinary sanctuaries found on Bethel Island Road in the city of Bethel Island?
A "culinary sanctuary" metaphorically refers to a restaurant or a place where food is offered; "Bethel Island" and "Bethel Island Road" are specific locations.
SELECT t2.house_number, t1.name FROM location AS t2 JOIN restaurant AS t1 ON t2.restaurant_id = t1.id WHERE t2.city_name = "bethel island" AND t2.street_name = "bethel island rd";
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 generate the necessary SQL query, let's break down the problem: 1. **Identify the relevant tables**: Given that we are interested in house numbers and restaurant names, we observe that: - The `LOCATION` table contains the "HOUSE_NUMBER" and "STREET_NAME", which are crucial for addressing locations. - The `RES...
restaurants
What are the names and house numbers of restaurants serving American cuisine located in the Bay Area that have the highest rating?
WITH RestaurantRatings AS ( SELECT t1.name, t3.house_number, t1.rating FROM restaurant AS t1 JOIN location AS t3 ON t1.id = t3.restaurant_id WHERE t1.food_type = 'american' AND t1.city_name IN ( SELECT city_name FROM geographic WHERE region = 'bay area' ) ) SELECT house_number, name FROM Res...
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 solve the problem, we need to create an SQL query that retrieves the names and house numbers of restaurants serving American cuisine located in the Bay Area with the highest rating. We can achieve this by following the steps outlined below: ### Step 1: Understand Table Schema To construct our SQL query, we need to ...
restaurants
Hey! Could you help me find the American restaurants in the bay area that have the top rating? I need their house numbers, names, and the street names they are on. Also, the street name should start with 'M' and the house number must be more than zero. I'd also like to know if their rating is considered High, Medium, o...
SELECT t3.house_number, t1.name, t3.street_name, CASE WHEN t1.rating >= 4.5 THEN 'High' WHEN t1.rating >= 3.0 THEN 'Medium' ELSE 'Low' 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....
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 transform the natural language request into an SQL query, let's follow a detailed step-by-step reasoning process: 1. **Identify the tables involved**: - We need information about the city's region from the `GEOGRAPHIC` table. - Restaurants are listed in the `RESTAURANT` table with details like food type and ...
restaurants
What is the house number and name of the highest-rated Italian restaurant in the north bay region?
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 = "north bay" AND t1.food_type = "Italian" ORDER BY t1.rating DESC, t1.name DESC LIMIT 1;
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, let's break down the requirements step-by-step: 1. **Identify the Necessary Columns and Conditions:** - We need the "house number" and "name" of the restaurant. - The restaurant should be of the "Italian" food type. - It should be located in the "n...
restaurants
What are the house numbers and names of American restaurants in the Bay Area that have the highest rating?
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 = "bay area" AND t1.food_type = "american" AND t1.rating = ( SELECT MAX(...
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 address the problem, we need to identify American-style restaurants located in the "Bay Area" with the highest ratings. Specifically, we aim to extract the corresponding house numbers and restaurant names. Let's break it down into steps: 1. **Identify Relevant Tables**: We need data from the "RESTAURANT" table for...
restaurants
What is the house number, name, rating, rating category, and city name for the top-rated American American restaurants in the Bay Area that have a valid location?
SELECT t3.house_number, t1.name, t1.rating, CASE WHEN t1.rating >= 4.5 THEN 'High' WHEN t1.rating >= 3 THEN 'Medium' ELSE 'Low' END AS rating_category, t1.city_name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN location A...
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 generate an SQL query that answers the stated question, we need to follow these steps: 1. **Identify the relevant tables:** - We need information about restaurants, which will be derived from the `RESTAURANT` table. - We need location data from the `LOCATION` table to get the house number. - The `GEOGRAPHI...
restaurants
Identify all street names in the Bay Area that host restaurants serving American cuisine, and provide the average rating and number of these restaurants located on each street.
SELECT t3.street_name, AVG(t1.rating) AS average_rating, COUNT(t1.id) AS number_of_restaurants 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 = "bay area" AND t1.food_type = "american" GROUP BY t3.street_name
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 SQL query, let's break it down step-by-step: 1. **Identify the Tables and Relationships**: - We have three tables: `GEOGRAPHIC`, `RESTAURANT`, and `LOCATION`. - The `RESTAURANT` table contains information about restaurants, including their ID, name, food type, t...
restaurants
In the area known for the bay, what does the food variety look like in its different towns?
The term "bay area" commonly refers to a geographic region that encompasses several cities and is often associated with a specific culture or economic hub; variety in food type suggests a diversity of culinary influences or offerings available in the cities.
SELECT t2.city_name, COUNT(DISTINCT t1.food_type) AS food_type_count FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" GROUP BY t2.city_name;
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, we need to identify and extract information regarding food variety (food types offered) in cities within the "bay area." This involves determining how many distinct food types are available in each city that forms part of the bay area. Here's the step-by-step reasoning for con...
restaurants
Hey there! Can you help me find the house numbers and names of the top-rated American restaurants in the Bay Area? I'm curious to see which ones are at the very top!
WITH max_rating AS ( SELECT MAX(r.rating) AS max_rating FROM restaurant AS r JOIN geographic AS g ON r.city_name = g.city_name WHERE g.region = "bay area" AND r.food_type = "american" ) SELECT l.house_number, r.name FROM restaurant AS r JOIN geographic AS g ON r.city_name = g.city_name JOIN location AS ...
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 translate the natural language question into an SQL query, let's break down the request into specific requirements based on the provided database schema. ### Requirements: 1. **Find top-rated American restaurants**: This means we need to filter restaurants where `FOOD_TYPE = 'American'` and consider only those with...
restaurants
Which city in the bay area stands out with the most diverse range of different types of cuisine offered?
"Bay area" commonly refers to the San Francisco Bay Area, known for its cultural diversity and varied cuisine; "unique food types" implies different categories or styles of food, such as Italian, Chinese, Mexican, etc.
SELECT t.city_name, COUNT(DISTINCT t.food_type) AS unique_food_types FROM restaurant AS t JOIN geographic AS g ON t.city_name = g.city_name WHERE g.region = "bay area" GROUP BY t.city_name ORDER BY unique_food_types DESC LIMIT 1;
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, we need to identify which city in the San Francisco Bay Area has the most diverse range of different types of cuisine. Here is a step-by-step guide to translating this into an SQL query: 1. **Understand the Tables and Schema**: - We have three tables: `GEOGRAPHIC`, `RESTAU...
restaurants
In the realm of culinary stars soaring across the northwest skies, which Italian havens stand out with their illustrious addresses and names, securing themselves in the coveted constellation of the top three ratings?
Northwest regions typically refer to the geographical area oriented to the northwest direction on a map; Italian cuisine includes popular dishes like pasta, pizza, and risotto.
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 = "northwest" AND t1.food_type = "italian" AND t1.rating IN ( SELECT DISTINCT t1.ra...
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 solve the problem, I need to construct a query that identifies the top three Italian restaurants in terms of ratings located in the northwest region, and then retrieves their addresses and names. I'll break the process down into steps: 1. **Identify Relevant Tables and Joins**: - There are three tables: `RESTAU...
restaurants
Hey! Could you let me know the average ratings of American restaurants in each city within the bay area? I'm curious about how they stack up city by 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 = "bay area" AND t1.food_type = "american" 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 translate the natural language question into an executable SQLite query, we first need to break down the requirements and map them to the database schema provided. 1. **Understand the Question**: - We are asked to find the average ratings of American restaurants. - The result should be segmented by city. -...
restaurants
Uncover the sanctuary of flavors where the American culinary spirit shines brightest in the Bay Area. Seek the names and dwellings of those restaurants which stand atop the gastronomic peak, blessed by the highest rating.
Reaching the peak or "standing atop the gastronomic peak" is metaphorical for having the highest rating. The Bay Area is a commonly known region around San Francisco, known for its significant cultural and culinary diversity.
WITH max_rating AS ( SELECT MAX(r.rating) AS highest_rating FROM restaurant AS r JOIN geographic AS g ON r.city_name = g.city_name WHERE g.region = 'bay area' AND r.food_type = 'american' ) SELECT loc.house_number, res.name FROM restaurant AS res JOIN max_rating AS mr ON res.rating = mr.highest_rating J...
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, we'll follow these steps: 1. **Identify Primary Requirements:** - We need to find the names and locations (dwellings) of restaurants. - These restaurants should be 'American' and located in the 'Bay Area'. - They should have the highest rating c...
restaurants
What are the average ratings of American food-type restaurants in each city within the bay area region?
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 = "bay area" AND t1.food_type = "american" GROUP BY t2.city_name;
Business Logic Changes
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 SQL query, we'll follow the steps outlined below: 1. **Identify Key Entities and Filters**: - We are focusing on restaurants with "American" food type. - We need to find the average ratings of these restaurants. - We are interested specifically in c...
restaurants
What are the average ratings of American food restaurants in each city within the bay area region?
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 = "bay area" AND t1.food_type = "american" 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 translate the given natural language question into an SQL query, we need to understand and extract the essential components of the requirement: 1. **Scope of Data**: We are interested in restaurants that serve "American" food. 2. **Region**: The cities must be within the "bay area" region. 3. **Computation**: We wa...
restaurants
Could you provide me with the house numbers and names of the American restaurants within the bay area that have the highest rating?
-- Optimize by reducing use of repeated joins and simplifying subquery SELECT loc.house_number, res.name FROM restaurant AS res JOIN location AS loc ON res.id = loc.restaurant_id WHERE res.city_name IN ( SELECT geo.city_name FROM geographic AS geo WHERE geo.region = "bay area" ) AND res.food_type = "american" AND...
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 create a SQL query that answers the natural language question, let's break down the requirements step-by-step: 1. **Identify Relevant Tables:** - From the problem description, it's clear that we need information from all three tables: `RESTAURANT`, `LOCATION`, and `GEOGRAPHIC`. 2. **Specify Columns of Interest:...
restaurants
Hey! Could you help me find the top-rated American restaurants in the bay area? I'd love to know their names and where they're located by house number!
WITH RankedRestaurants AS ( SELECT t1.id, t1.name, t1.rating, t3.house_number, t2.region, t1.food_type, MAX(t1.rating) OVER (PARTITION BY t2.region, t1.food_type) AS max_region_food_type_rating FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name ...
Query Structure Modifications
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...
Step 1: Understand the natural language question. - We are tasked with finding the top-rated American restaurants specifically in the "bay area". - We want to extract the restaurant names and their location by house number. Step 2: Identify the relevant tables and columns. - The `RESTAURANT` table contains informatio...
restaurants
What cities are crowned with the laurels of culinary delight based on the average rating of their Italian restaurants?
"To be crowned with laurels" is a metaphor referring to being honored or recognized for excellence; Italian cuisine is often associated with culinary mastery, leading to the term "culinary delight".
SELECT t1.city_name, AVG(t1.rating) AS average_rating FROM restaurant AS t1 WHERE t1.food_type = "italian" GROUP BY t1.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 answer the question "What cities are crowned with the laurels of culinary delight based on the average rating of their Italian restaurants?", we need to identify cities that have highly rated Italian restaurants. Here are the steps to translate the natural language question into an SQL query: 1. **Identify the rel...
restaurants
Identify all the American restaurants in the "bay area" region that have the highest rating, and return their house numbers and names.
WITH MaxRatingRestaurants AS ( SELECT t1.id, t1.name, t1.rating, t3.house_number 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 = "bay area" AND t1.food_type = "american" ), RankedRestaurants AS ( SELECT ...
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 translate the natural language question into an SQL query, we need to first understand the specific requirements: 1. **Identify all American restaurants**: We need to filter the restaurants based on the `FOOD_TYPE` column, specifically for "american". 2. **Located in the "bay area" region**: This requires us to jo...
restaurants
What are the average ratings of American restaurants in each city within the Bay Area region?
SELECT t3.city_name, AVG(t1.rating) AS average_rating 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 = "bay area" AND t1.food_type = "american" GROUP BY t3.city_name;
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 executable SQL query, we'll follow these steps: 1. **Understand the task:** We need to calculate the average ratings of restaurants serving American food in specific cities within the Bay Area region. 2. **Identify the necessary tables:** - **RESTAURANT:** To get ...
restaurants
Determine the average rating of Italian restaurants in each city within the Bay Area region.
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 = "bay area" AND t1.food_type = "italian" GROUP BY t2.city_name;
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 request into an SQL query, let's break down the requirements: 1. **Identify Source Tables**: - We need data on restaurants and their locations, specifically, their ratings and the cities they're located in. This information is available in the `RESTAURANT` table. - To determine ...
restaurants
Could you please find the house numbers and names of the top 5 Chinese restaurants that have ratings greater than 4.0 in the metro area? Make sure you list them in alphabetical order by name as I need this information urgently!
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 = "metro area" AND t1.food_type = "chinese" AND t1.rating > 4.0 ORDER BY t1.name ASC LIMIT 5;
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 SQL query, let’s break down the requirements one by one and align them with the given database schema. 1. **Identify the data needed:** We want to find house numbers and names of Chinese restaurants with specific criteria. 2. **Specify criteria for restaurant sel...
restaurants
Unleash your culinary compass to chart the harbor of flavors: Which five Italian culinary havens, nestled within the bay area's embrace, possess house numbers and names that also shine with a rating above the commonplace of 3.0?
- "Bay area" typically refers to a region surrounding the San Francisco Bay, known for its diverse culinary landscape. - A rating above 3.0 on a scale is often considered above average, indicating better-than-average quality or experience. - "Culinary havens", in this context, are metaphorically referring to restaurant...
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 = "bay area" AND t1.food_type = "italian" AND t1.rating > 3.0 ORDER BY t1.name ASC LIMIT 5;
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 SQLite query, let's break down the question systematically: **Requirement Analysis:** 1. **Italian Restaurants:** We need to find restaurants with the `FOOD_TYPE` as "Italian". 2. **Bay Area:** These restaurants should be located within the geographical reg...
restaurants
Please provide the house numbers and names of French restaurants that have a rating higher than 2.5 in the "yosemite and mono lake area" and the "sierra nevada area". Rank these restaurants within their respective regions based on their ratings in descending order.
WITH RECURSIVE region_hierarchy AS ( SELECT city_name, region, 1 AS level FROM GEOGRAPHIC WHERE region = "yosemite and mono lake area" UNION ALL SELECT g.city_name, g.region, rh.level + 1 FROM GEOGRAPHIC g ...
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 answer the question, we need to construct an SQL query that retrieves house numbers and restaurant names for French restaurants with ratings greater than 2.5 in specified regions, ranked by their ratings. Here’s how we can achieve this step-by-step: 1. **Identify Relevant Tables and Columns**: - We need to pull ...
restaurants
Identify all French restaurants with a rating exceeding 2.5, located within the "Yosemite and Mono Lake area." For each restaurant, return the house number, name, rating, an assessment description ('Excellent,' 'Good,' or 'Average'), and the county. Order the results by descending rating and if ratings are identical, s...
SELECT t3.house_number, t1.name, t1.rating, CASE WHEN t1.rating > 4 THEN 'Excellent' WHEN t1.rating BETWEEN 3 AND 4 THEN 'Good' ELSE 'Average' END AS rating_description, t2.county FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.cit...
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 solve the problem, the goal is to select French restaurants with ratings exceeding 2.5 located in the "Yosemite and Mono Lake area," and then to return specific details about these restaurants in a particular order. ### Step-by-Step Solution: 1. **Identify the Required Tables**: - You will need `RESTAURANT` for...
restaurants
Could you provide the house numbers and names of Italian restaurants located in Northern California that have a rating higher than 3.0? Additionally, I would like this list to be organized by the restaurant names in alphabetical order.
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 = "northern california" AND t1.food_type = "italian" AND t1.rating > 3.0 ORDER BY t1.name;
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 construct the SQL query, let's break down the problem: 1. **Identifying the Tables:** - We need information from three tables: - `RESTAURANT`: To get the `NAME`, `FOOD_TYPE`, `RATING`, and corresponding `CITY_NAME`. - `GEOGRAPHIC`: To filter by `REGION`. - `LOCATION`: For finding the `HOUSE_NUMBE...
restaurants
French restaurants in the Yosemite and Mono Lake area with ratings above 3.5, list their names and house numbers. Limit to 10 entries, sorted by name.
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 = "french" AND t1.rating > 3.5 ORDER BY t1.name ASC LIMIT 10;
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 the Relevant Tables**: The information about restaurants can be found in the `RESTAURANT` table. To get the city-specific details, we need to refer to the `GEOGRAPHIC` table. The `LOCATION` table will give us...
restaurants
Can you find the house numbers and names of all French restaurants located in the central valley region that have a rating above 3.0? Please ensure the results are sorted by the restaurant's name in ascending order.
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 = "central valley" AND t1.food_type = "french" AND t1.rating > 3.0 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 understand the relationships between the tables based on the given schema and the requirements specified in the natural language query. Let's break down the requirements first and then translate them into SQL: ### Requirements Analysis: 1. **Find French Restaurants with a Rating Abov...
restaurants
Could you tell me the house numbers and names of Italian restaurants located in the Yosemite and Mono Lake area, which have a rating higher than 3.0, ordered from the highest to the lowest rating?
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.0 ORDER BY t1.rating DESC;
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 generate the SQL query based on the natural language question, let's break down the requirements step by step: 1. **Identify Tables and Columns Involved:** - We need to find Italian restaurants, which indicates we'll be querying the `RESTAURANT` table. Specifically, we are interested in restaurants where `FOOD_T...
restaurants
In the lush culinary landscape of the Yosemite and Mono Lake area, with its high peaks and serene lakes, uncover the homes where French cuisine not only greets the palate but has managed to surpass a modest rating of 2.5 stars. What are the house numbers and names of these culinary sanctuaries?
"Yosemite and Mono Lake area" is known for its stunning natural beauty, including Yosemite National Park and Mono Lake; French cuisine is associated with elegance and sophistication; A rating above 2.5 usually indicates that a restaurant is generally favored by patrons.
SELECT l.house_number, r.name FROM restaurant AS r JOIN LOCATION AS l ON r.ID = l.RESTAURANT_ID JOIN geographic AS g ON g.CITY_NAME = r.CITY_NAME WHERE g.REGION = "yosemite and mono lake area" AND r.FOOD_TYPE = "french" AND r.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 address the natural language question, let's break down the requirements and translate them into an SQL query using the provided database schema. ### Step 1: Understand the Requirements 1. **Restrict the results to a specific geographic region**: "Yosemite and Mono Lake area" is mentioned as the geographic area of...
restaurants
In the culinary realm where ratings are the stars and regions are vast kingdoms, who are the top five Italian culinary artists in the Yosemite and Mono Lake kingdom, their abodes glowing above a 4-star constellation?
In metaphorical terms, "top five culinary artists" refers to restaurants with the highest ratings; "abodes" signify house numbers; "glowing above a 4-star constellation" indicates a rating greater than 4.
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 > 4 ORDER BY t1.rating DESC LIMIT 5;
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 SQLite query, we need to consider the following requirements: 1. **Top Five Italian Restaurants**: We need to filter restaurants serving Italian food and select the highest five based on their ratings. 2. **Region**: We need restaurants located in the 'Yose...
restaurants
Could you please find all the French restaurants located in the "yosemite and mono lake area" with a rating above 2.5? I'm interested in knowing their house numbers, names, and how their ratings are categorized as High, Medium, or Low. Keep in mind, these restaurants should be on streets starting with 'Main' and have a...
SELECT t3.house_number, t1.name, CASE WHEN t1.rating >= 4 THEN 'High' WHEN t1.rating >= 3 THEN 'Medium' ELSE 'Low' 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.restaurant_i...
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 this problem, we need to build an SQL query using the provided database schema to find French restaurants in the specified area, with specific conditions on their ratings, street name, and house number. Here's the process broken down into steps: 1. **Identify Required Tables**: - **RESTAURANT**: To filter ...
restaurants
Which French restaurants located in the Yosemite and Mono Lake area region have a rating greater than 2.5, and what are their house numbers and names?
SELECT t3.house_number, t1.name FROM LOCATION AS t3 JOIN RESTAURANT AS t1 ON t1.id = t3.restaurant_id JOIN GEOGRAPHIC AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" 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 address the natural language question, let's break it down into specific requirements and understand how the database schema can fulfill these requirements: 1. **Identify French Restaurants**: We need to filter restaurants based on their "FOOD_TYPE" being "French". This information is present in the `RESTAURANT` ta...