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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT DISTINCT forename FROM drivers ORDER BY forename 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT DISTINCT name FROM races ORDER BY name 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT DISTINCT name FROM races ORDER BY name 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*)...
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*)...
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT circuitid , LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT circuitid , LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30
[ { "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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid 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 \"circuits\" (\n\"circuitId\" INTEGER PRIMARY KE...
You 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 "circuits" ( "circuitId" INTEGER PRIMARY KEY, "circuitRef" TEXT, "name" TEXT, "location" TEXT, "country" TEXT, "lat" REAL, "lng" REAL, "alt" TEXT, "url" TEXT ) CREATE TABLE "races" ( "raceId" INTEGER PRIMARY KEY, "year" INTEGER, "round" INTEGER, "circuitId" INTEGE...
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT count(*) FROM technician
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT count(*) FROM technician
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician ORDER BY Age 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician ORDER BY Age 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team , Starting_Year FROM technician
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team , Starting_Year FROM technician
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE Team != "NYY"
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE Team != "NYY"
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Starting_Year FROM technician ORDER BY Age 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Starting_Year FROM technician ORDER BY Age 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team , COUNT(*) FROM technician GROUP BY 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team , COUNT(*) FROM technician GROUP BY 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team FROM technician GROUP BY Team 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team FROM technician GROUP BY Team 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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS"
[ { "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 \"repair\" (\n\"repair_ID\" int,\n\"name\" text,...
You 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 "repair" ( "repair_ID" int, "name" text, "Launch_Date" text, "Notes" text, PRIMARY KEY ("repair_ID") ) CREATE TABLE "machine" ( "Machine_ID" int, "Making_Year" int, "Class" text, "Team" text, "Machine_series" text, "value_points" real, "quality_rank" int, PRIMARY KEY ("Machine_ID") ) ...
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS"
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT count(*) FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT count(*) FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Company FROM entrepreneur ORDER BY Money_Requested 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Company FROM entrepreneur ORDER BY Money_Requested 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Company , Investor FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Company , Investor FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT avg(Money_Requested) FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT avg(Money_Requested) FROM entrepreneur
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Name FROM People ORDER BY Weight 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Name FROM People ORDER BY Weight 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != "Rachel Elnaugh"
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != "Rachel Elnaugh"
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Weight FROM people ORDER BY Height 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Weight FROM people ORDER BY Height 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur GROUP BY Investor 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur GROUP BY Investor 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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
[ { "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 \"entrepreneur\" (\n\"Entrepreneur_ID\" int,\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 "entrepreneur" ( "Entrepreneur_ID" int, "People_ID" int, "Company" text, "Money_Requested" real, "Investor" text, PRIMARY KEY ("Entrepreneur_ID"), FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID") ) CREATE TABLE "people" ( "People_ID" int, "Name" text, "Height" real, "Weight" ...
SELECT count(DISTINCT Company) FROM entrepreneur