messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3802,
"db_id": "e_learning",
"db_path": "database/e_learning/e_learning.sqlite",
"question": "Find the login name of the course author that teaches the course with name \"advanced database\".",
"gold_sql": "SELECT T1.login_name FROM Course_Authors_and_Tutors A... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4330,
"db_id": "tracking_grants_for_research",
"db_path": "database/tracking_grants_for_research/tracking_grants_for_research.sqlite",
"question": "What is the organisation type and id of the organisation which has the most number of research staff?",
"gold_sq... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 187,
"db_id": "bike_1",
"db_path": "database/bike_1/bike_1.sqlite",
"question": "What are the ids and durations of the trips with the top 3 durations?",
"gold_sql": "SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3",
"gold_status": "ok",
"gold... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 736,
"db_id": "customers_card_transactions",
"db_path": "database/customers_card_transactions/customers_card_transactions.sqlite",
"question": "How many different types of transactions are there?",
"gold_sql": "SELECT count(DISTINCT transaction_type) FROM Fina... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5631,
"db_id": "swimming",
"db_path": "database/swimming/swimming.sqlite",
"question": "What is the average capacity of the stadiums that were opened in year 2005?",
"gold_sql": "SELECT avg(capacity) FROM stadium WHERE opening_year = 2005",
"gold_status": "o... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1024,
"db_id": "phone_1",
"db_path": "database/phone_1/phone_1.sqlite",
"question": "Which model has the least amount of RAM? List the model name and the amount of RAM.",
"gold_sql": "SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;",
... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3366,
"db_id": "sports_competition",
"db_path": "database/sports_competition/sports_competition.sqlite",
"question": "What are the types of competition and number of competitions for that type?",
"gold_sql": "SELECT Competition_type , COUNT(*) FROM competition... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5203,
"db_id": "music_2",
"db_path": "database/music_2/music_2.sqlite",
"question": "What are the different instruments listed in the database?",
"gold_sql": "SELECT DISTINCT instrument FROM Instruments",
"gold_status": "ok",
"gold_n_rows": 0,
"gold_rows... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5367,
"db_id": "tracking_software_problems",
"db_path": "database/tracking_software_problems/tracking_software_problems.sqlite",
"question": "Which product has the most problems? Give me the number of problems and the product name.",
"gold_sql": "SELECT count(... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6428,
"db_id": "cre_Docs_and_Epenses",
"db_path": "database/cre_Docs_and_Epenses/cre_Docs_and_Epenses.sqlite",
"question": "Return the description of the document type name 'Film'.",
"gold_sql": "SELECT document_type_description FROM Ref_document_types WHERE d... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2282,
"db_id": "entrepreneur",
"db_path": "database/entrepreneur/entrepreneur.sqlite",
"question": "Give the total money requested by entrepreneurs who are taller than 1.85.",
"gold_sql": "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2774,
"db_id": "election",
"db_path": "database/election/election.sqlite",
"question": "Show the name of each county along with the corresponding number of delegates from that county.",
"gold_sql": "SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN elect... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4110,
"db_id": "company_employee",
"db_path": "database/company_employee/company_employee.sqlite",
"question": "List the names of people that are not employed by any company",
"gold_sql": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM e... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2795,
"db_id": "election",
"db_path": "database/election/election.sqlite",
"question": "Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.",
"gold_sql": "SELECT Comptroller , COUNT(*) FROM party GROUP B... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4847,
"db_id": "local_govt_and_lot",
"db_path": "database/local_govt_and_lot/local_govt_and_lot.sqlite",
"question": "List the id and type of each thing, and the details of the organization that owns it.",
"gold_sql": "SELECT T1.thing_id , T1.type_of_Thing_Cod... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2634,
"db_id": "inn_1",
"db_path": "database/inn_1/inn_1.sqlite",
"question": "Find the name of rooms whose price is higher than the average price.",
"gold_sql": "SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms );",
"gold_stat... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4471,
"db_id": "network_2",
"db_path": "database/network_2/network_2.sqlite",
"question": "What are the ages of all of Zach's friends who are in the longest relationship?",
"gold_sql": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.fr... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5318,
"db_id": "manufactory_1",
"db_path": "database/manufactory_1/manufactory_1.sqlite",
"question": "Find the name of companies that do not make DVD drive.",
"gold_sql": "SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufactu... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3330,
"db_id": "college_1",
"db_path": "database/college_1/college_1.sqlite",
"question": "What are the first names of all professors who teach more than one class?",
"gold_sql": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 968,
"db_id": "medicine_enzyme_interaction",
"db_path": "database/medicine_enzyme_interaction/medicine_enzyme_interaction.sqlite",
"question": "What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?",
"gold_sql": "S... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4156,
"db_id": "film_rank",
"db_path": "database/film_rank/film_rank.sqlite",
"question": "What is the title of the film that has the highest high market estimation.",
"gold_sql": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1832,
"db_id": "browser_web",
"db_path": "database/browser_web/browser_web.sqlite",
"question": "What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?",
"gold_sql": "SELECT T1.name FROM browser AS T1 JOIN accele... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6193,
"db_id": "music_4",
"db_path": "database/music_4/music_4.sqlite",
"question": "What are the date of ceremony of music festivals with category \"Best Song\" and result \"Awarded\"?",
"gold_sql": "SELECT Date_of_ceremony FROM music_festival WHERE Category ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6612,
"db_id": "train_station",
"db_path": "database/train_station/train_station.sqlite",
"question": "Show the station name and number of trains in each station.",
"gold_sql": "SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.statio... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5357,
"db_id": "tracking_software_problems",
"db_path": "database/tracking_software_problems/tracking_software_problems.sqlite",
"question": "For the problem with id 10, return the ids and dates of its problem logs.",
"gold_sql": "SELECT problem_log_id , log_e... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1740,
"db_id": "gymnast",
"db_path": "database/gymnast/gymnast.sqlite",
"question": "List the total points of gymnasts in descending order of floor exercise points.",
"gold_sql": "SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC",
"gold_s... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6953,
"db_id": "architecture",
"db_path": "database/architecture/architecture.sqlite",
"question": "What are the ids and names of the architects who built at least 3 bridges ?",
"gold_sql": "SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.i... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6525,
"db_id": "wine_1",
"db_path": "database/wine_1/wine_1.sqlite",
"question": "List the names and scores of all wines.",
"gold_sql": "SELECT Name , Score FROM WINE",
"gold_status": "ok",
"gold_n_rows": 500,
"gold_rows_truncated": false,
"gold_ticks"... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2773,
"db_id": "election",
"db_path": "database/election/election.sqlite",
"question": "Which committees have delegates from the Democratic party?",
"gold_sql": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3535,
"db_id": "music_1",
"db_path": "database/music_1/music_1.sqlite",
"question": "What are the id of songs whose format is mp3.",
"gold_sql": "SELECT f_id FROM files WHERE formats = \"mp3\"",
"gold_status": "ok",
"gold_n_rows": 2,
"gold_rows_truncated... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1401,
"db_id": "college_2",
"db_path": "database/college_2/college_2.sqlite",
"question": "What is the lowest salary in departments with average salary greater than the overall average.",
"gold_sql": "SELECT min(salary) , dept_name FROM instructor GROUP BY dep... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6298,
"db_id": "city_record",
"db_path": "database/city_record/city_record.sqlite",
"question": "Please give me a list of cities whose regional population is over 8000000 or under 5000000.",
"gold_sql": "SELECT city FROM city WHERE regional_population > 100000... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6857,
"db_id": "flight_4",
"db_path": "database/flight_4/flight_4.sqlite",
"question": "List the cities which have more than 2 airports sorted by the number of airports.",
"gold_sql": "SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5519,
"db_id": "products_gen_characteristics",
"db_path": "database/products_gen_characteristics/products_gen_characteristics.sqlite",
"question": "Count the number of colors.",
"gold_sql": "SELECT count(*) FROM ref_colors",
"gold_status": "ok",
"gold_n_ro... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 39,
"db_id": "farm",
"db_path": "database/farm/farm.sqlite",
"question": "What is the status of the city that has hosted the most competitions?",
"gold_sql": "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3081,
"db_id": "loan_1",
"db_path": "database/loan_1/loan_1.sqlite",
"question": "What is the total amount of money loaned by banks in New York state?",
"gold_sql": "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6880,
"db_id": "flight_4",
"db_path": "database/flight_4/flight_4.sqlite",
"question": "What is the name of the airline with the most routes?",
"gold_sql": "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY cou... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3050,
"db_id": "loan_1",
"db_path": "database/loan_1/loan_1.sqlite",
"question": "Find the name, account type, and account balance of the customer who has the highest credit score.",
"gold_sql": "SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY cre... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5561,
"db_id": "products_gen_characteristics",
"db_path": "database/products_gen_characteristics/products_gen_characteristics.sqlite",
"question": "What are the names and data types of the characteristics of the 'cumin' product?",
"gold_sql": "SELECT t3.charac... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2007,
"db_id": "gas_company",
"db_path": "database/gas_company/gas_company.sqlite",
"question": "Show all main industry and total market value in each industry.",
"gold_sql": "SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry",
"go... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3858,
"db_id": "insurance_policies",
"db_path": "database/insurance_policies/insurance_policies.sqlite",
"question": "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.",... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6351,
"db_id": "school_bus",
"db_path": "database/school_bus/school_bus.sqlite",
"question": "Show the name of drivers in descending order of age.",
"gold_sql": "SELECT name FROM driver ORDER BY age DESC",
"gold_status": "ok",
"gold_n_rows": 12,
"gold_ro... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1191,
"db_id": "election_representative",
"db_path": "database/election_representative/election_representative.sqlite",
"question": "List the names of representatives that have not participated in elections listed here.",
"gold_sql": "SELECT Name FROM represen... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5824,
"db_id": "workshop_paper",
"db_path": "database/workshop_paper/workshop_paper.sqlite",
"question": "What is the author of the submission with the highest score?",
"gold_sql": "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1",
"gold_status": ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4827,
"db_id": "aircraft",
"db_path": "database/aircraft/aircraft.sqlite",
"question": "List names of all pilot in descending order of age.",
"gold_sql": "SELECT Name FROM pilot ORDER BY Age DESC",
"gold_status": "ok",
"gold_n_rows": 12,
"gold_rows_trunc... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3428,
"db_id": "hr_1",
"db_path": "database/hr_1/hr_1.sqlite",
"question": "Return the full names and salaries for employees with first names that end with the letter m.",
"gold_sql": "SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3270,
"db_id": "college_1",
"db_path": "database/college_1/college_1.sqlite",
"question": "What is the name of the department with the fewest professors?",
"gold_sql": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_co... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2901,
"db_id": "icfp_1",
"db_path": "database/icfp_1/icfp_1.sqlite",
"question": "Find the country that the most papers are affiliated with.",
"gold_sql": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2630,
"db_id": "inn_1",
"db_path": "database/inn_1/inn_1.sqlite",
"question": "How many different types of beds are there?",
"gold_sql": "SELECT count(DISTINCT bedType) FROM Rooms;",
"gold_status": "ok",
"gold_n_rows": 1,
"gold_rows_truncated": false,
... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4023,
"db_id": "ship_mission",
"db_path": "database/ship_mission/ship_mission.sqlite",
"question": "What are the different fates of the mission that involved ships from the United States?",
"gold_sql": "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3422,
"db_id": "hr_1",
"db_path": "database/hr_1/hr_1.sqlite",
"question": "Return the phone numbers of employees with salaries between 8000 and 12000.",
"gold_sql": "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000",
"gold_status": "ok... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1033,
"db_id": "phone_1",
"db_path": "database/phone_1/phone_1.sqlite",
"question": "Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.",
"gold_sql": "SELECT Com... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3016,
"db_id": "loan_1",
"db_path": "database/loan_1/loan_1.sqlite",
"question": "Find the city and state of the bank branch named morningside.",
"gold_sql": "SELECT city , state FROM bank WHERE bname = 'morningside'",
"gold_status": "ok",
"gold_n_rows": 1... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6761,
"db_id": "activity_1",
"db_path": "database/activity_1/activity_1.sqlite",
"question": "Show the ids for all the faculty members who have at least 2 students.",
"gold_sql": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor G... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1354,
"db_id": "college_2",
"db_path": "database/college_2/college_2.sqlite",
"question": "Find the department name of the instructor whose name contains 'Soisalon'.",
"gold_sql": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'",
"gold_status"... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1436,
"db_id": "college_2",
"db_path": "database/college_2/college_2.sqlite",
"question": "What is the course title of the prerequisite of course Mobile Computing?",
"gold_sql": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3211,
"db_id": "college_1",
"db_path": "database/college_1/college_1.sqlite",
"question": "Find the count and code of the job has most employees.",
"gold_sql": "SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1",
... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2564,
"db_id": "county_public_safety",
"db_path": "database/county_public_safety/county_public_safety.sqlite",
"question": "List the names of counties that do not have any cities.",
"gold_sql": "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SEL... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5514,
"db_id": "voter_2",
"db_path": "database/voter_2/voter_2.sqlite",
"question": "Report the distinct advisors who have more than 2 students.",
"gold_sql": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2",
"gold_status": "ok",
"gold_n_... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4135,
"db_id": "film_rank",
"db_path": "database/film_rank/film_rank.sqlite",
"question": "Give the average number of cities within markets that had a low market estimation larger than 10000?",
"gold_sql": "SELECT avg(T2.Number_cities) FROM film_market_estimat... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 358,
"db_id": "flight_1",
"db_path": "database/flight_1/flight_1.sqlite",
"question": "What are the aircrafts with top 3 shortest lengthes? List their names.",
"gold_sql": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3",
"gold_status": "ok",
"gold_n_... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 810,
"db_id": "chinook_1",
"db_path": "database/chinook_1/chinook_1.sqlite",
"question": "What are the names of different music genres?",
"gold_sql": "SELECT Name FROM GENRE",
"gold_status": "ok",
"gold_n_rows": 25,
"gold_rows_truncated": false,
"gold_... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6568,
"db_id": "wine_1",
"db_path": "database/wine_1/wine_1.sqlite",
"question": "Give the distinct names of wines made before 2000 or after 2010.",
"gold_sql": "SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010",
"gold_status": "ok",
"gold_n... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6576,
"db_id": "wine_1",
"db_path": "database/wine_1/wine_1.sqlite",
"question": "What are the maximum price and score of wines for each year?",
"gold_sql": "SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR",
"gold_status": "ok",
"gold_n_rows"... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5864,
"db_id": "tracking_share_transactions",
"db_path": "database/tracking_share_transactions/tracking_share_transactions.sqlite",
"question": "What are the lot details of lots associated with transactions with share count smaller than 50?",
"gold_sql": "SELE... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4664,
"db_id": "college_3",
"db_path": "database/college_3/college_3.sqlite",
"question": "What are the first names of students, ordered by age from greatest to least?",
"gold_sql": "SELECT Fname FROM STUDENT ORDER BY Age DESC",
"gold_status": "ok",
"gold_... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4424,
"db_id": "network_2",
"db_path": "database/network_2/network_2.sqlite",
"question": "What is average age of male for different job title?",
"gold_sql": "SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job",
"gold_status": "ok",
"gold... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4317,
"db_id": "club_1",
"db_path": "database/club_1/club_1.sqlite",
"question": "On average, how old are the members in the club \"Hopkins Student Enterprises\"?",
"gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clu... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2123,
"db_id": "cre_Doc_Control_Systems",
"db_path": "database/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sqlite",
"question": "What is draft detail of the document with id 7?",
"gold_sql": "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4915,
"db_id": "store_product",
"db_path": "database/store_product/store_product.sqlite",
"question": "For each type of store, how many of them are there?",
"gold_sql": "SELECT TYPE , count(*) FROM store GROUP BY TYPE",
"gold_status": "ok",
"gold_n_rows": ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3764,
"db_id": "program_share",
"db_path": "database/program_share/program_share.sqlite",
"question": "Find the total rating ratio for each channel owner.",
"gold_sql": "SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER",
"gold_status": "ok",... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3066,
"db_id": "loan_1",
"db_path": "database/loan_1/loan_1.sqlite",
"question": "Find the name of bank branch that provided the greatest total amount of loans.",
"gold_sql": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6339,
"db_id": "e_government",
"db_path": "database/e_government/e_government.sqlite",
"question": "Count the number of different payment method codes used by parties.",
"gold_sql": "SELECT count(DISTINCT payment_method_code) FROM parties",
"gold_status": "o... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2936,
"db_id": "sakila_1",
"db_path": "database/sakila_1/sakila_1.sqlite",
"question": "How many addresses are in the district of California?",
"gold_sql": "SELECT count(*) FROM address WHERE district = 'California'",
"gold_status": "ok",
"gold_n_rows": 1,... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2722,
"db_id": "storm_record",
"db_path": "database/storm_record/storm_record.sqlite",
"question": "Show all storm names except for those with at least two affected regions.",
"gold_sql": "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affe... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2740,
"db_id": "election",
"db_path": "database/election/election.sqlite",
"question": "Return the maximum and minimum population among all counties.",
"gold_sql": "SELECT max(Population) , min(Population) FROM county",
"gold_status": "ok",
"gold_n_rows": ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6341,
"db_id": "e_government",
"db_path": "database/e_government/e_government.sqlite",
"question": "Return the party email that has used party services the greatest number of times.",
"gold_sql": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5061,
"db_id": "device",
"db_path": "database/device/device.sqlite",
"question": "Return the names and locations of shops, ordered by name in alphabetical order.",
"gold_sql": "SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC",
"gold_status": "ok... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6674,
"db_id": "driving_school",
"db_path": "database/driving_school/driving_school.sqlite",
"question": "Which customer status code has least number of customers?",
"gold_sql": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 3604,
"db_id": "music_1",
"db_path": "database/music_1/music_1.sqlite",
"question": "What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?",
"gold_sql": "SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM fil... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2579,
"db_id": "inn_1",
"db_path": "database/inn_1/inn_1.sqlite",
"question": "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.",
"gold_sql": "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName = \"SWEAZY\";... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 1377,
"db_id": "college_2",
"db_path": "database/college_2/college_2.sqlite",
"question": "Give the name of the department with the lowest budget.",
"gold_sql": "SELECT dept_name FROM department ORDER BY budget LIMIT 1",
"gold_status": "ok",
"gold_n_rows":... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4063,
"db_id": "student_1",
"db_path": "database/student_1/student_1.sqlite",
"question": "Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers.",
"gold_sql": "SELECT T2.firstname , T2.lastname FROM list AS T... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 349,
"db_id": "flight_1",
"db_path": "database/flight_1/flight_1.sqlite",
"question": "How many aircrafts have distance between 1000 and 5000?",
"gold_sql": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000",
"gold_status": "ok",
"gold_n_... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4006,
"db_id": "ship_mission",
"db_path": "database/ship_mission/ship_mission.sqlite",
"question": "Show the name of ships whose nationality is either United States or United Kingdom.",
"gold_sql": "SELECT Name FROM ship WHERE Nationality = \"United States\" O... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 6813,
"db_id": "flight_4",
"db_path": "database/flight_4/flight_4.sqlite",
"question": "Find the name of the airports located in Cuba or Argentina.",
"gold_sql": "SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'",
"gold_status": "ok"... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 2617,
"db_id": "inn_1",
"db_path": "database/inn_1/inn_1.sqlite",
"question": "What are the bed type and name of all the rooms with traditional decor?",
"gold_sql": "SELECT roomName , bedType FROM Rooms WHERE decor = \"traditional\";",
"gold_status": "ok",
... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 5489,
"db_id": "voter_2",
"db_path": "database/voter_2/voter_2.sqlite",
"question": "Which students live in the city with code \"NYC\" and have class senator votes in the spring election cycle? Count the numbers.",
"gold_sql": "SELECT count(*) FROM STUDENT AS ... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 893,
"db_id": "insurance_fnol",
"db_path": "database/insurance_fnol/insurance_fnol.sqlite",
"question": "What are the customer phone numbers under the policy \"Life Insurance\"?",
"gold_sql": "SELECT customer_phone FROM available_policies WHERE policy_type_cod... |
[
{
"role": "system",
"content": "You are a text-to-SQL system. Given the schema of a SQLite database and a question, write one SQLite query that answers the question. Output only the SQL query on a single line: no explanation, no code fences, no text before or after the query."
},
{
"role": "user",
... | {
"spider_split": "train_spider",
"spider_idx": 4818,
"db_id": "aircraft",
"db_path": "database/aircraft/aircraft.sqlite",
"question": "What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?",
"gold_sql": "SELECT T1.Aircraft , T1.Description... |
ErrOPD-Spider
Text-to-SQL data (Spider 1.0) used for the SQL experiments in ErrOPD: When Does On-Policy Distillation Transfer Teacher Errors? (Xin Li, Hao Jiang, Annan Wang, Yichi Zhang, Chau Yuen). Code: https://github.com/LiXin97/ErrOPD · Project page: https://lixin.ai/ErrOPD · Models and data: ErrOPD collection
Each record is a chat (messages: system, user with the database schema and question, assistant with the gold SQL on one line)
plus metadata.
Files
| File | Split | Rows | Use in the paper |
|---|---|---|---|
sft_train.jsonl |
train |
1,795 | fine-tuning pool (from Spider train_spider, 139 databases) |
opd_prompts.jsonl |
distill_prompts |
1,795 | on-policy distillation prompts (from train_spider), disjoint from the fine-tuning pool |
val.jsonl |
validation |
500 | evaluation subset of Spider dev (20 databases) |
MANIFEST.json |
eligibility rules, seeds, system prompt, tokenizer, sha256 of the files |
Row counts were recounted from the files; train and distill_prompts share no Spider question. Only questions whose gold query
executes within the limits in MANIFEST.json (eligibility) were sampled (seeds 20260930 for the pools, 20260931 for evaluation).
The teacher's error (trailing text after the query) is not stored here: it is injected at fine-tuning time by
scripts/data_inject_nonranking.py in the code repository.
Fields
messages:system(task instruction: output one SQLite query on a single line),user(CREATE TABLEschema of the database and the question),assistant(gold SQL).metadata.db_id,metadata.db_path: Spider database id and its relative pathdatabase/<db_id>/<db_id>.sqlite.metadata.question,metadata.gold_sql: question and gold query from Spider.metadata.spider_split,metadata.spider_idx: source file (train_spiderordev) and index in it.metadata.gold_status,metadata.gold_n_rows,metadata.gold_rows_truncated,metadata.gold_ticks: execution check of the gold query (status, result rows, truncation flag, SQLite VM progress ticks).metadata.prompt_tokens,metadata.gold_tokens: lengths under the Qwen3-1.7B tokenizer.metadata.id: record id.
Usage
from datasets import load_dataset
ds = load_dataset("XINLI1997/ErrOPD-Spider") # train (1,795) / distill_prompts (1,795) / validation (500)
example = ds["validation"][0]
prompt = [m for m in example["messages"] if m["role"] != "assistant"] # feed to a chat model
gold_sql = example["metadata"]["gold_sql"]
The SQLite databases are not redistributed. Download spider_data.zip from https://yale-lily.github.io/spider (sha256
00636695dabed6b5f4b8328a16b13e069a2f16591d5efcce57660669c85b121b) and place its database/ directory so that metadata.db_path
resolves, then execute predicted and gold queries to compare results.
Personal information
Questions and schemas are reproduced from Spider. A few Spider questions quote e-mail addresses that occur in its public sample
databases (for example @example.org addresses and one address from the Chinook sample database); no other personal data was added.
Source and license
Derived from Spider 1.0 (Yu et al. 2018), which the official website distributes under CC BY-SA 4.0; this derivative is released under the same license.
Citation
@article{li2026erropd,
title = {ErrOPD: When Does On-Policy Distillation Transfer Teacher Errors?},
author = {Li, Xin and Jiang, Hao and Wang, Annan and Zhang, Yichi and Yuen, Chau},
journal = {arXiv preprint arXiv:2605.08737},
year = {2026}
}
@inproceedings{yu2018spider,
title = {Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task},
author = {Yu, Tao and Zhang, Rui and Yang, Kai and Yasunaga, Michihiro and Wang, Dongxu and Li, Zifan and Ma, James and Li, Irene and Yao, Qingning and Roman, Shanelle and Zhang, Zilin and Radev, Dragomir},
booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
year = {2018}
}
- Downloads last month
- 30