instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | prompt listlengths 1 1 | input_ids listlengths 1 1 | label_ids listlengths 1 1 |
|---|---|---|---|---|---|---|
Show different occupations along with the number of players in each occupation with a bar chart. | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residen... | SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
was there a result of 1st place after the year 2006 ? | CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
) | SELECT (SELECT COUNT(*) FROM table_203_300 WHERE "result" = 1 AND "year" > 2006) > 0 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Record of 29 47? | CREATE TABLE table_name_4 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_4 WHERE record = "29–47" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many ends lost for Alberta when stolen ends are greater than 7? | CREATE TABLE table_9712 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT SUM("Ends Lost") FROM table_9712 WHERE "Province" = 'alberta' AND "Stolen Ends" > '7' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the result when the competition is friendly on 8 october 2009? | CREATE TABLE table_53769 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_53769 WHERE "Competition" = 'friendly' AND "Date" = '8 october 2009' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year did they finish 1st, southern? | CREATE TABLE table_12002388_1 (
year INTEGER,
reg_season VARCHAR
) | SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the number of the 1.0.12 release version? | CREATE TABLE table_30594 (
"Version" text,
"Release" text,
"Release date" text,
"End of maintenance" text,
"Requirement" text
) | SELECT COUNT("Version") FROM table_30594 WHERE "Release" = '1.0.12' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did they do against Memphis? | CREATE TABLE table_21058823_1 (
result VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_21058823_1 WHERE opponent = "Memphis" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are all the major users of the Saturn Machine Pistol? | CREATE TABLE table_31153 (
"Name/ designation" text,
"Year of intro" real,
"Country of origin" text,
"Primary cartridge" text,
"Major users" text
) | SELECT "Major users" FROM table_31153 WHERE "Name/ designation" = 'Saturn machine pistol' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total amount of medals spain has won ? | CREATE TABLE table_203_535 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "total" FROM table_203_535 WHERE "nation" = 'spain' | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the surface for 12 september 2006 | CREATE TABLE table_name_3 (
surface VARCHAR,
date VARCHAR
) | SELECT surface FROM table_name_3 WHERE date = "12 september 2006" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players played for adams state school? | CREATE TABLE table_16402 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Player") FROM table_16402 WHERE "College" = 'Adams State' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If in arabic it is sal m-, what is it in proto-semitic? | CREATE TABLE table_74055 (
"English" text,
"Proto-Semitic" text,
"Akkadian" text,
"Arabic" text,
"Aramaic" text,
"Hebrew" text,
"Geez" text,
"Mehri" text
) | SELECT "Proto-Semitic" FROM table_74055 WHERE "Arabic" = 'salām-' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What away team has tottenham hotspur as the home team? | CREATE TABLE table_6945 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | SELECT "Away team" FROM table_6945 WHERE "Home team" = 'tottenham hotspur' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the minimum total cost of a hospital involving a laboratory test for peak airway/pressure last year? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'peak airway/pressure')) AND DATETIME(cost.chargetime, 'start of year... | eicu | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which year did she work on the most films ? | CREATE TABLE table_203_239 (
id number,
"year" number,
"title" text,
"chinese title" text,
"role" text,
"notes" text
) | SELECT "year" FROM table_203_239 GROUP BY "year" ORDER BY COUNT("title") DESC LIMIT 1 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the gold for netherlands | CREATE TABLE table_56135 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
) | SELECT "Gold" FROM table_56135 WHERE "Nation" = 'netherlands' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was Milwaukee's opponent? | CREATE TABLE table_14309 (
"Date" text,
"Opponent" text,
"City" text,
"Result" text,
"Score" text
) | SELECT "Opponent" FROM table_14309 WHERE "City" = 'milwaukee' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number on roll for Shelly Park school? | CREATE TABLE table_53507 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT COUNT("Roll") FROM table_53507 WHERE "Name" = 'shelly park school' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the publisher of Martial Law: Dead Ringers? | CREATE TABLE table_name_56 (
publisher VARCHAR,
release_title VARCHAR
) | SELECT publisher FROM table_name_56 WHERE release_title = "martial law: dead ringers" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the Moorabbin Oval stadium? | CREATE TABLE table_28885977_1 (
location VARCHAR,
stadium VARCHAR
) | SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the name of the drug prescription that patient 030-53717 was last prescribed in their first hospital encounter? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53717' AND NOT patient.hospitaldischargetime IS NULL ORDER BY p... | eicu | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times was ucla national champion ? | CREATE TABLE table_203_726 (
id number,
"year" number,
"national champion" text,
"score" text,
"runner-up" text,
"host or site" text
) | SELECT COUNT(*) FROM table_203_726 WHERE "national champion" = 'ucla' | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Home captain that played at the venue Oval? | CREATE TABLE table_42816 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Home captain" FROM table_42816 WHERE "Venue" = 'oval' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many teams finished better than spain in cycling at the 1996 summer olympics men 's team pursuit ? | CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) | SELECT COUNT("team") FROM table_204_735 WHERE "rank" < (SELECT "rank" FROM table_204_735 WHERE "team" = 'spain') | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
i would like a flight from SAN FRANCISCO to PITTSBURGH on friday morning after 1000 o'clock | CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufac... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_tim... | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which athlete has a height of 1.87 and is from Sweden? | CREATE TABLE table_26454128_4 (
athlete VARCHAR,
height VARCHAR,
country VARCHAR
) | SELECT athlete FROM table_26454128_4 WHERE height = "1.87" AND country = "Sweden" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of the department which has the highest average salary of professors. | CREATE TABLE instructor (
dept_name VARCHAR,
salary INTEGER
) | SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the endings of examples achilles, appendices, f ces | CREATE TABLE table_17798093_20 (
ending VARCHAR,
examples VARCHAR
) | SELECT ending FROM table_17798093_20 WHERE examples = "Achilles, appendices, fæces" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the area (km 2) where the population density (/mk2) is 84.3? | CREATE TABLE table_1480455_1 (
area__km_2__ VARCHAR,
population_density___km_2__ VARCHAR
) | SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was a friendly match held at Auckland? | CREATE TABLE table_38154 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
) | SELECT "Date" FROM table_38154 WHERE "Competition" = 'friendly match' AND "Venue" = 'auckland' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Oxfordshire Area's Ensemble Name? | CREATE TABLE table_74568 (
"Area" text,
"Advertisement date" text,
"Block" text,
"Winning applicant" text,
"Ensemble name" text
) | SELECT "Ensemble name" FROM table_74568 WHERE "Area" = 'oxfordshire' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which terminations correspond with headphone model SR80I? | CREATE TABLE table_20477 (
"Headphone Model" text,
"Headphone Class" text,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"US MSRP" text
) | SELECT "Termination" FROM table_20477 WHERE "Headphone Model" = 'SR80i' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number one singles for desvarieux, jacob | CREATE TABLE table_3764 (
"Artist" text,
"Country" text,
"Number-one single(s)" text,
"Year" real,
"Weeks at #1" real,
"Straight to #1 ?" text
) | SELECT "Number-one single(s)" FROM table_3764 WHERE "Artist" = 'Desvarieux, Jacob' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Original U.S. air-date for the Original Canadian air-date of december 9, 2007? | CREATE TABLE table_name_80 (
original_us_air_date VARCHAR,
original_canadian_air_date VARCHAR
) | SELECT original_us_air_date FROM table_name_80 WHERE original_canadian_air_date = "december 9, 2007" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
i need to make reservations from DENVER to BOSTON | CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufac... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON'... | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which driver has the highest point total after winning $133,386? | CREATE TABLE table_name_28 (
points INTEGER,
winnings VARCHAR
) | SELECT MAX(points) FROM table_name_28 WHERE winnings = "$133,386" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the name of the output which patient 10855 had for the first time on this month/25? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855)) AND DATETIME(outputevents.charttim... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when was the last time until 38 months ago that patient 88558 had the minimum red blood cells value? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE admissions... | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 88558) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'red blood cells') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(),... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the planet associated with the direction of south? | CREATE TABLE table_14850099_18 (
planet VARCHAR,
cardinal_direction VARCHAR
) | SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the lead for the team with Nkeiruka Ezekh as second? | CREATE TABLE table_34775 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
) | SELECT "Lead" FROM table_34775 WHERE "Second" = 'nkeiruka ezekh' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which suits have no material or non-material, either opponent, and are positional? | CREATE TABLE table_33186 (
"Positional or Automatic" text,
"Opponents" text,
"Suits" text,
"Material or Non-material" text,
"Count Rectified" text
) | SELECT "Suits" FROM table_33186 WHERE "Material or Non-material" = 'no' AND "Opponents" = 'either' AND "Positional or Automatic" = 'positional' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the school colors for the college whose main campus is overland park? | CREATE TABLE table_name_66 (
school_colors VARCHAR,
main_campus_location VARCHAR
) | SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland park" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which tracking method has a latest stable release of 6.0? | CREATE TABLE table_45903 (
"Name" text,
"Platform" text,
"Supported databases" text,
"Tracking Method" text,
"Latest stable release" text,
"License" text
) | SELECT "Tracking Method" FROM table_45903 WHERE "Latest stable release" = '6.0' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the Guest Host for Episode Number of 5? | CREATE TABLE table_name_73 (
guest_host VARCHAR,
episode_number VARCHAR
) | SELECT guest_host FROM table_name_73 WHERE episode_number = 5 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times was the opponent country India? | CREATE TABLE table_21907770_4 (
country VARCHAR,
versus VARCHAR
) | SELECT COUNT(country) FROM table_21907770_4 WHERE versus = "India" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is admission time and procedure short title of subject id 2560? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.admittime, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose discharge location is long term care hospital? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a histogram for what are the total number of credits offered by each department? | CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP... | SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many audition city's are there with an episode air date of June 24, 2010? | CREATE TABLE table_27615445_1 (
audition_city VARCHAR,
episode_air_date VARCHAR
) | SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the incumbent for district texas 12 | CREATE TABLE table_18348 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_18348 WHERE "District" = 'Texas 12' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in what years did ramon gonzalez come in first place ? | CREATE TABLE table_203_763 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "year" FROM table_203_763 WHERE "position" = 1 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year Airds High School was founded? | CREATE TABLE table_59509 (
"School" text,
"Suburb/Town" text,
"Years" text,
"Founded" real,
"Website" text
) | SELECT "Founded" FROM table_59509 WHERE "School" = 'airds high school' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose days of hospital stay is 11 and year of death is less than 2154? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.days_stay = "11" AND demographic.dod_year < "2154.0" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
With a Tally of 0-14, what is the Rank in Kilkenny County? | CREATE TABLE table_69894 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT COUNT("Rank") FROM table_69894 WHERE "County" = 'kilkenny' AND "Tally" = '0-14' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many consecutive rankings are listed ? | CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) | SELECT COUNT("rank") FROM table_204_735 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the difference between the total input of patient 10431 and the output of the patient until 12/00/2105. | CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
... | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10431)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) <= '2105-12-00') - (SEL... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total rank on airdate march 30, 2011? | CREATE TABLE table_27987623_4 (
rank_timeslot_ VARCHAR,
airdate VARCHAR
) | SELECT COUNT(rank_timeslot_) FROM table_27987623_4 WHERE airdate = "March 30, 2011" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what flights stop in ATLANTA before 1200 | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight_stop.arrival_time < 1200 AND flight_stop.stop_airport = airport_service.airport_code AND flight.flight_id = flight_stop.flight_id | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart shows the distribution of Name and Weight . | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Name, Weight FROM people | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of draws with 14 points and less than 7 games? | CREATE TABLE table_38237 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MAX("Drawn") FROM table_38237 WHERE "Points" = '14' AND "Games" < '7' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many members of the military died in the conflict that had a total of 531 casualties? | CREATE TABLE table_name_38 (
military_deaths VARCHAR,
total_casualties VARCHAR
) | SELECT military_deaths FROM table_name_38 WHERE total_casualties = "531" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What courses on Advanced Al Techniques have 4 credits ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Advanced Al Techniques%' OR name LIKE '%Advanced Al Techniques%') AND credits = 4 | advising | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of TD's for long more than 6 and cars less than 4 | CREATE TABLE table_51905 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) | SELECT COUNT("TD's") FROM table_51905 WHERE "Long" > '6' AND "Car." < '4' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result in Illinois 7? | CREATE TABLE table_1341453_15 (
results VARCHAR,
district VARCHAR
) | SELECT results FROM table_1341453_15 WHERE district = "Illinois 7" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what were the number of definity prescriptions that were made since 4 years ago? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
... | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'definity' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year') | eicu | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many socialist have a lead of 12.6%? | CREATE TABLE table_22654 (
"Date Released" text,
"Polling institute" text,
"Social Democratic" text,
"Socialist" text,
"Green-Communist" text,
"Democratic and Social Centre" text,
"Lead" text
) | SELECT COUNT("Socialist") FROM table_22654 WHERE "Lead" = '12.6%' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Score has a Result of 0 2? | CREATE TABLE table_name_81 (
score VARCHAR,
result VARCHAR
) | SELECT score FROM table_name_81 WHERE result = "0 – 2" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, and rank by the y-axis in asc. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every high point when the team is Washington? | CREATE TABLE table_17325580_6 (
high_points VARCHAR,
team VARCHAR
) | SELECT high_points FROM table_17325580_6 WHERE team = "Washington" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, I want to order in descending by the Y please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY Team_ID DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the player who's college is listed as direct to nba, school is st. vincent st. mary high school and the year is 2001-2002? | CREATE TABLE table_11677760_1 (
player VARCHAR,
year VARCHAR,
college VARCHAR,
school VARCHAR
) | SELECT player FROM table_11677760_1 WHERE college = "Direct to NBA" AND school = "St. Vincent – St. Mary High school" AND year = "2001-2002" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
since 3 years ago, what is the top four most frequent diagnosis that patients were diagnosed with within 2 months after receiving total splenectomy? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardi... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi... | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of locations of the wrestlers? Visualize by a bar chart, and sort by the x-axis from high to low. | CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
) | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY Location DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different weeks are there in order number 4 that were judge's choice? | CREATE TABLE table_29673 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" text,
"Result" text
) | SELECT COUNT("Week #") FROM table_29673 WHERE "Theme" = 'Judge''s Choice' AND "Order #" = '4' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who appeared on more albums , maccoll or kornog ? | CREATE TABLE table_204_268 (
id number,
"album/single" text,
"performer" text,
"year" number,
"variant" text,
"notes" text
) | SELECT "performer" FROM table_204_268 WHERE "performer" IN ('ewan maccoll', 'kornog') GROUP BY "performer" ORDER BY COUNT(*) DESC LIMIT 1 | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of womens singles for 1999 rio de janeiro | CREATE TABLE table_30326 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) | SELECT COUNT("Womens Singles") FROM table_30326 WHERE "Year Location" = '1999 Rio de Janeiro' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of emergency hospital admitted patients who had neb route of drug administration. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.route = "NEB" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the third quarter is China Mobile 195,680.4, what is the rank? | CREATE TABLE table_36999 (
"Rank" real,
"First quarter" text,
"Second quarter" text,
"Third quarter" text,
"Fourth quarter" text
) | SELECT "Rank" FROM table_36999 WHERE "Third quarter" = 'china mobile 195,680.4' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how much is the cost of the atrophic vaginitis diagnosing? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'atrophic vaginitis')) | mimic_iii | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Date of Death of the person whose Date of Birth was 28 May 1371? | CREATE TABLE table_55800 (
"Name" text,
"Date of birth" text,
"Date of death" text,
"Reign" text,
"Relationship with predecessor" text
) | SELECT "Date of death" FROM table_55800 WHERE "Date of birth" = '28 may 1371' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result of the UEFA Cup, against Palermo? | CREATE TABLE table_59892 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_59892 WHERE "Competition" = 'uefa cup' AND "Opponent" = 'palermo' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score at CN Centre on April 5, 2008? | CREATE TABLE table_36602 (
"Date" text,
"Home Team" text,
"Score" text,
"Visiting Team" text,
"Stadium" text
) | SELECT "Score" FROM table_36602 WHERE "Stadium" = 'cn centre' AND "Date" = 'april 5, 2008' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many leading scorers were there in the game against Utah? | CREATE TABLE table_18818 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High points") FROM table_18818 WHERE "Team" = 'Utah' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what about a RENTAL CAR in DENVER | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'RENTAL CAR' | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date when the attendance was 63995 | CREATE TABLE table_14875671_1 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_14875671_1 WHERE attendance = 63995 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
i'm requesting flight information on a flight from SAN FRANCISCO to PITTSBURGH on friday | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_da... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 25 AND date_day.month_number = 6 AN... | atis | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and could you list by the X in descending please? | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varcha... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Record of the 1991 Port of Spain Games? | CREATE TABLE table_name_56 (
record VARCHAR,
games VARCHAR
) | SELECT record FROM table_name_56 WHERE games = "1991 port of spain" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the number of male patients whose hospital stay was for more than 2 days. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay > "2" | mimicsql_data | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the sum of manufacturer , and group by attribute founder, and I want to sort X-axis in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is theoriginal air date of the episode directed by timothy van patten? | CREATE TABLE table_11951237_3 (
original_air_date VARCHAR,
directed_by VARCHAR
) | SELECT original_air_date FROM table_11951237_3 WHERE directed_by = "Timothy Van Patten" | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Congress has a # of cosponsors of 19? | CREATE TABLE table_name_51 (
congress VARCHAR,
_number_of_cosponsors VARCHAR
) | SELECT congress FROM table_name_51 WHERE _number_of_cosponsors = 19 | sql_create_context | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? | CREATE TABLE table_29290 (
"Season" text,
"Coach" text,
"Conf. Record" text,
"Overall" text,
"Standings" text,
"Postseason" text
) | SELECT "Conf. Record" FROM table_29290 WHERE "Standings" = 'First' AND "Season" = '2003-04' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find all restaurant in ' Los Angeles ' with more than 100 reviews | CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
... | SELECT business.name FROM business, category WHERE business.city = 'Los Angeles' AND business.review_count > 100 AND category.business_id = business.business_id AND category.category_name = 'restaurant' | yelp | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What campuses are located in Chico? | CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TA... | SELECT campus FROM campuses WHERE location = "Chico" | spider | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of managerial changes that ttm samut sakhon made in 2009 ? | CREATE TABLE table_204_805 (
id number,
"name" text,
"club" text,
"date of departure" text,
"replacement" text,
"date of appointment" text
) | SELECT COUNT(*) FROM table_204_805 WHERE "club" = 'ttm samut sakhon' | squall | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Jockey, when Horse is 'Eight Belles'? | CREATE TABLE table_46430 (
"Finished" real,
"Time/ Behind" text,
"Post" real,
"Horse" text,
"Jockey" text,
"Trainer" text,
"Owner" text
) | SELECT "Jockey" FROM table_46430 WHERE "Horse" = 'eight belles' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college did the player who played DE go to? | CREATE TABLE table_29215 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_29215 WHERE "Position" = 'DE' | wikisql | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
128000,
128006,
9125,
128007,
271,
38766,
1303,
33025,
2696,
25,
6790,
220,
2366,
18,
198,
15724,
2696,
25,
220,
1721,
4723,
220,
2366,
20,
271,
2675,
527,
264,
7941,
1887,
28175,
304,
... | [
[
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.