NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What were the remarks for a destination under 19 and rank less than 5? | CREATE TABLE table_name_83 (remarks VARCHAR, destination_number VARCHAR, rank VARCHAR) | SELECT remarks FROM table_name_83 WHERE destination_number < 19 AND rank < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
60,
3920,
7,
584,
4280,
28027,
6,
3954,
834,
5525,
1152,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21029,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3954,
834,
5525,
1152,
3,
2,
957,
3430,
11003,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position did the sheffield eagles finish in? | CREATE TABLE table_13018091_1 (position INTEGER, club VARCHAR) | SELECT MAX(position) FROM table_13018091_1 WHERE club = "Sheffield Eagles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
20829,
4729,
834,
536,
41,
4718,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
8,
255,
89,
1846,
3,
15,
9,
3537,
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,
4800,
4,
599,
4718,
61,
21680,
953,
834,
21448,
20829,
4729,
834,
536,
549,
17444,
427,
1886,
3274,
96,
12736,
89,
1846,
10341,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen? | CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR) | SELECT school FROM table_name_43 WHERE _number___county = "85 wabash" AND ihsaa_football_class = "a" AND mascot = "norsemen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6646,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
584,
4280,
28027,
6,
3,
23,
107,
7,
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,
496,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
3274,
96,
4433,
8036,
115,
3198,
121,
3430,
3,
23,
107,
7,
9,
9,
834,
6259,
3184,
834,
4057,
3274,
96,
9,
121... |
What is the highest numbered grid for piercarlo ghinzani with over 3 laps? | CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3496,
26,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3,
22412,
863... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2535,
3274,
96,
8343,
1720,
40,
32,
3,
5649,
29,
10241,
23,
121,
3430,
14941,
7,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
are there more films in tamil or telugu ? | CREATE TABLE table_204_647 (
id number,
"year" number,
"film" text,
"role" text,
"language" text
) | SELECT "language" FROM table_204_647 WHERE "language" IN ('tamil', 'telugu') GROUP BY "language" ORDER BY COUNT("film") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
4177,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
24925,
121,
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,
96,
24925,
121,
21680,
953,
834,
26363,
834,
948,
4177,
549,
17444,
427,
96,
24925,
121,
3388,
41,
31,
17,
265,
173,
31,
6,
3,
31,
1625,
76,
1744,
31,
61,
350,
4630,
6880,
272,
476,
96,
24925,
121,
4674,
11300,
... |
For each cinema, show the price and group them by film title in a stacked bar chart, and I want to order in desc by the X. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
) | SELECT Title, Price FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name, Title ORDER BY Title DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
3,
22557,
834,
77,
834,
10833,
7,
16,
17,
6,
7720,
834,
77,
834,
9476,
16,
17,
6,
11029,
1499,
6,
7143,
15,
26,
834,
969,
1499,
6,
8465,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11029,
6,
5312,
21680,
2023,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4309,
3,
15355,
3162,
10276,
6157,
332,
519,
9191,
332,... |
How many viewers (in millions) watched the episode written by deidre shaw? | CREATE TABLE table_22951088_3 (
us_viewers__in_millions_ VARCHAR,
written_by VARCHAR
) | SELECT us_viewers__in_millions_ FROM table_22951088_3 WHERE written_by = "Deidre Shaw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3301,
1714,
4060,
834,
519,
41,
178,
834,
4576,
277,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
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,
178,
834,
4576,
277,
834,
834,
77,
834,
17030,
7,
834,
21680,
953,
834,
2884,
3301,
1714,
4060,
834,
519,
549,
17444,
427,
1545,
834,
969,
3274,
96,
2962,
23,
26,
60,
15333,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the total number of record where streak is l2 and leading scorer is roy : 23 | CREATE TABLE table_11964047_5 (
record VARCHAR,
streak VARCHAR,
leading_scorer VARCHAR
) | SELECT COUNT(record) FROM table_11964047_5 WHERE streak = "L2" AND leading_scorer = "Roy : 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
23714,
4177,
834,
755,
41,
1368,
584,
4280,
28027,
6,
18631,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
7621,
61,
21680,
953,
834,
19993,
23714,
4177,
834,
755,
549,
17444,
427,
18631,
3274,
96,
434,
357,
121,
3430,
1374,
834,
7,
5715,
49,
3274,
96,
448,
32,
63,
3,
10,
1902,
121,
1,
-100,
-100,... |
What is the Place of the Player with a Score of 70-68=138? | CREATE TABLE table_name_28 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3399,
13,
8,
12387,
28,
3,
9,
17763,
13,
2861,
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,
286,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
3,
3651,
3274,
3,
22744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the election of incumbent john shelley? | CREATE TABLE table_741 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_741 WHERE "Incumbent" = 'John Shelley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
536,
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,
20119,
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,
20119,
121,
21680,
953,
834,
4581,
536,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
18300,
16040,
15,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the role of the aircraft that has a registration of s5-hpb? | CREATE TABLE table_58331 (
"Aircraft" text,
"Origin" text,
"Role" text,
"Registration" text,
"Number" text
) | SELECT "Role" FROM table_58331 WHERE "Registration" = 's5-hpb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
519,
3341,
41,
96,
20162,
6696,
121,
1499,
6,
96,
667,
3380,
77,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
18752,
257,
121,
1499,
6,
96,
567,
5937,
49,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
109,
121,
21680,
953,
834,
3449,
519,
3341,
549,
17444,
427,
96,
18752,
257,
121,
3274,
3,
31,
7,
755,
18,
107,
102,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who has the high assists in 2000? | CREATE TABLE table_78073 (
"Player" text,
"Pos." text,
"From" text,
"School/Country" text,
"Rebs" real,
"Asts" real
) | SELECT MAX("Asts") FROM table_78073 WHERE "From" = '2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4560,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
22674,
121,
1499,
6,
96,
29364,
87,
10628,
651,
121,
1499,
6,
96,
1649,
115,
7,
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,
188,
7,
17,
7,
8512,
21680,
953,
834,
3940,
4560,
519,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
13527,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show all director names who have a movie in the year 1999 or 2000. | CREATE TABLE movie (
director VARCHAR,
YEAR VARCHAR
) | SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2090,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
2090,
3056,
113,
43,
3,
9,
1974,
16,
8,
215,
5247,
42,
2766,
5,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
1974,
549,
17444,
427,
30431,
3274,
5247,
4674,
30431,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose marital status is married and diagnoses icd9 code is 53089? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.icd9_code = "53089" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
the auckland aces and yorkshire carnegie qualified on what date ? | CREATE TABLE table_204_642 (
id number,
"team" text,
"domestic tournament" text,
"position" text,
"appearance" text,
"qualified" text
) | SELECT "qualified" FROM table_204_642 WHERE "team" = 'auckland aces' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4389,
357,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
5012,
222,
447,
5892,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
3096,
2741,
663,
121,
1499,
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,
23058,
121,
21680,
953,
834,
26363,
834,
4389,
357,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
9,
4636,
40,
232,
3,
9,
2319,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which railway had a loco name of Pyramus and a build date of 1911? | CREATE TABLE table_name_68 (railway VARCHAR, build_date VARCHAR, loco_name VARCHAR) | SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
12977,
1343,
584,
4280,
28027,
6,
918,
834,
5522,
584,
4280,
28027,
6,
2072,
32,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
0,
0,
0... | [
3,
23143,
14196,
14421,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
918,
834,
5522,
3274,
28623,
3430,
2072,
32,
834,
4350,
3274,
96,
20455,
9,
3252,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the mountains classification for team columbia | CREATE TABLE table_1990 (
"Stage (Winner)" text,
"General Classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Young Rider Classification" text,
"Team Classification" text
) | SELECT "Mountains Classification" FROM table_1990 WHERE "Team Classification" = 'Team Columbia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2394,
41,
96,
134,
6505,
41,
18455,
687,
61,
121,
1499,
6,
96,
20857,
4501,
2420,
121,
1499,
6,
96,
22512,
7,
4501,
2420,
121,
1499,
6,
96,
329,
32,
14016,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
32,
14016,
77,
7,
4501,
2420,
121,
21680,
953,
834,
2294,
2394,
549,
17444,
427,
96,
18699,
4501,
2420,
121,
3274,
3,
31,
18699,
8183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the points for top tens being 24 and ownder david pearson | CREATE TABLE table_27786562_1 (
points__margin_ VARCHAR,
top_tens VARCHAR,
owner VARCHAR
) | SELECT points__margin_ FROM table_27786562_1 WHERE top_tens = 24 AND owner = "David Pearson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3940,
4122,
4056,
834,
536,
41,
979,
834,
834,
1635,
122,
77,
834,
584,
4280,
28027,
6,
420,
834,
324,
7,
584,
4280,
28027,
6,
2527,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
834,
1635,
122,
77,
834,
21680,
953,
834,
2555,
3940,
4122,
4056,
834,
536,
549,
17444,
427,
420,
834,
324,
7,
3274,
997,
3430,
2527,
3274,
96,
308,
9,
6961,
29300,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What were the total number of sales for the song 21 Seconds? | CREATE TABLE table_name_21 (sales VARCHAR, song_title VARCHAR) | SELECT COUNT(sales) FROM table_name_21 WHERE song_title = "21 seconds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
7,
4529,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
792,
381,
13,
1085,
21,
8,
2324,
1401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
4529,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2324,
834,
21869,
3274,
96,
2658,
3978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the language score when the reading score was 94.47? | CREATE TABLE table_2534578_1 (language VARCHAR, reading VARCHAR) | SELECT language FROM table_2534578_1 WHERE reading = "94.47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
519,
2128,
3940,
834,
536,
41,
24925,
584,
4280,
28027,
6,
1183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1612,
2604,
116,
8,
1183,
2604,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
21680,
953,
834,
1828,
519,
2128,
3940,
834,
536,
549,
17444,
427,
1183,
3274,
96,
4240,
5,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0? | CREATE TABLE table_name_65 (
lost VARCHAR,
losing_bp VARCHAR,
try_bp VARCHAR
) | SELECT lost FROM table_name_65 WHERE losing_bp = "5" AND try_bp = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1513,
584,
4280,
28027,
6,
5489,
834,
115,
102,
584,
4280,
28027,
6,
653,
834,
115,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1513,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5489,
834,
115,
102,
3274,
96,
17395,
3430,
653,
834,
115,
102,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who served after maturi ramaro ? | CREATE TABLE table_204_593 (
id number,
"year" text,
"chairperson" text
) | SELECT "chairperson" FROM table_204_593 WHERE "year" > (SELECT "year" FROM table_204_593 WHERE "chairperson" = 'maturiramarao') ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3390,
519,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
15657,
6075,
121,
1499,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
2098,
227,
18677,
23,
3,
1081... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
15657,
6075,
121,
21680,
953,
834,
26363,
834,
3390,
519,
549,
17444,
427,
96,
1201,
121,
2490,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
3390,
519,
549,
17444,
427,
96,
15657,
6075,
121,
3274,... |
What is the sum of Game on february 28? | CREATE TABLE table_name_52 (game INTEGER, date VARCHAR) | SELECT SUM(game) FROM table_name_52 WHERE date = "february 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7261,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
4435,
30,
29976,
76,
1208,
2059,
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,
180,
6122,
599,
7261,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location of the Church that was built in the year 1914? | CREATE TABLE table_name_51 (
location_of_the_church VARCHAR,
year_built VARCHAR
) | SELECT location_of_the_church FROM table_name_51 WHERE year_built = 1914 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1128,
834,
858,
834,
532,
834,
28854,
584,
4280,
28027,
6,
215,
834,
16152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1128,
834,
858,
834,
532,
834,
28854,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
215,
834,
16152,
3274,
24725,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are diagnosed with venous insufficiency nos and treated with base drug type? | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Venous insufficiency NOS" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
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,
3... |
which year had the most domestic passengers ? | CREATE TABLE table_203_396 (
id number,
"year" number,
"domestic passengers" number,
"international passengers" number,
"total passengers" number,
"change" text
) | SELECT "year" FROM table_203_396 ORDER BY "domestic passengers" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
4314,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
5012,
222,
447,
9234,
121,
381,
6,
96,
27817,
9234,
121,
381,
6,
96,
235,
1947,
9234,
121,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
121,
21680,
953,
834,
23330,
834,
519,
4314,
4674,
11300,
272,
476,
96,
5012,
222,
447,
9234,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'. | CREATE TABLE order_items (
order_item_id number,
order_id number,
product_id number,
product_quantity text,
other_order_item_details text
)
CREATE TABLE products (
product_id number,
parent_product_id number,
production_type_code text,
unit_price number,
product_name text,
product_color text,
product_size text
)
CREATE TABLE invoice_line_items (
order_item_id number,
invoice_number number,
product_id number,
product_title text,
product_quantity text,
product_price number,
derived_product_cost number,
derived_vat_payable number,
derived_total_cost number
)
CREATE TABLE accounts (
account_id number,
customer_id number,
date_account_opened time,
account_name text,
other_account_details text
)
CREATE TABLE product_categories (
production_type_code text,
product_type_description text,
vat_rating number
)
CREATE TABLE financial_transactions (
transaction_id number,
account_id number,
invoice_number number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE invoices (
invoice_number number,
order_id number,
invoice_date time
)
CREATE TABLE orders (
order_id number,
customer_id number,
date_order_placed time,
order_details text
)
CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_middle_initial text,
customer_last_name text,
gender text,
email_address text,
login_name text,
login_password text,
phone_number text,
town_city text,
state_county_province text,
country text
) | SELECT T1.account_id, T1.date_account_opened, T1.account_name, T1.other_account_details FROM accounts AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
455,
834,
23,
3524,
7,
41,
455,
834,
23,
3524,
834,
23,
26,
381,
6,
455,
834,
23,
26,
381,
6,
556,
834,
23,
26,
381,
6,
556,
834,
13158,
485,
1499,
6,
119,
834,
9397,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
75,
13362,
834,
23,
26,
6,
332,
5411,
5522,
834,
9,
75,
13362,
834,
26940,
6,
332,
5411,
9,
75,
13362,
834,
4350,
6,
332,
5411,
9269,
834,
9,
75,
13362,
834,
221,
5756,
7,
21680,
3744,
6157,
332,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of code , and group by attribute headquarter, sort in desc by the x axis. | 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 T2.Headquarter 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,
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 are the names of the different bank branches, and what are their total loan amounts? | CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
) | SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
6421,
834,
23,
26,
381,
6,
3,
115,
4350,
1499,
6,
150,
834,
858,
834,
25697,
277,
381,
6,
690,
1499,
6,
538,
1499,
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,
180,
6122,
599,
9,
11231,
201,
332,
5411,
115,
4350,
21680,
2137,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1939,
5457,
834,
23,
26,
3274,
332,
4416,
1939,
5457,
834,
23,
26,
350,
4630,
... |
who is the season result where margin is 51 | CREATE TABLE table_1139835_3 (season_result VARCHAR, margin VARCHAR) | SELECT season_result FROM table_1139835_3 WHERE margin = 51 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3916,
2469,
834,
519,
41,
9476,
834,
60,
7,
83,
17,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
774,
741,
213,
6346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
774,
834,
60,
7,
83,
17,
21680,
953,
834,
20522,
3916,
2469,
834,
519,
549,
17444,
427,
6346,
3274,
11696,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the socket that has a brand name of core 2 extreme? | CREATE TABLE table_24101118_1 (
socket VARCHAR,
brand_name VARCHAR
) | SELECT socket FROM table_24101118_1 WHERE brand_name = "Core 2 Extreme" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
19621,
20056,
834,
536,
41,
16197,
584,
4280,
28027,
6,
1056,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
16197,
24,
65,
3,
9,
1056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16197,
21680,
953,
834,
2266,
19621,
20056,
834,
536,
549,
17444,
427,
1056,
834,
4350,
3274,
96,
13026,
15,
204,
20355,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many different divisions has the team participated in ? | CREATE TABLE table_202_160 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) | SELECT COUNT(DISTINCT "division") FROM table_202_160 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
19129,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
4563,
121,
1499,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
14309,
121,
1499,
6,
96,
4718,
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,
2847,
17161,
599,
15438,
25424,
6227,
96,
26,
23,
6610,
8512,
21680,
953,
834,
19818,
834,
19129,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the record of the game on February 21, 2008? | CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_60 WHERE date = "february 21, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
467,
30,
2083,
12026,
2628,
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,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
12026,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is average age for different job title Visualize by bar chart, I want to display by the job from high to low. | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
613,
6,
71,
17217,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
613,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what Surface was the game with Partner David Martin played Scoring 4 6, 6 7 (4-7)? | CREATE TABLE table_name_24 (
surface VARCHAR,
partner VARCHAR,
score VARCHAR
) | SELECT surface FROM table_name_24 WHERE partner = "david martin" AND score = "4–6, 6–7 (4-7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
18884,
47,
8,
467,
28,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
2397,
3274,
96,
26,
9,
6961,
3157,
17,
77,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
431,
104,
940,
8457,
18,
12703,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the fastest lap for a season smaller than 1979? | CREATE TABLE table_name_99 (
fastest_laps VARCHAR,
season INTEGER
) | SELECT fastest_laps FROM table_name_99 WHERE season < 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
10391,
834,
8478,
7,
584,
4280,
28027,
6,
774,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10391,
14941,
21,
3,
9,
774,
2755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
7,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
774,
3,
2,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the average score and average staff number of all shops? | CREATE TABLE shop (
num_of_staff INTEGER,
score INTEGER
) | SELECT AVG(num_of_staff), AVG(score) FROM shop | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
3,
5525,
834,
858,
834,
26416,
3,
21342,
17966,
6,
2604,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
2604,
11,
1348,
871,
381,
13,
66,
5391,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
5525,
834,
858,
834,
26416,
201,
71,
17217,
599,
7,
9022,
61,
21680,
1814,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number played with a difference of 22 and less than 34 against? | CREATE TABLE table_40838 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT COUNT("Played") FROM table_40838 WHERE "Difference" = '22' AND "Against" < '34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
3747,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
15,
26,
8512,
21680,
953,
834,
2445,
927,
3747,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
2884,
31,
3430,
96,
20749,
121,
3,
2,
3,
31,
3710,
31,
1,
-100,
-100,
-100,
-1... |
How many wins are with Dodge vehicles? | CREATE TABLE table_24993 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT COUNT("Miles (km)") FROM table_24993 WHERE "Manufacturer" = 'Dodge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3264,
519,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
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,
329,
699,
7,
41,
5848,
61,
8512,
21680,
953,
834,
2266,
3264,
519,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
4135,
26,
397,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the altitude of the explosion Hardtack Teak? | CREATE TABLE table_19620 (
"Explosion" text,
"Location" text,
"Date" text,
"Yield (approximate)" text,
"Altitude (km)" text,
"Nation of Origin" text
) | SELECT "Altitude (km)" FROM table_19620 WHERE "Explosion" = 'Hardtack Teak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
1755,
41,
96,
5420,
7379,
1938,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
476,
23,
8804,
41,
12497,
226,
23,
5058,
61,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
6592,
41,
5848,
61,
121,
21680,
953,
834,
26937,
1755,
549,
17444,
427,
96,
5420,
7379,
1938,
121,
3274,
3,
31,
15537,
26,
17,
4365,
8250,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What kind of Republican ticket has a Prohibition ticket of stephen mead wing? | CREATE TABLE table_40136 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Socialist Labor ticket" text,
"Prohibition ticket" text,
"Independent Citizens' ticket" text
) | SELECT "Republican ticket" FROM table_40136 WHERE "Prohibition ticket" = 'stephen mead wing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
23459,
41,
96,
22098,
121,
1499,
6,
96,
1649,
15727,
152,
4142,
121,
1499,
6,
96,
19679,
447,
4142,
121,
1499,
6,
96,
5231,
4703,
343,
9836,
4142,
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,
1649,
15727,
152,
4142,
121,
21680,
953,
834,
2445,
23459,
549,
17444,
427,
96,
3174,
13506,
1575,
4142,
121,
3274,
3,
31,
849,
19017,
140,
9,
26,
3,
3108,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the Oregon 5 District incumbent who was first elected in 1996? | CREATE TABLE table_name_18 (
results VARCHAR,
first_elected VARCHAR,
district VARCHAR
) | SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = "oregon 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
772,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
166,
834,
19971,
3274,
6911,
3430,
3939,
3274,
96,
127,
15,
5307,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is 2008, when 2006 is '1R'? | CREATE TABLE table_44844 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2008" FROM table_44844 WHERE "2006" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3707,
3628,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
121,
21680,
953,
834,
591,
3707,
3628,
549,
17444,
427,
96,
21196,
121,
3274,
3,
31,
536,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the date of the poll with Goldberg at 26%? | CREATE TABLE table_name_12 (
date VARCHAR,
goldberg VARCHAR
) | SELECT date FROM table_name_12 WHERE goldberg = "26%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
833,
584,
4280,
28027,
6,
2045,
2235,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
5492,
28,
2540,
2235,
44,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2045,
2235,
3274,
96,
357,
6370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest lost that has 6 for points? | CREATE TABLE table_38514 (
"Games" real,
"Drawn" real,
"Lost" real,
"Goal difference" text,
"Points" real
) | SELECT MAX("Lost") FROM table_38514 WHERE "Points" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4433,
2534,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
6221,
138,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
3481,
8512,
21680,
953,
834,
519,
4433,
2534,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6? | CREATE TABLE table_name_79 (
seats_2006 INTEGER,
parties_and_voter_communities VARCHAR,
_percentage_2006 VARCHAR
) | SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
6116,
834,
21196,
3,
21342,
17966,
6,
2251,
834,
232,
834,
1621,
449,
834,
18782,
2197,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
21196,
584,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
1544,
7,
834,
21196,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2251,
834,
232,
834,
1621,
449,
834,
18782,
2197,
3274,
96,
15294,
23,
152,
15053,
7021,
13,
13692,
63,
121,
3430,
3,
83... |
What is Season, when Lead is 'Michael Goodfellow'? | CREATE TABLE table_7885 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Season" FROM table_7885 WHERE "Lead" = 'michael goodfellow' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4433,
41,
96,
134,
15,
9,
739,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
3940,
4433,
549,
17444,
427,
96,
2796,
9,
26,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
207,
4025,
3216,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7? | CREATE TABLE table_name_68 (apparatus VARCHAR, score_final VARCHAR, score_qualifying VARCHAR) | SELECT apparatus FROM table_name_68 WHERE score_final < 75.5 AND score_qualifying < 18.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
10198,
144,
302,
584,
4280,
28027,
6,
2604,
834,
12406,
584,
4280,
28027,
6,
2604,
834,
11433,
8587,
584,
4280,
28027,
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,
20282,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2604,
834,
12406,
3,
2,
489,
15938,
3430,
2604,
834,
11433,
8587,
3,
2,
12265,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of provincial captial where the province is northern cape? | CREATE TABLE table_1692 (
"Province" text,
"Provincial capital" text,
"Largest city" text,
"Area (km 2 )" real,
"Population (2013)" real
) | SELECT COUNT("Provincial capital") FROM table_1692 WHERE "Province" = 'Northern Cape' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4508,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
3174,
2494,
4703,
1784,
121,
1499,
6,
96,
434,
8240,
222,
690,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
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,
2847,
17161,
599,
121,
3174,
2494,
4703,
1784,
8512,
21680,
953,
834,
2938,
4508,
549,
17444,
427,
96,
3174,
2494,
565,
121,
3274,
3,
31,
22969,
49,
29,
9702,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Bar chart x axis left office y axis the number of left office, show total number from low to high order. | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
) | SELECT Left_office, COUNT(Left_office) FROM party ORDER BY COUNT(Left_office) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
4309,
16,
17,
6,
6163,
834,
4350,
1499,
6,
7678,
1499,
6,
16229,
1499,
6,
12439,
1499,
6,
22424,
76,
15,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14298,
834,
19632,
6,
2847,
17161,
599,
2796,
89,
17,
834,
19632,
61,
21680,
1088,
4674,
11300,
272,
476,
2847,
17161,
599,
2796,
89,
17,
834,
19632,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the points for the player who was a rank of 61t? | CREATE TABLE table_name_92 (
points INTEGER,
rank VARCHAR
) | SELECT SUM(points) FROM table_name_92 WHERE rank = "61t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
979,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
979,
21,
8,
1959,
113,
47,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
11003,
3274,
96,
4241,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many staff does each project has? List the project id and the number in an ascending order. | CREATE TABLE Project_Staff (
project_id VARCHAR
)
CREATE TABLE Projects (
project_id VARCHAR
) | SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
834,
134,
17,
4127,
41,
516,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
516,
834,
23,
26,
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,
332,
5411,
23574,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
2786,
834,
134,
17,
4127,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
23574,
834,
23,
26,
3274,
332,
4416,
23574,
... |
What's the Peaches: for Sayin' Something? | CREATE TABLE table_66589 (
"Title" text,
"Label" text,
"Year of Release" real,
"Country of Release" text,
"Peaches:" text
) | SELECT "Peaches:" FROM table_66589 WHERE "Title" = 'sayin'' something' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
755,
3914,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
476,
2741,
13,
13048,
121,
490,
6,
96,
10628,
651,
13,
13048,
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,
15,
14693,
10,
121,
21680,
953,
834,
3539,
755,
3914,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
8735,
77,
31,
31,
424,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many nations have a total of 1 medal won ? | CREATE TABLE table_204_311 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_204_311 WHERE "total" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
2596,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
8512,
21680,
953,
834,
26363,
834,
519,
2596,
549,
17444,
427,
96,
235,
1947,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a scatter chart about the correlation between Team_ID and ACC_Percent , and group by attribute All_Games. | 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, ACC_Percent FROM basketball_match GROUP BY All_Games | [
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,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the average credit score of the customers who have some loan. | CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) | SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
15547,
834,
7,
9022,
3,
21342,
17966,
6,
123,
7,
17,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
15547,
834,
7,
9022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
15547,
834,
7,
9022,
61,
21680,
884,
549,
17444,
427,
123,
7,
17,
834,
23,
26,
3388,
41,
23143,
14196,
123,
7,
17,
834,
23,
26,
21680,
2289,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Opponent of @ atlanta flames had what game? | CREATE TABLE table_name_44 (game VARCHAR, opponent VARCHAR) | SELECT game FROM table_name_44 WHERE opponent = "@ atlanta flames" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
7261,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4495,
9977,
13,
3320,
44,
6761,
9,
12314,
7,
141,
125,
467,
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... | [
3,
23143,
14196,
467,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
15264,
3274,
96,
1741,
44,
6761,
9,
12314,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which characters after 2003 won? | CREATE TABLE table_55206 (
"Year" real,
"Category" text,
"Character" text,
"For The Show" text,
"Result" text
) | SELECT "Character" FROM table_55206 WHERE "Result" = 'won' AND "Year" > '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
24643,
41,
96,
476,
2741,
121,
490,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
3809,
37,
3111,
121,
1499,
6,
96,
20119,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
18947,
2708,
49,
121,
21680,
953,
834,
3769,
24643,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
106,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the To par of the T8 Place Player with a Score of 72-70-66=208? | CREATE TABLE table_name_79 (to_par VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_79 WHERE place = "t8" AND score = 72 - 70 - 66 = 208 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
235,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
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,
1,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
286,
3274,
96,
17,
927,
121,
3430,
2604,
3274,
9455,
3,
18,
2861,
3,
18,
3,
3539,
3274,
3,
23946,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What position does Sergio Rodr guez, who is less than 1.96 tall and was born after 1980, play? | CREATE TABLE table_name_39 (
position VARCHAR,
player VARCHAR,
height VARCHAR,
year_born VARCHAR
) | SELECT position FROM table_name_39 WHERE height < 1.96 AND year_born > 1980 AND player = "sergio rodríguez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
215,
834,
7473,
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,
1102,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
3902,
3,
2,
1300,
4314,
3430,
215,
834,
7473,
2490,
6694,
3430,
1959,
3274,
96,
7,
49,
10253,
6102,
52,
2,
1744,
457,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the correlation between Team_ID and School_ID , and group by attribute ACC_Road in a scatter chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
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
) | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game after week 3 against the New York Giants? | CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
471,
2490,
220,
3430,
15264,
3274,
96,
5534,
25453,
6079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Difference with a position of less than 3, and, 17 points. | CREATE TABLE table_41490 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT "Difference" FROM table_41490 WHERE "Position" < '3' AND "Points" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2534,
2394,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
99,
11788,
121,
21680,
953,
834,
591,
2534,
2394,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is the location with a record of 50-19? | CREATE TABLE table_name_34 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_name_34 WHERE record = "50-19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1128,
28,
3,
9,
1368,
13,
943,
4481,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1368,
3274,
96,
1752,
4481,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many counties correspond to each police force, sort in ascending by the y-axis. | 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
)
CREATE TABLE city (
City_ID int,
County_ID int,
Name text,
White real,
Black real,
Amerindian real,
Asian real,
Multiracial real,
Hispanic real
) | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
834,
15727,
834,
15233,
17,
63,
41,
1334,
834,
4309,
16,
17,
6,
5570,
1499,
6,
29659,
16,
17,
6,
5076,
834,
19632,
52,
7,
16,
17,
6,
24998,
834,
883,
834,
19632,
52,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
... |
What is the record of the game with 18,084 in attendance? | CREATE TABLE table_55897 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_55897 WHERE "Attendance" = '18,084' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3449,
4327,
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,
1649,
7621,
121,
21680,
953,
834,
755,
3449,
4327,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2606,
6,
4018,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many candidates were first elected in 1972? | CREATE TABLE table_1341640_11 (
candidates VARCHAR,
first_elected VARCHAR
) | SELECT COUNT(candidates) FROM table_1341640_11 WHERE first_elected = 1972 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2445,
834,
2596,
41,
4341,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4341,
130,
166,
8160,
16,
1658... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
2938,
2445,
834,
2596,
549,
17444,
427,
166,
834,
19971,
3274,
16583,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the name of each course and the corresponding number of student enrollment. Show bar chart. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
) | SELECT course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
503,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
8670,
7,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
... |
What is the venue that has 34-18 as the score? | CREATE TABLE table_21350934_2 (
venue VARCHAR,
score VARCHAR
) | SELECT venue FROM table_21350934_2 WHERE score = "34-18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2469,
4198,
3710,
834,
357,
41,
5669,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
24,
65,
6154,
6996,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
2658,
2469,
4198,
3710,
834,
357,
549,
17444,
427,
2604,
3274,
96,
3710,
6996,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, order in descending by the total number of school id. | 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 ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(School_ID) DESC | [
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,
3,
14775,
834,
448,
32,
9,
26,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
180,
6122,
599,
29364,
834,
4309,
... |
List the # for ships commissioned on september 30, 1967. | CREATE TABLE table_16 (
"#" text,
"Shipyard" text,
"Laid down" text,
"Launched" text,
"Commissioned" text,
"Fleet" text,
"Status" text
) | SELECT "#" FROM table_16 WHERE "Commissioned" = 'September 30, 1967' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
41,
96,
4663,
121,
1499,
6,
96,
134,
10462,
6636,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
121,
1499,
6,
96,
5890,
5451,
15,
26,
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,
96,
4663,
121,
21680,
953,
834,
2938,
549,
17444,
427,
96,
5890,
5451,
15,
26,
121,
3274,
3,
31,
27652,
11558,
18148,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Line chart, the X is the hire date of employees and the Y-axis is the corresponding salary, and order x axis in asc order please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SALARY FROM employees ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
4674,
11300,
272,
476,
454,
14132,
834,
308,
6048,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the year for sammo hung for ip man 2 | CREATE TABLE table_72660 (
"Year" text,
"Best Film" text,
"Best Director" text,
"Best Actor" text,
"Best Actress" text,
"Best Supporting Actor" text,
"Best Supporting Actress" text
) | SELECT "Year" FROM table_72660 WHERE "Best Supporting Actor" = 'Sammo Hung for Ip Man 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
27720,
41,
96,
476,
2741,
121,
1499,
6,
96,
17278,
3417,
121,
1499,
6,
96,
17278,
2578,
121,
1499,
6,
96,
17278,
1983,
127,
121,
1499,
6,
96,
17278,
1983,
9377,
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,
96,
476,
2741,
121,
21680,
953,
834,
5865,
27720,
549,
17444,
427,
96,
17278,
4224,
53,
1983,
127,
121,
3274,
3,
31,
134,
9,
635,
32,
454,
425,
21,
27,
102,
1140,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the authors of their total submissions with a bar chart, and display x axis from high to low order. | CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
) | SELECT Author, COUNT(Author) FROM submission GROUP BY Author ORDER BY Author DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
20592,
663,
41,
29779,
834,
4309,
16,
17,
6,
9644,
834,
4309,
16,
17,
6,
3,
20119,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
29779,
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,
10236,
6,
2847,
17161,
599,
23602,
127,
61,
21680,
8121,
350,
4630,
6880,
272,
476,
10236,
4674,
11300,
272,
476,
10236,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest Attendance when the away team was Wrexham? | CREATE TABLE table_name_39 (
attendance INTEGER,
away_team VARCHAR
) | SELECT MAX(attendance) FROM table_name_39 WHERE away_team = "wrexham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
11364,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
22497,
663,
116,
8,
550,
372,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
550,
834,
11650,
3274,
96,
210,
60,
226,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony? | CREATE TABLE table_61779 (
"Year" real,
"Award ceremony" text,
"Role" text,
"Production" text,
"Result" text
) | SELECT "Production" FROM table_61779 WHERE "Result" = 'nominated' AND "Year" = '2009' AND "Award ceremony" = 'helpmann awards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
4440,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
7252,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
3174,
8291,
121,
1499,
6,
96,
20119,
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,
3174,
8291,
121,
21680,
953,
834,
948,
2517,
4440,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3114,
77,
920,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
16660,
31,
3430,
96,
188,
2239,
7252,
121,
3274,
3,
... |
Who won under Gary Simms? | CREATE TABLE table_74528 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Time" text,
"Grade" text
) | SELECT "Winner" FROM table_74528 WHERE "Trainer" = 'gary simms' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
2577,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
13368,
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,
18455,
687,
121,
21680,
953,
834,
940,
2128,
2577,
549,
17444,
427,
96,
9402,
4899,
121,
3274,
3,
31,
1478,
63,
108,
635,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Tie no is "3"? | CREATE TABLE table_name_33 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_33 WHERE tie_no = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5522,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
2262,
15,
150,
19,
96,
519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012? | CREATE TABLE table_61379 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_61379 WHERE "Result" = 'won' AND "Competition" = 'friendly' AND "Date" = '28 may 2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
4241,
519,
4440,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
106,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
308,
342,
121,
3274,
3,
... |
What are the names of the schools with the top 3 largest class sizes? | CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) | SELECT cname FROM college ORDER BY enr DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
12417,
381,
6,
3,
75,
4350,
1499,
6,
3,
102,
2748,
1499,
6,
1357,
1499,
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,
3,
75,
4350,
21680,
1900,
4674,
11300,
272,
476,
3,
35,
52,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what movies did greenstreet act for in 1946 ? | CREATE TABLE table_202_200 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) | SELECT "title" FROM table_202_200 WHERE "year" = 1946 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
3632,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
1499,
3,
61,
3,
32102,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
19818,
834,
3632,
549,
17444,
427,
96,
1201,
121,
3274,
25021,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which song was chosen during the audition week? | CREATE TABLE table_74421 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_74421 WHERE "Week #" = 'Audition' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
2658,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
2444,
1160,
121,
21680,
953,
834,
4581,
591,
2658,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
188,
76,
10569,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson? | CREATE TABLE table_name_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR) | SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = "mike pearson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1890,
1748,
3,
21342,
17966,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9126,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
668,
3430,
564,
3274,
96,
20068,
15,
3,
29892,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show all investor details, and count them by a bar chart, and order by the Y-axis in ascending. | CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
) | SELECT Investor_details, COUNT(Investor_details) FROM Investors GROUP BY Investor_details ORDER BY COUNT(Investor_details) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
12024,
834,
23,
26,
3,
21342,
17966,
6,
5878,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
833,
834,
858,
834,
7031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16873,
834,
221,
5756,
7,
6,
2847,
17161,
599,
13898,
127,
834,
221,
5756,
7,
61,
21680,
16873,
7,
350,
4630,
6880,
272,
476,
16873,
834,
221,
5756,
7,
4674,
11300,
272,
476,
2847,
17161,
599,
13898,
127,
834,
221,
... |
How many entrepreneurs correspond to each investor. | CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
26696,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
1958,
1499,
6,
8833,
834,
1649,
835,
6265,
490,
6,
16873,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose marital status is divorced and procedure short title is oth periton adhesiolysis? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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
)
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.marital_status = "DIVORCED" AND procedures.short_title = "Oth periton adhesiolysis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
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 least amount of field goals made by a player? | CREATE TABLE table_14342210_6 (field_goals INTEGER) | SELECT MIN(field_goals) FROM table_14342210_6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
948,
41,
1846,
834,
839,
5405,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
1057,
1766,
263,
57,
3,
9,
1959,
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,
3,
17684,
599,
1846,
834,
839,
5405,
61,
21680,
953,
834,
25133,
4165,
15239,
834,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At what venue was South Melbourne the home team? | CREATE TABLE table_name_87 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_87 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
5669,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
47,
1013,
9396,
8,
234,
372,
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,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Nationality of the athlete in 1999 Fort-de-France in the Triple Jump? | CREATE TABLE table_13371 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Games" text
) | SELECT "Nationality" FROM table_13371 WHERE "Games" = '1999 fort-de-france' AND "Event" = 'triple jump' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
4450,
41,
96,
427,
2169,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
23055,
7,
121,
1499,
3,
61,
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,
24732,
485,
121,
21680,
953,
834,
22974,
4450,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
2294,
3264,
21,
17,
18,
221,
18,
89,
5219,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
14192,
109,
4418,
31,
1,
... |
What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times? | CREATE TABLE table_45088 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MAX("Goals for") FROM table_45088 WHERE "Position" > '10' AND "Goal Difference" < '-24' AND "Played" > '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10593,
4060,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6221,
5405,
21,
8512,
21680,
953,
834,
10593,
4060,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
1714,
31,
3430,
96,
6221,
138,
27187,
121,
3,
2,
3,
31,
14962,
31,
3430,
96,
15800,... |
What country has area of 7,914 m ? | CREATE TABLE table_53459 (
"Area in m\u00b2" text,
"Completion" text,
"City" text,
"Country" text,
"Denomination" text
) | SELECT "Country" FROM table_53459 WHERE "Area in m\u00b2" = '7,914' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3710,
3390,
41,
96,
188,
864,
16,
3,
51,
2,
76,
1206,
115,
357,
121,
1499,
6,
96,
5890,
4788,
1575,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
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,
96,
10628,
651,
121,
21680,
953,
834,
755,
3710,
3390,
549,
17444,
427,
96,
188,
864,
16,
3,
51,
2,
76,
1206,
115,
357,
121,
3274,
3,
31,
940,
6,
4729,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? | CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7775,
7,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
9609,
7,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14419,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3,
295,
3569,
3274,
96,
8010,
14814,
7,
3,
1947,
4045,
18,
3439,
3738,
1824,
121,
3430,
2535,
3274,
96,
8343,
60,
90,
162,
122,
107,
121,
1,
-100,
-100,
-1... |
What is the name of chapter 8 of season 4? | CREATE TABLE table_26429771_1 (
title VARCHAR,
no_in_season VARCHAR
) | SELECT title FROM table_26429771_1 WHERE no_in_season = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4165,
4327,
4450,
834,
536,
41,
2233,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
5800,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2688,
4165,
4327,
4450,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
At what latitude did the shock at time 13:10:02 occur? | CREATE TABLE table_3369 (
"Date (YYYY-MM-DD)" text,
"Time (UTC)" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
) | SELECT "Latitude" FROM table_3369 WHERE "Time (UTC)" = '13:10:02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
3951,
41,
96,
308,
342,
41,
476,
476,
476,
476,
18,
8257,
18,
11253,
61,
121,
1499,
6,
96,
13368,
41,
6675,
254,
61,
121,
1499,
6,
96,
3612,
6592,
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,
96,
3612,
6592,
121,
21680,
953,
834,
4201,
3951,
549,
17444,
427,
96,
13368,
41,
6675,
254,
61,
121,
3274,
3,
31,
2368,
10,
1714,
10,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHich Losing Team has a Venue of sydney football stadium, and a Total larger than 80, and a Winning Team of tigers? | CREATE TABLE table_name_87 (losing_team VARCHAR, winning_team VARCHAR, venue VARCHAR, total VARCHAR) | SELECT losing_team FROM table_name_87 WHERE venue = "sydney football stadium" AND total > 80 AND winning_team = "tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2298,
53,
834,
11650,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
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,
5489,
834,
11650,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
5669,
3274,
96,
7,
63,
26,
3186,
3370,
14939,
121,
3430,
792,
2490,
2775,
3430,
3447,
834,
11650,
3274,
96,
2880,
277,
121,
1,
-100,
-100,
-100,
-... |
I want to know the highest heat rank for overall rank of t63 and time less than 25.47 | CREATE TABLE table_4327 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
) | SELECT MAX("Heat Rank") FROM table_4327 WHERE "Overall Rank" = 't63' AND "Time" < '25.47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
2555,
41,
96,
3845,
144,
3,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
134,
210,
12174,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
144,
3,
22557,
8512,
21680,
953,
834,
4906,
2555,
549,
17444,
427,
96,
23847,
1748,
3,
22557,
121,
3274,
3,
31,
17,
3891,
31,
3430,
96,
13368,
121,
3,
2,
3,
31,
1828,
5,
4177,
31,
1,
-... |
What is the combined consumption of 1.6 16v? | CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR) | SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
287,
12712,
26,
834,
8056,
440,
102,
1575,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3334,
5962,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3334,
834,
8056,
440,
102,
1575,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
564,
3274,
96,
15062,
898,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the hosts of performances in ascending order of attendance. | CREATE TABLE member_attendance (
member_id number,
performance_id number,
num_of_pieces number
)
CREATE TABLE performance (
performance_id number,
date text,
host text,
location text,
attendance number
)
CREATE TABLE member (
member_id text,
name text,
nationality text,
role text
) | SELECT host FROM performance ORDER BY attendance | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
15116,
663,
41,
1144,
834,
23,
26,
381,
6,
821,
834,
23,
26,
381,
6,
3,
5525,
834,
858,
834,
8424,
7,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2290,
21680,
821,
4674,
11300,
272,
476,
11364,
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,
-100,
-100,
-100,
-100,
... |
What is the people's party with an 8.0% green-communist? | CREATE TABLE table_64108 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Green-Communist" text,
"People's Party" text,
"Left Bloc" text,
"Lead" text
) | SELECT "People's Party" FROM table_64108 WHERE "Green-Communist" = '8.0%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
16169,
41,
96,
308,
342,
13048,
26,
121,
1499,
6,
96,
8931,
697,
13681,
121,
1499,
6,
96,
5231,
4703,
343,
121,
1499,
6,
96,
5231,
4703,
10021,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24337,
31,
7,
3450,
121,
21680,
953,
834,
4389,
16169,
549,
17444,
427,
96,
22918,
18,
10205,
202,
343,
121,
3274,
3,
31,
27376,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter? | CREATE TABLE table_2150068_1 (
launch_date__utc_ VARCHAR,
diameter_m_ VARCHAR,
usage VARCHAR,
mass_kg_ VARCHAR
) | SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = "ado" AND mass_kg_ = "4" AND diameter_m_ = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2560,
3651,
834,
536,
41,
3289,
834,
5522,
834,
834,
76,
17,
75,
834,
584,
4280,
28027,
6,
9260,
834,
51,
834,
584,
4280,
28027,
6,
4742,
584,
4280,
28027,
6,
3294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3289,
834,
5522,
834,
834,
76,
17,
75,
834,
21680,
953,
834,
2658,
2560,
3651,
834,
536,
549,
17444,
427,
4742,
3274,
96,
9,
26,
32,
121,
3430,
3294,
834,
8711,
834,
3274,
96,
20364,
3430,
9260,
834,
51,
834,
3274... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.