sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT full_name FROM table_name_23 WHERE age¹ = 20 AND occupation² = "student"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Full Name when Age¹ is "20" and when Occupation² is "Student"?It is not neccessary to use all the tables.
|
SELECT record FROM table_name_45 WHERE year = 2011
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the record when the year is 2011?It is not neccessary to use all the tables.
|
SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Please show the most common type of ships.It is not neccessary to use all the tables.
|
SELECT Driver FROM table WHERE Stage wins = 65
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What driver(s) had over 65 stag wins?.It is not neccessary to use all the tables.
|
SELECT MAX Attendance FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the highest attendance?.It is not neccessary to use all the tables.
|
SELECT "artist" FROM table_204_680 GROUP BY "artist" ORDER BY COUNT("title") DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
who released the most songs ?It is not neccessary to use all the tables.
|
SELECT MIN Sheep and Goats FROM table WHERE Year > 1931 AND Cows < 2518 AND Total Horses > 2604.8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?.It is not neccessary to use all the tables.
|
SELECT MIN Year FROM table WHERE Blocks = Nerlens Noel (4)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What year has Nerlens Noel (4) as blocker?.It is not neccessary to use all the tables.
|
SELECT Height ft ( m ) FROM table WHERE Floors = 36
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which height, in meters, has 36 floors?.It is not neccessary to use all the tables.
|
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-167444')) AND medication.routeadmin = 'intravenous' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-64 month') ORDER BY medication.drugstarttime LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what time is the first time patient 006-167444 was prescribed a medicine via intravenous route until 64 months ago?It is not neccessary to use all the tables.
|
SELECT state FROM table_1762887_1 WHERE county = "Lake county"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the state for lake countyIt is not neccessary to use all the tables.
|
SELECT album FROM table_name_93 WHERE year < 2008 AND title = "we're not made in the usa"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What album came out before 2008 called We're not Made in the USA?It is not neccessary to use all the tables.
|
SELECT singapore_league_cup FROM table_name_99 WHERE name = "masahiro fukasawa"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Singapore League Cup does Masahiro Fukasawa have?It is not neccessary to use all the tables.
|
SELECT SUM Laps FROM table WHERE Rider = sylvain guintoli
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the sum of Sylvain Guintoli's laps?.It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.