dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 897 4.29k | messages listlengths 2 2 | question stringlengths 18 174 | sample_id int64 0 1.03k | db_id stringclasses 20
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the name of the airport with code 'AKO'. | 200 | flight_2 | [
"SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are airport names at City 'Aberdeen'? | 201 | flight_2 | [
"SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of airports in Aberdeen? | 202 | flight_2 | [
"SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights depart from 'APG'? | 203 | flight_2 | [
"SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of flights departing from 'APG'. | 204 | flight_2 | [
"SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights have destination ATO? | 205 | flight_2 | [
"SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of flights into ATO. | 206 | flight_2 | [
"SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights depart from City Aberdeen? | 207 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the number of flights departing from Aberdeen. | 208 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights arriving in Aberdeen city? | 209 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the number of flights arriving in Aberdeen. | 210 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? | 211 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights fly from Aberdeen to Ashley? | 212 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "JetBlue"
airlines.Airline: TEXT - airline name
Sample values: "JetBlue Airways", "US Airways", "AirTran Airways", "United Airlines", "Delta Airlines"
airl... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights does airline 'JetBlue Airways' have? | 213 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "JetBlue"
airlines.Airline: TEXT - airline name
Sample values: "JetBlue Airways", "US Airways", "AirTran Airways"
airlines.uid: INTEGER PRIMARY KEY - airli... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the number of Jetblue Airways flights. | 214 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many 'United Airlines' flights go to Airport 'ASY'? | 215 | flight_2 | [
"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of United Airlines flights arriving in ASY Airport. | 216 | flight_2 | [
"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many 'United Airlines' flights depart from Airport 'AHD'? | 217 | flight_2 | [
"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the number of United Airlines flights leaving from AHD Airport. | 218 | flight_2 | [
"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many United Airlines flights go to City 'Aberdeen'? | 219 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of United Airlines flights that arrive in Aberdeen. | 220 | flight_2 | [
"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which city has most number of arriving flights? | 221 | flight_2 | [
"SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which city has the most frequent destination airport? | 222 | flight_2 | [
"SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which city has most number of departing flights? | 223 | flight_2 | [
"SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which city is the most frequent source airport? | 224 | flight_2 | [
"SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the code of airport that has the highest number of flights? | 225 | flight_2 | [
"SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the airport code of the airport with the most flights? | 226 | flight_2 | [
"SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the code of airport that has fewest number of flights? | 227 | flight_2 | [
"SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the code of the airport with the least flights. | 228 | flight_2 | [
"SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airline has most number of flights? | 229 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What airline serves the most flights? | 230 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the abbreviation and country of the airline that has fewest number of flights? | 231 | flight_2 | [
"SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the abbreviation of the airilne has the fewest flights and what country is it in? | 232 | flight_2 | [
"SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are airlines that have some flight departing from airport 'AHD'? | 233 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have a flight with source airport AHD? | 234 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are airlines that have flights arriving at airport 'AHD'? | 235 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have a flight with destination airport AHD? | 236 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find all airlines that have flights from both airports 'APG' and 'CVO'. | 237 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have departing flights from both APG and CVO airports? | 238 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find all airlines that have flights from airport 'CVO' but not from 'APG'. | 239 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have departures from CVO but not from APG airports? | 240 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find all airlines that have at least 10 flights. | 241 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have at least 10 flights? | 242 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find all airlines that have fewer than 200 flights. | 243 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airlines have less than 200 flights? | 244 | flight_2 | [
"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are flight numbers of Airline "United Airlines"? | 245 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "Delta Airlines", "Southwest Airline... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which flight numbers correspond to United Airlines flights? | 246 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are flight numbers of flights departing from Airport "APG"? | 247 | flight_2 | [
"SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the flight numbers of flights leaving from APG. | 248 | flight_2 | [
"SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are flight numbers of flights arriving at Airport "APG"? | 249 | flight_2 | [
"SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the flight numbers of flights landing at APG. | 250 | flight_2 | [
"SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are flight numbers of flights departing from City "Aberdeen "? | 251 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the flight numbers of flights leaving from Aberdeen. | 252 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are flight numbers of flights arriving at City "Aberdeen"? | 253 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the flight numbers of flights arriving in Aberdeen. | 254 | flight_2 | [
"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of flights landing in the city of Aberdeen or Abilene. | 255 | flight_2 | [
"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many flights land in Aberdeen or Abilene? | 256 | flight_2 | [
"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\""
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the name of airports which do not have any flight in and out. | 257 | flight_2 | [
"SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"
] |
spider | dev | Database Schema:
Table airlines
airlines.Country: TEXT - country
Sample values: "USA"
airlines.Abbreviation: TEXT - abbreviation
Sample values: "UAL", "USAir", "Delta", "Southwest", "American"
airlines.Airline: TEXT - airline name
Sample values: "United Airlines", "US Airways", "Delta Airlines", "Sou... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which airports do not have departing or arriving flights? | 258 | flight_2 | [
"SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many employees are there? | 259 | employee_hire_evaluation | [
"SELECT count(*) FROM employee"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of employees | 260 | employee_hire_evaluation | [
"SELECT count(*) FROM employee"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Sort employee names by their age in ascending order. | 261 | employee_hire_evaluation | [
"SELECT name FROM employee ORDER BY age"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the names of employees and sort in ascending order of age. | 262 | employee_hire_evaluation | [
"SELECT name FROM employee ORDER BY age"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the number of employees from each city? | 263 | employee_hire_evaluation | [
"SELECT count(*) , city FROM employee GROUP BY city"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of employees for each city. | 264 | employee_hire_evaluation | [
"SELECT count(*) , city FROM employee GROUP BY city"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which cities do more than one employee under age 30 come from? | 265 | employee_hire_evaluation | [
"SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the cities that have more than one employee under age 30. | 266 | employee_hire_evaluation | [
"SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of shops in each location. | 267 | employee_hire_evaluation | [
"SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many shops are there in each location? | 268 | employee_hire_evaluation | [
"SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the manager name and district of the shop whose number of products is the largest. | 269 | employee_hire_evaluation | [
"SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the manager name and district of the shop that sells the largest number of products? | 270 | employee_hire_evaluation | [
"SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | find the minimum and maximum number of products of all stores. | 271 | employee_hire_evaluation | [
"SELECT min(Number_products) , max(Number_products) FROM shop"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the minimum and maximum number of products across all the shops? | 272 | employee_hire_evaluation | [
"SELECT min(Number_products) , max(Number_products) FROM shop"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the name, location and district of all shops in descending order of number of products. | 273 | employee_hire_evaluation | [
"SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Sort all the shops by number products in descending order, and return the name, location and district of each shop. | 274 | employee_hire_evaluation | [
"SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the names of stores whose number products is more than the average number of products. | 275 | employee_hire_evaluation | [
"SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which shops' number products is above the average? Give me the shop names. | 276 | employee_hire_evaluation | [
"SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | find the name of employee who was awarded the most times in the evaluation. | 277 | employee_hire_evaluation | [
"SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which employee received the most awards in evaluations? Give me the employee name. | 278 | employee_hire_evaluation | [
"SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the name of the employee who got the highest one time bonus. | 279 | employee_hire_evaluation | [
"SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which employee received the biggest bonus? Give me the employee name. | 280 | employee_hire_evaluation | [
"SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the names of employees who never won any award in the evaluation. | 281 | employee_hire_evaluation | [
"SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the employees who never received any evaluation? | 282 | employee_hire_evaluation | [
"SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of the shop that is hiring the largest number of employees? | 283 | employee_hire_evaluation | [
"SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which shop has the most employees? Give me the shop name. | 284 | employee_hire_evaluation | [
"SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the name of the shops that do not hire any employee. | 285 | employee_hire_evaluation | [
"SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which shops run with no employees? Find the shop names | 286 | employee_hire_evaluation | [
"SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of employees hired in each shop; show the shop name as well. | 287 | employee_hire_evaluation | [
"SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For each shop, return the number of employees working there and the name of the shop. | 288 | employee_hire_evaluation | [
"SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is total bonus given in all evaluations? | 289 | employee_hire_evaluation | [
"SELECT sum(bonus) FROM evaluation"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the total amount of bonus given in all the evaluations. | 290 | employee_hire_evaluation | [
"SELECT sum(bonus) FROM evaluation"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give me all the information about hiring. | 291 | employee_hire_evaluation | [
"SELECT * FROM hiring"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is all the information about hiring? | 292 | employee_hire_evaluation | [
"SELECT * FROM hiring"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which district has both stores with less than 3000 products and stores with more than 10000 products? | 293 | employee_hire_evaluation | [
"SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products. | 294 | employee_hire_evaluation | [
"SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many different store locations are there? | 295 | employee_hire_evaluation | [
"SELECT count(DISTINCT LOCATION) FROM shop"
] |
spider | dev | Database Schema:
Table hiring
hiring.Employee_ID: INT PRIMARY KEY - employee id
Sample values: "1", "2", "3", "4", "5"
hiring.Shop_ID: INT - shop id
Sample values: "1", "8", "4", "5", "2"
hiring.Start_from: TEXT - start from
Sample values: "2009", "2003", "2011", "2012", "2013"
hiring.Is_full_time:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of distinct store locations. | 296 | employee_hire_evaluation | [
"SELECT count(DISTINCT LOCATION) FROM shop"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many documents do we have? | 297 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of documents. | 298 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List document IDs, document names, and document descriptions for all documents. | 299 | cre_Doc_Template_Mgt | [
"SELECT document_id , document_name , document_description FROM Documents"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.