Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
listlengths
2
6
completion
stringlengths
47
2.5k
conv_id
int64
0
49
score
float64
0.61
0.99
single_turn_prompt
stringlengths
907
3.64k
single_turn_completion
stringlengths
191
458
single_turn_metadata
dict
turn_id
int64
2
6
sessions
listlengths
3
3
rewards
dict
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE AREA_CODE_STATE (\n area_code INTEGER NOT NULL PRIMARY KEY,\n state varchar...
Here are two one-line SQL examples — replace <table_name> with your actual table: 1) Generic single-column select: SELECT contestant_name FROM <table_name> WHERE contestant_name LIKE '%Al%'; 2) If you want unique names sorted: SELECT DISTINCT contestant_name FROM <table_name> WHERE contestant_name LIKE '%Al%' ORDER B...
0
0.949
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE AREA_CODE_STATE ( area_code INTEGER NOT NULL PRIMARY KEY, state varchar(2) NOT NULL ); CREATE TABLE CONTESTANTS ( contestant_number INT...
{"dataset": "spider_database", "task_id": "sharded-spider-val-701-medium", "db_id": "voter_1", "reference_sql": "select contestant_name from contestants where contestant_name like \"%al%\"", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "voter_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "select contestant_name from contestants where...
2
[ [ { "content": "Please give me the single-line SQL query that returns contestant_name values that include the substring 'Al' (case-sensitive is fine).", "role": "user" }, { "content": "Here are two one-line SQL examples — replace <table_name> with your actual table:\n\n1) Generic singl...
{ "MR": [ 0.949, 0.949, 0.949 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.102, 0.102, 0.102 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE AREA_CODE_STATE (\n area_code INTEGER NOT NULL PRIMARY KEY,\n state varchar...
SELECT contestant_name FROM CONTESTANTS WHERE contestant_name LIKE '%Al%';
0
0.9925
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE AREA_CODE_STATE ( area_code INTEGER NOT NULL PRIMARY KEY, state varchar(2) NOT NULL ); CREATE TABLE CONTESTANTS ( contestant_number INT...
{"dataset": "spider_database", "task_id": "sharded-spider-val-701-medium", "db_id": "voter_1", "reference_sql": "select contestant_name from contestants where contestant_name like \"%al%\"", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "voter_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "select contestant_name from contestants where...
2
[ [ { "content": "Please give me the single-line SQL query that returns contestant_name values that include the substring 'Al' (case-sensitive is fine).", "role": "user" }, { "content": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_name LIKE '%Al%';", "role": "assistant...
{ "MR": [ 0.9925, 0.9925, 0.9925 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.015, 0.015, 0.015 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE AREA_CODE_STATE (\n area_code INTEGER NOT NULL PRIMARY KEY,\n state varchar...
SELECT contestant_name FROM CONTESTANTS WHERE contestant_name LIKE '%Al%';
0
0.9925
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE AREA_CODE_STATE ( area_code INTEGER NOT NULL PRIMARY KEY, state varchar(2) NOT NULL ); CREATE TABLE CONTESTANTS ( contestant_number INT...
{"dataset": "spider_database", "task_id": "sharded-spider-val-701-medium", "db_id": "voter_1", "reference_sql": "select contestant_name from contestants where contestant_name like \"%al%\"", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "voter_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "select contestant_name from contestants where...
2
[ [ { "content": "Please give me the single-line SQL query that returns contestant_name values that include the substring 'Al' (case-sensitive is fine).", "role": "user" }, { "content": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_name LIKE '%Al%';", "role": "assistant...
{ "MR": [ 0.9925, 0.9925, 0.9925 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.015, 0.015, 0.015 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril'; Would you like a version that also excludes rows where bulgarian_commander is NULL, or one that treats case-insensitive matches (e.g., not 'Boril' or 'boril')?
1
0.9655
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-497-medium", "db_id": "battle_death", "reference_sql": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT name , RESULT FROM battle WHERE ...
2
[ [ { "content": "Please give me a single-line SQL query that selects the name and result from the battle table where bulgarian_commander is not 'Boril'.", "role": "user" }, { "content": "SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril';\n\nWould you like a version th...
{ "MR": [ 0.97, 0.97, 0.9565 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.06, 0.06, 0.087 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril';
1
0.991
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-497-medium", "db_id": "battle_death", "reference_sql": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT name , RESULT FROM battle WHERE ...
2
[ [ { "content": "Please give me a single-line SQL query that selects the name and result from the battle table where bulgarian_commander is not 'Boril'.", "role": "user" }, { "content": "SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril';", "role": "assistant" ...
{ "MR": [ 0.991, 0.991, 0.991 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.018, 0.018, 0.018 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril';
1
0.991
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-497-medium", "db_id": "battle_death", "reference_sql": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT name , RESULT FROM battle WHERE ...
2
[ [ { "content": "Please give me a single-line SQL query that selects the name and result from the battle table where bulgarian_commander is not 'Boril'.", "role": "user" }, { "content": "SELECT name, result FROM battle WHERE bulgarian_commander <> 'Boril';", "role": "assistant" ...
{ "MR": [ 0.991, 0.991, 0.991 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.018, 0.018, 0.018 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT c.Code FROM country c WHERE c.GovernmentForm <> 'Republic' AND NOT EXISTS (SELECT 1 FROM countrylanguage cl WHERE cl.CountryCode = c.Code AND cl.Language = 'English');
2
0.98
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-782-hard", "db_id": "world_1", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "spider_difficulty": "hard"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm...
2
[ [ { "content": "Can you provide the single-line SQL query (only SQL, no commentary) that returns the country codes of countries whose GovernmentForm is not 'Republic' and that do not have English listed in countrylanguage?", "role": "user" }, { "content": "SELECT c.Code FROM country c ...
{ "MR": [ 0.98, 0.98, 0.98 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.04, 0.04, 0.04 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT c.Code FROM country c WHERE c.GovernmentForm <> 'Republic' AND NOT EXISTS (SELECT 1 FROM countrylanguage cl WHERE cl.CountryCode = c.Code AND cl.Language = 'English');
2
0.98
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-782-hard", "db_id": "world_1", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "spider_difficulty": "hard"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm...
2
[ [ { "content": "Can you provide the single-line SQL query (only SQL, no commentary) that returns the country codes of countries whose GovernmentForm is not 'Republic' and that do not have English listed in countrylanguage?", "role": "user" }, { "content": "SELECT c.Code FROM country c ...
{ "MR": [ 0.98, 0.98, 0.98 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.04, 0.04, 0.04 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT c.Code FROM country c WHERE c.GovernmentForm <> 'Republic' AND NOT EXISTS (SELECT 1 FROM countrylanguage cl WHERE cl.CountryCode = c.Code AND cl.Language = 'English');
2
0.98
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-782-hard", "db_id": "world_1", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "spider_difficulty": "hard"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT Code FROM country WHERE GovernmentForm...
2
[ [ { "content": "Can you provide the single-line SQL query (only SQL, no commentary) that returns the country codes of countries whose GovernmentForm is not 'Republic' and that do not have English listed in countrylanguage?", "role": "user" }, { "content": "SELECT c.Code FROM country c ...
{ "MR": [ 0.98, 0.98, 0.98 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.04, 0.04, 0.04 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT b.id, b.name FROM battles b JOIN death d ON d.battle_id = b.id GROUP BY b.id, b.name HAVING SUM(d.killed) > 10; Does this match your schema (table names: battles, death; columns: battle_id, killed)? If not, tell me the actual table/column names or whether you prefer a subquery/LEFT JOIN variant, and I’ll adapt...
3
0.9215
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-499-hard", "db_id": "battle_death", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", "spider_difficulty...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T...
2
[ [ { "content": "Please provide a single-line SQL query that returns the ids and names of battles where the total number killed (summing death.killed for ships lost in that battle) is greater than 10.", "role": "user" }, { "content": "SELECT b.id, b.name FROM battles b JOIN death d ON d...
{ "MR": [ 0.9215, 0.9215, 0.9215 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.157, 0.157, 0.157 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT b.id, b.name FROM battle b JOIN ship s ON s.lost_in_battle = b.id JOIN death d ON d.caused_by_ship_id = s.id GROUP BY b.id, b.name HAVING SUM(d.killed) > 10;
3
0.9735
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-499-hard", "db_id": "battle_death", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", "spider_difficulty...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T...
2
[ [ { "content": "Please provide a single-line SQL query that returns the ids and names of battles where the total number killed (summing death.killed for ships lost in that battle) is greater than 10.", "role": "user" }, { "content": "SELECT b.id, b.name FROM battle b JOIN ship s ON s.l...
{ "MR": [ 0.9735, 0.9735, 0.9735 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.053, 0.053, 0.053 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE battle (\n id INT PRIMARY KEY,\n name TEXT,\n date TEXT,\n bulgarian...
SELECT b.id, b.name FROM battle b JOIN ship s ON s.lost_in_battle = b.id JOIN death d ON d.caused_by_ship_id = s.id GROUP BY b.id, b.name HAVING SUM(d.killed) > 10;
3
0.971
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE battle ( id INT PRIMARY KEY, name TEXT, date TEXT, bulgarian_commander TEXT, latin_commander TEXT, result TEXT, UNIQUE ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-499-hard", "db_id": "battle_death", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", "spider_difficulty...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "battle_death", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.id , T1.name FROM battle AS T...
2
[ [ { "content": "Please provide a single-line SQL query that returns the ids and names of battles where the total number killed (summing death.killed for ships lost in that battle) is greater than 10.", "role": "user" }, { "content": "SELECT b.id, b.name\nFROM battle b\nJOIN ship s ON s...
{ "MR": [ 0.971, 0.971, 0.971 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.058, 0.058, 0.058 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
Here's a single-line SQL query using a common schema (car_makers.Id -> model_list.maker_id and model column named model). If your column names differ, tell me and I'll adapt it. SELECT COUNT(DISTINCT ml.model) AS distinct_model_count FROM car_makers cm JOIN model_list ml ON cm.Id = ml.maker_id WHERE cm.FullName = 'Ame...
4
0.918
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-147-medium", "db_id": "car_1", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODE...
2
[ [ { "content": "Please give me a single-line SQL query that returns the number of models in model_list for the maker whose FullName is 'American Motor Company'. I prefer the query to count distinct models and use a join from car_makers to model_list.", "role": "user" }, { "content": "H...
{ "MR": [ 0.916, 0.92, 0.918 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.168, 0.16, 0.164 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
SELECT COUNT(DISTINCT m.Model) FROM car_makers cm JOIN model_list m ON cm.Id = m.Maker WHERE cm.FullName = 'American Motor Company';
4
0.9835
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-147-medium", "db_id": "car_1", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODE...
2
[ [ { "content": "Please give me a single-line SQL query that returns the number of models in model_list for the maker whose FullName is 'American Motor Company'. I prefer the query to count distinct models and use a join from car_makers to model_list.", "role": "user" }, { "content": "S...
{ "MR": [ 0.9835, 0.9835, 0.9835 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.033, 0.033, 0.033 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
SELECT COUNT(DISTINCT m.Model) FROM car_makers cm JOIN model_list m ON cm.Id = m.Maker WHERE cm.FullName = 'American Motor Company';
4
0.9835
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-147-medium", "db_id": "car_1", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODE...
2
[ [ { "content": "Please give me a single-line SQL query that returns the number of models in model_list for the maker whose FullName is 'American Motor Company'. I prefer the query to count distinct models and use a join from car_makers to model_list.", "role": "user" }, { "content": "S...
{ "MR": [ 0.9835, 0.9835, 0.9835 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.033, 0.033, 0.033 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE Student (\n StuID INTEGER PRIMARY KEY,\n LName VARCHAR(12),\n Fname VAR...
Assuming a Pets table with one row per pet and columns StuID and PetID, a single-line SQL query is: SELECT StuID, COUNT(*) AS NumPets FROM Pets GROUP BY StuID HAVING COUNT(*) > 0; If your schema is different, here are quick variants you can pick from or tell me which matches your schema: 1) If pet rows may be duplica...
5
0.878833
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE Student ( StuID INTEGER PRIMARY KEY, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-79-medium", "db_id": "pets_1", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "pets_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1...
2
[ [ { "content": "Please provide a single-line SQL query that returns StuID and the number of pets for each student who has at least one pet.", "role": "user" }, { "content": "Assuming a Pets table with one row per pet and columns StuID and PetID, a single-line SQL query is:\n\nSELECT St...
{ "MR": [ 0.8915, 0.8725, 0.8725 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.217, 0.255, 0.255 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE Student (\n StuID INTEGER PRIMARY KEY,\n LName VARCHAR(12),\n Fname VAR...
SELECT s.StuID, COUNT(h.PetID) AS num_pets FROM Student s JOIN Has_Pet h ON s.StuID = h.StuID GROUP BY s.StuID HAVING COUNT(h.PetID) > 0;
5
0.972
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE Student ( StuID INTEGER PRIMARY KEY, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-79-medium", "db_id": "pets_1", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "pets_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1...
2
[ [ { "content": "Please provide a single-line SQL query that returns StuID and the number of pets for each student who has at least one pet.", "role": "user" }, { "content": "SELECT s.StuID, COUNT(h.PetID) AS num_pets\nFROM Student s\nJOIN Has_Pet h ON s.StuID = h.StuID\nGROUP BY s.StuI...
{ "MR": [ 0.972, 0.972, 0.972 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.056, 0.056, 0.056 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE Student (\n StuID INTEGER PRIMARY KEY,\n LName VARCHAR(12),\n Fname VAR...
SELECT s.StuID, COUNT(h.PetID) AS pet_count FROM Student s JOIN Has_Pet h ON s.StuID = h.StuID GROUP BY s.StuID HAVING COUNT(h.PetID) > 0;
5
0.9745
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE Student ( StuID INTEGER PRIMARY KEY, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, ...
{"dataset": "spider_database", "task_id": "sharded-spider-val-79-medium", "db_id": "pets_1", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "pets_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT count(*) , T1.stuid FROM student AS T1...
2
[ [ { "content": "Please provide a single-line SQL query that returns StuID and the number of pets for each student who has at least one pet.", "role": "user" }, { "content": "SELECT s.StuID, COUNT(h.PetID) AS pet_count FROM Student s JOIN Has_Pet h ON s.StuID = h.StuID GROUP BY s.StuID ...
{ "MR": [ 0.9745, 0.9745, 0.9745 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.051, 0.051, 0.051 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
Here are two single-line SQL options (pick the one matching your schema). If your tables/columns differ, tell me the schema and SQL dialect and I will adapt. 1) If you have Country(CountryID, CountryName, Continent) and CarMaker(MakerID, MakerName, CountryID): SELECT c.CountryName FROM Country c JOIN CarMaker m ON m.C...
6
0.852
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-129-extra", "db_id": "car_1", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN...
2
[ [ { "content": "Can you give me a single-line SQL query that lists CountryName for countries in continent 'Europe' that have at least 3 car makers?", "role": "user" }, { "content": "Here are two single-line SQL options (pick the one matching your schema). If your tables/columns differ,...
{ "MR": [ 0.8665, 0.8955, 0.794 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.267, 0.209, 0.412 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
SELECT c.CountryName FROM countries c JOIN continents ct ON c.Continent = ct.ContId JOIN car_makers m ON m.Country = c.CountryId WHERE ct.Continent = 'Europe' GROUP BY c.CountryId, c.CountryName HAVING COUNT(DISTINCT m.Id) >= 3;
6
0.958167
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-129-extra", "db_id": "car_1", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN...
2
[ [ { "content": "Can you give me a single-line SQL query that lists CountryName for countries in continent 'Europe' that have at least 3 car makers?", "role": "user" }, { "content": "SELECT c.CountryName FROM countries c JOIN continents ct ON c.Continent = ct.ContId JOIN car_makers m ON...
{ "MR": [ 0.97, 0.9345, 0.97 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.06, 0.131, 0.06 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE continents (\n ContId INTEGER PRIMARY KEY,\n Continent TEXT\n);\n\nCREATE ...
SELECT c.CountryName FROM countries c JOIN continents ct ON c.Continent = ct.ContId JOIN car_makers m ON m.Country = c.CountryId WHERE ct.Continent = 'Europe' GROUP BY c.CountryId, c.CountryName HAVING COUNT(m.Id) >= 3;
6
0.9715
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE continents ( ContId INTEGER PRIMARY KEY, Continent TEXT ); CREATE TABLE countries ( CountryId INTEGER PRIMARY KEY, CountryName T...
{"dataset": "spider_database", "task_id": "sharded-spider-val-129-extra", "db_id": "car_1", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING...
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "car_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN...
2
[ [ { "content": "Can you give me a single-line SQL query that lists CountryName for countries in continent 'Europe' that have at least 3 car makers?", "role": "user" }, { "content": "SELECT c.CountryName FROM countries c JOIN continents ct ON c.Continent = ct.ContId JOIN car_makers m ON...
{ "MR": [ 0.9715, 0.9715, 0.9715 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.057, 0.057, 0.057 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT continent, AVG(life_expectancy) AS "avg life expectancy", SUM(population) AS total_population FROM countries WHERE life_expectancy IS NOT NULL GROUP BY continent HAVING AVG(life_expectancy) < 72;
7
0.9535
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-798-medium", "db_id": "world_1", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy)...
2
[ [ { "content": "Please provide a single-line SQL query that returns continent, average life expectancy (avg life expectancy) and total population (sum of population) for each continent where the average life expectancy is less than 72, grouping by continent and excluding NULL life expectancy values. I wan...
{ "MR": [ 0.9535, 0.9535, 0.9535 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.093, 0.093, 0.093 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT Continent, AVG(LifeExpectancy) AS avg_life_expectancy, SUM(Population) AS total_population FROM country WHERE LifeExpectancy IS NOT NULL GROUP BY Continent HAVING AVG(LifeExpectancy) < 72;
7
0.9765
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-798-medium", "db_id": "world_1", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy)...
2
[ [ { "content": "Please provide a single-line SQL query that returns continent, average life expectancy (avg life expectancy) and total population (sum of population) for each continent where the average life expectancy is less than 72, grouping by continent and excluding NULL life expectancy values. I wan...
{ "MR": [ 0.9765, 0.9765, 0.9765 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.047, 0.047, 0.047 ] }
[ { "content": "You are helping a user write SQL queries to a database. If something is not clear, you can ask the user to clarify what they need. The schema for the database being accessed is the following:\n \nCREATE TABLE city (\n ID INTEGER NOT NULL PRIMARY KEY,\n Name char(35) NOT NULL DEFAULT ...
SELECT Continent, AVG(LifeExpectancy) AS avg_life_expectancy, SUM(Population) AS total_population FROM country WHERE LifeExpectancy IS NOT NULL GROUP BY Continent HAVING AVG(LifeExpectancy) < 72;
7
0.9765
You must generate the valid SQL query that answers the given user query in natural language. The schema of the database you are responding to is as follows: CREATE TABLE city ( ID INTEGER NOT NULL PRIMARY KEY, Name char(35) NOT NULL DEFAULT '', CountryCode char(3) NOT NULL DEFAULT '', District char(20...
{"dataset": "spider_database", "task_id": "sharded-spider-val-798-medium", "db_id": "world_1", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "spider_difficulty": "medium"}
{ "answer_extraction_strategy": "prefix_suffix", "db_id": "world_1", "extraction_requirement": "Output ONLY a complete executable SQL query (no prose). If you include a code fence, it must contain only the SQL.", "prompt_mode": "fully_specified", "reference_sql": "SELECT sum(Population) , avg(LifeExpectancy)...
2
[ [ { "content": "Please provide a single-line SQL query that returns continent, average life expectancy (avg life expectancy) and total population (sum of population) for each continent where the average life expectancy is less than 72, grouping by continent and excluding NULL life expectancy values. I wan...
{ "MR": [ 0.9765, 0.9765, 0.9765 ], "sql query->spider_exec": [ 1, 1, 1 ], "token_amount": [ 0.047, 0.047, 0.047 ] }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
8