messages listlengths 3 3 | system stringclasses 1
value | user stringlengths 326 8.38k | assistant stringlengths 18 577 |
|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT sum(enrollment) , min(enrollment) FROM university |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match) |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match) |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(DISTINCT affiliation) FROM university |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(DISTINCT affiliation) FROM university |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) FROM university WHERE LOCATION LIKE "%NY%" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) FROM university WHERE LOCATION LIKE "%NY%" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university) |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university) |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT max(Enrollment) FROM university |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT max(Enrollment) FROM university |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT * FROM basketball_match |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT * FROM basketball_match |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT team_name FROM basketball_match ORDER BY All_Home DESC |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"basketball_match\" (\n\"Team_ID\" int,\n\"Scho... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "basketball_match" (
"Team_ID" int,
"School_ID" int,
"Team_Name" text,
"ACC_Regular_Season" text,
"ACC_Percent" text,
"ACC_Home" text,
"ACC_Road" text,
"All_Games" text,
"All_Games_Percent" int,
"All_Home" text,
"All_Road" text,
"All_Neutral" text,
PRIMARY KEY ("Team_ID"),
FOREIGN KEY (... | SELECT team_name FROM basketball_match ORDER BY All_Home DESC |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT chip_model , screen_mode FROM phone WHERE Hardware_Model_name = "LG-P760"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT count(*) FROM phone WHERE Company_name = "Nokia Corporation"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T2.Hardware_Model_name , T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Hardware_Model_name , Company_name FROM phone WHERE Accreditation_type LIKE 'Full'; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T1.Char_cells , T1.Pixels , T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Company_name , count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*) > 1; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = "LG-P760"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = "Text" OR T1.RAM_MiB > 32; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type != "Text"; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15; |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*) > 3 |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT * FROM chip_model |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT count(*) FROM chip_model WHERE wifi = 'No' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT count(*) FROM chip_model WHERE wifi = 'No' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT model_name FROM chip_model ORDER BY launch_year |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone) |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chip_model\" (\n\"Model_name\" text,\n\"Launch... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "chip_model" (
"Model_name" text,
"Launch_year" real,
"RAM_MiB" real,
"ROM_MiB" real,
"Slots" text,
"WiFi" text,
"Bluetooth" text,
PRIMARY KEY ("Model_name")
)
CREATE TABLE "screen_mode" (
"Graphics_mode" real,
"Char_cells" text,
"Pixels" text,
"Hardware_colours" real,
"used_kb" real,
... | SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full' |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(*) FROM country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(*) FROM country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Country_name , Capital FROM country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Country_name , Capital FROM country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT POSITION FROM match_season |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT POSITION FROM match_season |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Player FROM match_season WHERE College = "UCLA" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Player FROM match_season WHERE College = "UCLA" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT POSITION FROM match_season WHERE College = "UCLA" OR College = "Duke" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT POSITION FROM match_season WHERE College = "UCLA" OR College = "Duke" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = "Defender" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = "Defender" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT Team) FROM match_season |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT Team) FROM match_season |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Player , Years_Played FROM player |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Player , Years_Played FROM player |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Name FROM Team |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Name FROM Team |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = "Indonesia" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = "Indonesia" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = "Dublin" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = "Dublin" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = "Maryland" OR T2.College = "Duke" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = "Maryland" OR T2.College = "Duke" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT player FROM match_season ORDER BY College ASC |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT player FROM match_season ORDER BY College ASC |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3 |
[
{
"role": "system",
"content": "You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"country\" (\n \"Country_id\" int,\n \"Co... | You are an expert SQL assistant. Given a database schema and a question, generate the correct SQL query. Output only the SQL query, no explanation. | ### Database Schema
CREATE TABLE "country" (
"Country_id" int,
"Country_name" text,
"Capital" text,
"Official_native_language" text,
PRIMARY KEY ("Country_id")
)
CREATE TABLE `team` (
`Team_id` int,
`Name` text,
PRIMARY KEY (`Team_id`)
)
CREATE TABLE "match_season" (
"Season"... | SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.