NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is the name for br no. 60501 | CREATE TABLE table_23761 (
"Original No." real,
"LNER No. (Intermediate No.)" text,
"BR No." real,
"Name" text,
"Rebuild Date" text,
"Withdrawn" text
) | SELECT "Name" FROM table_23761 WHERE "BR No." = '60501' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3959,
536,
41,
96,
667,
3380,
10270,
465,
535,
490,
6,
96,
434,
18206,
465,
5,
41,
17555,
5700,
342,
465,
5,
61,
121,
1499,
6,
96,
6934,
465,
535,
490,
6,
96,
239... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2773,
3959,
536,
549,
17444,
427,
96,
6934,
465,
535,
3274,
3,
31,
3328,
20176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sepsis and vasopressor therapy needed to elevate map >= 65 mm hg and lactate > 2 mmol / l despite adequate fluid resuscitation | CREATE TABLE table_train_50 (
"id" int,
"raynaud_syndrome" bool,
"active_infection" bool,
"antibiotic_treatment" bool,
"receiving_vasopressor" bool,
"sepsis" bool,
"vasospastic_diathesis" bool,
"organ_failure" bool,
"septic_shock" bool,
"NOUSE" float
) | SELECT * FROM table_train_50 WHERE sepsis = 1 AND receiving_vasopressor = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
1752,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2866,
29,
402,
26,
834,
7,
63,
727,
11956,
121,
3,
12840,
40,
6,
96,
6645,
834,
77,
17856,
121,
3,
12840,
40,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
1752,
549,
17444,
427,
142,
102,
7,
159,
3274,
209,
3430,
4281,
834,
9856,
32,
4715,
127,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time when the race was in Kenya and Lineth Chepkurui was the athlete? | CREATE TABLE table_44349 (
"Rank" text,
"Time" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Race" text
) | SELECT "Time" FROM table_44349 WHERE "Nation" = 'kenya' AND "Athlete" = 'lineth chepkurui' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
519,
3647,
41,
96,
22557,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3628,
519,
3647,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
2217,
63,
9,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
747,
189,
3,
1033,
102,
10923,
76,
23,
31,
1,... |
How many counties correspond to each police force. | CREATE TABLE city (
City_ID int,
County_ID int,
Name text,
White real,
Black real,
Amerindian real,
Asian real,
Multiracial real,
Hispanic real
)
CREATE TABLE county_public_safety (
County_ID int,
Name text,
Population int,
Police_officers int,
Residents_per_officer int,
Case_burden int,
Crime_rate real,
Police_force text,
Location text
) | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
896,
834,
4309,
16,
17,
6,
1334,
834,
4309,
16,
17,
6,
5570,
1499,
6,
1945,
490,
6,
1589,
490,
6,
736,
6655,
8603,
490,
6,
6578,
490,
6,
4908,
52,
9,
4703,
490,
6,
978... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5076,
834,
10880,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
834,
15727,
834,
15233,
17,
63,
350,
4630,
6880,
272,
476,
5076,
834,
10880,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the recent BMI on season 8 for the person who's BMI started under 46.3? | CREATE TABLE table_name_49 (
recent_bmi VARCHAR,
start_bmi VARCHAR,
season VARCHAR
) | SELECT recent_bmi FROM table_name_49 WHERE start_bmi < 46.3 AND season = "season 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1100,
834,
115,
51,
23,
584,
4280,
28027,
6,
456,
834,
115,
51,
23,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1100,
834,
115,
51,
23,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
456,
834,
115,
51,
23,
3,
2,
314,
27865,
3430,
774,
3274,
96,
9476,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Finalists that has 2008, 2012, 2013 as Not winning editions | CREATE TABLE table_15301 (
"Club" text,
"Winners" text,
"Finalists" text,
"Winning editions" text,
"Not winning editions" text
) | SELECT "Finalists" FROM table_15301 WHERE "Not winning editions" = '2008, 2012, 2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
25626,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
371,
10270,
343,
7,
121,
1499,
6,
96,
518,
10503,
4182,
7,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
343,
7,
121,
21680,
953,
834,
1808,
25626,
549,
17444,
427,
96,
10358,
3447,
4182,
7,
121,
3274,
3,
31,
16128,
6,
1673,
6,
2038,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between price and revenue . | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5312,
6,
19764,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is hte player with a 3 dart avg of 89.57? | CREATE TABLE table_19598 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
) | SELECT "Player" FROM table_19598 WHERE "3-dart Average" = '89.57' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
3916,
41,
96,
15800,
49,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
2796,
122,
7,
549,
106,
121,
490,
6,
96,
2796,
122,
7,
19576,
121,
490,
6,
96,
2915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
22464,
3916,
549,
17444,
427,
96,
519,
18,
26,
1408,
23836,
121,
3274,
3,
31,
3914,
5,
3436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most municipalities for alto alentejo province (partly ribatejo) | CREATE TABLE table_24799 (
"District" text,
"Municipalities" real,
"Parishes" real,
"Province of 1936" text,
"Region" text
) | SELECT MAX("Municipalities") FROM table_24799 WHERE "Province of 1936" = 'Alto Alentejo Province (partly Ribatejo)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
3264,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
329,
202,
1294,
6459,
2197,
121,
490,
6,
96,
13212,
1273,
15,
7,
121,
490,
6,
96,
3174,
2494,
565,
13,
27598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
202,
1294,
6459,
2197,
8512,
21680,
953,
834,
357,
4177,
3264,
549,
17444,
427,
96,
3174,
2494,
565,
13,
27598,
121,
3274,
3,
31,
188,
40,
235,
901,
4617,
1927,
19573,
41,
2274,
120,
2403,
... |
what is the engine when the tyre is d, the constructor is era and the driver is bob gerard? | CREATE TABLE table_name_17 (
engine VARCHAR,
driver VARCHAR,
tyre VARCHAR,
constructor VARCHAR
) | SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1948,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
17,
63,
60,
3274,
96,
26,
121,
3430,
6774,
127,
3274,
96,
1498,
121,
3430,
2535,
3274,
96,
17396,
3,
1304,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What tournament location has south korea as the country? | CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR) | SELECT tournament_location FROM table_name_43 WHERE country = "south korea" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
17,
1211,
20205,
17,
834,
14836,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
1128,
65,
3414,
3,
5543,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
834,
14836,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find dates and attendance for exhibitions that happened in 2004, show me the attendance by date with a bar chart, list from high to low by the Attendance. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
) | SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 ORDER BY Attendance DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
834,
60,
7621,
41,
22371,
834,
4309,
16,
17,
6,
7678,
1499,
6,
22497,
663,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
22371,
834,
4309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
308,
342,
6,
332,
5411,
188,
17,
324,
26,
663,
21680,
4473,
834,
60,
7621,
6157,
332,
536,
3,
15355,
3162,
4473,
6157,
332,
357,
9191,
332,
5411,
5420,
13506,
1575,
834,
4309,
3274,
332,
4416,
5420,
13506... |
Name the drivers for superchips | CREATE TABLE table_2187178_1 (
driver_s_ VARCHAR,
primary_sponsor_s_ VARCHAR
) | SELECT driver_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "Superchips" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4225,
27640,
834,
536,
41,
2535,
834,
7,
834,
584,
4280,
28027,
6,
2329,
834,
7,
5041,
7,
127,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
834,
7,
834,
21680,
953,
834,
2658,
4225,
27640,
834,
536,
549,
17444,
427,
2329,
834,
7,
5041,
7,
127,
834,
7,
834,
3274,
96,
23290,
17362,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Draw a scatter chart about the correlation between Team_ID and All_Games_Percent , and group by attribute All_Road. | 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 (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the other party nominee that ran against Democratic Rick Boucher? | CREATE TABLE table_name_98 (
other_party VARCHAR,
democratic VARCHAR
) | SELECT other_party FROM table_name_98 WHERE democratic = "rick boucher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
119,
834,
8071,
584,
4280,
28027,
6,
15053,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
119,
1088,
21077,
24,
4037,
581,
10021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
119,
834,
8071,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
15053,
3274,
96,
5206,
23462,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What nationality is mark eaton, center position? | CREATE TABLE table_11492 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_11492 WHERE "Position" = 'center' AND "Player" = 'mark eaton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
4508,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
18959,
4508,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3920,
3,
1544,
106,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What date was the nascar nationwide series held? | CREATE TABLE table_53129 (
"Record" text,
"Date" text,
"Driver" text,
"Time" text,
"Speed/Avg. Speed" text
) | SELECT "Record" FROM table_53129 WHERE "Date" = 'nascar nationwide series' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
22174,
41,
96,
1649,
7621,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
28328,
87,
188,
208,
122,
5,
9913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4867,
22174,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
29,
8419,
52,
12404,
939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the different card types, and how many transactions have been made with each Visualize by bar chart, sort Y-axis in asc order please. | CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
) | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
905,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
905,
834,
4350,
584,
4280,
28027,
599,
1752,
201,
119,
834,
9,
75,
13362,
834,
221,
5756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
895,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
5421,
834,
18474,
4787,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
834,
6936,
26,
7,
6157,
332,
357,
9191,
332,
5411,
6043,
834,
23,
26,
3274,
332,
4... |
What is the result when the competition is 1982 president's cup? | CREATE TABLE table_name_5 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_5 WHERE competition = "1982 president's cup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
116,
8,
2259,
19,
14505,
2753,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
2259,
3274,
96,
2294,
4613,
2753,
31,
7,
4119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many entries are shown for first elected for district 41? | CREATE TABLE table_384 (
"District" real,
"County(s) Represented" text,
"Member Senator" text,
"Party" text,
"First Elected" real,
"Committee" text
) | SELECT COUNT("First Elected") FROM table_384 WHERE "District" = '41' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
591,
41,
96,
308,
23,
20066,
121,
490,
6,
96,
10628,
63,
599,
7,
61,
419,
12640,
15,
26,
121,
1499,
6,
96,
329,
18247,
13644,
121,
1499,
6,
96,
13725,
63,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
25171,
1289,
7633,
8512,
21680,
953,
834,
3747,
591,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
4853,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show mean max(price) from each year, display in ascending by the Y. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
) | SELECT Year, AVG(MAX(Price)) FROM wine ORDER BY AVG(MAX(Price)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
71,
17217,
599,
4148,
4,
599,
345,
4920,
61,
61,
21680,
2013,
4674,
11300,
272,
476,
71,
17217,
599,
4148,
4,
599,
345,
4920,
61,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the most recent release date? | CREATE TABLE table_19513 (
"DVD name" text,
"Ep No." real,
"DVD No." real,
"Release date" real,
"Additional information" text
) | SELECT MAX("Release date") FROM table_19513 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
2368,
41,
96,
13529,
308,
564,
121,
1499,
6,
96,
427,
102,
465,
535,
490,
6,
96,
13529,
308,
465,
535,
490,
6,
96,
1649,
40,
14608,
833,
121,
490,
6,
96,
20773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
1649,
40,
14608,
833,
8512,
21680,
953,
834,
22464,
2368,
1,
-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 engine for the Bettenhausen Motorsports team? | CREATE TABLE table_32422 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
) | SELECT "Engine" FROM table_32422 WHERE "Team" = 'bettenhausen motorsports' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
2884,
41,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
2060,
7,
121,
1499,
6,
96,
20982,
52,
7,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
519,
2266,
2884,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
8805,
35,
18535,
2340,
6661,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many of the newborn patients received additive thrapy? | CREATE TABLE procedures (
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 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 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "NEWBORN" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who ran unsuccessfully against Bill Hefner? | CREATE TABLE table_18198 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
) | SELECT "Opponent" FROM table_18198 WHERE "Incumbent" = 'Bill Hefner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
24151,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
134,
17,
144,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
2606,
24151,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
279,
1092,
216,
89,
687,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Diameter has a Year of Issue of 1977? | CREATE TABLE table_name_28 (
diameter VARCHAR,
year_of_issue VARCHAR
) | SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
9260,
584,
4280,
28027,
6,
215,
834,
858,
834,
13159,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5267,
4401,
65,
3,
9,
2929,
13,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9260,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
215,
834,
858,
834,
13159,
3274,
16433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average and total transaction amount? | CREATE TABLE Financial_transactions (
transaction_amount INTEGER
) | SELECT AVG(transaction_amount), SUM(transaction_amount) FROM Financial_transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5421,
834,
7031,
4787,
7,
41,
5878,
834,
9,
11231,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
11,
792,
5878,
866,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7031,
4787,
834,
9,
11231,
201,
180,
6122,
599,
7031,
4787,
834,
9,
11231,
61,
21680,
5421,
834,
7031,
4787,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date final has 1982 as the year? | CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR) | SELECT date_final FROM table_name_59 WHERE year = "1982" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5522,
834,
12406,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
804,
65,
14505,
38,
8,
215,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
12406,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
215,
3274,
96,
2294,
4613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the tournament that happened in 1974 in gothenburg , sweden? | CREATE TABLE table_name_84 (tournament VARCHAR, year VARCHAR, venue VARCHAR) | SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5892,
24,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
215,
3274,
17184,
3430,
5669,
3274,
96,
839,
189,
13576,
3,
6,
3,
7,
1123,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me the number of patients diagnosed with congenital stenosis of pulmonary valve who were hospitalized for more than 4 days. | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "4" AND diagnoses.long_title = "Stenosis of pulmonary valve, congenital" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
How many races were in the Mallala Motor Sport Park circuit? | CREATE TABLE table_name_48 (
race VARCHAR,
circuit VARCHAR
) | SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1964,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10879,
130,
16,
8,
13552,
138,
9,
5083,
3349,
1061,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12614,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
4558,
3274,
96,
1982,
521,
521,
2340,
2600,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Week 2 has a Week 1 of crystal beddows? | CREATE TABLE table_12979 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
) | SELECT "Week 2" FROM table_12979 WHERE "Week 1" = 'crystal beddows' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
4440,
41,
96,
518,
10266,
209,
121,
1499,
6,
96,
518,
10266,
204,
121,
1499,
6,
96,
518,
10266,
220,
121,
1499,
6,
96,
518,
10266,
3,
20364,
1499,
6,
96,
518,
1026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
204,
121,
21680,
953,
834,
22174,
4440,
549,
17444,
427,
96,
518,
10266,
209,
121,
3274,
3,
31,
75,
651,
8407,
1953,
15198,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Record has an Event of Pride Shockwave 2004? | CREATE TABLE table_35065 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_35065 WHERE "Event" = 'pride shockwave 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
4122,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
16975,
4122,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
2246,
221,
8700,
12301,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what position is number 22? | CREATE TABLE table_27676 (
"Position" text,
"Number" real,
"Horse" text,
"Jockey" text,
"Age" real,
"Handicap" text,
"SP" text,
"Distance" text
) | SELECT "Position" FROM table_27676 WHERE "Number" = '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
3959,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
357,
3959,
3959,
549,
17444,
427,
96,
567,
5937,
49,
121,
3274,
3,
31,
2884,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the final score when they played Frankfurt Galaxy? | CREATE TABLE table_24882796_2 (
final_score VARCHAR,
opponent VARCHAR
) | SELECT final_score FROM table_24882796_2 WHERE opponent = "Frankfurt Galaxy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4060,
2555,
4314,
834,
357,
41,
804,
834,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
804,
2604,
116,
79,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
834,
7,
9022,
21680,
953,
834,
2266,
4060,
2555,
4314,
834,
357,
549,
17444,
427,
15264,
3274,
96,
371,
6254,
9827,
17,
8455,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the least projected opening | CREATE TABLE table_22771048_3 (projected_opening INTEGER) | SELECT MIN(projected_opening) FROM table_22771048_3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4013,
1714,
3707,
834,
519,
41,
23574,
15,
26,
834,
8751,
53,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
16037,
2101,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
23574,
15,
26,
834,
8751,
53,
61,
21680,
953,
834,
2884,
4013,
1714,
3707,
834,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Country, when Year is "1994"? | CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR) | SELECT country FROM table_name_93 WHERE year = 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
17529,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
2929,
19,
96,
19479,
20364,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
215,
3274,
7520,
1,
-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 country has miss universe Hungary as former pageant? | CREATE TABLE table_14308895_2 (country_territory VARCHAR, former_pageant VARCHAR) | SELECT country_territory FROM table_14308895_2 WHERE former_pageant = "Miss Universe Hungary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1458,
4060,
3301,
834,
357,
41,
17529,
834,
17,
21301,
10972,
584,
4280,
28027,
6,
1798,
834,
6492,
288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
684,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
834,
17,
21301,
10972,
21680,
953,
834,
2534,
1458,
4060,
3301,
834,
357,
549,
17444,
427,
1798,
834,
6492,
288,
3274,
96,
329,
159,
7,
20713,
22768,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the last year of the television scores in the genre category ? | CREATE TABLE table_203_765 (
id number,
"genre" text,
"date" text,
"japanese title (original title)" text,
"english title" text,
"scoring" text,
"notes" text
) | SELECT MAX("date") FROM table_203_765 WHERE "genre" = 'television scores' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3959,
755,
41,
3,
23,
26,
381,
6,
96,
729,
60,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
1191,
2837,
15,
7,
15,
2233,
41,
21878,
2233,
61,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5522,
8512,
21680,
953,
834,
23330,
834,
3959,
755,
549,
17444,
427,
96,
729,
60,
121,
3274,
3,
31,
1931,
6610,
7586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find meter_300 and meter_100 , and visualize them by a bar chart, and could you display in desc by the y-axis? | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) | SELECT meter_300, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5426,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who are the candidates for district new york 10? | CREATE TABLE table_2668347_14 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_2668347_14 WHERE district = "New York 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
4177,
834,
2534,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
33,
8,
4341,
21,
3939,
126,
2545... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2688,
3651,
519,
4177,
834,
2534,
549,
17444,
427,
3939,
3274,
96,
6861,
1060,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times has a wrestler from the country of England wrestled in this event? | CREATE TABLE table_73484 (
"#" real,
"Name" text,
"Country" text,
"1" real,
"2" real,
"3" real,
"Other placings" real,
"Total" real,
"First appearance" real,
"Last appearance" real,
"Federation" text
) | SELECT COUNT("2") FROM table_73484 WHERE "Country" = 'England' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3707,
591,
41,
96,
4663,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
536,
121,
490,
6,
96,
357,
121,
490,
6,
96,
519,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
357,
8512,
21680,
953,
834,
4552,
3707,
591,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
8532,
7002,
727,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and the average of revenue , and group by attribute name, and visualize them by a bar chart, list in descending by the y axis please. | 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 T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5... |
Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%? | CREATE TABLE table_name_3 (
vote_to_save VARCHAR,
eviction_no VARCHAR,
vote_to_evict VARCHAR
) | SELECT vote_to_save FROM table_name_3 WHERE eviction_no < 14 AND vote_to_evict = "5.42%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
2902,
834,
235,
834,
7,
9,
162,
584,
4280,
28027,
6,
3,
15,
29797,
834,
29,
32,
584,
4280,
28027,
6,
2902,
834,
235,
834,
15,
7287,
17,
584,
4280,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2902,
834,
235,
834,
7,
9,
162,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3,
15,
29797,
834,
29,
32,
3,
2,
968,
3430,
2902,
834,
235,
834,
15,
7287,
17,
3274,
96,
27436,
5406,
121,
1,
-100,
-100,
-100,
... |
Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000. | CREATE TABLE Product_Suppliers (
supplier_id VARCHAR,
total_amount_purchased INTEGER
) | SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING AVG(total_amount_purchased) > 50000 OR AVG(total_amount_purchased) < 30000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6246,
834,
134,
413,
5900,
277,
41,
8106,
834,
23,
26,
584,
4280,
28027,
6,
792,
834,
9,
11231,
834,
29446,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8106,
834,
23,
26,
21680,
6246,
834,
134,
413,
5900,
277,
350,
4630,
6880,
272,
476,
8106,
834,
23,
26,
454,
6968,
2365,
71,
17217,
599,
235,
1947,
834,
9,
11231,
834,
29446,
26,
61,
2490,
943,
2313,
4674,
71,
172... |
Tell me the long for TD's of 4 | CREATE TABLE table_57357 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
) | SELECT "Long" FROM table_57357 WHERE "TD's" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
519,
3436,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
1499,
6,
96,
188,
208,
122,
535,
1499,
6,
96,
10494,
31,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
2444,
121,
21680,
953,
834,
3436,
519,
3436,
549,
17444,
427,
96,
10494,
31,
7,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What generation of spectrograph is Jupiter detected by? | CREATE TABLE table_16377 (
"Planet" text,
"Planet Type" text,
"Semimajor Axis ( AU )" text,
"Orbital Period" text,
"Radial velocity (m/s)" text,
"Detectable by:" text
) | SELECT "Detectable by:" FROM table_16377 WHERE "Planet" = 'Jupiter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
4013,
41,
96,
17373,
15,
17,
121,
1499,
6,
96,
17373,
15,
17,
6632,
121,
1499,
6,
96,
134,
15,
51,
603,
9,
12775,
71,
226,
159,
41,
3,
6727,
3,
61,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31636,
179,
57,
10,
121,
21680,
953,
834,
2938,
519,
4013,
549,
17444,
427,
96,
17373,
15,
17,
121,
3274,
3,
31,
683,
413,
155,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What college did Ray Graves attend? | CREATE TABLE table_name_2 (
college VARCHAR,
name VARCHAR
) | SELECT college FROM table_name_2 WHERE name = "ray graves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1900,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
8279,
15199,
15,
7,
2467,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
564,
3274,
96,
2866,
7808,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, find headquarter and the average of code , and group by attribute headquarter, and visualize them by a bar chart, and rank by the total number from low to high. | 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 T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
3845,
9,
26,
19973,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,... |
What was the score of the game with a H/A/N of H and a record of 12-24? | CREATE TABLE table_name_12 (score VARCHAR, h_a_n VARCHAR, record VARCHAR) | SELECT score FROM table_name_12 WHERE h_a_n = "h" AND record = "12-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
9022,
584,
4280,
28027,
6,
3,
107,
834,
9,
834,
29,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
107,
834,
9,
834,
29,
3274,
96,
107,
121,
3430,
1368,
3274,
96,
2122,
14962,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What percentage of users were using Firefox according to the source that reported 15.40% used Safari? | CREATE TABLE table_name_66 (firefox VARCHAR, safari VARCHAR) | SELECT firefox FROM table_name_66 WHERE safari = "15.40%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
6608,
20400,
584,
4280,
28027,
6,
24857,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
1105,
130,
338,
19570,
1315,
12,
8,
1391,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1472,
20400,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
24857,
3274,
96,
536,
27436,
6932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the rural population percentage in 1979? | CREATE TABLE table_16645_1 (
__percentage VARCHAR,
rural INTEGER,
year__january_ VARCHAR
) | SELECT MIN(rural), __percentage FROM table_16645_1 WHERE year__january_ = 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
2128,
834,
536,
41,
3,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
5372,
3,
21342,
17966,
6,
215,
834,
834,
7066,
76,
1208,
834,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
52,
9709,
201,
3,
834,
834,
883,
3728,
545,
21680,
953,
834,
26811,
2128,
834,
536,
549,
17444,
427,
215,
834,
834,
7066,
76,
1208,
834,
3274,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When is Collins' DOB? | CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR) | SELECT dob FROM table_name_22 WHERE surname = "collins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
26,
32,
115,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
16517,
31,
6054,
279,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
103,
115,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
244,
4350,
3274,
96,
3297,
40,
77,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What amount of times is the name, Bok De Korver listed? | CREATE TABLE table_16898 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
) | SELECT MAX("number") FROM table_16898 WHERE "name" = 'Bok de Korver' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
3916,
41,
96,
5525,
1152,
121,
490,
6,
96,
5522,
13,
5695,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
5525,
1152,
13,
16753,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5525,
1152,
8512,
21680,
953,
834,
24274,
3916,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
279,
1825,
20,
9510,
624,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the name and account balance of the customer whose name includes the letter a Visualize them using a bar chart, and I want to sort bars from high to low order. | CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
) | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' ORDER BY cust_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
6421,
834,
4309,
16,
17,
6,
3,
115,
4350,
3,
4331,
4059,
599,
1755,
201,
150,
834,
858,
834,
25697,
277,
16,
17,
6,
690,
3,
4331,
4059,
599,
16968,
6,
538,
3,
4331,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
3,
6004,
834,
3849,
21680,
884,
549,
17444,
427,
123,
7,
17,
834,
4350,
8729,
9914,
3,
31,
1454,
9,
1454,
31,
4674,
11300,
272,
476,
123,
7,
17,
834,
4350,
309,
25067,
1,
-100,
-100,
... |
What years was soc a client? | CREATE TABLE table_15340 (
"Client" text,
"Years of Operation" text,
"Area of Operation" text,
"Country" text,
"Services" text
) | SELECT "Years of Operation" FROM table_15340 WHERE "Client" = 'soc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
21129,
41,
96,
254,
10487,
17,
121,
1499,
6,
96,
476,
2741,
7,
13,
6411,
1575,
121,
1499,
6,
96,
188,
864,
13,
6411,
1575,
121,
1499,
6,
96,
10628,
651,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
13,
6411,
1575,
121,
21680,
953,
834,
1808,
21129,
549,
17444,
427,
96,
254,
10487,
17,
121,
3274,
3,
31,
7,
32,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what was the first hospital admission type until 2104 for patient 012-22602. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '012-22602' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
7928,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4542,
22451,
18365,
357,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
20466,
17,
... |
How many dates were played at the wachovia center? | CREATE TABLE table_23308178_6 (date VARCHAR, location VARCHAR) | SELECT COUNT(date) FROM table_23308178_6 WHERE location = "Wachovia Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4018,
27640,
834,
948,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5128,
130,
1944,
44,
8,
3,
10674,
9881,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
20879,
4018,
27640,
834,
948,
549,
17444,
427,
1128,
3274,
96,
518,
1836,
9881,
9,
1166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which team plays at the Arden Street Oval? | CREATE TABLE table_name_97 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_97 WHERE venue = "arden street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
4805,
44,
8,
22635,
35,
1887,
411,
2165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
5669,
3274,
96,
986,
35,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Ship was Built by Cammell Laird? | CREATE TABLE table_name_70 (
ship VARCHAR,
builder VARCHAR
) | SELECT ship FROM table_name_70 WHERE builder = "cammell laird" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
4383,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15508,
47,
14862,
57,
5184,
2341,
40,
301,
2256,
26,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4383,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
918,
49,
3274,
96,
6527,
2341,
40,
50,
23,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest female number of the hiroo 1-ch me district, which has more than 1,666 households? | CREATE TABLE table_65017 (
"District" text,
"Number of Households" real,
"Total Population" real,
"Male" real,
"Female" real
) | SELECT MIN("Female") FROM table_65017 WHERE "District" = 'hiroo 1-chōme' AND "Number of Households" > '1,666' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
2517,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
567,
5937,
49,
13,
1384,
6134,
7,
121,
490,
6,
96,
3696,
1947,
29659,
121,
490,
6,
96,
329,
9,
109,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
371,
15,
13513,
8512,
21680,
953,
834,
15348,
2517,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
9288,
32,
32,
8218,
524,
2,
526,
31,
3430,
96,
567,
5937,
49,
13,
1384,
6134,
7,
121... |
Who was the player in 1976? | CREATE TABLE table_43655 (
"Year" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Most wins" text
) | SELECT "Player" FROM table_43655 WHERE "Year" = '1976' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
10402,
755,
41,
96,
476,
2741,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
591,
10402,
755,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose year of birth is less than 2197 and procedure icd9 code is 309? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2197" AND procedures.icd9_code = "309" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the number of land areas that have a place name of Ballplay? | CREATE TABLE table_3173 (
"Place Name" text,
"County(ies) [A ]" text,
"Population (2010)" real,
"Land Area (2010)" text,
"Density (2010)" text
) | SELECT COUNT("Land Area (2010)") FROM table_3173 WHERE "Place Name" = 'Ballplay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
4552,
41,
96,
345,
11706,
5570,
121,
1499,
6,
96,
10628,
63,
599,
725,
61,
784,
188,
3,
908,
121,
1499,
6,
96,
27773,
7830,
26118,
121,
490,
6,
96,
434,
232,
5690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
232,
5690,
26118,
8512,
21680,
953,
834,
3341,
4552,
549,
17444,
427,
96,
345,
11706,
5570,
121,
3274,
3,
31,
279,
1748,
4895,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was Jonny Leadbeater President? | CREATE TABLE table_16446652_1 (season VARCHAR, president VARCHAR) | SELECT season FROM table_16446652_1 WHERE president = "Jonny Leadbeater" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3628,
3539,
5373,
834,
536,
41,
9476,
584,
4280,
28027,
6,
2753,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
446,
25011,
12208,
12745,
49,
1661,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
2938,
3628,
3539,
5373,
834,
536,
549,
17444,
427,
2753,
3274,
96,
683,
25011,
12208,
12745,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3? | CREATE TABLE table_name_52 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT SUM(silver) FROM table_name_52 WHERE bronze < 4 AND rank = "3" AND gold > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7,
173,
624,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
13467,
3,
2,
314,
3430,
11003,
3274,
96,
519,
121,
3430,
2045,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has less than 4 votes? | CREATE TABLE table_name_99 (
state VARCHAR,
council_votes INTEGER
) | SELECT state FROM table_name_99 WHERE council_votes < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
538,
584,
4280,
28027,
6,
6098,
834,
1621,
1422,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
705,
145,
314,
11839,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
6098,
834,
1621,
1422,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the transportation method most people choose to get to tourist attractions. | CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR) | SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21375,
834,
188,
17,
10559,
7,
41,
7825,
834,
235,
834,
20361,
834,
7238,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
5127,
1573,
167,
151,
854,
12,
129,
12,
8548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
571,
834,
235,
834,
20361,
834,
7238,
21680,
21375,
834,
188,
17,
10559,
7,
350,
4630,
6880,
272,
476,
571,
834,
235,
834,
20361,
834,
7238,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
... |
Who was the association that Daniel Mananta belonged to after 2011? | CREATE TABLE table_name_54 (
association VARCHAR,
nominee VARCHAR,
year VARCHAR
) | SELECT association FROM table_name_54 WHERE nominee = "daniel mananta" AND year > 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
6028,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6028,
24,
4173,
1140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6028,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
21077,
3274,
96,
26,
2738,
15,
40,
388,
288,
9,
121,
3430,
215,
2490,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a pie chart about the proportion of All_Games and ACC_Percent. | 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 (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Games, ACC_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-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 sign of zodiac for chithirai | CREATE TABLE table_169955_1 (sign_of_zodiac VARCHAR, tamil_calendar VARCHAR) | SELECT sign_of_zodiac FROM table_169955_1 WHERE tamil_calendar = "Chithirai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3264,
3769,
834,
536,
41,
6732,
834,
858,
834,
172,
23193,
75,
584,
4280,
28027,
6,
3,
17,
265,
173,
834,
1489,
35,
3439,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1320,
834,
858,
834,
172,
23193,
75,
21680,
953,
834,
2938,
3264,
3769,
834,
536,
549,
17444,
427,
3,
17,
265,
173,
834,
1489,
35,
3439,
3274,
96,
3541,
23,
7436,
7253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest total when there is less than 1 championship? | CREATE TABLE table_name_80 (total INTEGER, championship INTEGER) | SELECT MAX(total) FROM table_name_80 WHERE championship < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
235,
1947,
3,
21342,
17966,
6,
10183,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
792,
116,
132,
19,
705,
145,
209,
10183,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
10183,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is them two (the two) when you and i is ngœbalngu? | CREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR) | SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = "ngœbalngu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
27904,
2534,
834,
2266,
41,
532,
51,
834,
8264,
834,
834,
532,
834,
8264,
834,
584,
4280,
28027,
6,
25,
834,
232,
834,
23,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
135,
834,
8264,
834,
834,
532,
834,
8264,
834,
21680,
953,
834,
1714,
27904,
2534,
834,
2266,
549,
17444,
427,
25,
834,
232,
834,
23,
3274,
96,
1725,
2,
3849,
29,
1744,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which season has rank 2? | CREATE TABLE table_9253 (
"Rank" text,
"Runs" text,
"Opponent" text,
"Venue" text,
"Season" text
) | SELECT "Season" FROM table_9253 WHERE "Rank" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
4867,
41,
96,
22557,
121,
1499,
6,
96,
448,
202,
7,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
15,
9,
739,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
4508,
4867,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the rector of the residence hall who's mascot is the phoxes? | CREATE TABLE table_15873547_1 (rector VARCHAR, mascot VARCHAR) | SELECT rector FROM table_15873547_1 WHERE mascot = "Phoxes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4225,
2469,
4177,
834,
536,
41,
60,
5317,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
60,
5317,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
5317,
21680,
953,
834,
1808,
4225,
2469,
4177,
834,
536,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
345,
107,
32,
226,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is marital status and death status of subject id 52118? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT demographic.marital_status, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "52118" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
5373,
20056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the trans 2 duration if the biking stage is covered within 58:20? | CREATE TABLE table_17085947_32 (
trans_2 VARCHAR,
bike__40km_ VARCHAR
) | SELECT trans_2 FROM table_17085947_32 WHERE bike__40km_ = "58:20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
3390,
4177,
834,
2668,
41,
3017,
834,
357,
584,
4280,
28027,
6,
3724,
834,
834,
2445,
5848,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3017,
834,
357,
21680,
953,
834,
2517,
4018,
3390,
4177,
834,
2668,
549,
17444,
427,
3724,
834,
834,
2445,
5848,
834,
3274,
96,
3449,
10,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the code of production in the chapter 'high top fade-out | CREATE TABLE table_28686 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
) | SELECT COUNT("Production code") FROM table_28686 WHERE "Title" = 'High Top Fade-Out' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
3840,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3174,
8291,
1081,
8512,
21680,
953,
834,
357,
3840,
3840,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
21417,
2224,
1699,
221,
18,
15767,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the run 3 for the team in rank 12? | CREATE TABLE table_name_4 (run_3 VARCHAR, rank VARCHAR) | SELECT run_3 FROM table_name_4 WHERE rank = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
4312,
834,
519,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
661,
220,
21,
8,
372,
16,
11003,
586,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
661,
834,
519,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
11003,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position? | CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR) | SELECT tyre FROM table_name_50 WHERE pole_position = "jacky ickx" AND race = "canadian grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
17,
63,
60,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
4151,
2698,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17,
63,
60,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
9325,
63,
3,
3142,
226,
121,
3430,
1964,
3274,
96,
1608,
9,
8603,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the date for HOF week? | CREATE TABLE table_name_63 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_63 WHERE week = "hof" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
833,
21,
3,
6299,
371,
471,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
471,
3274,
96,
107,
858,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many students received a yes from tryouts? | CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
) | SELECT COUNT(*) FROM tryout WHERE decision = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
3,
12417,
381,
6,
3,
102,
4350,
1499,
6,
3,
63,
6043,
1499,
6,
3,
107,
7,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
3,
75,
4350,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
653,
670,
549,
17444,
427,
1357,
3274,
3,
31,
10070,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date was the Singapore Gross 1999? | CREATE TABLE table_name_18 (date VARCHAR, singapore_gross VARCHAR) | SELECT date FROM table_name_18 WHERE singapore_gross = "1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
5522,
584,
4280,
28027,
6,
10159,
9,
21642,
834,
3844,
7,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
6243,
17969,
5247,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
10159,
9,
21642,
834,
3844,
7,
7,
3274,
96,
2294,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What driver has a grid under 12 with a Time/Retired of + 3 laps? | CREATE TABLE table_name_87 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
13739,
52,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
8634,
3,
2,
586,
3430,
97,
834,
10682,
1271,
3274,
96,
1220,
220,
14941,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Date of the Courtyard Castle? | CREATE TABLE table_name_16 (
date VARCHAR,
type VARCHAR
) | SELECT date FROM table_name_16 WHERE type = "courtyard castle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
833,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
2243,
6636,
10099,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
686,
3274,
96,
14492,
6636,
13243,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the Position is Running Back what is the Total number of Pick #? | CREATE TABLE table_76148 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick #") FROM table_76148 WHERE "Position" = 'running back' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
24748,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
3959,
24748,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
24549,
223,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average prices of wines for each each Visualize by line chart, and rank from high to low by the x axis. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
) | SELECT Year, AVG(Price) FROM wine GROUP BY Year ORDER BY Year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
71,
17217,
599,
345,
4920,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
2929,
4674,
11300,
272,
476,
2929,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many titles were directed in series 79? | CREATE TABLE table_11411026_2 (directed_by VARCHAR, no_in_series VARCHAR) | SELECT COUNT(directed_by) FROM table_11411026_2 WHERE no_in_series = 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
19277,
2688,
834,
357,
41,
22955,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
22955,
834,
969,
61,
21680,
953,
834,
18959,
19277,
2688,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing? | CREATE TABLE table_27743641_2 (
lmp2_winning_driver VARCHAR,
lmp1_winning_team VARCHAR
) | SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4581,
3420,
4853,
834,
357,
41,
3,
40,
1167,
357,
834,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
3,
40,
1167,
536,
834,
8163,
834,
11650,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
40,
1167,
357,
834,
8163,
834,
13739,
52,
21680,
953,
834,
2555,
4581,
3420,
4853,
834,
357,
549,
17444,
427,
3,
40,
1167,
536,
834,
8163,
834,
11650,
3274,
96,
4168,
5,
460,
955,
63,
226,
12991,
739,
16046,
12... |
What is Position in Table, when Replaced By is 'Sergio Bueno'? | CREATE TABLE table_77042 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Position in table" FROM table_77042 WHERE "Replaced by" = 'sergio bueno' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
4165,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
16,
953,
121,
21680,
953,
834,
26920,
4165,
549,
17444,
427,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
7,
49,
10253,
8524,
35,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of bronze medals won among nations that won at least 1 medal and are not ranked 1st? | CREATE TABLE table_name_65 (bronze INTEGER, total VARCHAR, rank VARCHAR) | SELECT AVG(bronze) FROM table_name_65 WHERE total > 1 AND rank > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
13711,
776,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
13467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
792,
2490,
209,
3430,
11003,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Lead has Katarina Radonic as Skip? | CREATE TABLE table_75268 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_75268 WHERE "Skip" = 'katarina radonic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
357,
3651,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
121,
21680,
953,
834,
3072,
357,
3651,
549,
17444,
427,
96,
134,
2168,
102,
121,
3274,
3,
31,
1258,
5310,
29,
9,
3,
5672,
4554,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the number of the claim start date for the claims whose claimed amount is no more than the average, rank from high to low by the y axis. | CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
) | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4779,
8345,
41,
7781,
603,
834,
4309,
3,
21342,
17966,
6,
7587,
834,
4309,
3,
21342,
17966,
6,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
309,
6048,
6,
7678,
834,
254,
521,
603,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
6,
2847,
17161,
599,
308,
342,
834,
254,
521,
603,
834,
329,
9,
221,
61,
21680,
4779,
8345,
549,
17444,
427,
71,
11231,
834,
17175,
17,
1361,
3,
2,
2423,
41,
23143,
14... |
What was the score on October 24, 2005? | CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_55 WHERE date = "october 24, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
1797,
14320,
3105,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
14320,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who built the conant creek pegram truss railroad bridge? | CREATE TABLE table_44961 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
) | SELECT "Built" FROM table_44961 WHERE "Name" = 'conant creek pegram truss railroad bridge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4314,
536,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
121,
1499,
6,
96,
28886,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
63,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7793,
173,
17,
121,
21680,
953,
834,
3628,
4314,
536,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1018,
288,
25153,
158,
5096,
3,
2666,
7,
7,
21666,
4716,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Arena has an Opponent of @ oilers, and a Date of may 25? | CREATE TABLE table_79412 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Series" text,
"Arena" text
) | SELECT "Arena" FROM table_79412 WHERE "Opponent" = '@ oilers' AND "Date" = 'may 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
2122,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1536,
9,
121,
21680,
953,
834,
4440,
591,
2122,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
1043,
277,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
13726,
944,
31,
1,
-100,
-100,
-100,
-10... |
What is the smallest crowd for a game when Melbourne is the home team? | CREATE TABLE table_32386 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_32386 WHERE "Home team" = 'melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
3840,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
2668,
519,
3840,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )? | CREATE TABLE table_name_22 (giro_di_lombardia VARCHAR, tour_of_flanders VARCHAR, paris_roubaix VARCHAR) | SELECT giro_di_lombardia FROM table_name_22 WHERE tour_of_flanders = "tom boonen ( bel )" AND paris_roubaix = "fabian cancellara ( sui )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
9427,
32,
834,
26,
23,
834,
17551,
986,
23,
9,
584,
4280,
28027,
6,
1552,
834,
858,
834,
89,
20319,
7,
584,
4280,
28027,
6,
260,
159,
834,
3964,
9441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
9427,
32,
834,
26,
23,
834,
17551,
986,
23,
9,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1552,
834,
858,
834,
89,
20319,
7,
3274,
96,
235,
51,
3005,
106,
35,
41,
36,
40,
3,
61,
121,
3430,
260,
159,... |
Which player has a score of 74-74-73-70=291? | CREATE TABLE table_name_72 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 291 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,
3,
9,
2604,
13,
3,
4581,
18,
4581,
18,
4552,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2604,
3274,
3,
4581,
3,
18,
3,
4581,
3,
18,
3,
4552,
3,
18,
2861,
3274,
204,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the total number of singles w l where doubles w l is 11 14 | CREATE TABLE table_10294071_1 (
singles_w_l VARCHAR,
doubles_w_l VARCHAR
) | SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
41,
712,
7,
834,
210,
834,
40,
584,
4280,
28027,
6,
1486,
7,
834,
210,
834,
40,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
53,
965,
834,
210,
834,
40,
61,
21680,
953,
834,
1714,
3166,
2445,
4450,
834,
536,
549,
17444,
427,
1486,
7,
834,
210,
834,
40,
3274,
96,
2596,
104,
2534,
121,
1,
-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.