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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT DISTINCT District_name FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT DISTINCT District_name FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district ORDER BY city_population 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district ORDER BY city_population 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT district_name FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT sum(city_population) FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT sum(city_population) FROM district ORDER BY city_area 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT TYPE , count(*) FROM store GROUP BY 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT TYPE , count(*) FROM store GROUP BY 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT avg(pages_per_minute_color) FROM product |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT avg(pages_per_minute_color) FROM product |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5 |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE product LIKE "%Scanner%" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE product LIKE "%Scanner%" |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size 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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.d... |
[
{
"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 \"product\" (\n\"product_id\" int,\n\"product\" ... | 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 "product" (
"product_id" int,
"product" text,
"dimensions" text,
"dpi" real,
"pages_per_minute_color" real,
"max_page_size" text,
"interface" text,
PRIMARY KEY ("product_id")
)
CREATE TABLE "store" (
"Store_ID" int,
"Store_Name" text,
"Type" text,
"Area_size" real,
"Number_of_product_c... | SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.d... |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT sum(enr) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT sum(enr) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(enr) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(enr) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM College |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM Player WHERE HS > 1000 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM Player WHERE HS > 1000 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM College WHERE enr > 15000 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM College WHERE enr > 15000 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(HS) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(HS) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName , HS FROM Player WHERE HS < 1500 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName , HS FROM Player WHERE HS < 1500 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(DISTINCT cName) FROM tryout |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(DISTINCT cName) FROM tryout |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(DISTINCT pPos) FROM tryout |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(DISTINCT pPos) FROM tryout |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM tryout WHERE decision = 'yes' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM tryout WHERE decision = 'yes' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM tryout WHERE pPos = 'goalie' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) FROM tryout WHERE pPos = 'goalie' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(HS) , max(HS) , min(HS) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(HS) , max(HS) , min(HS) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(enr) FROM College WHERE state = 'FL' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT avg(enr) FROM College WHERE state = 'FL' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA" |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA" |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT * FROM College ORDER BY enr |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT * FROM College ORDER BY enr |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName FROM College WHERE enr > 18000 ORDER BY cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName FROM College WHERE enr > 18000 ORDER BY cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT cName FROM tryout ORDER BY cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT cName FROM tryout ORDER BY cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pPos FROM tryout GROUP BY pPos 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT pPos FROM tryout GROUP BY pPos 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName FROM college ORDER BY enr 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName FROM college ORDER BY enr 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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName , state , min(enr) FROM college GROUP BY state |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT cName , state , min(enr) FROM college GROUP BY state |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' |
[
{
"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 College \n ( cName \tvarchar(20) NOT NULL,\n ... | 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 College
( cName varchar(20) NOT NULL,
state varchar(2),
enr numeric(5,0),
PRIMARY KEY (cName)
)
CREATE TABLE Player
( pID numeric(5,0) NOT NULL,
pName varchar(20),
yCard varchar(3),
HS numeric(5,0),
PRIMARY KEY (pID)
)
CREAT... | SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.